Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 267) sorted by relevance

1234567891011

/bsp/stm32/libraries/HAL_Drivers/drivers/
A Ddrv_usbh.c106 if (pipe->callback != RT_NULL) in drv_pipe_xfer()
108 pipe->callback(pipe); in drv_pipe_xfer()
116 if (pipe->callback != RT_NULL) in drv_pipe_xfer()
118 pipe->callback(pipe); in drv_pipe_xfer()
125 pipe->status = UPIPE_STATUS_OK; in drv_pipe_xfer()
126 if (pipe->callback != RT_NULL) in drv_pipe_xfer()
128 pipe->callback(pipe); in drv_pipe_xfer()
170 pipe->pipe_index, in drv_open_pipe()
172 pipe->inst->address, in drv_open_pipe()
174 pipe->ep.bmAttributes, in drv_open_pipe()
[all …]
/bsp/at32/libraries/rt_drivers/
A Ddrv_usbotgh.c132 switch(pipe->ep.bmAttributes) in drv_pipe_xfer()
240 p_usbotg_instance->p_otg_core->host.hch[pipe->pipe_index].ch_num = pipe->pipe_index; in drv_pipe_xfer()
263 if (pipe->callback != RT_NULL) in drv_pipe_xfer()
265 pipe->callback(pipe); in drv_pipe_xfer()
273 if (pipe->callback != RT_NULL) in drv_pipe_xfer()
275 pipe->callback(pipe); in drv_pipe_xfer()
285 pipe->callback(pipe); in drv_pipe_xfer()
326 pipe->pipe_index, in drv_open_pipe()
328 pipe->inst->address, in drv_open_pipe()
329 pipe->ep.bmAttributes, in drv_open_pipe()
[all …]
/bsp/wch/arm/ch579m/board/
A Ddrv_usbh.c65 UINT8 *tog = (UINT8 *)pipe->user_data; in drv_pipe_xfer()
130 pipe->status = UPIPE_STATUS_OK; in drv_pipe_xfer()
131 if (pipe->callback != RT_NULL) pipe->callback(pipe); in drv_pipe_xfer()
135 pipe->status = UPIPE_STATUS_OK; in drv_pipe_xfer()
136 if (pipe->callback != RT_NULL) pipe->callback(pipe); in drv_pipe_xfer()
153 if (pipe->callback != RT_NULL) pipe->callback(pipe); in drv_pipe_xfer()
160 pipe->status = UPIPE_STATUS_ERROR; in drv_pipe_xfer()
162 if (pipe->callback != RT_NULL) pipe->callback(pipe); in drv_pipe_xfer()
166 static rt_err_t drv_open_pipe(upipe_t pipe) in drv_open_pipe() argument
168 pipe->pipe_index = pipe->inst->address & MASK_USB_ADDR; in drv_open_pipe()
[all …]
/bsp/nxp/imx/imxrt/libraries/drivers/
A Ddrv_usbh.c96 pipe->transfer_status = status; in _imxrt_usb_host_send_callback()
251 if (pipe->callback != RT_NULL) in _ehci0_pipe_xfer()
253 pipe->callback(pipe); in _ehci0_pipe_xfer()
272 if (pipe->callback != RT_NULL) in _ehci0_pipe_xfer()
274 pipe->callback(pipe); in _ehci0_pipe_xfer()
287 pipe->callback(pipe); in _ehci0_pipe_xfer()
319 if (pipe->pipe_index == 0xFF) in _ehci0_open_pipe()
531 pipe->callback(pipe); in _ehci1_pipe_xfer()
552 pipe->callback(pipe); in _ehci1_pipe_xfer()
565 pipe->callback(pipe); in _ehci1_pipe_xfer()
[all …]
/bsp/wch/risc-v/Libraries/ch32_drivers/
A Ddrv_usbh.c131 pipe->callback(pipe); in usbh_pipe_xfer()
142 pipe->callback(pipe); in usbh_pipe_xfer()
153 pipe->callback(pipe); in usbh_pipe_xfer()
161 pipe->status = UPIPE_STATUS_ERROR; in usbh_pipe_xfer()
162 if (pipe->callback != RT_NULL) in usbh_pipe_xfer()
163 pipe->callback(pipe); in usbh_pipe_xfer()
168 rt_err_t usbh_open_pipe(upipe_t pipe) in usbh_open_pipe() argument
170 pipe->pipe_index = pipe->inst->address & USBFS_USB_ADDR_MASK; in usbh_open_pipe()
172 …*(rt_uint8_t *)pipe->user_data = (pipe->ep.bEndpointAddress & USB_DIR_IN) ? USB_PID_DATA0 : USB_PI… in usbh_open_pipe()
176 rt_err_t usbh_close_pipe(upipe_t pipe) in usbh_close_pipe() argument
[all …]
/bsp/nuvoton/libraries/ma35/rtt_port/
A Ddrv_usbhost.c94 upipe_t pipe) in GetRHPortControlFromPipe() argument
99 if (!pipe || in GetRHPortControlFromPipe()
100 !pipe->inst || in GetRHPortControlFromPipe()
101 !pipe->inst->parent_hub) in GetRHPortControlFromPipe()
107 inst = pipe->inst; in GetRHPortControlFromPipe()
128 upipe_t pipe) in GetPortDevFromPipe() argument
281 if (pipe->inst->speed) in nu_open_pipe()
300 pipe->pipe_index = 0; in nu_open_pipe()
446 upipe_t pipe, in nu_int_xfer() argument
677 if (pipe->callback != RT_NULL) in nu_pipe_xfer()
[all …]
/bsp/nuvoton/libraries/n9h30/rtt_port/
A Ddrv_usbhost.c102 upipe_t pipe) in GetRHPortControlFromPipe() argument
107 if (!pipe || in GetRHPortControlFromPipe()
108 !pipe->inst || in GetRHPortControlFromPipe()
109 !pipe->inst->parent_hub) in GetRHPortControlFromPipe()
115 inst = pipe->inst; in GetRHPortControlFromPipe()
136 upipe_t pipe) in GetPortDevFromPipe() argument
297 if (pipe->inst->speed) in nu_open_pipe()
316 pipe->pipe_index = 0; in nu_open_pipe()
485 upipe_t pipe, in nu_int_xfer() argument
716 if (pipe->callback != RT_NULL) in nu_pipe_xfer()
[all …]
/bsp/nuvoton/libraries/nuc980/rtt_port/
A Ddrv_usbhost.c102 upipe_t pipe) in GetRHPortControlFromPipe() argument
107 if (!pipe || in GetRHPortControlFromPipe()
108 !pipe->inst || in GetRHPortControlFromPipe()
109 !pipe->inst->parent_hub) in GetRHPortControlFromPipe()
115 inst = pipe->inst; in GetRHPortControlFromPipe()
136 upipe_t pipe) in GetPortDevFromPipe() argument
297 if (pipe->inst->speed) in nu_open_pipe()
316 pipe->pipe_index = 0; in nu_open_pipe()
485 upipe_t pipe, in nu_int_xfer() argument
716 if (pipe->callback != RT_NULL) in nu_pipe_xfer()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/include/
A Dusb_host_common.h344 urb->pipe = pipe; in usb_fill_control_urb()
377 urb->pipe = pipe; in usb_fill_bulk_urb()
414 urb->pipe = pipe; in usb_fill_int_urb()
546 #define usb_pipein(pipe) ((pipe) & USB_DIR_IN) argument
547 #define usb_pipeout(pipe) (!usb_pipein(pipe)) argument
549 #define usb_pipedevice(pipe) (((pipe) >> 8) & 0x7f) argument
550 #define usb_pipeendpoint(pipe) (((pipe) >> 15) & 0xf) argument
552 #define usb_pipetype(pipe) (((pipe) >> 30) & 3) argument
555 #define usb_pipeint(pipe) (usb_pipetype((pipe)) == PIPE_INTERRUPT) argument
556 #define usb_pipecontrol(pipe) (usb_pipetype((pipe)) == PIPE_CONTROL) argument
[all …]
A Dusb.h1461 unsigned int pipe, in usb_fill_bulk_urb() argument
1468 urb->pipe = pipe; in usb_fill_bulk_urb()
1502 unsigned int pipe, in usb_fill_int_urb() argument
1510 urb->pipe = pipe; in usb_fill_int_urb()
1604 extern int usb_control_msg(struct usb_device *dev, unsigned int pipe,
1622 extern int usb_clear_halt(struct usb_device *dev, int pipe);
1671 int pipe; member
1683 unsigned pipe,
1714 usb_pipe_endpoint(struct usb_device *dev, unsigned int pipe) in usb_pipe_endpoint() argument
1717 eps = usb_pipein(pipe) ? dev->ep_in : dev->ep_out; in usb_pipe_endpoint()
[all …]
/bsp/nuvoton/libraries/m460/rtt_port/
A Ddrv_usbhost.c96 upipe_t pipe) in GetRHPortControlFromPipe() argument
100 if (pipe->inst->parent_hub->is_roothub) in GetRHPortControlFromPipe()
103 inst = pipe->inst; in GetRHPortControlFromPipe()
124 upipe_t pipe) in GetPortDevFromPipe() argument
264 psPortDev = GetPortDevFromPipe(pipe); in nu_open_pipe()
277 if (pipe->inst->speed) in nu_open_pipe()
296 pipe->pipe_index = 0; in nu_open_pipe()
311 pksz = pipe->ep.wMaxPacketSize; in nu_open_pipe()
447 upipe_t pipe, in nu_int_xfer() argument
663 if (pipe->callback != RT_NULL) in nu_pipe_xfer()
[all …]
/bsp/nuvoton/libraries/m480/rtt_port/
A Ddrv_usbhost.c99 upipe_t pipe) in GetRHPortControlFromPipe() argument
103 if (pipe->inst->parent_hub->is_roothub) in GetRHPortControlFromPipe()
106 inst = pipe->inst; in GetRHPortControlFromPipe()
127 upipe_t pipe) in GetPortDevFromPipe() argument
267 psPortDev = GetPortDevFromPipe(pipe); in nu_open_pipe()
280 if (pipe->inst->speed) in nu_open_pipe()
299 pipe->pipe_index = 0; in nu_open_pipe()
314 pksz = pipe->ep.wMaxPacketSize; in nu_open_pipe()
433 upipe_t pipe, in nu_int_xfer() argument
649 if (pipe->callback != RT_NULL) in nu_pipe_xfer()
[all …]
/bsp/nuvoton/libraries/m2354/rtt_port/
A Ddrv_usbhost.c97 upipe_t pipe) in GetRHPortControlFromPipe() argument
101 if (pipe->inst->parent_hub->is_roothub) in GetRHPortControlFromPipe()
104 inst = pipe->inst; in GetRHPortControlFromPipe()
125 upipe_t pipe) in GetPortDevFromPipe() argument
265 psPortDev = GetPortDevFromPipe(pipe); in nu_open_pipe()
278 if (pipe->inst->speed) in nu_open_pipe()
297 pipe->pipe_index = 0; in nu_open_pipe()
312 pksz = pipe->ep.wMaxPacketSize; in nu_open_pipe()
431 upipe_t pipe, in nu_int_xfer() argument
647 if (pipe->callback != RT_NULL) in nu_pipe_xfer()
[all …]
/bsp/hc32/libraries/hc32_drivers/
A Ddrv_usbh.c876 if (pipe->pipe_index >= USB_MAX_CH_NUM) in _usbh_pipe_xfer()
943 if (pipe->callback != RT_NULL) in _usbh_pipe_xfer()
945 pipe->callback(pipe); in _usbh_pipe_xfer()
953 if (pipe->callback != RT_NULL) in _usbh_pipe_xfer()
955 pipe->callback(pipe); in _usbh_pipe_xfer()
962 pipe->status = UPIPE_STATUS_OK; in _usbh_pipe_xfer()
963 if (pipe->callback != RT_NULL) in _usbh_pipe_xfer()
965 pipe->callback(pipe); in _usbh_pipe_xfer()
1021 pipe->pipe_index, in _usbh_open_pipe()
1023 pipe->inst->address, in _usbh_open_pipe()
[all …]
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/host/core/Source/
A Dusbh_pipe.c56 usb_pipe *pp = &pudev->host.pipe[pp_num]; in usbh_pipe_create()
85 usb_pipe *pp = &pudev->host.pipe[pp_num]; in usbh_pipe_update()
116 pudev->host.pipe[pp_num].in_used = 1U; in usbh_pipe_allocate()
117 pudev->host.pipe[pp_num].ep.dir = EP_DIR(ep_addr); in usbh_pipe_allocate()
118 pudev->host.pipe[pp_num].ep.num = EP_ID(ep_addr); in usbh_pipe_allocate()
134 pudev->host.pipe[pp_num].in_used = 0U; in usbh_pipe_free()
151 pudev->host.pipe[pp_num] = (usb_pipe) {0}; in usbh_pipe_delete()
168 if (0U == pudev->host.pipe[pp_num].in_used) { in usbh_freepipe_get()
/bsp/samd21/sam_d2x_asflib/sam0/drivers/usb/stack_interface/
A Dusb_host_uhd.c584 for (uint8_t pipe = 1; pipe < USB_PIPE_NUM; pipe++) { in _uhd_sof_interrupt() local
604 for (uint8_t pipe = 1; pipe < USB_PIPE_NUM; pipe++) { in _uhd_sof_interrupt() local
978 for (uint8_t pipe = 1; pipe < USB_PIPE_NUM; pipe++) { in uhd_suspend() local
979 uhd_pipes_unfreeze |= (!usb_host_pipe_is_frozen(&dev, pipe)) << pipe; in uhd_suspend()
1403 usb_host_pipe_freeze(&dev, pipe); in _uhd_ep_abort_pipe()
1525 uint8_t pipe = 1; in uhd_ep_alloc() local
1530 for (pipe = 1; pipe < USB_PIPE_NUM; pipe++) { in uhd_ep_alloc()
1623 uint8_t pipe = 0; in uhd_ep_run() local
1627 pipe = _uhd_get_pipe(add,endp); in uhd_ep_run()
1628 if (!pipe) { in uhd_ep_run()
[all …]
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/host/core/Include/
A Dusbh_pipe.h57 if (pudev->host.pipe[pp_num].ep.dir) { in usbh_pipe_toggle_set()
58 pudev->host.pipe[pp_num].data_toggle_in = toggle; in usbh_pipe_toggle_set()
60 pudev->host.pipe[pp_num].data_toggle_out = toggle; in usbh_pipe_toggle_set()
73 if (pudev->host.pipe[pp_num].ep.dir) { in usbh_pipe_toggle_get()
74 return pudev->host.pipe[pp_num].data_toggle_in; in usbh_pipe_toggle_get()
76 return pudev->host.pipe[pp_num].data_toggle_out; in usbh_pipe_toggle_get()
/bsp/microchip/samd51-seeed-wio-terminal/bsp/hal/include/
A Dhpl_usb_host.h154 typedef void (*usb_h_pipe_cb_xfer_t)(struct usb_h_pipe *pipe);
506 int32_t _usb_h_pipe_free(struct usb_h_pipe *pipe);
525 int32_t _usb_h_pipe_set_control_param(struct usb_h_pipe *pipe, uint8_t dev, uint8_t ep, uint16_t ma…
538 int32_t _usb_h_pipe_register_callback(struct usb_h_pipe *pipe, usb_h_pipe_cb_xfer_t cb);
559 int32_t _usb_h_control_xfer(struct usb_h_pipe *pipe, uint8_t *setup, uint8_t *data, uint16_t length…
576 int32_t _usb_h_bulk_int_iso_xfer(struct usb_h_pipe *pipe, uint8_t *data, uint32_t length, bool auto…
596 int32_t _usb_h_high_bw_out(struct usb_h_pipe *pipe, uint8_t *data, uint32_t length, uint16_t trans_…
605 bool _usb_h_pipe_is_busy(struct usb_h_pipe *pipe);
612 void _usb_h_pipe_abort(struct usb_h_pipe *pipe);
/bsp/microchip/samd51-adafruit-metro-m4/bsp/hal/include/
A Dhpl_usb_host.h154 typedef void (*usb_h_pipe_cb_xfer_t)(struct usb_h_pipe *pipe);
506 int32_t _usb_h_pipe_free(struct usb_h_pipe *pipe);
525 int32_t _usb_h_pipe_set_control_param(struct usb_h_pipe *pipe, uint8_t dev, uint8_t ep, uint16_t ma…
538 int32_t _usb_h_pipe_register_callback(struct usb_h_pipe *pipe, usb_h_pipe_cb_xfer_t cb);
559 int32_t _usb_h_control_xfer(struct usb_h_pipe *pipe, uint8_t *setup, uint8_t *data, uint16_t length…
576 int32_t _usb_h_bulk_int_iso_xfer(struct usb_h_pipe *pipe, uint8_t *data, uint32_t length, bool auto…
596 int32_t _usb_h_high_bw_out(struct usb_h_pipe *pipe, uint8_t *data, uint32_t length, uint16_t trans_…
605 bool _usb_h_pipe_is_busy(struct usb_h_pipe *pipe);
612 void _usb_h_pipe_abort(struct usb_h_pipe *pipe);
/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/core/
A Durb.c54 __inf("pipe = %x", urb_input->pipe); in _debug_print_urb()
170 int pipe, temp, max; in usb_submit_urb() local
213 pipe = urb->pipe; in usb_submit_urb()
214 temp = usb_pipetype(pipe); in usb_submit_urb()
215 is_out = usb_pipeout(pipe); in usb_submit_urb()
217 if (!usb_pipecontrol(pipe) && dev->state < USB_STATE_CONFIGURED) in usb_submit_urb()
228 max = usb_maxpacket(dev, pipe, is_out); in usb_submit_urb()
233 usb_pipeendpoint(pipe), is_out ? "out" : "in", in usb_submit_urb()
A Dusb_msg_base.c152 usb_pipeendpoint(urb->pipe), in usb_start_wait_urb()
153 usb_pipein(urb->pipe) ? "in" : "out", in usb_start_wait_urb()
213 uint32_t pipe, in _usb_internal_ctrll_msg() argument
234 pipe, in _usb_internal_ctrll_msg()
256 unsigned int pipe, in _usb_internal_bulk_msg() argument
274 pipe, in _usb_internal_bulk_msg()
A Dusb_msg.c68 int usb_control_msg(struct usb_host_virt_dev *dev, u32 pipe, u8 request, u8 requesttype, in usb_control_msg() argument
90 ret = _usb_internal_ctrll_msg(dev, pipe, dr, data, size, timeout); in usb_control_msg()
130 int usb_bulk_msg(struct usb_host_virt_dev *usb_dev, unsigned int pipe, in usb_bulk_msg() argument
139 pipe, in usb_bulk_msg()
898 int usb_clear_halt(struct usb_host_virt_dev *dev, int pipe) in usb_clear_halt() argument
901 int endp = usb_pipeendpoint(pipe); in usb_clear_halt()
903 if (usb_pipein(pipe)) in usb_clear_halt()
936 usb_settoggle(dev, usb_pipeendpoint(pipe), usb_pipeout(pipe), 0); in usb_clear_halt()
1053 …u32 pipe = __create_pipe(dev, USB_ENDPOINT_NUMBER_MASK & epaddr) | (usb_endpoint_out(epaddr) ? USB… in usb_set_interface() local
1054 usb_clear_halt(dev, pipe); in usb_set_interface()
A Dusb_msg.h5 int usb_control_msg(struct usb_host_virt_dev *dev, u32 pipe, u8 request, u8 requesttype,
20 int usb_clear_halt(struct usb_host_virt_dev *dev, int pipe);
25 int usb_bulk_msg(struct usb_host_virt_dev *usb_dev, unsigned int pipe, void *data, int len, int *ac…
A Dusb_msg_base.h5 u32 pipe, struct usb_ctrlrequest *cmd,
8 int _usb_internal_bulk_msg(struct usb_host_virt_dev *usb_dev, unsigned int pipe,
/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_usbfs_library/driver/Source/
A Ddrv_usbh_int.c152 pudev->host.pipe[pp_num].pp_status = pp_status; in usb_pp_halt()
274 usb_pipe *pp = &pudev->host.pipe[pp_num]; in usbh_int_pipe_in()
405 usb_pipe *pp = &pudev->host.pipe[pp_num]; in usbh_int_pipe_out()
457 if (1U == pudev->host.pipe[pp_num].ping) { in usbh_int_pipe_out()
525 pudev->host.pipe[pp_num].xfer_buf += count; in usbh_int_rxfifonoempty()
526 pudev->host.pipe[pp_num].xfer_count += count; in usbh_int_rxfifonoempty()
600 if (len > pudev->host.pipe[pp_num].xfer_len) { in usbh_int_txfifoempty()
602 len = (uint16_t)pudev->host.pipe[pp_num].xfer_len; in usbh_int_txfifoempty()
614 pudev->host.pipe[pp_num].xfer_buf += len; in usbh_int_txfifoempty()
615 pudev->host.pipe[pp_num].xfer_len -= len; in usbh_int_txfifoempty()
[all …]

Completed in 71 milliseconds

1234567891011