Home
last modified time | relevance | path

Searched refs:ep (Results 1 – 25 of 58) sorted by relevance

123

/device/board/isoftstone/zhiyuan/kernel/driver/drivers/usb/sunxi_usb/udc/
Dsunxi_udc_dma.c41 void sunxi_udc_switch_bus_to_dma(struct sunxi_udc_ep *ep, u32 is_tx) in sunxi_udc_switch_bus_to_dma() argument
46 void sunxi_udc_switch_bus_to_pio(struct sunxi_udc_ep *ep, __u32 is_tx) in sunxi_udc_switch_bus_to_pio() argument
51 void sunxi_udc_enable_dma_channel_irq(struct sunxi_udc_ep *ep) in sunxi_udc_enable_dma_channel_irq() argument
57 void sunxi_udc_disable_dma_channel_irq(struct sunxi_udc_ep *ep) in sunxi_udc_disable_dma_channel_irq() argument
178 void sunxi_udc_dma_set_config(struct sunxi_udc_ep *ep, in sunxi_udc_dma_set_config() argument
190 is_tx = is_tx_ep(ep); in sunxi_udc_dma_set_config()
191 packet_size = ep->ep.maxpacket; in sunxi_udc_dma_set_config()
199 ep->dma_hdle = dma_hdl; in sunxi_udc_dma_set_config()
202 pchan->ep_num = ep_fifo_in[ep->num]; in sunxi_udc_dma_set_config()
204 pchan->ep_num = ep_fifo_out[ep->num]; in sunxi_udc_dma_set_config()
[all …]
Dsunxi_udc.c374 #define big_req(req, ep) ((req->req.length != req->req.actual) \ argument
377 > ep->ep.maxpacket)) \
378 : (req->req.length > ep->ep.maxpacket))
379 #define is_sunxi_udc_dma_capable(req, ep) (is_udc_support_dma() \ argument
380 && big_req(req, ep) \
381 && ep->num)
383 #define is_buffer_mapped(req, ep) (is_sunxi_udc_dma_capable(req, ep) \ argument
420 struct sunxi_udc_ep *ep) in sunxi_udc_map_dma_buffer() argument
422 if (!is_sunxi_udc_dma_capable(req, ep)) { in sunxi_udc_map_dma_buffer()
434 (is_tx_ep(ep) ? DMA_TO_DEVICE in sunxi_udc_map_dma_buffer()
[all …]
Dsunxi_udc_dma.h56 void sunxi_udc_switch_bus_to_dma(struct sunxi_udc_ep *ep, u32 is_tx);
57 void sunxi_udc_switch_bus_to_pio(struct sunxi_udc_ep *ep, __u32 is_tx);
59 void sunxi_udc_enable_dma_channel_irq(struct sunxi_udc_ep *ep);
60 void sunxi_udc_disable_dma_channel_irq(struct sunxi_udc_ep *ep);
65 void sunxi_udc_dma_set_config(struct sunxi_udc_ep *ep,
67 void sunxi_udc_dma_start(struct sunxi_udc_ep *ep,
69 void sunxi_udc_dma_stop(struct sunxi_udc_ep *ep);
70 __u32 sunxi_udc_dma_transmit_length(struct sunxi_udc_ep *ep);
71 __u32 sunxi_udc_dma_is_busy(struct sunxi_udc_ep *ep);
73 struct sunxi_udc_ep *ep, struct sunxi_udc_request *req);
Dsunxi_udc_debug.c37 void print_list_node(struct sunxi_udc_ep *ep, char *str) in print_list_node() argument
47 DMSG_INFO("---------------ep%d: %s-------------\n", ep->num, str); in print_list_node()
48 list_for_each_entry(req, &ep->queue, queue) { in print_list_node()
50 ep, ep->num, req, &(req->req), in print_list_node()
Dsunxi_udc_debug.h19 void print_list_node(struct sunxi_udc_ep *ep, char *str);
/device/soc/telink/b91/b91_ble_sdk/drivers/B91/
Dusbhw.h79 static inline void usbhw_clr_ctrl_ep_irq(int ep) in usbhw_clr_ctrl_ep_irq() argument
82 BM_CLR(reg_ctrl_ep_irq_sta, ep); in usbhw_clr_ctrl_ep_irq()
84 reg_ctrl_ep_irq_sta = ep; in usbhw_clr_ctrl_ep_irq()
131 static inline void usbhw_reset_ep_ptr(unsigned int ep) in usbhw_reset_ep_ptr() argument
133 reg_usb_ep_ptr(ep) = 0; in usbhw_reset_ep_ptr()
168 static inline void usbhw_clr_eps_irq(int ep) in usbhw_clr_eps_irq() argument
170 reg_usb_ep_irq_status = ep; in usbhw_clr_eps_irq()
218 static inline void usbhw_set_eps_en(usb_ep_en_e ep) in usbhw_set_eps_en() argument
220 reg_usb_edp_en = ep; in usbhw_set_eps_en()
228 static inline void usbhw_set_eps_dis(usb_ep_en_e ep) in usbhw_set_eps_dis() argument
[all …]
Dusbhw.c47 void usbhw_write_ep(unsigned int ep, unsigned char *data, int len) in usbhw_write_ep() argument
49 reg_usb_ep_ptr(ep) = 0; in usbhw_write_ep()
52 reg_usb_ep_dat(ep) = data[i]; in usbhw_write_ep()
54 reg_usb_ep_ctrl(ep) = FLD_EP_DAT_ACK; // ACK in usbhw_write_ep()
/device/soc/rockchip/common/sdk_linux/include/linux/usb/
Dgadget.h116 void (*complete)(struct usb_ep *ep, struct usb_request *req);
136 int (*enable)(struct usb_ep *ep, const struct usb_endpoint_descriptor *desc);
137 int (*disable)(struct usb_ep *ep);
138 void (*dispose)(struct usb_ep *ep);
140 struct usb_request *(*alloc_request)(struct usb_ep *ep, gfp_t gfp_flags);
141 void (*free_request)(struct usb_ep *ep, struct usb_request *req);
143 int (*queue)(struct usb_ep *ep, struct usb_request *req, gfp_t gfp_flags);
144 int (*dequeue)(struct usb_ep *ep, struct usb_request *req);
146 int (*set_halt)(struct usb_ep *ep, int value);
147 int (*set_wedge)(struct usb_ep *ep);
[all …]
/device/soc/rockchip/rk3588/kernel/include/linux/usb/
Dgadget.h117 void (*complete)(struct usb_ep *ep,
140 int (*enable) (struct usb_ep *ep,
142 int (*disable) (struct usb_ep *ep);
143 void (*dispose) (struct usb_ep *ep);
145 struct usb_request *(*alloc_request) (struct usb_ep *ep,
147 void (*free_request) (struct usb_ep *ep, struct usb_request *req);
149 int (*queue) (struct usb_ep *ep, struct usb_request *req,
151 int (*dequeue) (struct usb_ep *ep, struct usb_request *req);
153 int (*set_halt) (struct usb_ep *ep, int value);
154 int (*set_wedge) (struct usb_ep *ep);
[all …]
Dhcd.h319 struct usb_host_endpoint *ep);
324 struct usb_host_endpoint *ep);
431 struct usb_host_endpoint *ep) in hcd_periodic_completion_in_progress() argument
433 return hcd->high_prio_bh.completing_ep == ep; in hcd_periodic_completion_in_progress()
455 struct usb_host_endpoint *ep);
457 struct usb_host_endpoint *ep);
459 struct usb_host_endpoint *ep);
526 #define usb_gettoggle(dev, ep, out) (((dev)->toggle[out] >> (ep)) & 1) argument
527 #define usb_dotoggle(dev, ep, out) ((dev)->toggle[out] ^= (1 << (ep))) argument
528 #define usb_settoggle(dev, ep, out, bit) \ argument
[all …]
/device/soc/st/stm32f4xx/sdk/Drivers/STM32F4xx_HAL_Driver/Src/
Dstm32f4xx_hal_pcd.c1058 USB_OTG_EPTypeDef *ep; in HAL_PCD_IRQHandler() local
1088 ep = &hpcd->OUT_ep[temp & USB_OTG_GRXSTSP_EPNUM]; in HAL_PCD_IRQHandler()
1094 (void)USB_ReadPacket(USBx, ep->xfer_buff, in HAL_PCD_IRQHandler()
1097 ep->xfer_buff += (temp & USB_OTG_GRXSTSP_BCNT) >> 4; in HAL_PCD_IRQHandler()
1098 ep->xfer_count += (temp & USB_OTG_GRXSTSP_BCNT) >> 4; in HAL_PCD_IRQHandler()
1104 ep->xfer_count += (temp & USB_OTG_GRXSTSP_BCNT) >> 4; in HAL_PCD_IRQHandler()
1728 PCD_EPTypeDef *ep; in HAL_PCD_EP_Open() local
1732 ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; in HAL_PCD_EP_Open()
1733 ep->is_in = 1U; in HAL_PCD_EP_Open()
1737 ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; in HAL_PCD_EP_Open()
[all …]
Dstm32f4xx_ll_usb.c567 HAL_StatusTypeDef USB_ActivateEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) in USB_ActivateEndpoint() argument
570 uint32_t epnum = (uint32_t)ep->num; in USB_ActivateEndpoint()
572 if (ep->is_in == 1U) in USB_ActivateEndpoint()
574 USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK)); in USB_ActivateEndpoint()
578 USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | in USB_ActivateEndpoint()
579 ((uint32_t)ep->type << 18) | (epnum << 22) | in USB_ActivateEndpoint()
586 …USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16… in USB_ActivateEndpoint()
590 USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) | in USB_ActivateEndpoint()
591 ((uint32_t)ep->type << 18) | in USB_ActivateEndpoint()
605 HAL_StatusTypeDef USB_ActivateDedicatedEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) in USB_ActivateDedicatedEndpoint() argument
[all …]
/device/soc/rockchip/common/sdk_linux/drivers/pci/controller/dwc/
Dpcie-designware.h209 void (*ep_init)(struct dw_pcie_ep *ep);
210 …int (*raise_irq)(struct dw_pcie_ep *ep, u8 func_no, enum pci_epc_irq_type type, u16 interrupt_num);
211 const struct pci_epc_features *(*get_features)(struct dw_pcie_ep *ep);
219 unsigned int (*func_conf_select)(struct dw_pcie_ep *ep, u8 func_no);
266 struct dw_pcie_ep ep; member
276 #define to_dw_pcie_from_ep(endpoint) container_of((endpoint), struct dw_pcie, ep)
402 void dw_pcie_ep_linkup(struct dw_pcie_ep *ep);
403 int dw_pcie_ep_init(struct dw_pcie_ep *ep);
404 int dw_pcie_ep_init_complete(struct dw_pcie_ep *ep);
405 void dw_pcie_ep_init_notify(struct dw_pcie_ep *ep);
[all …]
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/drivers/usb/usb_host/inc/
Dusb_hcd.h170 HCD_ENDPOINT ep[USB_HCD_MAX_ENDPOINTS]; member
214 uint8_t ep; member
220 uint8_t ep; member
228 uint8_t ep; member
240 uint8_t ep; member
256 uint8_t ep; member
292 int usb_hcd_cmd_bulk_transfer_req(USB_HCD_T * hcd, int device, int ep, uint8_t* data, int length, …
Dusb_mass_storage.h42 void usb_mass_storage_set_read_ep(uint8_t ep);
44 void usb_mass_storage_set_write_ep(uint8_t ep);
Dusb_host.h422 …int (*interrupt_transfer)(UHDevice *, int ep, uint8_t* data, int length, USBHOSTCALLBACK callback,…
423 …int (*bulk_transfer)(UHDevice *, int ep, uint8_t* data, int length, USBHOSTCALLBACK callback, void…
424 …int (*transfer)(UHDevice *, int ep, uint8_t flags, uint8_t* data, int length, USBHOSTCALLBACK call…
425 int (*transfer_abort)(UHDevice *, int ep);
549 int usbhost_interrupt_transfer(int device, int ep, uint8_t* data, int length, USBHOSTCALLBACK callb…
550 int usbhost_bulk_transfer(int device, int ep, uint8_t* data, int length, USBHOSTCALLBACK callback, …
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/usb/sunxi_usb/include/
Dsunxi_udc.h41 struct usb_ep ep; member
184 #define is_tx_ep(ep) ((ep->bEndpointAddress) & USB_DIR_IN) argument
211 struct sunxi_udc_ep *ep[6]; member
253 struct sunxi_udc_ep ep[SW_UDC_ENDPOINTS]; member
/device/soc/st/stm32f4xx/sdk/Drivers/STM32F4xx_HAL_Driver/Inc/
Dstm32f4xx_ll_usb.h451 HAL_StatusTypeDef USB_ActivateEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep);
452 HAL_StatusTypeDef USB_DeactivateEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep);
453 HAL_StatusTypeDef USB_ActivateDedicatedEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep);
454 …_StatusTypeDef USB_DeactivateDedicatedEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep);
455 HAL_StatusTypeDef USB_EPStartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma);
456 HAL_StatusTypeDef USB_EP0StartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma);
461 HAL_StatusTypeDef USB_EPSetStall(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep);
462 HAL_StatusTypeDef USB_EPClearStall(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep);
/device/soc/rockchip/common/sdk_linux/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c291 int ep[AIO_PARAMS_MAX]; in main() local
331 ep[i] = open(ep_path, O_RDWR); in main()
332 if (ep[i] < 0) { in main()
396 if (e[i].obj->aio_fildes == ep[0]) { in main()
399 } else if (e[i].obj->aio_fildes == ep[1]) { in main()
408 io_prep_pwrite(iocb_in, ep[0], buf_in, BUF_LEN, 0); in main()
423 io_prep_pread(iocb_out, ep[1], buf_out, BUF_LEN, 0); in main()
448 close(ep[i]); in main()
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/stream_input/amports/
Dstream_buffer_interface.c256 u32 ep = (stbuf->buf_start + stbuf->buf_size); in rb_push_data() local
258 len = sp > ep ? ep - wp : size; in rb_push_data()
266 stbuf->ops->set_wp(stbuf, (wp + len >= ep) ? in rb_push_data()
/device/soc/rockchip/common/sdk_linux/drivers/pci/controller/
DMakefile11 obj-$(CONFIG_PCIE_RCAR_EP) += pcie-rcar.o pcie-rcar-ep.o
26 obj-$(CONFIG_PCIE_ROCKCHIP_EP) += pcie-rockchip-ep.o pcie-rockchip.o
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Ddbus_usb_linux.c212 #define IFEPDESC(usb, idx, ep) (IFALTS((usb), (idx)).endpoint[ep]).desc argument
244 #define IFEPDESC(usb, idx, ep) (IFALTS((usb), (idx)).endpoint[ep]) argument
1289 int ep; in DBUS_USBOS_PROBE() local
1480 ep = 1; in DBUS_USBOS_PROBE()
1482 ep = 0; in DBUS_USBOS_PROBE()
1496 for (; ep <= num_of_eps; ep++) in DBUS_USBOS_PROBE()
1498 for (ep = 1; ep <= num_of_eps; ep++) in DBUS_USBOS_PROBE()
1502 endpoint = &IFEPDESC(usb, wlan_if, ep); in DBUS_USBOS_PROBE()
1504 endpoint = &IFEPDESC(usb, BULK_IF, ep); in DBUS_USBOS_PROBE()
1509 __FUNCTION__, ep)); in DBUS_USBOS_PROBE()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/
Ddbus_usb_linux.c205 #define IFEPDESC(usb, idx, ep) (IFALTS((usb), (idx)).endpoint[ep]).desc argument
237 #define IFEPDESC(usb, idx, ep) (IFALTS((usb), (idx)).endpoint[ep]) argument
1284 int ep; in DBUS_USBOS_PROBE() local
1475 ep = 1; in DBUS_USBOS_PROBE()
1477 ep = 0; in DBUS_USBOS_PROBE()
1491 for (; ep <= num_of_eps; ep++) in DBUS_USBOS_PROBE()
1493 for (ep = 1; ep <= num_of_eps; ep++) in DBUS_USBOS_PROBE()
1497 endpoint = &IFEPDESC(usb, wlan_if, ep); in DBUS_USBOS_PROBE()
1499 endpoint = &IFEPDESC(usb, BULK_IF, ep); in DBUS_USBOS_PROBE()
1504 __FUNCTION__, ep)); in DBUS_USBOS_PROBE()
[all …]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Ddbus_usb_linux.c211 #define IFEPDESC(usb, idx, ep) (IFALTS((usb), (idx)).endpoint[ep]).desc argument
243 #define IFEPDESC(usb, idx, ep) (IFALTS((usb), (idx)).endpoint[ep]) argument
1288 int ep; in DBUS_USBOS_PROBE() local
1479 ep = 1; in DBUS_USBOS_PROBE()
1481 ep = 0; in DBUS_USBOS_PROBE()
1495 for (; ep <= num_of_eps; ep++) in DBUS_USBOS_PROBE()
1497 for (ep = 1; ep <= num_of_eps; ep++) in DBUS_USBOS_PROBE()
1501 endpoint = &IFEPDESC(usb, wlan_if, ep); in DBUS_USBOS_PROBE()
1503 endpoint = &IFEPDESC(usb, BULK_IF, ep); in DBUS_USBOS_PROBE()
1508 __FUNCTION__, ep)); in DBUS_USBOS_PROBE()
[all …]
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Ddbus_usb_linux.c224 #define IFEPDESC(usb, idx, ep) (IFALTS((usb), (idx)).endpoint[ep]).desc argument
265 #define IFEPDESC(usb, idx, ep) (IFALTS((usb), (idx)).endpoint[ep]) argument
1345 int ep; in DBUS_USBOS_PROBE() local
1540 ep = 1; in DBUS_USBOS_PROBE()
1542 ep = 0; in DBUS_USBOS_PROBE()
1557 for (; ep <= num_of_eps; ep++) in DBUS_USBOS_PROBE()
1559 for (ep = 1; ep <= num_of_eps; ep++) in DBUS_USBOS_PROBE()
1563 endpoint = &IFEPDESC(usb, wlan_if, ep); in DBUS_USBOS_PROBE()
1565 endpoint = &IFEPDESC(usb, BULK_IF, ep); in DBUS_USBOS_PROBE()
1569 DBUSERR(("%s: invalid data endpoint %d\n", __FUNCTION__, ep)); in DBUS_USBOS_PROBE()
[all …]

123