Home
last modified time | relevance | path

Searched refs:tx_urb (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/u-boot/drivers/usb/gadget/
H A Dcore.c385 struct urb *tx_urb; in usbd_tx_complete() local
388 if ((tx_urb = endpoint->tx_urb)) { in usbd_tx_complete()
393 if( (endpoint->tx_urb->actual_length - endpoint->sent) <= 0 ) { in usbd_tx_complete()
394 tx_urb->actual_length = 0; in usbd_tx_complete()
399 urb_detach(tx_urb); in usbd_tx_complete()
400 urb_append(&endpoint->done, tx_urb); in usbd_tx_complete()
404 endpoint->tx_urb = first_urb_detached(&endpoint->tx); in usbd_tx_complete()
405 if( endpoint->tx_urb ) { in usbd_tx_complete()
409 if( !endpoint->tx_urb ) { in usbd_tx_complete()
411 endpoint->tx_urb = first_urb_detached(&endpoint->done); in usbd_tx_complete()
[all …]
H A Ddesignware_udc.c262 struct urb *urb = endpoint->tx_urb; in dw_write_noniso_tx_fifo()
337 endpoint->tx_urb = ep0_urb; in dw_udc_setup()
502 if (endpoint->tx_urb && in dw_udc_epn_tx()
504 (endpoint->tx_urb->actual_length - endpoint->sent - in dw_udc_epn_tx()
511 if (endpoint->tx_urb && endpoint->tx_urb->actual_length) { in dw_udc_epn_tx()
518 if (endpoint->tx_urb && endpoint->tx_urb->actual_length) { in dw_udc_epn_tx()
523 } else if (endpoint->tx_urb in dw_udc_epn_tx()
524 && (endpoint->tx_urb->actual_length == 0)) { in dw_udc_epn_tx()
H A Daspeed_usbtty.c162 struct urb *urb = endpoint->tx_urb; in udc_endpoint_write()
281 urb = endpoint->tx_urb; in aspeed_udc_ep0_tx()
438 endpoint->tx_urb = ep0_urb; in aspeed_udc_setup_handle()
647 ast_ep_write(ep_reg, endpoint->tx_urb->buffer, AST_EP_DMA_BUFF); in udc_setup_ep()
/openbmc/linux/drivers/net/usb/
H A Dipheth.c108 struct urb *tx_urb; member
125 struct urb *tx_urb = NULL; in ipheth_alloc_urbs() local
130 tx_urb = usb_alloc_urb(0, GFP_KERNEL); in ipheth_alloc_urbs()
131 if (tx_urb == NULL) in ipheth_alloc_urbs()
139 GFP_KERNEL, &tx_urb->transfer_dma); in ipheth_alloc_urbs()
149 iphone->tx_urb = tx_urb; in ipheth_alloc_urbs()
157 tx_urb->transfer_dma); in ipheth_alloc_urbs()
161 usb_free_urb(tx_urb); in ipheth_alloc_urbs()
171 iphone->tx_urb->transfer_dma); in ipheth_free_urbs()
173 usb_free_urb(iphone->tx_urb); in ipheth_free_urbs()
[all …]
H A Dcatc.c182 struct urb *tx_urb, *rx_urb, *irq_urb, *ctrl_urb; member
357 catc->tx_urb->transfer_buffer_length = catc->tx_ptr; in catc_tx_run()
358 catc->tx_urb->transfer_buffer = catc->tx_buf[catc->tx_idx]; in catc_tx_run()
359 catc->tx_urb->dev = catc->usbdev; in catc_tx_run()
361 if ((status = usb_submit_urb(catc->tx_urb, GFP_ATOMIC)) < 0) in catc_tx_run()
455 usb_unlink_urb(catc->tx_urb); in catc_tx_timeout()
744 usb_kill_urb(catc->tx_urb); in catc_stop()
806 catc->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in catc_probe()
809 if ((!catc->ctrl_urb) || (!catc->tx_urb) || in catc_probe()
831 usb_fill_bulk_urb(catc->tx_urb, usbdev, usb_sndbulkpipe(usbdev, 1), in catc_probe()
[all …]
H A Dkaweth.c216 struct urb *tx_urb; member
634 usb_kill_urb(kaweth->tx_urb); in kaweth_kill_urbs()
726 usb_fill_bulk_urb(kaweth->tx_urb, in kaweth_start_xmit()
735 if((res = usb_submit_urb(kaweth->tx_urb, GFP_ATOMIC))) in kaweth_start_xmit()
822 usb_unlink_urb(kaweth->tx_urb); in kaweth_tx_timeout()
1023 kaweth->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in kaweth_probe()
1024 if (!kaweth->tx_urb) in kaweth_probe()
1079 usb_free_urb(kaweth->tx_urb); in kaweth_probe()
1105 usb_free_urb(kaweth->tx_urb); in kaweth_disconnect()
H A Drtl8150.c137 struct urb *rx_urb, *tx_urb, *intr_urb; member
334 dev->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in alloc_all_urbs()
335 if (!dev->tx_urb) { in alloc_all_urbs()
342 usb_free_urb(dev->tx_urb); in alloc_all_urbs()
352 usb_free_urb(dev->tx_urb); in free_all_urbs()
359 usb_kill_urb(dev->tx_urb); in unlink_all_urbs()
658 usb_unlink_urb(dev->tx_urb); in rtl8150_tx_timeout()
694 usb_fill_bulk_urb(dev->tx_urb, dev->udev, usb_sndbulkpipe(dev->udev, 2), in rtl8150_start_xmit()
696 if ((res = usb_submit_urb(dev->tx_urb, GFP_ATOMIC))) { in rtl8150_start_xmit()
H A Dpegasus.c697 usb_unlink_urb(pegasus->tx_urb); in pegasus_tx_timeout()
713 usb_fill_bulk_urb(pegasus->tx_urb, pegasus->usb, in pegasus_start_xmit()
717 if ((res = usb_submit_urb(pegasus->tx_urb, GFP_ATOMIC))) { in pegasus_start_xmit()
792 usb_free_urb(pegasus->tx_urb); in free_all_urbs()
799 usb_kill_urb(pegasus->tx_urb); in unlink_all_urbs()
811 pegasus->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in alloc_urbs()
812 if (!pegasus->tx_urb) { in alloc_urbs()
818 usb_free_urb(pegasus->tx_urb); in alloc_urbs()
H A Dhso.c209 struct urb *tx_urb; member
1894 serial->tx_urb, in hso_mux_serial_write_data()
1932 usb_fill_bulk_urb(serial->tx_urb, in hso_std_serial_write_data()
1940 result = usb_submit_urb(serial->tx_urb, GFP_ATOMIC); in hso_std_serial_write_data()
2198 if (serial->tx_urb) in hso_stop_serial_device()
2199 usb_kill_urb(serial->tx_urb); in hso_stop_serial_device()
2240 usb_free_urb(serial->tx_urb); in hso_serial_common_free()
2286 serial->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in hso_serial_common_create()
2287 if (!serial->tx_urb) in hso_serial_common_create()
2289 serial->tx_urb->transfer_buffer = NULL; in hso_serial_common_create()
[all …]
/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Dif_usb.c117 usb_kill_urb(cardp->tx_urb); in if_usb_free()
120 usb_free_urb(cardp->tx_urb); in if_usb_free()
121 cardp->tx_urb = NULL; in if_usb_free()
249 if (!(cardp->tx_urb = usb_alloc_urb(0, GFP_KERNEL))) { in if_usb_probe()
429 usb_fill_bulk_urb(cardp->tx_urb, cardp->udev, in usb_tx_block()
434 cardp->tx_urb->transfer_flags |= URB_ZERO_PACKET; in usb_tx_block()
436 if ((ret = usb_submit_urb(cardp->tx_urb, GFP_ATOMIC))) { in usb_tx_block()
840 usb_kill_urb(cardp->tx_urb); in if_usb_prog_firmware()
871 usb_kill_urb(cardp->tx_urb); in if_usb_prog_firmware()
961 usb_kill_urb(cardp->tx_urb); in if_usb_suspend()
H A Dif_usb.h48 struct urb *rx_urb, *tx_urb; member
/openbmc/linux/drivers/net/ieee802154/
H A Datusb.c59 struct urb *tx_urb; member
349 usb_fill_control_urb(atusb->tx_urb, usb_dev, in atusb_xmit()
353 ret = usb_submit_urb(atusb->tx_urb, GFP_ATOMIC); in atusb_xmit()
980 atusb->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in atusb_probe()
981 if (!atusb->tx_urb) in atusb_probe()
1056 usb_kill_urb(atusb->tx_urb); in atusb_probe()
1057 usb_free_urb(atusb->tx_urb); in atusb_probe()
1074 usb_kill_urb(atusb->tx_urb); in atusb_disconnect()
1075 usb_free_urb(atusb->tx_urb); in atusb_disconnect()
/openbmc/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_core.c477 priv->tx_urb = NULL; in es58x_can_reset_echo_fifo()
497 if (priv->tx_urb) { in es58x_flush_pending_tx_msg()
511 usb_anchor_urb(priv->tx_urb, &priv->es58x_dev->tx_urbs_idle); in es58x_flush_pending_tx_msg()
513 usb_free_urb(priv->tx_urb); in es58x_flush_pending_tx_msg()
515 priv->tx_urb = NULL; in es58x_flush_pending_tx_msg()
1870 ret = es58x_submit_urb(priv->es58x_dev, priv->tx_urb, netdev); in es58x_xmit_commit()
1872 priv->tx_urb = NULL; in es58x_xmit_commit()
1918 if (priv->tx_urb) in es58x_start_xmit()
1923 if (priv->tx_urb && priv->tx_can_msg_is_fd != can_is_canfd_skb(skb)) { in es58x_start_xmit()
1930 if (!priv->tx_urb) { in es58x_start_xmit()
[all …]
/openbmc/linux/drivers/media/rc/
H A Dimon.c111 struct urb *tx_urb; member
498 usb_free_urb(ictx->tx_urb); in free_imon_context()
607 usb_fill_int_urb(ictx->tx_urb, ictx->usbdev_intf0, pipe, in send_packet()
612 ictx->tx_urb->actual_length = 0; in send_packet()
630 usb_fill_control_urb(ictx->tx_urb, ictx->usbdev_intf0, in send_packet()
635 ictx->tx_urb->actual_length = 0; in send_packet()
642 retval = usb_submit_urb(ictx->tx_urb, GFP_KERNEL); in send_packet()
652 usb_kill_urb(ictx->tx_urb); in send_packet()
2214 struct urb *tx_urb; in imon_init_intf0() local
2226 tx_urb = usb_alloc_urb(0, GFP_KERNEL); in imon_init_intf0()
[all …]
/openbmc/linux/drivers/net/wireless/marvell/libertas_tf/
H A Dif_usb.c77 usb_kill_urb(cardp->tx_urb); in if_usb_free()
81 usb_free_urb(cardp->tx_urb); in if_usb_free()
82 cardp->tx_urb = NULL; in if_usb_free()
206 cardp->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in if_usb_probe()
207 if (!cardp->tx_urb) in if_usb_probe()
386 urb = cardp->tx_urb; in usb_tx_block()
H A Dif_usb.h43 struct urb *rx_urb, *tx_urb, *cmd_urb; member
/openbmc/linux/drivers/staging/wlan-ng/
H A Dprism2usb.c181 usb_kill_urb(&hw->tx_urb); in prism2sta_disconnect_usb()
243 usb_kill_urb(&hw->tx_urb); in prism2sta_suspend()
H A Dhfa384x_usb.c143 static int submit_tx_urb(struct hfa384x *hw, struct urb *tx_urb, gfp_t flags);
365 static int submit_tx_urb(struct hfa384x *hw, struct urb *tx_urb, gfp_t memflags) in submit_tx_urb() argument
374 result = usb_submit_urb(tx_urb, memflags); in submit_tx_urb()
457 usb_kill_urb(&hw->tx_urb); in hfa384x_usb_defer()
533 usb_init_urb(&hw->tx_urb); in hfa384x_create()
2462 if (hw->tx_urb.status == -EINPROGRESS) { in hfa384x_drvr_txframe()
2527 usb_fill_bulk_urb(&hw->tx_urb, hw->usb, in hfa384x_drvr_txframe()
2531 hw->tx_urb.transfer_flags |= USB_QUEUE_BULK; in hfa384x_drvr_txframe()
2534 ret = submit_tx_urb(hw, &hw->tx_urb, GFP_ATOMIC); in hfa384x_drvr_txframe()
/openbmc/u-boot/drivers/usb/musb/
H A Dmusb_udc.c353 ep0_endpoint->tx_urb = ep0_urb; in musb_peri_ep0_tx_data_request()
810 if (endpoint->tx_urb && endpoint->state == 0) { in udc_endpoint_write()
829 struct urb *urb = endpoint->tx_urb; in udc_endpoint_write()
855 endpoint->tx_urb, endpoint->state); in udc_endpoint_write()
/openbmc/linux/drivers/net/wireless/zydas/
H A Dzd1201.h32 struct urb *tx_urb; member
H A Dzd1201.c788 struct urb *urb = zd->tx_urb; in zd1201_hard_start_xmit()
819 err = usb_submit_urb(zd->tx_urb, GFP_ATOMIC); in zd1201_hard_start_xmit()
840 usb_unlink_urb(zd->tx_urb); in zd1201_tx_timeout()
1761 zd->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in zd1201_probe()
1762 if (!zd->rx_urb || !zd->tx_urb) { in zd1201_probe()
1823 usb_free_urb(zd->tx_urb); in zd1201_probe()
1845 if (zd->tx_urb) { in zd1201_disconnect()
1846 usb_kill_urb(zd->tx_urb); in zd1201_disconnect()
1847 usb_free_urb(zd->tx_urb); in zd1201_disconnect()
/openbmc/linux/drivers/net/wireless/atmel/
H A Dat76c50x-usb.c1772 if (priv->tx_urb->status == -EINPROGRESS) { in at76_mac80211_tx()
1820 usb_fill_bulk_urb(priv->tx_urb, priv->udev, priv->tx_pipe, tx_buffer, in at76_mac80211_tx()
1822 ret = usb_submit_urb(priv->tx_urb, GFP_ATOMIC); in at76_mac80211_tx()
1828 priv->tx_urb, in at76_mac80211_tx()
1829 priv->tx_urb->hcpriv, priv->tx_urb->complete); in at76_mac80211_tx()
2267 priv->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in at76_alloc_urbs()
2268 if (!priv->rx_urb || !priv->tx_urb) { in at76_alloc_urbs()
2409 if (priv->tx_urb) { in at76_delete_device()
2410 usb_kill_urb(priv->tx_urb); in at76_delete_device()
2411 usb_free_urb(priv->tx_urb); in at76_delete_device()
/openbmc/linux/drivers/net/wireless/realtek/rtl8xxxu/
H A Drtl8xxxu_core.c5151 struct rtl8xxxu_tx_urb *tx_urb, *tmp; in rtl8xxxu_free_tx_resources() local
5155 list_for_each_entry_safe(tx_urb, tmp, &priv->tx_urb_free_list, list) { in rtl8xxxu_free_tx_resources()
5156 list_del(&tx_urb->list); in rtl8xxxu_free_tx_resources()
5158 usb_free_urb(&tx_urb->urb); in rtl8xxxu_free_tx_resources()
5166 struct rtl8xxxu_tx_urb *tx_urb; in rtl8xxxu_alloc_tx_urb() local
5170 tx_urb = list_first_entry_or_null(&priv->tx_urb_free_list, in rtl8xxxu_alloc_tx_urb()
5172 if (tx_urb) { in rtl8xxxu_alloc_tx_urb()
5173 list_del(&tx_urb->list); in rtl8xxxu_alloc_tx_urb()
5184 return tx_urb; in rtl8xxxu_alloc_tx_urb()
5188 struct rtl8xxxu_tx_urb *tx_urb) in rtl8xxxu_free_tx_urb() argument
[all …]
/openbmc/linux/drivers/staging/rtl8192u/
H A Dr8192U_core.c775 static void rtl8192_tx_isr(struct urb *tx_urb) in rtl8192_tx_isr() argument
777 struct sk_buff *skb = (struct sk_buff *)tx_urb->context; in rtl8192_tx_isr()
793 if (tx_urb->status == 0) { in rtl8192_tx_isr()
807 usb_free_urb(tx_urb); in rtl8192_tx_isr()
999 struct urb *tx_urb; in rtl819xU_tx_cmd() local
1006 tx_urb = usb_alloc_urb(0, GFP_ATOMIC); in rtl819xU_tx_cmd()
1007 if (!tx_urb) { in rtl819xU_tx_cmd()
1026 usb_fill_bulk_urb(tx_urb, priv->udev, in rtl819xU_tx_cmd()
1030 status = usb_submit_urb(tx_urb, GFP_ATOMIC); in rtl819xU_tx_cmd()
1037 usb_free_urb(tx_urb); in rtl819xU_tx_cmd()
[all …]
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/
H A Dusb.c817 struct urb *tx_urb; in mwifiex_usb_construct_send_urb() local
822 tx_urb = context->urb; in mwifiex_usb_construct_send_urb()
826 usb_fill_int_urb(tx_urb, card->udev, in mwifiex_usb_construct_send_urb()
831 usb_fill_bulk_urb(tx_urb, card->udev, in mwifiex_usb_construct_send_urb()
836 tx_urb->transfer_flags |= URB_ZERO_PACKET; in mwifiex_usb_construct_send_urb()
851 if (usb_submit_urb(tx_urb, GFP_ATOMIC)) { in mwifiex_usb_construct_send_urb()

12