urb 46 arch/sh/mm/tlb-debugfs.c unsigned int urb; urb 71 arch/sh/mm/tlb-debugfs.c urb = (mmucr & MMUCR_URB) >> MMUCR_URB_SHIFT; urb 74 arch/sh/mm/tlb-debugfs.c if (urb == 0) urb 75 arch/sh/mm/tlb-debugfs.c urb = MMUCR_URB_NENTRIES + 1; urb 128 arch/sh/mm/tlb-debugfs.c (urb <= entry) ? "W" : "-"); urb 23 arch/sh/mm/tlb-urb.c int urb; urb 28 arch/sh/mm/tlb-urb.c urb = (status & MMUCR_URB) >> MMUCR_URB_SHIFT; urb 34 arch/sh/mm/tlb-urb.c BUG_ON(!--urb); urb 36 arch/sh/mm/tlb-urb.c urb = urb % MMUCR_URB_NENTRIES; urb 42 arch/sh/mm/tlb-urb.c status |= (urb << MMUCR_URC_SHIFT); urb 53 arch/sh/mm/tlb-urb.c status |= (urb << MMUCR_URB_SHIFT); urb 72 arch/sh/mm/tlb-urb.c int urb; urb 77 arch/sh/mm/tlb-urb.c urb = (status & MMUCR_URB) >> MMUCR_URB_SHIFT; urb 84 arch/sh/mm/tlb-urb.c BUG_ON(urb++ == MMUCR_URB_NENTRIES); urb 86 arch/sh/mm/tlb-urb.c urb = urb % MMUCR_URB_NENTRIES; urb 88 arch/sh/mm/tlb-urb.c status |= (urb << MMUCR_URB_SHIFT); urb 56 drivers/bluetooth/bcm203x.c struct urb *urb; urb 64 drivers/bluetooth/bcm203x.c static void bcm203x_complete(struct urb *urb) urb 66 drivers/bluetooth/bcm203x.c struct bcm203x_data *data = urb->context; urb 67 drivers/bluetooth/bcm203x.c struct usb_device *udev = urb->dev; urb 70 drivers/bluetooth/bcm203x.c BT_DBG("udev %p urb %p", udev, urb); urb 72 drivers/bluetooth/bcm203x.c if (urb->status) { urb 73 drivers/bluetooth/bcm203x.c BT_ERR("URB failed with status %d", urb->status); urb 82 drivers/bluetooth/bcm203x.c usb_fill_bulk_urb(urb, udev, usb_sndbulkpipe(udev, BCM203X_OUT_EP), urb 92 drivers/bluetooth/bcm203x.c usb_fill_int_urb(urb, udev, usb_rcvintpipe(udev, BCM203X_IN_EP), urb 97 drivers/bluetooth/bcm203x.c if (usb_submit_urb(data->urb, GFP_ATOMIC) < 0) urb 112 drivers/bluetooth/bcm203x.c usb_fill_int_urb(urb, udev, usb_rcvintpipe(udev, BCM203X_IN_EP), urb 119 drivers/bluetooth/bcm203x.c usb_fill_bulk_urb(urb, udev, usb_sndbulkpipe(udev, BCM203X_OUT_EP), urb 125 drivers/bluetooth/bcm203x.c if (usb_submit_urb(data->urb, GFP_ATOMIC) < 0) urb 149 drivers/bluetooth/bcm203x.c if (usb_submit_urb(data->urb, GFP_KERNEL) < 0) urb 172 drivers/bluetooth/bcm203x.c data->urb = usb_alloc_urb(0, GFP_KERNEL); urb 173 drivers/bluetooth/bcm203x.c if (!data->urb) urb 178 drivers/bluetooth/bcm203x.c usb_free_urb(data->urb); urb 190 drivers/bluetooth/bcm203x.c usb_free_urb(data->urb); urb 196 drivers/bluetooth/bcm203x.c usb_fill_bulk_urb(data->urb, udev, usb_sndbulkpipe(udev, BCM203X_OUT_EP), urb 203 drivers/bluetooth/bcm203x.c usb_free_urb(data->urb); urb 214 drivers/bluetooth/bcm203x.c usb_free_urb(data->urb); urb 243 drivers/bluetooth/bcm203x.c usb_kill_urb(data->urb); urb 247 drivers/bluetooth/bcm203x.c usb_free_urb(data->urb); urb 72 drivers/bluetooth/bfusb.c struct urb *urb; urb 75 drivers/bluetooth/bfusb.c static void bfusb_tx_complete(struct urb *urb); urb 76 drivers/bluetooth/bfusb.c static void bfusb_rx_complete(struct urb *urb); urb 78 drivers/bluetooth/bfusb.c static struct urb *bfusb_get_completed(struct bfusb_data *data) urb 81 drivers/bluetooth/bfusb.c struct urb *urb = NULL; urb 87 drivers/bluetooth/bfusb.c urb = ((struct bfusb_data_scb *) skb->cb)->urb; urb 91 drivers/bluetooth/bfusb.c return urb; urb 97 drivers/bluetooth/bfusb.c struct urb *urb; urb 102 drivers/bluetooth/bfusb.c urb = ((struct bfusb_data_scb *) skb->cb)->urb; urb 103 drivers/bluetooth/bfusb.c usb_kill_urb(urb); urb 107 drivers/bluetooth/bfusb.c while ((urb = bfusb_get_completed(data))) urb 108 drivers/bluetooth/bfusb.c usb_free_urb(urb); urb 114 drivers/bluetooth/bfusb.c struct urb *urb = bfusb_get_completed(data); urb 119 drivers/bluetooth/bfusb.c if (!urb) { urb 120 drivers/bluetooth/bfusb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 121 drivers/bluetooth/bfusb.c if (!urb) urb 127 drivers/bluetooth/bfusb.c usb_fill_bulk_urb(urb, data->udev, pipe, skb->data, skb->len, urb 130 drivers/bluetooth/bfusb.c scb->urb = urb; urb 134 drivers/bluetooth/bfusb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 137 drivers/bluetooth/bfusb.c data->hdev->name, urb, err); urb 139 drivers/bluetooth/bfusb.c usb_free_urb(urb); urb 173 drivers/bluetooth/bfusb.c static void bfusb_tx_complete(struct urb *urb) urb 175 drivers/bluetooth/bfusb.c struct sk_buff *skb = (struct sk_buff *) urb->context; urb 178 drivers/bluetooth/bfusb.c BT_DBG("bfusb %p urb %p skb %p len %d", data, urb, skb, skb->len); urb 185 drivers/bluetooth/bfusb.c if (!urb->status) urb 201 drivers/bluetooth/bfusb.c static int bfusb_rx_submit(struct bfusb_data *data, struct urb *urb) urb 207 drivers/bluetooth/bfusb.c BT_DBG("bfusb %p urb %p", data, urb); urb 209 drivers/bluetooth/bfusb.c if (!urb) { urb 210 drivers/bluetooth/bfusb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 211 drivers/bluetooth/bfusb.c if (!urb) urb 217 drivers/bluetooth/bfusb.c usb_free_urb(urb); urb 224 drivers/bluetooth/bfusb.c scb->urb = urb; urb 228 drivers/bluetooth/bfusb.c usb_fill_bulk_urb(urb, data->udev, pipe, skb->data, size, urb 233 drivers/bluetooth/bfusb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 236 drivers/bluetooth/bfusb.c data->hdev->name, urb, err); urb 239 drivers/bluetooth/bfusb.c usb_free_urb(urb); urb 333 drivers/bluetooth/bfusb.c static void bfusb_rx_complete(struct urb *urb) urb 335 drivers/bluetooth/bfusb.c struct sk_buff *skb = (struct sk_buff *) urb->context; urb 337 drivers/bluetooth/bfusb.c unsigned char *buf = urb->transfer_buffer; urb 338 drivers/bluetooth/bfusb.c int count = urb->actual_length; urb 341 drivers/bluetooth/bfusb.c BT_DBG("bfusb %p urb %p skb %p len %d", data, urb, skb, skb->len); urb 348 drivers/bluetooth/bfusb.c if (urb->status || !count) urb 383 drivers/bluetooth/bfusb.c bfusb_rx_submit(data, urb); urb 390 drivers/bluetooth/bfusb.c urb->dev = data->udev; urb 392 drivers/bluetooth/bfusb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 395 drivers/bluetooth/bfusb.c data->hdev->name, urb, err); urb 46 drivers/bluetooth/bpa10x.c static void bpa10x_tx_complete(struct urb *urb) urb 48 drivers/bluetooth/bpa10x.c struct sk_buff *skb = urb->context; urb 52 drivers/bluetooth/bpa10x.c urb, urb->status, urb->actual_length); urb 57 drivers/bluetooth/bpa10x.c if (!urb->status) urb 58 drivers/bluetooth/bpa10x.c hdev->stat.byte_tx += urb->transfer_buffer_length; urb 63 drivers/bluetooth/bpa10x.c kfree(urb->setup_packet); urb 84 drivers/bluetooth/bpa10x.c static void bpa10x_rx_complete(struct urb *urb) urb 86 drivers/bluetooth/bpa10x.c struct hci_dev *hdev = urb->context; urb 91 drivers/bluetooth/bpa10x.c urb, urb->status, urb->actual_length); urb 96 drivers/bluetooth/bpa10x.c if (urb->status == 0) { urb 97 drivers/bluetooth/bpa10x.c bool idx = usb_pipebulk(urb->pipe); urb 100 drivers/bluetooth/bpa10x.c urb->transfer_buffer, urb 101 drivers/bluetooth/bpa10x.c urb->actual_length, urb 111 drivers/bluetooth/bpa10x.c usb_anchor_urb(urb, &data->rx_anchor); urb 113 drivers/bluetooth/bpa10x.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 115 drivers/bluetooth/bpa10x.c bt_dev_err(hdev, "urb %p failed to resubmit (%d)", urb, -err); urb 116 drivers/bluetooth/bpa10x.c usb_unanchor_urb(urb); urb 123 drivers/bluetooth/bpa10x.c struct urb *urb; urb 130 drivers/bluetooth/bpa10x.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 131 drivers/bluetooth/bpa10x.c if (!urb) urb 136 drivers/bluetooth/bpa10x.c usb_free_urb(urb); urb 142 drivers/bluetooth/bpa10x.c usb_fill_int_urb(urb, data->udev, pipe, buf, size, urb 145 drivers/bluetooth/bpa10x.c urb->transfer_flags |= URB_FREE_BUFFER; urb 147 drivers/bluetooth/bpa10x.c usb_anchor_urb(urb, &data->rx_anchor); urb 149 drivers/bluetooth/bpa10x.c err = usb_submit_urb(urb, GFP_KERNEL); urb 151 drivers/bluetooth/bpa10x.c bt_dev_err(hdev, "urb %p submission failed (%d)", urb, -err); urb 152 drivers/bluetooth/bpa10x.c usb_unanchor_urb(urb); urb 155 drivers/bluetooth/bpa10x.c usb_free_urb(urb); urb 163 drivers/bluetooth/bpa10x.c struct urb *urb; urb 170 drivers/bluetooth/bpa10x.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 171 drivers/bluetooth/bpa10x.c if (!urb) urb 176 drivers/bluetooth/bpa10x.c usb_free_urb(urb); urb 182 drivers/bluetooth/bpa10x.c usb_fill_bulk_urb(urb, data->udev, pipe, urb 185 drivers/bluetooth/bpa10x.c urb->transfer_flags |= URB_FREE_BUFFER; urb 187 drivers/bluetooth/bpa10x.c usb_anchor_urb(urb, &data->rx_anchor); urb 189 drivers/bluetooth/bpa10x.c err = usb_submit_urb(urb, GFP_KERNEL); urb 191 drivers/bluetooth/bpa10x.c bt_dev_err(hdev, "urb %p submission failed (%d)", urb, -err); urb 192 drivers/bluetooth/bpa10x.c usb_unanchor_urb(urb); urb 195 drivers/bluetooth/bpa10x.c usb_free_urb(urb); urb 269 drivers/bluetooth/bpa10x.c struct urb *urb; urb 277 drivers/bluetooth/bpa10x.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 278 drivers/bluetooth/bpa10x.c if (!urb) urb 288 drivers/bluetooth/bpa10x.c usb_free_urb(urb); urb 300 drivers/bluetooth/bpa10x.c usb_fill_control_urb(urb, data->udev, pipe, (void *) dr, urb 309 drivers/bluetooth/bpa10x.c usb_fill_bulk_urb(urb, data->udev, pipe, urb 318 drivers/bluetooth/bpa10x.c usb_fill_bulk_urb(urb, data->udev, pipe, urb 325 drivers/bluetooth/bpa10x.c usb_free_urb(urb); urb 329 drivers/bluetooth/bpa10x.c usb_anchor_urb(urb, &data->tx_anchor); urb 331 drivers/bluetooth/bpa10x.c err = usb_submit_urb(urb, GFP_KERNEL); urb 333 drivers/bluetooth/bpa10x.c bt_dev_err(hdev, "urb %p submission failed", urb); urb 334 drivers/bluetooth/bpa10x.c kfree(urb->setup_packet); urb 335 drivers/bluetooth/bpa10x.c usb_unanchor_urb(urb); urb 338 drivers/bluetooth/bpa10x.c usb_free_urb(urb); urb 748 drivers/bluetooth/btusb.c static void btusb_intr_complete(struct urb *urb) urb 750 drivers/bluetooth/btusb.c struct hci_dev *hdev = urb->context; urb 754 drivers/bluetooth/btusb.c BT_DBG("%s urb %p status %d count %d", hdev->name, urb, urb->status, urb 755 drivers/bluetooth/btusb.c urb->actual_length); urb 760 drivers/bluetooth/btusb.c if (urb->status == 0) { urb 761 drivers/bluetooth/btusb.c hdev->stat.byte_rx += urb->actual_length; urb 763 drivers/bluetooth/btusb.c if (btusb_recv_intr(data, urb->transfer_buffer, urb 764 drivers/bluetooth/btusb.c urb->actual_length) < 0) { urb 768 drivers/bluetooth/btusb.c } else if (urb->status == -ENOENT) { urb 777 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->intr_anchor); urb 779 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 786 drivers/bluetooth/btusb.c urb, -err); urb 787 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 794 drivers/bluetooth/btusb.c struct urb *urb; urb 804 drivers/bluetooth/btusb.c urb = usb_alloc_urb(0, mem_flags); urb 805 drivers/bluetooth/btusb.c if (!urb) urb 812 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 818 drivers/bluetooth/btusb.c usb_fill_int_urb(urb, data->udev, pipe, buf, size, urb 821 drivers/bluetooth/btusb.c urb->transfer_flags |= URB_FREE_BUFFER; urb 823 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->intr_anchor); urb 825 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, mem_flags); urb 829 drivers/bluetooth/btusb.c urb, -err); urb 830 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 833 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 838 drivers/bluetooth/btusb.c static void btusb_bulk_complete(struct urb *urb) urb 840 drivers/bluetooth/btusb.c struct hci_dev *hdev = urb->context; urb 844 drivers/bluetooth/btusb.c BT_DBG("%s urb %p status %d count %d", hdev->name, urb, urb->status, urb 845 drivers/bluetooth/btusb.c urb->actual_length); urb 850 drivers/bluetooth/btusb.c if (urb->status == 0) { urb 851 drivers/bluetooth/btusb.c hdev->stat.byte_rx += urb->actual_length; urb 853 drivers/bluetooth/btusb.c if (data->recv_bulk(data, urb->transfer_buffer, urb 854 drivers/bluetooth/btusb.c urb->actual_length) < 0) { urb 858 drivers/bluetooth/btusb.c } else if (urb->status == -ENOENT) { urb 866 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->bulk_anchor); urb 869 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 876 drivers/bluetooth/btusb.c urb, -err); urb 877 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 884 drivers/bluetooth/btusb.c struct urb *urb; urb 894 drivers/bluetooth/btusb.c urb = usb_alloc_urb(0, mem_flags); urb 895 drivers/bluetooth/btusb.c if (!urb) urb 900 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 906 drivers/bluetooth/btusb.c usb_fill_bulk_urb(urb, data->udev, pipe, buf, size, urb 909 drivers/bluetooth/btusb.c urb->transfer_flags |= URB_FREE_BUFFER; urb 912 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->bulk_anchor); urb 914 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, mem_flags); urb 918 drivers/bluetooth/btusb.c urb, -err); urb 919 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 922 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 927 drivers/bluetooth/btusb.c static void btusb_isoc_complete(struct urb *urb) urb 929 drivers/bluetooth/btusb.c struct hci_dev *hdev = urb->context; urb 933 drivers/bluetooth/btusb.c BT_DBG("%s urb %p status %d count %d", hdev->name, urb, urb->status, urb 934 drivers/bluetooth/btusb.c urb->actual_length); urb 939 drivers/bluetooth/btusb.c if (urb->status == 0) { urb 940 drivers/bluetooth/btusb.c for (i = 0; i < urb->number_of_packets; i++) { urb 941 drivers/bluetooth/btusb.c unsigned int offset = urb->iso_frame_desc[i].offset; urb 942 drivers/bluetooth/btusb.c unsigned int length = urb->iso_frame_desc[i].actual_length; urb 944 drivers/bluetooth/btusb.c if (urb->iso_frame_desc[i].status) urb 949 drivers/bluetooth/btusb.c if (btusb_recv_isoc(data, urb->transfer_buffer + offset, urb 955 drivers/bluetooth/btusb.c } else if (urb->status == -ENOENT) { urb 963 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->isoc_anchor); urb 965 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 972 drivers/bluetooth/btusb.c urb, -err); urb 973 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 977 drivers/bluetooth/btusb.c static inline void __fill_isoc_descriptor(struct urb *urb, int len, int mtu) urb 985 drivers/bluetooth/btusb.c urb->iso_frame_desc[i].offset = offset; urb 986 drivers/bluetooth/btusb.c urb->iso_frame_desc[i].length = mtu; urb 990 drivers/bluetooth/btusb.c urb->iso_frame_desc[i].offset = offset; urb 991 drivers/bluetooth/btusb.c urb->iso_frame_desc[i].length = len; urb 995 drivers/bluetooth/btusb.c urb->number_of_packets = i; urb 1001 drivers/bluetooth/btusb.c struct urb *urb; urb 1011 drivers/bluetooth/btusb.c urb = usb_alloc_urb(BTUSB_MAX_ISOC_FRAMES, mem_flags); urb 1012 drivers/bluetooth/btusb.c if (!urb) urb 1020 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 1026 drivers/bluetooth/btusb.c usb_fill_int_urb(urb, data->udev, pipe, buf, size, btusb_isoc_complete, urb 1029 drivers/bluetooth/btusb.c urb->transfer_flags = URB_FREE_BUFFER | URB_ISO_ASAP; urb 1031 drivers/bluetooth/btusb.c __fill_isoc_descriptor(urb, size, urb 1034 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->isoc_anchor); urb 1036 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, mem_flags); urb 1040 drivers/bluetooth/btusb.c urb, -err); urb 1041 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 1044 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 1049 drivers/bluetooth/btusb.c static void btusb_diag_complete(struct urb *urb) urb 1051 drivers/bluetooth/btusb.c struct hci_dev *hdev = urb->context; urb 1055 drivers/bluetooth/btusb.c BT_DBG("%s urb %p status %d count %d", hdev->name, urb, urb->status, urb 1056 drivers/bluetooth/btusb.c urb->actual_length); urb 1058 drivers/bluetooth/btusb.c if (urb->status == 0) { urb 1061 drivers/bluetooth/btusb.c skb = bt_skb_alloc(urb->actual_length, GFP_ATOMIC); urb 1063 drivers/bluetooth/btusb.c skb_put_data(skb, urb->transfer_buffer, urb 1064 drivers/bluetooth/btusb.c urb->actual_length); urb 1067 drivers/bluetooth/btusb.c } else if (urb->status == -ENOENT) { urb 1075 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->diag_anchor); urb 1078 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 1085 drivers/bluetooth/btusb.c urb, -err); urb 1086 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 1093 drivers/bluetooth/btusb.c struct urb *urb; urb 1103 drivers/bluetooth/btusb.c urb = usb_alloc_urb(0, mem_flags); urb 1104 drivers/bluetooth/btusb.c if (!urb) urb 1109 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 1115 drivers/bluetooth/btusb.c usb_fill_bulk_urb(urb, data->udev, pipe, buf, size, urb 1118 drivers/bluetooth/btusb.c urb->transfer_flags |= URB_FREE_BUFFER; urb 1121 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->diag_anchor); urb 1123 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, mem_flags); urb 1127 drivers/bluetooth/btusb.c urb, -err); urb 1128 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 1131 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 1136 drivers/bluetooth/btusb.c static void btusb_tx_complete(struct urb *urb) urb 1138 drivers/bluetooth/btusb.c struct sk_buff *skb = urb->context; urb 1143 drivers/bluetooth/btusb.c BT_DBG("%s urb %p status %d count %d", hdev->name, urb, urb->status, urb 1144 drivers/bluetooth/btusb.c urb->actual_length); urb 1149 drivers/bluetooth/btusb.c if (!urb->status) urb 1150 drivers/bluetooth/btusb.c hdev->stat.byte_tx += urb->transfer_buffer_length; urb 1159 drivers/bluetooth/btusb.c kfree(urb->setup_packet); urb 1164 drivers/bluetooth/btusb.c static void btusb_isoc_tx_complete(struct urb *urb) urb 1166 drivers/bluetooth/btusb.c struct sk_buff *skb = urb->context; urb 1169 drivers/bluetooth/btusb.c BT_DBG("%s urb %p status %d count %d", hdev->name, urb, urb->status, urb 1170 drivers/bluetooth/btusb.c urb->actual_length); urb 1175 drivers/bluetooth/btusb.c if (!urb->status) urb 1176 drivers/bluetooth/btusb.c hdev->stat.byte_tx += urb->transfer_buffer_length; urb 1181 drivers/bluetooth/btusb.c kfree(urb->setup_packet); urb 1303 drivers/bluetooth/btusb.c static struct urb *alloc_ctrl_urb(struct hci_dev *hdev, struct sk_buff *skb) urb 1307 drivers/bluetooth/btusb.c struct urb *urb; urb 1310 drivers/bluetooth/btusb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1311 drivers/bluetooth/btusb.c if (!urb) urb 1316 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 1328 drivers/bluetooth/btusb.c usb_fill_control_urb(urb, data->udev, pipe, (void *)dr, urb 1333 drivers/bluetooth/btusb.c return urb; urb 1336 drivers/bluetooth/btusb.c static struct urb *alloc_bulk_urb(struct hci_dev *hdev, struct sk_buff *skb) urb 1339 drivers/bluetooth/btusb.c struct urb *urb; urb 1345 drivers/bluetooth/btusb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1346 drivers/bluetooth/btusb.c if (!urb) urb 1351 drivers/bluetooth/btusb.c usb_fill_bulk_urb(urb, data->udev, pipe, urb 1356 drivers/bluetooth/btusb.c return urb; urb 1359 drivers/bluetooth/btusb.c static struct urb *alloc_isoc_urb(struct hci_dev *hdev, struct sk_buff *skb) urb 1362 drivers/bluetooth/btusb.c struct urb *urb; urb 1368 drivers/bluetooth/btusb.c urb = usb_alloc_urb(BTUSB_MAX_ISOC_FRAMES, GFP_KERNEL); urb 1369 drivers/bluetooth/btusb.c if (!urb) urb 1374 drivers/bluetooth/btusb.c usb_fill_int_urb(urb, data->udev, pipe, urb 1378 drivers/bluetooth/btusb.c urb->transfer_flags = URB_ISO_ASAP; urb 1380 drivers/bluetooth/btusb.c __fill_isoc_descriptor(urb, skb->len, urb 1385 drivers/bluetooth/btusb.c return urb; urb 1388 drivers/bluetooth/btusb.c static int submit_tx_urb(struct hci_dev *hdev, struct urb *urb) urb 1393 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->tx_anchor); urb 1395 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, GFP_KERNEL); urb 1399 drivers/bluetooth/btusb.c urb, -err); urb 1400 drivers/bluetooth/btusb.c kfree(urb->setup_packet); urb 1401 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 1406 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 1410 drivers/bluetooth/btusb.c static int submit_or_queue_tx_urb(struct hci_dev *hdev, struct urb *urb) urb 1423 drivers/bluetooth/btusb.c return submit_tx_urb(hdev, urb); urb 1425 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->deferred); urb 1428 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 1434 drivers/bluetooth/btusb.c struct urb *urb; urb 1440 drivers/bluetooth/btusb.c urb = alloc_ctrl_urb(hdev, skb); urb 1441 drivers/bluetooth/btusb.c if (IS_ERR(urb)) urb 1442 drivers/bluetooth/btusb.c return PTR_ERR(urb); urb 1445 drivers/bluetooth/btusb.c return submit_or_queue_tx_urb(hdev, urb); urb 1448 drivers/bluetooth/btusb.c urb = alloc_bulk_urb(hdev, skb); urb 1449 drivers/bluetooth/btusb.c if (IS_ERR(urb)) urb 1450 drivers/bluetooth/btusb.c return PTR_ERR(urb); urb 1453 drivers/bluetooth/btusb.c return submit_or_queue_tx_urb(hdev, urb); urb 1459 drivers/bluetooth/btusb.c urb = alloc_isoc_urb(hdev, skb); urb 1460 drivers/bluetooth/btusb.c if (IS_ERR(urb)) urb 1461 drivers/bluetooth/btusb.c return PTR_ERR(urb); urb 1464 drivers/bluetooth/btusb.c return submit_tx_urb(hdev, urb); urb 2072 drivers/bluetooth/btusb.c struct urb *urb; urb 2087 drivers/bluetooth/btusb.c urb = alloc_bulk_urb(hdev, skb); urb 2089 drivers/bluetooth/btusb.c urb = alloc_ctrl_urb(hdev, skb); urb 2099 drivers/bluetooth/btusb.c urb = alloc_ctrl_urb(hdev, skb); urb 2101 drivers/bluetooth/btusb.c if (IS_ERR(urb)) urb 2102 drivers/bluetooth/btusb.c return PTR_ERR(urb); urb 2105 drivers/bluetooth/btusb.c return submit_or_queue_tx_urb(hdev, urb); urb 2108 drivers/bluetooth/btusb.c urb = alloc_bulk_urb(hdev, skb); urb 2109 drivers/bluetooth/btusb.c if (IS_ERR(urb)) urb 2110 drivers/bluetooth/btusb.c return PTR_ERR(urb); urb 2113 drivers/bluetooth/btusb.c return submit_or_queue_tx_urb(hdev, urb); urb 2119 drivers/bluetooth/btusb.c urb = alloc_isoc_urb(hdev, skb); urb 2120 drivers/bluetooth/btusb.c if (IS_ERR(urb)) urb 2121 drivers/bluetooth/btusb.c return PTR_ERR(urb); urb 2124 drivers/bluetooth/btusb.c return submit_tx_urb(hdev, urb); urb 2554 drivers/bluetooth/btusb.c static void btusb_mtk_wmt_recv(struct urb *urb) urb 2556 drivers/bluetooth/btusb.c struct hci_dev *hdev = urb->context; urb 2562 drivers/bluetooth/btusb.c if (urb->status == 0 && urb->actual_length > 0) { urb 2563 drivers/bluetooth/btusb.c hdev->stat.byte_rx += urb->actual_length; urb 2575 drivers/bluetooth/btusb.c skb_put_data(skb, urb->transfer_buffer, urb->actual_length); urb 2610 drivers/bluetooth/btusb.c } else if (urb->status == -ENOENT) { urb 2626 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->ctrl_anchor); urb 2627 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 2634 drivers/bluetooth/btusb.c urb, -err); urb 2635 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 2646 drivers/bluetooth/btusb.c struct urb *urb; urb 2648 drivers/bluetooth/btusb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 2649 drivers/bluetooth/btusb.c if (!urb) urb 2654 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 2672 drivers/bluetooth/btusb.c usb_fill_control_urb(urb, data->udev, pipe, (void *)dr, urb 2675 drivers/bluetooth/btusb.c urb->transfer_flags |= URB_FREE_BUFFER; urb 2677 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->ctrl_anchor); urb 2678 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, GFP_KERNEL); urb 2682 drivers/bluetooth/btusb.c urb, -err); urb 2683 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 2686 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 3452 drivers/bluetooth/btusb.c static struct urb *alloc_diag_urb(struct hci_dev *hdev, bool enable) urb 3456 drivers/bluetooth/btusb.c struct urb *urb; urb 3462 drivers/bluetooth/btusb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 3463 drivers/bluetooth/btusb.c if (!urb) urb 3468 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 3477 drivers/bluetooth/btusb.c usb_fill_bulk_urb(urb, data->udev, pipe, urb 3482 drivers/bluetooth/btusb.c return urb; urb 3488 drivers/bluetooth/btusb.c struct urb *urb; urb 3496 drivers/bluetooth/btusb.c urb = alloc_diag_urb(hdev, enable); urb 3497 drivers/bluetooth/btusb.c if (IS_ERR(urb)) urb 3498 drivers/bluetooth/btusb.c return PTR_ERR(urb); urb 3500 drivers/bluetooth/btusb.c return submit_or_queue_tx_urb(hdev, urb); urb 4016 drivers/bluetooth/btusb.c struct urb *urb; urb 4019 drivers/bluetooth/btusb.c while ((urb = usb_get_from_anchor(&data->deferred))) { urb 4020 drivers/bluetooth/btusb.c usb_anchor_urb(urb, &data->tx_anchor); urb 4022 drivers/bluetooth/btusb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 4026 drivers/bluetooth/btusb.c data->hdev->name, urb, -err); urb 4027 drivers/bluetooth/btusb.c kfree(urb->setup_packet); urb 4028 drivers/bluetooth/btusb.c usb_unanchor_urb(urb); urb 4029 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 4034 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 4038 drivers/bluetooth/btusb.c while ((urb = usb_get_from_anchor(&data->deferred))) { urb 4039 drivers/bluetooth/btusb.c kfree(urb->setup_packet); urb 4040 drivers/bluetooth/btusb.c usb_free_urb(urb); urb 41 drivers/gpu/drm/udl/udl_drv.h struct urb *urb; urb 105 drivers/gpu/drm/udl/udl_drv.h struct urb *udl_get_urb(struct drm_device *dev); urb 107 drivers/gpu/drm/udl/udl_drv.h int udl_submit_urb(struct drm_device *dev, struct urb *urb, size_t len); urb 108 drivers/gpu/drm/udl/udl_drv.h void udl_urb_completion(struct urb *urb); urb 121 drivers/gpu/drm/udl/udl_drv.h int udl_render_hline(struct drm_device *dev, int log_bpp, struct urb **urb_ptr, urb 87 drivers/gpu/drm/udl/udl_fb.c struct urb *urb; urb 120 drivers/gpu/drm/udl/udl_fb.c urb = udl_get_urb(dev); urb 121 drivers/gpu/drm/udl/udl_fb.c if (!urb) urb 123 drivers/gpu/drm/udl/udl_fb.c cmd = urb->transfer_buffer; urb 129 drivers/gpu/drm/udl/udl_fb.c if (udl_render_hline(dev, log_bpp, &urb, urb 137 drivers/gpu/drm/udl/udl_fb.c if (cmd > (char *) urb->transfer_buffer) { urb 140 drivers/gpu/drm/udl/udl_fb.c if (cmd < (char *) urb->transfer_buffer + urb->transfer_buffer_length) urb 142 drivers/gpu/drm/udl/udl_fb.c len = cmd - (char *) urb->transfer_buffer; urb 143 drivers/gpu/drm/udl/udl_fb.c ret = udl_submit_urb(dev, urb, len); urb 146 drivers/gpu/drm/udl/udl_fb.c udl_urb_completion(urb); urb 130 drivers/gpu/drm/udl/udl_main.c void udl_urb_completion(struct urb *urb) urb 132 drivers/gpu/drm/udl/udl_main.c struct urb_node *unode = urb->context; urb 137 drivers/gpu/drm/udl/udl_main.c if (urb->status) { urb 138 drivers/gpu/drm/udl/udl_main.c if (!(urb->status == -ENOENT || urb 139 drivers/gpu/drm/udl/udl_main.c urb->status == -ECONNRESET || urb 140 drivers/gpu/drm/udl/udl_main.c urb->status == -ESHUTDOWN)) { urb 142 drivers/gpu/drm/udl/udl_main.c __func__, urb->status); urb 147 drivers/gpu/drm/udl/udl_main.c urb->transfer_buffer_length = udl->urbs.size; /* reset to actual */ urb 172 drivers/gpu/drm/udl/udl_main.c struct urb *urb; urb 188 drivers/gpu/drm/udl/udl_main.c urb = unode->urb; urb 191 drivers/gpu/drm/udl/udl_main.c usb_free_coherent(urb->dev, udl->urbs.size, urb 192 drivers/gpu/drm/udl/udl_main.c urb->transfer_buffer, urb->transfer_dma); urb 193 drivers/gpu/drm/udl/udl_main.c usb_free_urb(urb); urb 202 drivers/gpu/drm/udl/udl_main.c struct urb *urb; urb 226 drivers/gpu/drm/udl/udl_main.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 227 drivers/gpu/drm/udl/udl_main.c if (!urb) { urb 231 drivers/gpu/drm/udl/udl_main.c unode->urb = urb; urb 234 drivers/gpu/drm/udl/udl_main.c &urb->transfer_dma); urb 237 drivers/gpu/drm/udl/udl_main.c usb_free_urb(urb); urb 247 drivers/gpu/drm/udl/udl_main.c usb_fill_bulk_urb(urb, udl->udev, usb_sndbulkpipe(udl->udev, 1), urb 249 drivers/gpu/drm/udl/udl_main.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 263 drivers/gpu/drm/udl/udl_main.c struct urb *udl_get_urb(struct drm_device *dev) urb 269 drivers/gpu/drm/udl/udl_main.c struct urb *urb = NULL; urb 290 drivers/gpu/drm/udl/udl_main.c urb = unode->urb; urb 293 drivers/gpu/drm/udl/udl_main.c return urb; urb 296 drivers/gpu/drm/udl/udl_main.c int udl_submit_urb(struct drm_device *dev, struct urb *urb, size_t len) urb 303 drivers/gpu/drm/udl/udl_main.c urb->transfer_buffer_length = len; /* set to actual payload len */ urb 304 drivers/gpu/drm/udl/udl_main.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 306 drivers/gpu/drm/udl/udl_main.c udl_urb_completion(urb); /* because no one else will */ urb 232 drivers/gpu/drm/udl/udl_modeset.c struct urb *urb; urb 236 drivers/gpu/drm/udl/udl_modeset.c urb = udl_get_urb(dev); urb 237 drivers/gpu/drm/udl/udl_modeset.c if (!urb) urb 240 drivers/gpu/drm/udl/udl_modeset.c buf = (char *)urb->transfer_buffer; urb 243 drivers/gpu/drm/udl/udl_modeset.c retval = udl_submit_urb(dev, urb, udl->mode_buf_len); urb 257 drivers/gpu/drm/udl/udl_modeset.c struct urb *urb; urb 258 drivers/gpu/drm/udl/udl_modeset.c urb = udl_get_urb(dev); urb 259 drivers/gpu/drm/udl/udl_modeset.c if (!urb) urb 262 drivers/gpu/drm/udl/udl_modeset.c buf = (char *)urb->transfer_buffer; urb 268 drivers/gpu/drm/udl/udl_modeset.c retval = udl_submit_urb(dev, urb, buf - (char *) urb 269 drivers/gpu/drm/udl/udl_modeset.c urb->transfer_buffer); urb 212 drivers/gpu/drm/udl/udl_transfer.c int udl_render_hline(struct drm_device *dev, int log_bpp, struct urb **urb_ptr, urb 220 drivers/gpu/drm/udl/udl_transfer.c struct urb *urb = *urb_ptr; urb 222 drivers/gpu/drm/udl/udl_transfer.c u8 *cmd_end = (u8 *) urb->transfer_buffer + urb->transfer_buffer_length; urb 237 drivers/gpu/drm/udl/udl_transfer.c int len = cmd - (u8 *) urb->transfer_buffer; urb 238 drivers/gpu/drm/udl/udl_transfer.c if (udl_submit_urb(dev, urb, len)) urb 241 drivers/gpu/drm/udl/udl_transfer.c urb = udl_get_urb(dev); urb 242 drivers/gpu/drm/udl/udl_transfer.c if (!urb) urb 244 drivers/gpu/drm/udl/udl_transfer.c *urb_ptr = urb; urb 245 drivers/gpu/drm/udl/udl_transfer.c cmd = urb->transfer_buffer; urb 246 drivers/gpu/drm/udl/udl_transfer.c cmd_end = &cmd[urb->transfer_buffer_length]; urb 70 drivers/greybus/es2.c struct urb *urb[NUM_CPORT_IN_URB]; urb 107 drivers/greybus/es2.c struct urb *cport_out_urb[NUM_CPORT_OUT_URB]; urb 120 drivers/greybus/es2.c struct urb *arpc_urb[NUM_ARPC_IN_URB]; urb 141 drivers/greybus/es2.c static void cport_out_callback(struct urb *urb); urb 171 drivers/greybus/es2.c static void ap_urb_complete(struct urb *urb) urb 173 drivers/greybus/es2.c struct usb_ctrlrequest *dr = urb->context; urb 176 drivers/greybus/es2.c usb_free_urb(urb); urb 182 drivers/greybus/es2.c struct urb *urb; urb 187 drivers/greybus/es2.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 188 drivers/greybus/es2.c if (!urb) urb 193 drivers/greybus/es2.c usb_free_urb(urb); urb 206 drivers/greybus/es2.c usb_fill_control_urb(urb, udev, usb_sndctrlpipe(udev, 0), urb 209 drivers/greybus/es2.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 211 drivers/greybus/es2.c usb_free_urb(urb); urb 231 drivers/greybus/es2.c struct urb *urb; urb 236 drivers/greybus/es2.c urb = cport_in->urb[i]; urb 238 drivers/greybus/es2.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 250 drivers/greybus/es2.c urb = cport_in->urb[i]; urb 251 drivers/greybus/es2.c usb_kill_urb(urb); urb 260 drivers/greybus/es2.c struct urb *urb; urb 264 drivers/greybus/es2.c urb = cport_in->urb[i]; urb 265 drivers/greybus/es2.c usb_kill_urb(urb); urb 271 drivers/greybus/es2.c struct urb *urb; urb 276 drivers/greybus/es2.c urb = es2->arpc_urb[i]; urb 278 drivers/greybus/es2.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 290 drivers/greybus/es2.c urb = es2->arpc_urb[i]; urb 291 drivers/greybus/es2.c usb_kill_urb(urb); urb 299 drivers/greybus/es2.c struct urb *urb; urb 303 drivers/greybus/es2.c urb = es2->arpc_urb[i]; urb 304 drivers/greybus/es2.c usb_kill_urb(urb); urb 308 drivers/greybus/es2.c static struct urb *next_free_urb(struct es2_ap_dev *es2, gfp_t gfp_mask) urb 310 drivers/greybus/es2.c struct urb *urb = NULL; urb 321 drivers/greybus/es2.c urb = es2->cport_out_urb[i]; urb 326 drivers/greybus/es2.c if (urb) urb 327 drivers/greybus/es2.c return urb; urb 338 drivers/greybus/es2.c static void free_urb(struct es2_ap_dev *es2, struct urb *urb) urb 348 drivers/greybus/es2.c if (urb == es2->cport_out_urb[i]) { urb 350 drivers/greybus/es2.c urb = NULL; urb 357 drivers/greybus/es2.c usb_free_urb(urb); urb 397 drivers/greybus/es2.c struct urb *urb; urb 411 drivers/greybus/es2.c urb = next_free_urb(es2, gfp_mask); urb 412 drivers/greybus/es2.c if (!urb) urb 416 drivers/greybus/es2.c message->hcpriv = urb; urb 424 drivers/greybus/es2.c usb_fill_bulk_urb(urb, udev, urb 429 drivers/greybus/es2.c urb->transfer_flags |= URB_ZERO_PACKET; urb 433 drivers/greybus/es2.c retval = usb_submit_urb(urb, gfp_mask); urb 441 drivers/greybus/es2.c free_urb(es2, urb); urb 457 drivers/greybus/es2.c struct urb *urb; urb 463 drivers/greybus/es2.c urb = message->hcpriv; urb 466 drivers/greybus/es2.c usb_get_urb(urb); urb 470 drivers/greybus/es2.c if (urb == es2->cport_out_urb[i]) { urb 477 drivers/greybus/es2.c usb_kill_urb(urb); urb 485 drivers/greybus/es2.c usb_free_urb(urb); urb 750 drivers/greybus/es2.c static int check_urb_status(struct urb *urb) urb 752 drivers/greybus/es2.c struct device *dev = &urb->dev->dev; urb 753 drivers/greybus/es2.c int status = urb->status; urb 761 drivers/greybus/es2.c __func__, urb->actual_length); urb 779 drivers/greybus/es2.c struct urb *urb; urb 787 drivers/greybus/es2.c urb = es2->cport_out_urb[i]; urb 788 drivers/greybus/es2.c usb_kill_urb(urb); urb 789 drivers/greybus/es2.c usb_free_urb(urb); urb 801 drivers/greybus/es2.c usb_free_urb(es2->cport_in.urb[i]); urb 816 drivers/greybus/es2.c static void cport_in_callback(struct urb *urb) urb 818 drivers/greybus/es2.c struct gb_host_device *hd = urb->context; urb 819 drivers/greybus/es2.c struct device *dev = &urb->dev->dev; urb 821 drivers/greybus/es2.c int status = check_urb_status(urb); urb 837 drivers/greybus/es2.c if (urb->actual_length < sizeof(*header)) { urb 843 drivers/greybus/es2.c header = urb->transfer_buffer; urb 847 drivers/greybus/es2.c greybus_data_rcvd(hd, cport_id, urb->transfer_buffer, urb 848 drivers/greybus/es2.c urb->actual_length); urb 854 drivers/greybus/es2.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 859 drivers/greybus/es2.c static void cport_out_callback(struct urb *urb) urb 861 drivers/greybus/es2.c struct gb_message *message = urb->context; urb 864 drivers/greybus/es2.c int status = check_urb_status(urb); urb 879 drivers/greybus/es2.c free_urb(es2, urb); urb 1029 drivers/greybus/es2.c static void arpc_in_callback(struct urb *urb) urb 1031 drivers/greybus/es2.c struct es2_ap_dev *es2 = urb->context; urb 1032 drivers/greybus/es2.c struct device *dev = &urb->dev->dev; urb 1033 drivers/greybus/es2.c int status = check_urb_status(urb); urb 1051 drivers/greybus/es2.c if (urb->actual_length < sizeof(*resp)) { urb 1056 drivers/greybus/es2.c resp = urb->transfer_buffer; urb 1073 drivers/greybus/es2.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 1344 drivers/greybus/es2.c struct urb *urb; urb 1347 drivers/greybus/es2.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1348 drivers/greybus/es2.c if (!urb) { urb 1352 drivers/greybus/es2.c es2->cport_in.urb[i] = urb; urb 1360 drivers/greybus/es2.c usb_fill_bulk_urb(urb, udev, urb 1370 drivers/greybus/es2.c struct urb *urb; urb 1373 drivers/greybus/es2.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1374 drivers/greybus/es2.c if (!urb) { urb 1378 drivers/greybus/es2.c es2->arpc_urb[i] = urb; urb 1386 drivers/greybus/es2.c usb_fill_bulk_urb(urb, udev, urb 1397 drivers/greybus/es2.c struct urb *urb; urb 1399 drivers/greybus/es2.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1400 drivers/greybus/es2.c if (!urb) { urb 1405 drivers/greybus/es2.c es2->cport_out_urb[i] = urb; urb 61 drivers/hid/hid-u2fzero.c struct urb *urb; /* URB for the RNG data */ urb 96 drivers/hid/hid-u2fzero.c static void u2fzero_read_callback(struct urb *urb) urb 98 drivers/hid/hid-u2fzero.c struct u2fzero_transfer_context *ctx = urb->context; urb 100 drivers/hid/hid-u2fzero.c ctx->status = urb->status; urb 116 drivers/hid/hid-u2fzero.c dev->urb->context = &ctx; urb 119 drivers/hid/hid-u2fzero.c ret = usb_submit_urb(dev->urb, GFP_NOIO); urb 136 drivers/hid/hid-u2fzero.c usb_kill_urb(dev->urb); urb 139 drivers/hid/hid-u2fzero.c ret = dev->urb->actual_length; urb 264 drivers/hid/hid-u2fzero.c dev->urb = usb_alloc_urb(0, GFP_KERNEL); urb 265 drivers/hid/hid-u2fzero.c if (!dev->urb) urb 270 drivers/hid/hid-u2fzero.c usb_fill_int_urb(dev->urb, urb 352 drivers/hid/hid-u2fzero.c usb_poison_urb(dev->urb); urb 353 drivers/hid/hid-u2fzero.c usb_free_urb(dev->urb); urb 271 drivers/hid/usbhid/hid-core.c static void hid_irq_in(struct urb *urb) urb 273 drivers/hid/usbhid/hid-core.c struct hid_device *hid = urb->context; urb 277 drivers/hid/usbhid/hid-core.c switch (urb->status) { urb 284 drivers/hid/usbhid/hid-core.c hid_input_report(urb->context, HID_INPUT_REPORT, urb 285 drivers/hid/usbhid/hid-core.c urb->transfer_buffer, urb 286 drivers/hid/usbhid/hid-core.c urb->actual_length, 1); urb 318 drivers/hid/usbhid/hid-core.c hid_warn(urb->dev, "input irq status %d received\n", urb 319 drivers/hid/usbhid/hid-core.c urb->status); urb 322 drivers/hid/usbhid/hid-core.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 429 drivers/hid/usbhid/hid-core.c static void hid_irq_out(struct urb *urb) urb 431 drivers/hid/usbhid/hid-core.c struct hid_device *hid = urb->context; urb 436 drivers/hid/usbhid/hid-core.c switch (urb->status) { urb 447 drivers/hid/usbhid/hid-core.c hid_warn(urb->dev, "output irq status %d received\n", urb 448 drivers/hid/usbhid/hid-core.c urb->status); urb 476 drivers/hid/usbhid/hid-core.c static void hid_ctrl(struct urb *urb) urb 478 drivers/hid/usbhid/hid-core.c struct hid_device *hid = urb->context; urb 481 drivers/hid/usbhid/hid-core.c int unplug = 0, status = urb->status; urb 486 drivers/hid/usbhid/hid-core.c hid_input_report(urb->context, urb 488 drivers/hid/usbhid/hid-core.c urb->transfer_buffer, urb->actual_length, 0); urb 499 drivers/hid/usbhid/hid-core.c hid_warn(urb->dev, "ctrl urb status %d received\n", status); urb 64 drivers/hid/usbhid/usbhid.h struct urb *urbin; /* Input URB */ urb 68 drivers/hid/usbhid/usbhid.h struct urb *urbctrl; /* Control URB */ urb 76 drivers/hid/usbhid/usbhid.h struct urb *urbout; /* Output URB */ urb 84 drivers/hid/usbhid/usbkbd.c struct urb *irq, *led; urb 100 drivers/hid/usbhid/usbkbd.c static void usb_kbd_irq(struct urb *urb) urb 102 drivers/hid/usbhid/usbkbd.c struct usb_kbd *kbd = urb->context; urb 105 drivers/hid/usbhid/usbkbd.c switch (urb->status) { urb 126 drivers/hid/usbhid/usbkbd.c hid_info(urb->dev, urb 135 drivers/hid/usbhid/usbkbd.c hid_info(urb->dev, urb 146 drivers/hid/usbhid/usbkbd.c i = usb_submit_urb (urb, GFP_ATOMIC); urb 148 drivers/hid/usbhid/usbkbd.c hid_err(urb->dev, "can't resubmit intr, %s-%s/input0, status %d", urb 190 drivers/hid/usbhid/usbkbd.c static void usb_kbd_led(struct urb *urb) urb 193 drivers/hid/usbhid/usbkbd.c struct usb_kbd *kbd = urb->context; urb 195 drivers/hid/usbhid/usbkbd.c if (urb->status) urb 196 drivers/hid/usbhid/usbkbd.c hid_warn(urb->dev, "led urb status %d received\n", urb 197 drivers/hid/usbhid/usbkbd.c urb->status); urb 211 drivers/hid/usbhid/usbkbd.c hid_err(urb->dev, "usb_submit_urb(leds) failed\n"); urb 43 drivers/hid/usbhid/usbmouse.c struct urb *irq; urb 49 drivers/hid/usbhid/usbmouse.c static void usb_mouse_irq(struct urb *urb) urb 51 drivers/hid/usbhid/usbmouse.c struct usb_mouse *mouse = urb->context; urb 56 drivers/hid/usbhid/usbmouse.c switch (urb->status) { urb 80 drivers/hid/usbhid/usbmouse.c status = usb_submit_urb (urb, GFP_ATOMIC); urb 17 drivers/input/joystick/iforce/iforce-usb.c struct urb *irq, *out; urb 138 drivers/input/joystick/iforce/iforce-usb.c static void iforce_usb_irq(struct urb *urb) urb 140 drivers/input/joystick/iforce/iforce-usb.c struct iforce_usb *iforce_usb = urb->context; urb 145 drivers/input/joystick/iforce/iforce-usb.c switch (urb->status) { urb 154 drivers/input/joystick/iforce/iforce-usb.c __func__, urb->status); urb 158 drivers/input/joystick/iforce/iforce-usb.c __func__, urb->status); urb 163 drivers/input/joystick/iforce/iforce-usb.c iforce_usb->data_in + 1, urb->actual_length - 1); urb 166 drivers/input/joystick/iforce/iforce-usb.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 172 drivers/input/joystick/iforce/iforce-usb.c static void iforce_usb_out(struct urb *urb) urb 174 drivers/input/joystick/iforce/iforce-usb.c struct iforce_usb *iforce_usb = urb->context; urb 177 drivers/input/joystick/iforce/iforce-usb.c if (urb->status) { urb 180 drivers/input/joystick/iforce/iforce-usb.c urb->status); urb 24 drivers/input/joystick/pxrc.c struct urb *urb; urb 30 drivers/input/joystick/pxrc.c static void pxrc_usb_irq(struct urb *urb) urb 32 drivers/input/joystick/pxrc.c struct pxrc *pxrc = urb->context; urb 33 drivers/input/joystick/pxrc.c u8 *data = urb->transfer_buffer; urb 36 drivers/input/joystick/pxrc.c switch (urb->status) { urb 52 drivers/input/joystick/pxrc.c __func__, urb->status); urb 56 drivers/input/joystick/pxrc.c __func__, urb->status); urb 60 drivers/input/joystick/pxrc.c if (urb->actual_length == 8) { urb 74 drivers/input/joystick/pxrc.c error = usb_submit_urb(urb, GFP_ATOMIC); urb 87 drivers/input/joystick/pxrc.c retval = usb_submit_urb(pxrc->urb, GFP_KERNEL); urb 108 drivers/input/joystick/pxrc.c usb_kill_urb(pxrc->urb); urb 117 drivers/input/joystick/pxrc.c usb_free_urb(pxrc->urb); urb 155 drivers/input/joystick/pxrc.c pxrc->urb = usb_alloc_urb(0, GFP_KERNEL); urb 156 drivers/input/joystick/pxrc.c if (!pxrc->urb) urb 163 drivers/input/joystick/pxrc.c usb_fill_int_urb(pxrc->urb, udev, urb 213 drivers/input/joystick/pxrc.c usb_kill_urb(pxrc->urb); urb 225 drivers/input/joystick/pxrc.c if (pxrc->is_open && usb_submit_urb(pxrc->urb, GFP_KERNEL) < 0) urb 237 drivers/input/joystick/pxrc.c usb_kill_urb(pxrc->urb); urb 246 drivers/input/joystick/pxrc.c if (pxrc->is_open && usb_submit_urb(pxrc->urb, GFP_KERNEL) < 0) urb 563 drivers/input/joystick/xpad.c struct urb *irq_in; /* urb for interrupt in report */ urb 567 drivers/input/joystick/xpad.c struct urb *irq_out; /* urb for interrupt out report */ urb 906 drivers/input/joystick/xpad.c static void xpad_irq_in(struct urb *urb) urb 908 drivers/input/joystick/xpad.c struct usb_xpad *xpad = urb->context; urb 912 drivers/input/joystick/xpad.c status = urb->status; urb 946 drivers/input/joystick/xpad.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 1040 drivers/input/joystick/xpad.c static void xpad_irq_out(struct urb *urb) urb 1042 drivers/input/joystick/xpad.c struct usb_xpad *xpad = urb->context; urb 1044 drivers/input/joystick/xpad.c int status = urb->status; urb 1072 drivers/input/joystick/xpad.c usb_anchor_urb(urb, &xpad->irq_out_anchor); urb 1073 drivers/input/joystick/xpad.c error = usb_submit_urb(urb, GFP_ATOMIC); urb 1078 drivers/input/joystick/xpad.c usb_unanchor_urb(urb); urb 188 drivers/input/misc/ati_remote2.c struct urb *urb[2]; urb 232 drivers/input/misc/ati_remote2.c r = usb_submit_urb(ar2->urb[0], GFP_KERNEL); urb 238 drivers/input/misc/ati_remote2.c r = usb_submit_urb(ar2->urb[1], GFP_KERNEL); urb 240 drivers/input/misc/ati_remote2.c usb_kill_urb(ar2->urb[0]); urb 251 drivers/input/misc/ati_remote2.c usb_kill_urb(ar2->urb[1]); urb 252 drivers/input/misc/ati_remote2.c usb_kill_urb(ar2->urb[0]); urb 423 drivers/input/misc/ati_remote2.c static void ati_remote2_complete_mouse(struct urb *urb) urb 425 drivers/input/misc/ati_remote2.c struct ati_remote2 *ar2 = urb->context; urb 428 drivers/input/misc/ati_remote2.c switch (urb->status) { urb 438 drivers/input/misc/ati_remote2.c "%s(): urb status = %d\n", __func__, urb->status); urb 443 drivers/input/misc/ati_remote2.c "%s(): urb status = %d\n", __func__, urb->status); urb 446 drivers/input/misc/ati_remote2.c r = usb_submit_urb(urb, GFP_ATOMIC); urb 452 drivers/input/misc/ati_remote2.c static void ati_remote2_complete_key(struct urb *urb) urb 454 drivers/input/misc/ati_remote2.c struct ati_remote2 *ar2 = urb->context; urb 457 drivers/input/misc/ati_remote2.c switch (urb->status) { urb 467 drivers/input/misc/ati_remote2.c "%s(): urb status = %d\n", __func__, urb->status); urb 472 drivers/input/misc/ati_remote2.c "%s(): urb status = %d\n", __func__, urb->status); urb 475 drivers/input/misc/ati_remote2.c r = usb_submit_urb(urb, GFP_ATOMIC); urb 637 drivers/input/misc/ati_remote2.c ar2->urb[i] = usb_alloc_urb(0, GFP_KERNEL); urb 638 drivers/input/misc/ati_remote2.c if (!ar2->urb[i]) urb 645 drivers/input/misc/ati_remote2.c usb_fill_int_urb(ar2->urb[i], udev, pipe, ar2->buf[i], maxp, urb 648 drivers/input/misc/ati_remote2.c ar2->urb[i]->transfer_dma = ar2->buf_dma[i]; urb 649 drivers/input/misc/ati_remote2.c ar2->urb[i]->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 660 drivers/input/misc/ati_remote2.c usb_free_urb(ar2->urb[i]); urb 96 drivers/input/misc/cm109.c struct urb *urb_irq; urb 102 drivers/input/misc/cm109.c struct urb *urb_ctl; urb 361 drivers/input/misc/cm109.c static void cm109_urb_irq_callback(struct urb *urb) urb 363 drivers/input/misc/cm109.c struct cm109_dev *dev = urb->context; urb 364 drivers/input/misc/cm109.c const int status = urb->status; urb 432 drivers/input/misc/cm109.c static void cm109_urb_ctl_callback(struct urb *urb) urb 434 drivers/input/misc/cm109.c struct cm109_dev *dev = urb->context; urb 435 drivers/input/misc/cm109.c const int status = urb->status; urb 75 drivers/input/misc/ims-pcu.c struct urb *urb_ctrl; urb 83 drivers/input/misc/ims-pcu.c struct urb *urb_in; urb 442 drivers/input/misc/ims-pcu.c static void ims_pcu_process_data(struct ims_pcu *pcu, struct urb *urb) urb 446 drivers/input/misc/ims-pcu.c for (i = 0; i < urb->actual_length; i++) { urb 1474 drivers/input/misc/ims-pcu.c static void ims_pcu_irq(struct urb *urb) urb 1476 drivers/input/misc/ims-pcu.c struct ims_pcu *pcu = urb->context; urb 1479 drivers/input/misc/ims-pcu.c status = urb->status; urb 1499 drivers/input/misc/ims-pcu.c urb->actual_length, urb->actual_length, pcu->urb_in_buf); urb 1501 drivers/input/misc/ims-pcu.c if (urb == pcu->urb_in) urb 1502 drivers/input/misc/ims-pcu.c ims_pcu_process_data(pcu, urb); urb 1505 drivers/input/misc/ims-pcu.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 110 drivers/input/misc/keyspan_remote.c struct urb* irq_urb; urb 372 drivers/input/misc/keyspan_remote.c static void keyspan_irq_recv(struct urb *urb) urb 374 drivers/input/misc/keyspan_remote.c struct usb_keyspan *dev = urb->context; urb 378 drivers/input/misc/keyspan_remote.c switch (urb->status) { urb 398 drivers/input/misc/keyspan_remote.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 65 drivers/input/misc/powermate.c struct urb *irq, *config; urb 83 drivers/input/misc/powermate.c static void powermate_config_complete(struct urb *urb); urb 86 drivers/input/misc/powermate.c static void powermate_irq(struct urb *urb) urb 88 drivers/input/misc/powermate.c struct powermate_device *pm = urb->context; urb 92 drivers/input/misc/powermate.c switch (urb->status) { urb 101 drivers/input/misc/powermate.c __func__, urb->status); urb 105 drivers/input/misc/powermate.c __func__, urb->status); urb 115 drivers/input/misc/powermate.c retval = usb_submit_urb (urb, GFP_ATOMIC); urb 194 drivers/input/misc/powermate.c static void powermate_config_complete(struct urb *urb) urb 196 drivers/input/misc/powermate.c struct powermate_device *pm = urb->context; urb 199 drivers/input/misc/powermate.c if (urb->status) urb 200 drivers/input/misc/powermate.c printk(KERN_ERR "powermate: config urb returned %d\n", urb->status); urb 93 drivers/input/misc/yealink.c struct urb *urb_irq; urb 99 drivers/input/misc/yealink.c struct urb *urb_ctl; urb 410 drivers/input/misc/yealink.c static void urb_irq_callback(struct urb *urb) urb 412 drivers/input/misc/yealink.c struct yealink_dev *yld = urb->context; urb 413 drivers/input/misc/yealink.c int ret, status = urb->status; urb 448 drivers/input/misc/yealink.c static void urb_ctl_callback(struct urb *urb) urb 450 drivers/input/misc/yealink.c struct yealink_dev *yld = urb->context; urb 451 drivers/input/misc/yealink.c int ret = 0, status = urb->status; urb 36 drivers/input/mouse/appletouch.c void (*callback)(struct urb *); /* callback function */ urb 40 drivers/input/mouse/appletouch.c static void atp_complete_geyser_1_2(struct urb *urb); urb 41 drivers/input/mouse/appletouch.c static void atp_complete_geyser_3_4(struct urb *urb); urb 199 drivers/input/mouse/appletouch.c struct urb *urb; /* usb request block */ urb 326 drivers/input/mouse/appletouch.c retval = usb_submit_urb(dev->urb, GFP_ATOMIC); urb 445 drivers/input/mouse/appletouch.c static int atp_status_check(struct urb *urb) urb 447 drivers/input/mouse/appletouch.c struct atp *dev = urb->context; urb 450 drivers/input/mouse/appletouch.c switch (urb->status) { urb 458 drivers/input/mouse/appletouch.c dev->info->datalen, dev->urb->actual_length); urb 468 drivers/input/mouse/appletouch.c urb->status); urb 474 drivers/input/mouse/appletouch.c urb->status); urb 479 drivers/input/mouse/appletouch.c if (dev->urb->actual_length != dev->info->datalen) { urb 482 drivers/input/mouse/appletouch.c dev->data[0], dev->urb->actual_length); urb 515 drivers/input/mouse/appletouch.c static void atp_complete_geyser_1_2(struct urb *urb) urb 520 drivers/input/mouse/appletouch.c struct atp *dev = urb->context; urb 521 drivers/input/mouse/appletouch.c int status = atp_status_check(urb); urb 646 drivers/input/mouse/appletouch.c retval = usb_submit_urb(dev->urb, GFP_ATOMIC); urb 655 drivers/input/mouse/appletouch.c static void atp_complete_geyser_3_4(struct urb *urb) urb 660 drivers/input/mouse/appletouch.c struct atp *dev = urb->context; urb 661 drivers/input/mouse/appletouch.c int status = atp_status_check(urb); urb 789 drivers/input/mouse/appletouch.c retval = usb_submit_urb(dev->urb, GFP_ATOMIC); urb 800 drivers/input/mouse/appletouch.c if (usb_submit_urb(dev->urb, GFP_KERNEL)) urb 811 drivers/input/mouse/appletouch.c usb_kill_urb(dev->urb); urb 871 drivers/input/mouse/appletouch.c dev->urb = usb_alloc_urb(0, GFP_KERNEL); urb 872 drivers/input/mouse/appletouch.c if (!dev->urb) urb 876 drivers/input/mouse/appletouch.c &dev->urb->transfer_dma); urb 880 drivers/input/mouse/appletouch.c usb_fill_int_urb(dev->urb, udev, urb 932 drivers/input/mouse/appletouch.c dev->data, dev->urb->transfer_dma); urb 934 drivers/input/mouse/appletouch.c usb_free_urb(dev->urb); urb 948 drivers/input/mouse/appletouch.c usb_kill_urb(dev->urb); urb 951 drivers/input/mouse/appletouch.c dev->data, dev->urb->transfer_dma); urb 952 drivers/input/mouse/appletouch.c usb_free_urb(dev->urb); urb 966 drivers/input/mouse/appletouch.c if (dev->open && usb_submit_urb(dev->urb, GFP_KERNEL)) urb 976 drivers/input/mouse/appletouch.c usb_kill_urb(dev->urb); urb 984 drivers/input/mouse/appletouch.c if (dev->open && usb_submit_urb(dev->urb, GFP_KERNEL)) urb 282 drivers/input/mouse/bcm5974.c struct urb *bt_urb; /* button usb request block */ urb 284 drivers/input/mouse/bcm5974.c struct urb *tp_urb; /* trackpad usb request block */ urb 699 drivers/input/mouse/bcm5974.c static void bcm5974_irq_button(struct urb *urb) urb 701 drivers/input/mouse/bcm5974.c struct bcm5974 *dev = urb->context; urb 705 drivers/input/mouse/bcm5974.c switch (urb->status) { urb 713 drivers/input/mouse/bcm5974.c urb->status); urb 716 drivers/input/mouse/bcm5974.c dev_dbg(&intf->dev, "button urb status: %d\n", urb->status); urb 730 drivers/input/mouse/bcm5974.c static void bcm5974_irq_trackpad(struct urb *urb) urb 732 drivers/input/mouse/bcm5974.c struct bcm5974 *dev = urb->context; urb 736 drivers/input/mouse/bcm5974.c switch (urb->status) { urb 744 drivers/input/mouse/bcm5974.c urb->status); urb 747 drivers/input/mouse/bcm5974.c dev_dbg(&intf->dev, "trackpad urb status: %d\n", urb->status); urb 78 drivers/input/mouse/synaptics_usb.c struct urb *urb; urb 188 drivers/input/mouse/synaptics_usb.c static void synusb_irq(struct urb *urb) urb 190 drivers/input/mouse/synaptics_usb.c struct synusb *synusb = urb->context; urb 194 drivers/input/mouse/synaptics_usb.c switch (urb->status) { urb 216 drivers/input/mouse/synaptics_usb.c error = usb_submit_urb(urb, GFP_ATOMIC); urb 256 drivers/input/mouse/synaptics_usb.c retval = usb_submit_urb(synusb->urb, GFP_KERNEL); urb 282 drivers/input/mouse/synaptics_usb.c usb_kill_urb(synusb->urb); urb 336 drivers/input/mouse/synaptics_usb.c synusb->urb = usb_alloc_urb(0, GFP_KERNEL); urb 337 drivers/input/mouse/synaptics_usb.c if (!synusb->urb) { urb 343 drivers/input/mouse/synaptics_usb.c &synusb->urb->transfer_dma); urb 349 drivers/input/mouse/synaptics_usb.c usb_fill_int_urb(synusb->urb, udev, urb 354 drivers/input/mouse/synaptics_usb.c synusb->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 444 drivers/input/mouse/synaptics_usb.c synusb->urb->transfer_dma); urb 446 drivers/input/mouse/synaptics_usb.c usb_free_urb(synusb->urb); urb 466 drivers/input/mouse/synaptics_usb.c synusb->urb->transfer_dma); urb 467 drivers/input/mouse/synaptics_usb.c usb_free_urb(synusb->urb); urb 478 drivers/input/mouse/synaptics_usb.c usb_kill_urb(synusb->urb); urb 492 drivers/input/mouse/synaptics_usb.c usb_submit_urb(synusb->urb, GFP_NOIO) < 0) { urb 506 drivers/input/mouse/synaptics_usb.c usb_kill_urb(synusb->urb); urb 517 drivers/input/mouse/synaptics_usb.c usb_submit_urb(synusb->urb, GFP_NOIO) < 0) { urb 33 drivers/input/tablet/acecad.c struct urb *irq; urb 39 drivers/input/tablet/acecad.c static void usb_acecad_irq(struct urb *urb) urb 41 drivers/input/tablet/acecad.c struct usb_acecad *acecad = urb->context; urb 48 drivers/input/tablet/acecad.c switch (urb->status) { urb 57 drivers/input/tablet/acecad.c __func__, urb->status); urb 61 drivers/input/tablet/acecad.c __func__, urb->status); urb 88 drivers/input/tablet/acecad.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 291 drivers/input/tablet/aiptek.c struct urb *urb; /* urb for incoming reports */ urb 412 drivers/input/tablet/aiptek.c static void aiptek_irq(struct urb *urb) urb 414 drivers/input/tablet/aiptek.c struct aiptek *aiptek = urb->context; urb 421 drivers/input/tablet/aiptek.c switch (urb->status) { urb 431 drivers/input/tablet/aiptek.c __func__, urb->status); urb 436 drivers/input/tablet/aiptek.c __func__, urb->status); urb 792 drivers/input/tablet/aiptek.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 829 drivers/input/tablet/aiptek.c aiptek->urb->dev = interface_to_usbdev(aiptek->intf); urb 830 drivers/input/tablet/aiptek.c if (usb_submit_urb(aiptek->urb, GFP_KERNEL) != 0) urb 843 drivers/input/tablet/aiptek.c usb_kill_urb(aiptek->urb); urb 1708 drivers/input/tablet/aiptek.c aiptek->urb = usb_alloc_urb(0, GFP_KERNEL); urb 1709 drivers/input/tablet/aiptek.c if (!aiptek->urb) { urb 1817 drivers/input/tablet/aiptek.c usb_fill_int_urb(aiptek->urb, urb 1824 drivers/input/tablet/aiptek.c aiptek->urb->transfer_dma = aiptek->data_dma; urb 1825 drivers/input/tablet/aiptek.c aiptek->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1882 drivers/input/tablet/aiptek.c fail3: usb_free_urb(aiptek->urb); urb 1904 drivers/input/tablet/aiptek.c usb_kill_urb(aiptek->urb); urb 1907 drivers/input/tablet/aiptek.c usb_free_urb(aiptek->urb); urb 109 drivers/input/tablet/gtco.c struct urb *urbinfo; /* urb for incoming reports */ urb 627 drivers/input/tablet/gtco.c static void gtco_urb_callback(struct urb *urbinfo) urb 55 drivers/input/tablet/hanwang.c struct urb *irq; urb 252 drivers/input/tablet/hanwang.c static void hanwang_irq(struct urb *urb) urb 254 drivers/input/tablet/hanwang.c struct hanwang *hanwang = urb->context; urb 258 drivers/input/tablet/hanwang.c switch (urb->status) { urb 268 drivers/input/tablet/hanwang.c __func__, urb->status); urb 272 drivers/input/tablet/hanwang.c __func__, urb->status); urb 276 drivers/input/tablet/hanwang.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 27 drivers/input/tablet/kbtab.c struct urb *irq; urb 31 drivers/input/tablet/kbtab.c static void kbtab_irq(struct urb *urb) urb 33 drivers/input/tablet/kbtab.c struct kbtab *kbtab = urb->context; urb 39 drivers/input/tablet/kbtab.c switch (urb->status) { urb 49 drivers/input/tablet/kbtab.c __func__, urb->status); urb 54 drivers/input/tablet/kbtab.c __func__, urb->status); urb 76 drivers/input/tablet/kbtab.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 80 drivers/input/tablet/pegasus_notetaker.c struct urb *irq; urb 175 drivers/input/tablet/pegasus_notetaker.c static void pegasus_irq(struct urb *urb) urb 177 drivers/input/tablet/pegasus_notetaker.c struct pegasus *pegasus = urb->context; urb 181 drivers/input/tablet/pegasus_notetaker.c switch (urb->status) { urb 191 drivers/input/tablet/pegasus_notetaker.c __func__, urb->status); urb 196 drivers/input/tablet/pegasus_notetaker.c __func__, urb->status); urb 200 drivers/input/tablet/pegasus_notetaker.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 94 drivers/input/touchscreen/usbtouchscreen.c struct urb *irq; urb 903 drivers/input/touchscreen/usbtouchscreen.c struct urb *ack; urb 918 drivers/input/touchscreen/usbtouchscreen.c static void nexio_ack_complete(struct urb *urb) urb 1487 drivers/input/touchscreen/usbtouchscreen.c static void usbtouch_irq(struct urb *urb) urb 1489 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch = urb->context; urb 1493 drivers/input/touchscreen/usbtouchscreen.c switch (urb->status) { urb 1509 drivers/input/touchscreen/usbtouchscreen.c __func__, urb->status); urb 1513 drivers/input/touchscreen/usbtouchscreen.c __func__, urb->status); urb 1517 drivers/input/touchscreen/usbtouchscreen.c usbtouch->type->process_pkt(usbtouch, usbtouch->data, urb->actual_length); urb 1521 drivers/input/touchscreen/usbtouchscreen.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 103 drivers/isdn/hardware/mISDN/hfcsusb.c ctrl_complete(struct urb *urb) urb 105 drivers/isdn/hardware/mISDN/hfcsusb.c struct hfcsusb *hw = (struct hfcsusb *) urb->context; urb 110 drivers/isdn/hardware/mISDN/hfcsusb.c urb->dev = hw->dev; urb 938 drivers/isdn/hardware/mISDN/hfcsusb.c fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe, urb 944 drivers/isdn/hardware/mISDN/hfcsusb.c usb_fill_bulk_urb(urb, dev, pipe, buf, packet_size * num_packets, urb 947 drivers/isdn/hardware/mISDN/hfcsusb.c urb->number_of_packets = num_packets; urb 948 drivers/isdn/hardware/mISDN/hfcsusb.c urb->transfer_flags = URB_ISO_ASAP; urb 949 drivers/isdn/hardware/mISDN/hfcsusb.c urb->actual_length = 0; urb 950 drivers/isdn/hardware/mISDN/hfcsusb.c urb->interval = interval; urb 953 drivers/isdn/hardware/mISDN/hfcsusb.c urb->iso_frame_desc[k].offset = packet_size * k; urb 954 drivers/isdn/hardware/mISDN/hfcsusb.c urb->iso_frame_desc[k].length = packet_size; urb 955 drivers/isdn/hardware/mISDN/hfcsusb.c urb->iso_frame_desc[k].actual_length = 0; urb 961 drivers/isdn/hardware/mISDN/hfcsusb.c rx_iso_complete(struct urb *urb) urb 963 drivers/isdn/hardware/mISDN/hfcsusb.c struct iso_urb *context_iso_urb = (struct iso_urb *) urb->context; urb 974 drivers/isdn/hardware/mISDN/hfcsusb.c status = urb->status; urb 1005 drivers/isdn/hardware/mISDN/hfcsusb.c len = urb->iso_frame_desc[k].actual_length; urb 1006 drivers/isdn/hardware/mISDN/hfcsusb.c offset = urb->iso_frame_desc[k].offset; urb 1008 drivers/isdn/hardware/mISDN/hfcsusb.c iso_status = urb->iso_frame_desc[k].status; urb 1021 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, __func__, urb->start_frame, urb 1061 drivers/isdn/hardware/mISDN/hfcsusb.c fill_isoc_urb(urb, fifo->hw->dev, fifo->pipe, urb 1064 drivers/isdn/hardware/mISDN/hfcsusb.c (usb_complete_t)rx_iso_complete, urb->context); urb 1065 drivers/isdn/hardware/mISDN/hfcsusb.c errcode = usb_submit_urb(urb, GFP_ATOMIC); urb 1082 drivers/isdn/hardware/mISDN/hfcsusb.c rx_int_complete(struct urb *urb) urb 1086 drivers/isdn/hardware/mISDN/hfcsusb.c struct usb_fifo *fifo = (struct usb_fifo *) urb->context; urb 1101 drivers/isdn/hardware/mISDN/hfcsusb.c if ((!fifo->active) || (urb->status)) { urb 1105 drivers/isdn/hardware/mISDN/hfcsusb.c hw->name, __func__, fifon, urb->status); urb 1107 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->urb->interval = 0; /* cancel automatic rescheduling */ urb 1110 drivers/isdn/hardware/mISDN/hfcsusb.c len = urb->actual_length; urb 1137 drivers/isdn/hardware/mISDN/hfcsusb.c urb->actual_length - 2, urb 1140 drivers/isdn/hardware/mISDN/hfcsusb.c hfcsusb_rx_frame(fifo, buf, urb->actual_length, urb 1143 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->last_urblen = urb->actual_length; urb 1145 drivers/isdn/hardware/mISDN/hfcsusb.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 1155 drivers/isdn/hardware/mISDN/hfcsusb.c tx_iso_complete(struct urb *urb) urb 1157 drivers/isdn/hardware/mISDN/hfcsusb.c struct iso_urb *context_iso_urb = (struct iso_urb *) urb->context; urb 1195 drivers/isdn/hardware/mISDN/hfcsusb.c status = urb->status; urb 1223 drivers/isdn/hardware/mISDN/hfcsusb.c fill_isoc_urb(urb, fifo->hw->dev, fifo->pipe, urb 1226 drivers/isdn/hardware/mISDN/hfcsusb.c (usb_complete_t)tx_iso_complete, urb->context); urb 1234 drivers/isdn/hardware/mISDN/hfcsusb.c errcode = urb->iso_frame_desc[k].status; urb 1286 drivers/isdn/hardware/mISDN/hfcsusb.c urb->iso_frame_desc[k].offset = tx_offset; urb 1287 drivers/isdn/hardware/mISDN/hfcsusb.c urb->iso_frame_desc[k].length = current_len + 1; urb 1296 drivers/isdn/hardware/mISDN/hfcsusb.c urb->iso_frame_desc[k].offset, urb 1297 drivers/isdn/hardware/mISDN/hfcsusb.c urb->iso_frame_desc[k].length); urb 1299 drivers/isdn/hardware/mISDN/hfcsusb.c for (i = urb->iso_frame_desc[k].offset; urb 1300 drivers/isdn/hardware/mISDN/hfcsusb.c i < (urb->iso_frame_desc[k].offset urb 1301 drivers/isdn/hardware/mISDN/hfcsusb.c + urb->iso_frame_desc[k].length); urb 1312 drivers/isdn/hardware/mISDN/hfcsusb.c urb->iso_frame_desc[k].offset = tx_offset++; urb 1313 drivers/isdn/hardware/mISDN/hfcsusb.c urb->iso_frame_desc[k].length = 1; urb 1344 drivers/isdn/hardware/mISDN/hfcsusb.c errcode = usb_submit_urb(urb, GFP_ATOMIC); urb 1390 drivers/isdn/hardware/mISDN/hfcsusb.c if (!(fifo->iso[i].urb)) { urb 1391 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->iso[i].urb = urb 1393 drivers/isdn/hardware/mISDN/hfcsusb.c if (!(fifo->iso[i].urb)) { urb 1406 drivers/isdn/hardware/mISDN/hfcsusb.c fill_isoc_urb(fifo->iso[i].urb, urb 1417 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->iso[i].urb-> urb 1420 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->iso[i].urb-> urb 1432 drivers/isdn/hardware/mISDN/hfcsusb.c errcode = usb_submit_urb(fifo->iso[i].urb, GFP_KERNEL); urb 1503 drivers/isdn/hardware/mISDN/hfcsusb.c if (!fifo->urb) { urb 1504 drivers/isdn/hardware/mISDN/hfcsusb.c fifo->urb = usb_alloc_urb(0, GFP_KERNEL); urb 1505 drivers/isdn/hardware/mISDN/hfcsusb.c if (!fifo->urb) urb 1508 drivers/isdn/hardware/mISDN/hfcsusb.c usb_fill_int_urb(fifo->urb, fifo->hw->dev, fifo->pipe, urb 1513 drivers/isdn/hardware/mISDN/hfcsusb.c errcode = usb_submit_urb(fifo->urb, GFP_KERNEL); urb 238 drivers/isdn/hardware/mISDN/hfcsusb.h struct urb *urb; urb 256 drivers/isdn/hardware/mISDN/hfcsusb.h struct urb *urb; /* transfer structure for usb routines */ urb 290 drivers/isdn/hardware/mISDN/hfcsusb.h struct urb *ctrl_urb; urb 128 drivers/media/dvb-frontends/rtl2832_sdr.c struct urb *urb_list[MAX_BULK_BUFS]; urb 217 drivers/media/dvb-frontends/rtl2832_sdr.c static void rtl2832_sdr_urb_complete(struct urb *urb) urb 219 drivers/media/dvb-frontends/rtl2832_sdr.c struct rtl2832_sdr_dev *dev = urb->context; urb 224 drivers/media/dvb-frontends/rtl2832_sdr.c urb->status, urb->actual_length, urb 225 drivers/media/dvb-frontends/rtl2832_sdr.c urb->transfer_buffer_length, urb->error_count); urb 227 drivers/media/dvb-frontends/rtl2832_sdr.c switch (urb->status) { urb 236 drivers/media/dvb-frontends/rtl2832_sdr.c dev_err_ratelimited(&pdev->dev, "urb failed=%d\n", urb->status); urb 240 drivers/media/dvb-frontends/rtl2832_sdr.c if (likely(urb->actual_length > 0)) { urb 255 drivers/media/dvb-frontends/rtl2832_sdr.c len = rtl2832_sdr_convert_stream(dev, ptr, urb->transfer_buffer, urb 256 drivers/media/dvb-frontends/rtl2832_sdr.c urb->actual_length); urb 263 drivers/media/dvb-frontends/rtl2832_sdr.c usb_submit_urb(urb, GFP_ATOMIC); urb 362 drivers/media/radio/si470x/radio-si470x-usb.c static void si470x_int_in_callback(struct urb *urb) urb 364 drivers/media/radio/si470x/radio-si470x-usb.c struct si470x_device *radio = urb->context; urb 372 drivers/media/radio/si470x/radio-si470x-usb.c if (urb->status) { urb 373 drivers/media/radio/si470x/radio-si470x-usb.c if (urb->status == -ENOENT || urb 374 drivers/media/radio/si470x/radio-si470x-usb.c urb->status == -ECONNRESET || urb 375 drivers/media/radio/si470x/radio-si470x-usb.c urb->status == -ESHUTDOWN) { urb 379 drivers/media/radio/si470x/radio-si470x-usb.c "non-zero urb status (%d)\n", urb->status); urb 385 drivers/media/radio/si470x/radio-si470x-usb.c if (urb->actual_length != RDS_REPORT_SIZE) urb 173 drivers/media/radio/si470x/radio-si470x.h struct urb *int_in_urb; urb 238 drivers/media/rc/ati_remote.c struct urb *irq_urb; urb 239 drivers/media/rc/ati_remote.c struct urb *out_urb; urb 383 drivers/media/rc/ati_remote.c static void ati_remote_irq_out(struct urb *urb) urb 385 drivers/media/rc/ati_remote.c struct ati_remote *ati_remote = urb->context; urb 387 drivers/media/rc/ati_remote.c if (urb->status) { urb 389 drivers/media/rc/ati_remote.c __func__, urb->status); urb 479 drivers/media/rc/ati_remote.c static void ati_remote_input_report(struct urb *urb) urb 481 drivers/media/rc/ati_remote.c struct ati_remote *ati_remote = urb->context; urb 498 drivers/media/rc/ati_remote.c if ( urb->actual_length != 4 || data[0] != 0x14 || urb 501 drivers/media/rc/ati_remote.c ati_remote_dump(&urb->dev->dev, data, urb->actual_length); urb 652 drivers/media/rc/ati_remote.c static void ati_remote_irq_in(struct urb *urb) urb 654 drivers/media/rc/ati_remote.c struct ati_remote *ati_remote = urb->context; urb 657 drivers/media/rc/ati_remote.c switch (urb->status) { urb 659 drivers/media/rc/ati_remote.c ati_remote_input_report(urb); urb 671 drivers/media/rc/ati_remote.c __func__, urb->status); urb 674 drivers/media/rc/ati_remote.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 36 drivers/media/rc/igorplugusb.c struct urb *urb; urb 92 drivers/media/rc/igorplugusb.c static void igorplugusb_callback(struct urb *urb) urb 95 drivers/media/rc/igorplugusb.c struct igorplugusb *ir = urb->context; urb 97 drivers/media/rc/igorplugusb.c req = (struct usb_ctrlrequest *)urb->setup_packet; urb 99 drivers/media/rc/igorplugusb.c switch (urb->status) { urb 102 drivers/media/rc/igorplugusb.c urb->actual_length > HEADERLEN) urb 103 drivers/media/rc/igorplugusb.c igorplugusb_irdata(ir, urb->actual_length); urb 111 drivers/media/rc/igorplugusb.c usb_unlink_urb(urb); urb 114 drivers/media/rc/igorplugusb.c dev_warn(ir->dev, "Error: urb status = %d\n", urb->status); urb 125 drivers/media/rc/igorplugusb.c ir->urb->transfer_flags = 0; urb 126 drivers/media/rc/igorplugusb.c ret = usb_submit_urb(ir->urb, GFP_ATOMIC); urb 174 drivers/media/rc/igorplugusb.c ir->urb = usb_alloc_urb(0, GFP_KERNEL); urb 175 drivers/media/rc/igorplugusb.c if (!ir->urb) urb 178 drivers/media/rc/igorplugusb.c usb_fill_control_urb(ir->urb, udev, urb 222 drivers/media/rc/igorplugusb.c usb_free_urb(ir->urb); urb 235 drivers/media/rc/igorplugusb.c usb_kill_urb(ir->urb); urb 236 drivers/media/rc/igorplugusb.c usb_free_urb(ir->urb); urb 36 drivers/media/rc/iguanair.c struct urb *urb_in, *urb_out; urb 146 drivers/media/rc/iguanair.c static void iguanair_rx(struct urb *urb) urb 151 drivers/media/rc/iguanair.c if (!urb) urb 154 drivers/media/rc/iguanair.c ir = urb->context; urb 156 drivers/media/rc/iguanair.c usb_unlink_urb(urb); urb 160 drivers/media/rc/iguanair.c switch (urb->status) { urb 162 drivers/media/rc/iguanair.c process_ir_data(ir, urb->actual_length); urb 167 drivers/media/rc/iguanair.c usb_unlink_urb(urb); urb 171 drivers/media/rc/iguanair.c dev_dbg(ir->dev, "Error: urb status = %d\n", urb->status); urb 175 drivers/media/rc/iguanair.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 180 drivers/media/rc/iguanair.c static void iguanair_irq_out(struct urb *urb) urb 182 drivers/media/rc/iguanair.c struct iguanair *ir = urb->context; urb 184 drivers/media/rc/iguanair.c if (urb->status) urb 185 drivers/media/rc/iguanair.c dev_dbg(ir->dev, "Error: out urb status = %d\n", urb->status); urb 188 drivers/media/rc/iguanair.c if (urb->status == 0 && ir->packet->header.cmd == CMD_NOP) urb 55 drivers/media/rc/imon.c static void usb_rx_callback_intf0(struct urb *urb); urb 56 drivers/media/rc/imon.c static void usb_rx_callback_intf1(struct urb *urb); urb 57 drivers/media/rc/imon.c static void usb_tx_callback(struct urb *urb); urb 108 drivers/media/rc/imon.c struct urb *rx_urb_intf0; urb 109 drivers/media/rc/imon.c struct urb *rx_urb_intf1; urb 110 drivers/media/rc/imon.c struct urb *tx_urb; urb 1040 drivers/media/rc/imon.c static void usb_tx_callback(struct urb *urb) urb 1044 drivers/media/rc/imon.c if (!urb) urb 1046 drivers/media/rc/imon.c ictx = (struct imon_context *)urb->context; urb 1050 drivers/media/rc/imon.c ictx->tx.status = urb->status; urb 1544 drivers/media/rc/imon.c struct urb *urb, int intf) urb 1546 drivers/media/rc/imon.c int len = urb->actual_length; urb 1547 drivers/media/rc/imon.c unsigned char *buf = urb->transfer_buffer; urb 1705 drivers/media/rc/imon.c static void usb_rx_callback_intf0(struct urb *urb) urb 1710 drivers/media/rc/imon.c if (!urb) urb 1713 drivers/media/rc/imon.c ictx = (struct imon_context *)urb->context; urb 1725 drivers/media/rc/imon.c switch (urb->status) { urb 1733 drivers/media/rc/imon.c imon_incoming_packet(ictx, urb, intfnum); urb 1738 drivers/media/rc/imon.c __func__, urb->status); urb 1746 drivers/media/rc/imon.c static void usb_rx_callback_intf1(struct urb *urb) urb 1751 drivers/media/rc/imon.c if (!urb) urb 1754 drivers/media/rc/imon.c ictx = (struct imon_context *)urb->context; urb 1766 drivers/media/rc/imon.c switch (urb->status) { urb 1774 drivers/media/rc/imon.c imon_incoming_packet(ictx, urb, intfnum); urb 1779 drivers/media/rc/imon.c __func__, urb->status); urb 2172 drivers/media/rc/imon.c struct urb *rx_urb; urb 2173 drivers/media/rc/imon.c struct urb *tx_urb; urb 2269 drivers/media/rc/imon.c struct urb *rx_urb; urb 15 drivers/media/rc/imon_raw.c struct urb *ir_urb; urb 94 drivers/media/rc/imon_raw.c static void imon_ir_rx(struct urb *urb) urb 96 drivers/media/rc/imon_raw.c struct imon *imon = urb->context; urb 99 drivers/media/rc/imon_raw.c switch (urb->status) { urb 106 drivers/media/rc/imon_raw.c usb_unlink_urb(urb); urb 110 drivers/media/rc/imon_raw.c dev_dbg(imon->dev, "error: urb status = %d", urb->status); urb 114 drivers/media/rc/imon_raw.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 466 drivers/media/rc/mceusb.c struct urb *urb_in; urb 790 drivers/media/rc/mceusb.c static void mce_write_callback(struct urb *urb) urb 792 drivers/media/rc/mceusb.c if (!urb) urb 795 drivers/media/rc/mceusb.c complete(urb->context); urb 807 drivers/media/rc/mceusb.c struct urb *urb; urb 816 drivers/media/rc/mceusb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 817 drivers/media/rc/mceusb.c if (unlikely(!urb)) { urb 824 drivers/media/rc/mceusb.c usb_free_urb(urb); urb 832 drivers/media/rc/mceusb.c usb_fill_int_urb(urb, ir->usbdev, ir->pipe_out, urb 836 drivers/media/rc/mceusb.c usb_fill_bulk_urb(urb, ir->usbdev, ir->pipe_out, urb 840 drivers/media/rc/mceusb.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 844 drivers/media/rc/mceusb.c usb_free_urb(urb); urb 853 drivers/media/rc/mceusb.c usb_kill_urb(urb); urb 854 drivers/media/rc/mceusb.c ret = (urb->status == -ENOENT ? -ETIMEDOUT : urb->status); urb 856 drivers/media/rc/mceusb.c ret = urb->status; urb 859 drivers/media/rc/mceusb.c ret = urb->actual_length; /* bytes written */ urb 861 drivers/media/rc/mceusb.c switch (urb->status) { urb 874 drivers/media/rc/mceusb.c urb->status); urb 880 drivers/media/rc/mceusb.c urb->status); urb 886 drivers/media/rc/mceusb.c urb->actual_length, urb->status); urb 889 drivers/media/rc/mceusb.c usb_free_urb(urb); urb 1360 drivers/media/rc/mceusb.c static void mceusb_dev_recv(struct urb *urb) urb 1364 drivers/media/rc/mceusb.c if (!urb) urb 1367 drivers/media/rc/mceusb.c ir = urb->context; urb 1369 drivers/media/rc/mceusb.c usb_unlink_urb(urb); urb 1373 drivers/media/rc/mceusb.c switch (urb->status) { urb 1376 drivers/media/rc/mceusb.c mceusb_process_ir_data(ir, urb->actual_length); urb 1383 drivers/media/rc/mceusb.c usb_unlink_urb(urb); urb 1388 drivers/media/rc/mceusb.c urb->status); urb 1393 drivers/media/rc/mceusb.c dev_err(ir->dev, "Error: urb status = %d", urb->status); urb 1397 drivers/media/rc/mceusb.c usb_submit_urb(urb, GFP_ATOMIC); urb 197 drivers/media/rc/redrat3.c struct urb *flash_urb; urb 203 drivers/media/rc/redrat3.c struct urb *learn_urb; urb 214 drivers/media/rc/redrat3.c struct urb *narrow_urb; urb 215 drivers/media/rc/redrat3.c struct urb *wide_urb; urb 689 drivers/media/rc/redrat3.c static void redrat3_handle_async(struct urb *urb) urb 691 drivers/media/rc/redrat3.c struct redrat3_dev *rr3 = urb->context; urb 694 drivers/media/rc/redrat3.c switch (urb->status) { urb 696 drivers/media/rc/redrat3.c ret = redrat3_get_ir_data(rr3, urb->actual_length); urb 706 drivers/media/rc/redrat3.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 716 drivers/media/rc/redrat3.c usb_unlink_urb(urb); urb 721 drivers/media/rc/redrat3.c dev_warn(rr3->dev, "Error: urb status = %d\n", urb->status); urb 886 drivers/media/rc/redrat3.c static void redrat3_learn_complete(struct urb *urb) urb 888 drivers/media/rc/redrat3.c struct redrat3_dev *rr3 = urb->context; urb 890 drivers/media/rc/redrat3.c switch (urb->status) { urb 896 drivers/media/rc/redrat3.c usb_unlink_urb(urb); urb 900 drivers/media/rc/redrat3.c dev_err(rr3->dev, "Error: learn urb status = %d", urb->status); urb 905 drivers/media/rc/redrat3.c static void redrat3_led_complete(struct urb *urb) urb 907 drivers/media/rc/redrat3.c struct redrat3_dev *rr3 = urb->context; urb 909 drivers/media/rc/redrat3.c switch (urb->status) { urb 915 drivers/media/rc/redrat3.c usb_unlink_urb(urb); urb 919 drivers/media/rc/redrat3.c dev_dbg(rr3->dev, "Error: urb status = %d\n", urb->status); urb 73 drivers/media/rc/streamzap.c struct urb *urb_in; urb 100 drivers/media/rc/streamzap.c static void streamzap_callback(struct urb *urb); urb 191 drivers/media/rc/streamzap.c static void streamzap_callback(struct urb *urb) urb 197 drivers/media/rc/streamzap.c if (!urb) urb 200 drivers/media/rc/streamzap.c sz = urb->context; urb 201 drivers/media/rc/streamzap.c len = urb->actual_length; urb 203 drivers/media/rc/streamzap.c switch (urb->status) { urb 211 drivers/media/rc/streamzap.c dev_err(sz->dev, "urb terminated, status: %d\n", urb->status); urb 270 drivers/media/rc/streamzap.c usb_submit_urb(urb, GFP_ATOMIC); urb 31 drivers/media/rc/ttusbir.c struct urb *urb[NUM_URBS]; urb 34 drivers/media/rc/ttusbir.c struct urb *bulk_urb; urb 81 drivers/media/rc/ttusbir.c static void ttusbir_bulk_complete(struct urb *urb) urb 83 drivers/media/rc/ttusbir.c struct ttusbir *tt = urb->context; urb 87 drivers/media/rc/ttusbir.c switch (urb->status) { urb 93 drivers/media/rc/ttusbir.c usb_unlink_urb(urb); urb 97 drivers/media/rc/ttusbir.c dev_dbg(tt->dev, "Error: urb status = %d\n", urb->status); urb 157 drivers/media/rc/ttusbir.c static void ttusbir_urb_complete(struct urb *urb) urb 159 drivers/media/rc/ttusbir.c struct ttusbir *tt = urb->context; urb 162 drivers/media/rc/ttusbir.c switch (urb->status) { urb 164 drivers/media/rc/ttusbir.c ttusbir_process_ir_data(tt, urb->transfer_buffer); urb 169 drivers/media/rc/ttusbir.c usb_unlink_urb(urb); urb 173 drivers/media/rc/ttusbir.c dev_dbg(tt->dev, "Error: urb status = %d\n", urb->status); urb 177 drivers/media/rc/ttusbir.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 241 drivers/media/rc/ttusbir.c struct urb *urb = usb_alloc_urb(8, GFP_KERNEL); urb 244 drivers/media/rc/ttusbir.c if (!urb) { urb 249 drivers/media/rc/ttusbir.c urb->dev = tt->udev; urb 250 drivers/media/rc/ttusbir.c urb->context = tt; urb 251 drivers/media/rc/ttusbir.c urb->pipe = usb_rcvisocpipe(tt->udev, tt->iso_in_endp); urb 252 drivers/media/rc/ttusbir.c urb->interval = 1; urb 254 drivers/media/rc/ttusbir.c &urb->transfer_dma); urb 256 drivers/media/rc/ttusbir.c usb_free_urb(urb); urb 260 drivers/media/rc/ttusbir.c urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP | URB_ISO_ASAP; urb 261 drivers/media/rc/ttusbir.c urb->transfer_buffer = buffer; urb 262 drivers/media/rc/ttusbir.c urb->complete = ttusbir_urb_complete; urb 263 drivers/media/rc/ttusbir.c urb->number_of_packets = 8; urb 264 drivers/media/rc/ttusbir.c urb->transfer_buffer_length = 128; urb 267 drivers/media/rc/ttusbir.c urb->iso_frame_desc[j].offset = j * 16; urb 268 drivers/media/rc/ttusbir.c urb->iso_frame_desc[j].length = 16; urb 271 drivers/media/rc/ttusbir.c tt->urb[i] = urb; urb 328 drivers/media/rc/ttusbir.c ret = usb_submit_urb(tt->urb[i], GFP_KERNEL); urb 343 drivers/media/rc/ttusbir.c for (i = 0; i < NUM_URBS && tt->urb[i]; i++) { urb 344 drivers/media/rc/ttusbir.c struct urb *urb = tt->urb[i]; urb 346 drivers/media/rc/ttusbir.c usb_kill_urb(urb); urb 347 drivers/media/rc/ttusbir.c usb_free_coherent(tt->udev, 128, urb->transfer_buffer, urb 348 drivers/media/rc/ttusbir.c urb->transfer_dma); urb 349 drivers/media/rc/ttusbir.c usb_free_urb(urb); urb 371 drivers/media/rc/ttusbir.c usb_kill_urb(tt->urb[i]); urb 372 drivers/media/rc/ttusbir.c usb_free_coherent(udev, 128, tt->urb[i]->transfer_buffer, urb 373 drivers/media/rc/ttusbir.c tt->urb[i]->transfer_dma); urb 374 drivers/media/rc/ttusbir.c usb_free_urb(tt->urb[i]); urb 388 drivers/media/rc/ttusbir.c usb_kill_urb(tt->urb[i]); urb 405 drivers/media/rc/ttusbir.c rc = usb_submit_urb(tt->urb[i], GFP_KERNEL); urb 57 drivers/media/rc/xbox_remote.c struct urb *irq_urb; urb 89 drivers/media/rc/xbox_remote.c static void xbox_remote_input_report(struct urb *urb) urb 91 drivers/media/rc/xbox_remote.c struct xbox_remote *xbox_remote = urb->context; urb 104 drivers/media/rc/xbox_remote.c if (urb->actual_length != 6 || urb->actual_length != data[1]) { urb 105 drivers/media/rc/xbox_remote.c dev_warn(&urb->dev->dev, "Weird data, len=%d: %*ph\n", urb 106 drivers/media/rc/xbox_remote.c urb->actual_length, urb->actual_length, data); urb 117 drivers/media/rc/xbox_remote.c static void xbox_remote_irq_in(struct urb *urb) urb 119 drivers/media/rc/xbox_remote.c struct xbox_remote *xbox_remote = urb->context; urb 122 drivers/media/rc/xbox_remote.c switch (urb->status) { urb 124 drivers/media/rc/xbox_remote.c xbox_remote_input_report(urb); urb 136 drivers/media/rc/xbox_remote.c __func__, urb->status); urb 139 drivers/media/rc/xbox_remote.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 116 drivers/media/usb/airspy/airspy.c struct urb *urb_list[MAX_BULK_BUFS]; urb 267 drivers/media/usb/airspy/airspy.c static void airspy_urb_complete(struct urb *urb) urb 269 drivers/media/usb/airspy/airspy.c struct airspy *s = urb->context; urb 273 drivers/media/usb/airspy/airspy.c urb->status, urb->actual_length, urb 274 drivers/media/usb/airspy/airspy.c urb->transfer_buffer_length, urb->error_count); urb 276 drivers/media/usb/airspy/airspy.c switch (urb->status) { urb 285 drivers/media/usb/airspy/airspy.c dev_err_ratelimited(s->dev, "URB failed %d\n", urb->status); urb 289 drivers/media/usb/airspy/airspy.c if (likely(urb->actual_length > 0)) { urb 304 drivers/media/usb/airspy/airspy.c len = airspy_convert_stream(s, ptr, urb->transfer_buffer, urb 305 drivers/media/usb/airspy/airspy.c urb->actual_length); urb 312 drivers/media/usb/airspy/airspy.c usb_submit_urb(urb, GFP_ATOMIC); urb 68 drivers/media/usb/as102/as102_drv.h struct urb *stream_urb[MAX_STREAM_URB]; urb 191 drivers/media/usb/as102/as102_usb_drv.c static int as102_submit_urb_stream(struct as102_dev_t *dev, struct urb *urb) urb 195 drivers/media/usb/as102/as102_usb_drv.c usb_fill_bulk_urb(urb, urb 198 drivers/media/usb/as102/as102_usb_drv.c urb->transfer_buffer, urb 203 drivers/media/usb/as102/as102_usb_drv.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 205 drivers/media/usb/as102/as102_usb_drv.c dev_dbg(&urb->dev->dev, urb 211 drivers/media/usb/as102/as102_usb_drv.c void as102_urb_stream_irq(struct urb *urb) urb 213 drivers/media/usb/as102/as102_usb_drv.c struct as102_dev_t *as102_dev = urb->context; urb 215 drivers/media/usb/as102/as102_usb_drv.c if (urb->actual_length > 0) { urb 217 drivers/media/usb/as102/as102_usb_drv.c urb->transfer_buffer, urb 218 drivers/media/usb/as102/as102_usb_drv.c urb->actual_length); urb 220 drivers/media/usb/as102/as102_usb_drv.c if (urb->actual_length == 0) urb 221 drivers/media/usb/as102/as102_usb_drv.c memset(urb->transfer_buffer, 0, AS102_USB_BUF_SIZE); urb 226 drivers/media/usb/as102/as102_usb_drv.c as102_submit_urb_stream(as102_dev, urb); urb 260 drivers/media/usb/as102/as102_usb_drv.c struct urb *urb; urb 262 drivers/media/usb/as102/as102_usb_drv.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 263 drivers/media/usb/as102/as102_usb_drv.c if (urb == NULL) { urb 268 drivers/media/usb/as102/as102_usb_drv.c urb->transfer_buffer = dev->stream + (i * AS102_USB_BUF_SIZE); urb 269 drivers/media/usb/as102/as102_usb_drv.c urb->transfer_dma = dev->dma_addr + (i * AS102_USB_BUF_SIZE); urb 270 drivers/media/usb/as102/as102_usb_drv.c urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urb 271 drivers/media/usb/as102/as102_usb_drv.c urb->transfer_buffer_length = AS102_USB_BUF_SIZE; urb 273 drivers/media/usb/as102/as102_usb_drv.c dev->stream_urb[i] = urb; urb 40 drivers/media/usb/as102/as102_usb_drv.h void as102_urb_stream_irq(struct urb *urb); urb 108 drivers/media/usb/au0828/au0828-dvb.c static void urb_completion(struct urb *purb) urb 190 drivers/media/usb/au0828/au0828-dvb.c struct urb *purb; urb 110 drivers/media/usb/au0828/au0828-video.c static void au0828_irq_callback(struct urb *urb) urb 112 drivers/media/usb/au0828/au0828-video.c struct au0828_dmaqueue *dma_q = urb->context; urb 117 drivers/media/usb/au0828/au0828-video.c switch (urb->status) { urb 127 drivers/media/usb/au0828/au0828-video.c au0828_isocdbg("urb completion error %d.\n", urb->status); urb 133 drivers/media/usb/au0828/au0828-video.c dev->isoc_ctl.isoc_copy(dev, urb); urb 137 drivers/media/usb/au0828/au0828-video.c for (i = 0; i < urb->number_of_packets; i++) { urb 138 drivers/media/usb/au0828/au0828-video.c urb->iso_frame_desc[i].status = 0; urb 139 drivers/media/usb/au0828/au0828-video.c urb->iso_frame_desc[i].actual_length = 0; urb 141 drivers/media/usb/au0828/au0828-video.c urb->status = 0; urb 143 drivers/media/usb/au0828/au0828-video.c urb->status = usb_submit_urb(urb, GFP_ATOMIC); urb 144 drivers/media/usb/au0828/au0828-video.c if (urb->status) { urb 146 drivers/media/usb/au0828/au0828-video.c urb->status); urb 156 drivers/media/usb/au0828/au0828-video.c struct urb *urb; urb 163 drivers/media/usb/au0828/au0828-video.c urb = dev->isoc_ctl.urb[i]; urb 164 drivers/media/usb/au0828/au0828-video.c if (urb) { urb 166 drivers/media/usb/au0828/au0828-video.c usb_kill_urb(urb); urb 168 drivers/media/usb/au0828/au0828-video.c usb_unlink_urb(urb); urb 172 drivers/media/usb/au0828/au0828-video.c urb->transfer_buffer_length, urb 174 drivers/media/usb/au0828/au0828-video.c urb->transfer_dma); urb 176 drivers/media/usb/au0828/au0828-video.c usb_free_urb(urb); urb 177 drivers/media/usb/au0828/au0828-video.c dev->isoc_ctl.urb[i] = NULL; urb 182 drivers/media/usb/au0828/au0828-video.c kfree(dev->isoc_ctl.urb); urb 185 drivers/media/usb/au0828/au0828-video.c dev->isoc_ctl.urb = NULL; urb 197 drivers/media/usb/au0828/au0828-video.c int (*isoc_copy) (struct au0828_dev *dev, struct urb *urb)) urb 202 drivers/media/usb/au0828/au0828-video.c struct urb *urb; urb 211 drivers/media/usb/au0828/au0828-video.c dev->isoc_ctl.urb = kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); urb 212 drivers/media/usb/au0828/au0828-video.c if (!dev->isoc_ctl.urb) { urb 221 drivers/media/usb/au0828/au0828-video.c kfree(dev->isoc_ctl.urb); urb 232 drivers/media/usb/au0828/au0828-video.c urb = usb_alloc_urb(max_packets, GFP_KERNEL); urb 233 drivers/media/usb/au0828/au0828-video.c if (!urb) { urb 237 drivers/media/usb/au0828/au0828-video.c dev->isoc_ctl.urb[i] = urb; urb 240 drivers/media/usb/au0828/au0828-video.c sb_size, GFP_KERNEL, &urb->transfer_dma); urb 253 drivers/media/usb/au0828/au0828-video.c usb_fill_int_urb(urb, dev->usbdev, pipe, urb 257 drivers/media/usb/au0828/au0828-video.c urb->number_of_packets = max_packets; urb 258 drivers/media/usb/au0828/au0828-video.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 262 drivers/media/usb/au0828/au0828-video.c urb->iso_frame_desc[j].offset = k; urb 263 drivers/media/usb/au0828/au0828-video.c urb->iso_frame_desc[j].length = urb 271 drivers/media/usb/au0828/au0828-video.c rc = usb_submit_urb(dev->isoc_ctl.urb[i], GFP_ATOMIC); urb 490 drivers/media/usb/au0828/au0828-video.c static inline int au0828_isoc_copy(struct au0828_dev *dev, struct urb *urb) urb 494 drivers/media/usb/au0828/au0828-video.c struct au0828_dmaqueue *dma_q = urb->context; urb 511 drivers/media/usb/au0828/au0828-video.c if (urb->status < 0) { urb 512 drivers/media/usb/au0828/au0828-video.c print_err_status(dev, -1, urb->status); urb 513 drivers/media/usb/au0828/au0828-video.c if (urb->status == -ENOENT) urb 525 drivers/media/usb/au0828/au0828-video.c for (i = 0; i < urb->number_of_packets; i++) { urb 526 drivers/media/usb/au0828/au0828-video.c int status = urb->iso_frame_desc[i].status; urb 530 drivers/media/usb/au0828/au0828-video.c if (urb->iso_frame_desc[i].status != -EPROTO) urb 534 drivers/media/usb/au0828/au0828-video.c if (urb->iso_frame_desc[i].actual_length <= 0) urb 537 drivers/media/usb/au0828/au0828-video.c if (urb->iso_frame_desc[i].actual_length > urb 543 drivers/media/usb/au0828/au0828-video.c p = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 545 drivers/media/usb/au0828/au0828-video.c len = urb->iso_frame_desc[i].actual_length - 4; urb 1681 drivers/media/usb/au0828/au0828-video.c struct urb *urb; urb 1691 drivers/media/usb/au0828/au0828-video.c urb = dev->isoc_ctl.urb[i]; urb 1692 drivers/media/usb/au0828/au0828-video.c if (urb) { urb 1694 drivers/media/usb/au0828/au0828-video.c usb_kill_urb(urb); urb 1696 drivers/media/usb/au0828/au0828-video.c usb_unlink_urb(urb); urb 1732 drivers/media/usb/au0828/au0828-video.c rc = usb_submit_urb(dev->isoc_ctl.urb[i], GFP_ATOMIC); urb 126 drivers/media/usb/au0828/au0828.h struct urb **urb; urb 150 drivers/media/usb/au0828/au0828.h int (*isoc_copy) (struct au0828_dev *dev, struct urb *urb); urb 256 drivers/media/usb/au0828/au0828.h struct urb *urb[AU0828_MAX_ISO_BUFS]; /* urb for isoc transfers */ urb 262 drivers/media/usb/au0828/au0828.h struct urb *urbs[URB_COUNT]; urb 377 drivers/media/usb/b2c2/flexcop-usb.c static void flexcop_usb_urb_complete(struct urb *urb) urb 379 drivers/media/usb/b2c2/flexcop-usb.c struct flexcop_usb *fc_usb = urb->context; urb 382 drivers/media/usb/b2c2/flexcop-usb.c if (urb->actual_length > 0) urb 384 drivers/media/usb/b2c2/flexcop-usb.c urb->transfer_buffer_length, urb->actual_length); urb 386 drivers/media/usb/b2c2/flexcop-usb.c for (i = 0; i < urb->number_of_packets; i++) { urb 387 drivers/media/usb/b2c2/flexcop-usb.c if (urb->iso_frame_desc[i].status < 0) { urb 389 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[i].status); urb 391 drivers/media/usb/b2c2/flexcop-usb.c if (urb->iso_frame_desc[i].actual_length > 0) { urb 393 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[i].actual_length); urb 396 drivers/media/usb/b2c2/flexcop-usb.c urb->transfer_buffer + urb 397 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[i].offset, urb 398 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[i].actual_length); urb 400 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[i].status = 0; urb 401 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[i].actual_length = 0; urb 403 drivers/media/usb/b2c2/flexcop-usb.c usb_submit_urb(urb,GFP_ATOMIC); urb 461 drivers/media/usb/b2c2/flexcop-usb.c struct urb *urb = fc_usb->iso_urb[i]; urb 465 drivers/media/usb/b2c2/flexcop-usb.c urb->dev = fc_usb->udev; urb 466 drivers/media/usb/b2c2/flexcop-usb.c urb->context = fc_usb; urb 467 drivers/media/usb/b2c2/flexcop-usb.c urb->complete = flexcop_usb_urb_complete; urb 468 drivers/media/usb/b2c2/flexcop-usb.c urb->pipe = B2C2_USB_DATA_PIPE; urb 469 drivers/media/usb/b2c2/flexcop-usb.c urb->transfer_flags = URB_ISO_ASAP; urb 470 drivers/media/usb/b2c2/flexcop-usb.c urb->interval = 1; urb 471 drivers/media/usb/b2c2/flexcop-usb.c urb->number_of_packets = B2C2_USB_FRAMES_PER_ISO; urb 472 drivers/media/usb/b2c2/flexcop-usb.c urb->transfer_buffer_length = frame_size * B2C2_USB_FRAMES_PER_ISO; urb 473 drivers/media/usb/b2c2/flexcop-usb.c urb->transfer_buffer = fc_usb->iso_buffer + buffer_offset; urb 479 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[j].offset = frame_offset; urb 480 drivers/media/usb/b2c2/flexcop-usb.c urb->iso_frame_desc[j].length = frame_size; urb 28 drivers/media/usb/b2c2/flexcop-usb.h struct urb *iso_urb[B2C2_USB_NUM_ISO_URB]; urb 340 drivers/media/usb/cpia2/cpia2.h struct urb *urb; urb 40 drivers/media/usb/cpia2/cpia2_usb.c static void cpia2_usb_complete(struct urb *urb); urb 195 drivers/media/usb/cpia2/cpia2_usb.c static void cpia2_usb_complete(struct urb *urb) urb 200 drivers/media/usb/cpia2/cpia2_usb.c struct camera_data *cam = (struct camera_data *) urb->context; urb 202 drivers/media/usb/cpia2/cpia2_usb.c if (urb->status!=0) { urb 203 drivers/media/usb/cpia2/cpia2_usb.c if (!(urb->status == -ENOENT || urb 204 drivers/media/usb/cpia2/cpia2_usb.c urb->status == -ECONNRESET || urb 205 drivers/media/usb/cpia2/cpia2_usb.c urb->status == -ESHUTDOWN)) urb 207 drivers/media/usb/cpia2/cpia2_usb.c DBG("urb->status = %d!\n", urb->status); urb 223 drivers/media/usb/cpia2/cpia2_usb.c for (i = 0; i < urb->number_of_packets; i++) { urb 226 drivers/media/usb/cpia2/cpia2_usb.c int n = urb->iso_frame_desc[i].actual_length; urb 227 drivers/media/usb/cpia2/cpia2_usb.c int st = urb->iso_frame_desc[i].status; urb 256 drivers/media/usb/cpia2/cpia2_usb.c cdata = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 360 drivers/media/usb/cpia2/cpia2_usb.c urb->dev = cam->dev; urb 361 drivers/media/usb/cpia2/cpia2_usb.c if ((i = usb_submit_urb(urb, GFP_ATOMIC)) != 0) urb 512 drivers/media/usb/cpia2/cpia2_usb.c if(cam->sbuf[i].urb) { urb 513 drivers/media/usb/cpia2/cpia2_usb.c usb_kill_urb(cam->sbuf[i].urb); urb 514 drivers/media/usb/cpia2/cpia2_usb.c usb_free_urb(cam->sbuf[i].urb); urb 515 drivers/media/usb/cpia2/cpia2_usb.c cam->sbuf[i].urb = NULL; urb 650 drivers/media/usb/cpia2/cpia2_usb.c struct urb *urb; urb 672 drivers/media/usb/cpia2/cpia2_usb.c if(cam->sbuf[i].urb) { urb 675 drivers/media/usb/cpia2/cpia2_usb.c urb = usb_alloc_urb(FRAMES_PER_DESC, GFP_KERNEL); urb 676 drivers/media/usb/cpia2/cpia2_usb.c if (!urb) { urb 678 drivers/media/usb/cpia2/cpia2_usb.c usb_free_urb(cam->sbuf[j].urb); urb 686 drivers/media/usb/cpia2/cpia2_usb.c cam->sbuf[i].urb = urb; urb 687 drivers/media/usb/cpia2/cpia2_usb.c urb->dev = cam->dev; urb 688 drivers/media/usb/cpia2/cpia2_usb.c urb->context = cam; urb 689 drivers/media/usb/cpia2/cpia2_usb.c urb->pipe = usb_rcvisocpipe(cam->dev, 1 /*ISOC endpoint*/); urb 690 drivers/media/usb/cpia2/cpia2_usb.c urb->transfer_flags = URB_ISO_ASAP; urb 691 drivers/media/usb/cpia2/cpia2_usb.c urb->transfer_buffer = cam->sbuf[i].data; urb 692 drivers/media/usb/cpia2/cpia2_usb.c urb->complete = cpia2_usb_complete; urb 693 drivers/media/usb/cpia2/cpia2_usb.c urb->number_of_packets = FRAMES_PER_DESC; urb 694 drivers/media/usb/cpia2/cpia2_usb.c urb->interval = 1; urb 695 drivers/media/usb/cpia2/cpia2_usb.c urb->transfer_buffer_length = urb 699 drivers/media/usb/cpia2/cpia2_usb.c urb->iso_frame_desc[fx].offset = urb 701 drivers/media/usb/cpia2/cpia2_usb.c urb->iso_frame_desc[fx].length = FRAME_SIZE_PER_DESC; urb 708 drivers/media/usb/cpia2/cpia2_usb.c err = usb_submit_urb(cam->sbuf[i].urb, GFP_KERNEL); urb 1266 drivers/media/usb/cx231xx/cx231xx-417.c static void buffer_copy(struct cx231xx *dev, char *data, int len, struct urb *urb, urb 1325 drivers/media/usb/cx231xx/cx231xx-417.c static void buffer_filled(char *data, int len, struct urb *urb, urb 1347 drivers/media/usb/cx231xx/cx231xx-417.c static int cx231xx_isoc_copy(struct cx231xx *dev, struct urb *urb) urb 1349 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_dmaqueue *dma_q = urb->context; urb 1354 drivers/media/usb/cx231xx/cx231xx-417.c for (i = 0; i < urb->number_of_packets; i++) { urb 1357 drivers/media/usb/cx231xx/cx231xx-417.c dma_q->left_data_count, urb, dma_q); urb 1362 drivers/media/usb/cx231xx/cx231xx-417.c p_buffer = urb->transfer_buffer + urb 1363 drivers/media/usb/cx231xx/cx231xx-417.c urb->iso_frame_desc[i].offset; urb 1364 drivers/media/usb/cx231xx/cx231xx-417.c buffer_size = urb->iso_frame_desc[i].actual_length; urb 1367 drivers/media/usb/cx231xx/cx231xx-417.c buffer_copy(dev, p_buffer, buffer_size, urb, dma_q); urb 1373 drivers/media/usb/cx231xx/cx231xx-417.c static int cx231xx_bulk_copy(struct cx231xx *dev, struct urb *urb) urb 1375 drivers/media/usb/cx231xx/cx231xx-417.c struct cx231xx_dmaqueue *dma_q = urb->context; urb 1379 drivers/media/usb/cx231xx/cx231xx-417.c p_buffer = urb->transfer_buffer; urb 1380 drivers/media/usb/cx231xx/cx231xx-417.c buffer_size = urb->actual_length; urb 1391 drivers/media/usb/cx231xx/cx231xx-417.c buffer_filled(p_buffer, buffer_size, urb, dma_q); urb 40 drivers/media/usb/cx231xx/cx231xx-audio.c if (dev->adev.urb[i]) { urb 42 drivers/media/usb/cx231xx/cx231xx-audio.c usb_kill_urb(dev->adev.urb[i]); urb 44 drivers/media/usb/cx231xx/cx231xx-audio.c usb_unlink_urb(dev->adev.urb[i]); urb 46 drivers/media/usb/cx231xx/cx231xx-audio.c usb_free_urb(dev->adev.urb[i]); urb 47 drivers/media/usb/cx231xx/cx231xx-audio.c dev->adev.urb[i] = NULL; urb 64 drivers/media/usb/cx231xx/cx231xx-audio.c if (dev->adev.urb[i]) { urb 66 drivers/media/usb/cx231xx/cx231xx-audio.c usb_kill_urb(dev->adev.urb[i]); urb 68 drivers/media/usb/cx231xx/cx231xx-audio.c usb_unlink_urb(dev->adev.urb[i]); urb 70 drivers/media/usb/cx231xx/cx231xx-audio.c usb_free_urb(dev->adev.urb[i]); urb 71 drivers/media/usb/cx231xx/cx231xx-audio.c dev->adev.urb[i] = NULL; urb 81 drivers/media/usb/cx231xx/cx231xx-audio.c static void cx231xx_audio_isocirq(struct urb *urb) urb 83 drivers/media/usb/cx231xx/cx231xx-audio.c struct cx231xx *dev = urb->context; urb 96 drivers/media/usb/cx231xx/cx231xx-audio.c switch (urb->status) { urb 106 drivers/media/usb/cx231xx/cx231xx-audio.c urb->status); urb 118 drivers/media/usb/cx231xx/cx231xx-audio.c for (i = 0; i < urb->number_of_packets; i++) { urb 120 drivers/media/usb/cx231xx/cx231xx-audio.c int length = urb->iso_frame_desc[i].actual_length / urb 122 drivers/media/usb/cx231xx/cx231xx-audio.c cp = (unsigned char *)urb->transfer_buffer + urb 123 drivers/media/usb/cx231xx/cx231xx-audio.c urb->iso_frame_desc[i].offset; urb 162 drivers/media/usb/cx231xx/cx231xx-audio.c urb->status = 0; urb 164 drivers/media/usb/cx231xx/cx231xx-audio.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 173 drivers/media/usb/cx231xx/cx231xx-audio.c static void cx231xx_audio_bulkirq(struct urb *urb) urb 175 drivers/media/usb/cx231xx/cx231xx-audio.c struct cx231xx *dev = urb->context; urb 187 drivers/media/usb/cx231xx/cx231xx-audio.c switch (urb->status) { urb 197 drivers/media/usb/cx231xx/cx231xx-audio.c urb->status); urb 211 drivers/media/usb/cx231xx/cx231xx-audio.c int length = urb->actual_length / urb 213 drivers/media/usb/cx231xx/cx231xx-audio.c cp = (unsigned char *)urb->transfer_buffer; urb 249 drivers/media/usb/cx231xx/cx231xx-audio.c urb->status = 0; urb 251 drivers/media/usb/cx231xx/cx231xx-audio.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 274 drivers/media/usb/cx231xx/cx231xx-audio.c struct urb *urb; urb 282 drivers/media/usb/cx231xx/cx231xx-audio.c urb = usb_alloc_urb(CX231XX_ISO_NUM_AUDIO_PACKETS, GFP_ATOMIC); urb 283 drivers/media/usb/cx231xx/cx231xx-audio.c if (!urb) { urb 285 drivers/media/usb/cx231xx/cx231xx-audio.c usb_free_urb(dev->adev.urb[j]); urb 291 drivers/media/usb/cx231xx/cx231xx-audio.c urb->dev = dev->udev; urb 292 drivers/media/usb/cx231xx/cx231xx-audio.c urb->context = dev; urb 293 drivers/media/usb/cx231xx/cx231xx-audio.c urb->pipe = usb_rcvisocpipe(dev->udev, urb 295 drivers/media/usb/cx231xx/cx231xx-audio.c urb->transfer_flags = URB_ISO_ASAP; urb 296 drivers/media/usb/cx231xx/cx231xx-audio.c urb->transfer_buffer = dev->adev.transfer_buffer[i]; urb 297 drivers/media/usb/cx231xx/cx231xx-audio.c urb->interval = 1; urb 298 drivers/media/usb/cx231xx/cx231xx-audio.c urb->complete = cx231xx_audio_isocirq; urb 299 drivers/media/usb/cx231xx/cx231xx-audio.c urb->number_of_packets = CX231XX_ISO_NUM_AUDIO_PACKETS; urb 300 drivers/media/usb/cx231xx/cx231xx-audio.c urb->transfer_buffer_length = sb_size; urb 304 drivers/media/usb/cx231xx/cx231xx-audio.c urb->iso_frame_desc[j].offset = k; urb 305 drivers/media/usb/cx231xx/cx231xx-audio.c urb->iso_frame_desc[j].length = dev->adev.max_pkt_size; urb 307 drivers/media/usb/cx231xx/cx231xx-audio.c dev->adev.urb[i] = urb; urb 311 drivers/media/usb/cx231xx/cx231xx-audio.c errCode = usb_submit_urb(dev->adev.urb[i], GFP_ATOMIC); urb 335 drivers/media/usb/cx231xx/cx231xx-audio.c struct urb *urb; urb 343 drivers/media/usb/cx231xx/cx231xx-audio.c urb = usb_alloc_urb(CX231XX_NUM_AUDIO_PACKETS, GFP_ATOMIC); urb 344 drivers/media/usb/cx231xx/cx231xx-audio.c if (!urb) { urb 346 drivers/media/usb/cx231xx/cx231xx-audio.c usb_free_urb(dev->adev.urb[j]); urb 352 drivers/media/usb/cx231xx/cx231xx-audio.c urb->dev = dev->udev; urb 353 drivers/media/usb/cx231xx/cx231xx-audio.c urb->context = dev; urb 354 drivers/media/usb/cx231xx/cx231xx-audio.c urb->pipe = usb_rcvbulkpipe(dev->udev, urb 356 drivers/media/usb/cx231xx/cx231xx-audio.c urb->transfer_flags = 0; urb 357 drivers/media/usb/cx231xx/cx231xx-audio.c urb->transfer_buffer = dev->adev.transfer_buffer[i]; urb 358 drivers/media/usb/cx231xx/cx231xx-audio.c urb->complete = cx231xx_audio_bulkirq; urb 359 drivers/media/usb/cx231xx/cx231xx-audio.c urb->transfer_buffer_length = sb_size; urb 361 drivers/media/usb/cx231xx/cx231xx-audio.c dev->adev.urb[i] = urb; urb 366 drivers/media/usb/cx231xx/cx231xx-audio.c errCode = usb_submit_urb(dev->adev.urb[i], GFP_ATOMIC); urb 784 drivers/media/usb/cx231xx/cx231xx-core.c static void cx231xx_isoc_irq_callback(struct urb *urb) urb 786 drivers/media/usb/cx231xx/cx231xx-core.c struct cx231xx_dmaqueue *dma_q = urb->context; urb 793 drivers/media/usb/cx231xx/cx231xx-core.c switch (urb->status) { urb 802 drivers/media/usb/cx231xx/cx231xx-core.c cx231xx_isocdbg("urb completion error %d.\n", urb->status); urb 808 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.isoc_ctl.isoc_copy(dev, urb); urb 812 drivers/media/usb/cx231xx/cx231xx-core.c for (i = 0; i < urb->number_of_packets; i++) { urb 813 drivers/media/usb/cx231xx/cx231xx-core.c urb->iso_frame_desc[i].status = 0; urb 814 drivers/media/usb/cx231xx/cx231xx-core.c urb->iso_frame_desc[i].actual_length = 0; urb 817 drivers/media/usb/cx231xx/cx231xx-core.c urb->status = usb_submit_urb(urb, GFP_ATOMIC); urb 818 drivers/media/usb/cx231xx/cx231xx-core.c if (urb->status) { urb 820 drivers/media/usb/cx231xx/cx231xx-core.c urb->status); urb 830 drivers/media/usb/cx231xx/cx231xx-core.c static void cx231xx_bulk_irq_callback(struct urb *urb) urb 832 drivers/media/usb/cx231xx/cx231xx-core.c struct cx231xx_dmaqueue *dma_q = urb->context; urb 838 drivers/media/usb/cx231xx/cx231xx-core.c switch (urb->status) { urb 850 drivers/media/usb/cx231xx/cx231xx-core.c cx231xx_isocdbg("urb completion error %d.\n", urb->status); urb 856 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.bulk_ctl.bulk_copy(dev, urb); urb 860 drivers/media/usb/cx231xx/cx231xx-core.c urb->status = usb_submit_urb(urb, GFP_ATOMIC); urb 861 drivers/media/usb/cx231xx/cx231xx-core.c if (urb->status) { urb 863 drivers/media/usb/cx231xx/cx231xx-core.c urb->status); urb 872 drivers/media/usb/cx231xx/cx231xx-core.c struct urb *urb; urb 880 drivers/media/usb/cx231xx/cx231xx-core.c urb = dev->video_mode.isoc_ctl.urb[i]; urb 881 drivers/media/usb/cx231xx/cx231xx-core.c if (urb) { urb 883 drivers/media/usb/cx231xx/cx231xx-core.c usb_kill_urb(urb); urb 885 drivers/media/usb/cx231xx/cx231xx-core.c usb_unlink_urb(urb); urb 889 drivers/media/usb/cx231xx/cx231xx-core.c urb->transfer_buffer_length, urb 892 drivers/media/usb/cx231xx/cx231xx-core.c urb->transfer_dma); urb 894 drivers/media/usb/cx231xx/cx231xx-core.c if (urb->status == -EPIPE) { urb 897 drivers/media/usb/cx231xx/cx231xx-core.c usb_free_urb(urb); urb 898 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.isoc_ctl.urb[i] = NULL; urb 907 drivers/media/usb/cx231xx/cx231xx-core.c kfree(dev->video_mode.isoc_ctl.urb); urb 911 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.isoc_ctl.urb = NULL; urb 931 drivers/media/usb/cx231xx/cx231xx-core.c struct urb *urb; urb 939 drivers/media/usb/cx231xx/cx231xx-core.c urb = dev->video_mode.bulk_ctl.urb[i]; urb 940 drivers/media/usb/cx231xx/cx231xx-core.c if (urb) { urb 942 drivers/media/usb/cx231xx/cx231xx-core.c usb_kill_urb(urb); urb 944 drivers/media/usb/cx231xx/cx231xx-core.c usb_unlink_urb(urb); urb 948 drivers/media/usb/cx231xx/cx231xx-core.c urb->transfer_buffer_length, urb 951 drivers/media/usb/cx231xx/cx231xx-core.c urb->transfer_dma); urb 953 drivers/media/usb/cx231xx/cx231xx-core.c if (urb->status == -EPIPE) { urb 956 drivers/media/usb/cx231xx/cx231xx-core.c usb_free_urb(urb); urb 957 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.bulk_ctl.urb[i] = NULL; urb 966 drivers/media/usb/cx231xx/cx231xx-core.c kfree(dev->video_mode.bulk_ctl.urb); urb 970 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.bulk_ctl.urb = NULL; urb 989 drivers/media/usb/cx231xx/cx231xx-core.c int (*isoc_copy) (struct cx231xx *dev, struct urb *urb)) urb 994 drivers/media/usb/cx231xx/cx231xx-core.c struct urb *urb; urb 1026 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.isoc_ctl.urb = urb 1028 drivers/media/usb/cx231xx/cx231xx-core.c if (!dev->video_mode.isoc_ctl.urb) { urb 1039 drivers/media/usb/cx231xx/cx231xx-core.c kfree(dev->video_mode.isoc_ctl.urb); urb 1056 drivers/media/usb/cx231xx/cx231xx-core.c urb = usb_alloc_urb(max_packets, GFP_KERNEL); urb 1057 drivers/media/usb/cx231xx/cx231xx-core.c if (!urb) { urb 1061 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.isoc_ctl.urb[i] = urb; urb 1065 drivers/media/usb/cx231xx/cx231xx-core.c &urb->transfer_dma); urb 1079 drivers/media/usb/cx231xx/cx231xx-core.c usb_fill_int_urb(urb, dev->udev, pipe, urb 1083 drivers/media/usb/cx231xx/cx231xx-core.c urb->number_of_packets = max_packets; urb 1084 drivers/media/usb/cx231xx/cx231xx-core.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 1088 drivers/media/usb/cx231xx/cx231xx-core.c urb->iso_frame_desc[j].offset = k; urb 1089 drivers/media/usb/cx231xx/cx231xx-core.c urb->iso_frame_desc[j].length = urb 1099 drivers/media/usb/cx231xx/cx231xx-core.c rc = usb_submit_urb(dev->video_mode.isoc_ctl.urb[i], urb 1124 drivers/media/usb/cx231xx/cx231xx-core.c int (*bulk_copy) (struct cx231xx *dev, struct urb *urb)) urb 1129 drivers/media/usb/cx231xx/cx231xx-core.c struct urb *urb; urb 1161 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.bulk_ctl.urb = urb 1163 drivers/media/usb/cx231xx/cx231xx-core.c if (!dev->video_mode.bulk_ctl.urb) { urb 1174 drivers/media/usb/cx231xx/cx231xx-core.c kfree(dev->video_mode.bulk_ctl.urb); urb 1191 drivers/media/usb/cx231xx/cx231xx-core.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1192 drivers/media/usb/cx231xx/cx231xx-core.c if (!urb) { urb 1196 drivers/media/usb/cx231xx/cx231xx-core.c dev->video_mode.bulk_ctl.urb[i] = urb; urb 1197 drivers/media/usb/cx231xx/cx231xx-core.c urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urb 1201 drivers/media/usb/cx231xx/cx231xx-core.c &urb->transfer_dma); urb 1214 drivers/media/usb/cx231xx/cx231xx-core.c usb_fill_bulk_urb(urb, dev->udev, pipe, urb 1220 drivers/media/usb/cx231xx/cx231xx-core.c rc = usb_clear_halt(dev->udev, dev->video_mode.bulk_ctl.urb[0]->pipe); urb 1233 drivers/media/usb/cx231xx/cx231xx-core.c rc = usb_submit_urb(dev->video_mode.bulk_ctl.urb[i], urb 207 drivers/media/usb/cx231xx/cx231xx-dvb.c static inline int dvb_isoc_copy(struct cx231xx *dev, struct urb *urb) urb 217 drivers/media/usb/cx231xx/cx231xx-dvb.c if (urb->status < 0) { urb 218 drivers/media/usb/cx231xx/cx231xx-dvb.c print_err_status(dev, -1, urb->status); urb 219 drivers/media/usb/cx231xx/cx231xx-dvb.c if (urb->status == -ENOENT) urb 223 drivers/media/usb/cx231xx/cx231xx-dvb.c for (i = 0; i < urb->number_of_packets; i++) { urb 224 drivers/media/usb/cx231xx/cx231xx-dvb.c int status = urb->iso_frame_desc[i].status; urb 228 drivers/media/usb/cx231xx/cx231xx-dvb.c if (urb->iso_frame_desc[i].status != -EPROTO) urb 233 drivers/media/usb/cx231xx/cx231xx-dvb.c urb->transfer_buffer + urb 234 drivers/media/usb/cx231xx/cx231xx-dvb.c urb->iso_frame_desc[i].offset, urb 235 drivers/media/usb/cx231xx/cx231xx-dvb.c urb->iso_frame_desc[i].actual_length); urb 241 drivers/media/usb/cx231xx/cx231xx-dvb.c static inline int dvb_bulk_copy(struct cx231xx *dev, struct urb *urb) urb 249 drivers/media/usb/cx231xx/cx231xx-dvb.c if (urb->status < 0) { urb 250 drivers/media/usb/cx231xx/cx231xx-dvb.c print_err_status(dev, -1, urb->status); urb 251 drivers/media/usb/cx231xx/cx231xx-dvb.c if (urb->status == -ENOENT) urb 257 drivers/media/usb/cx231xx/cx231xx-dvb.c urb->transfer_buffer, urb->actual_length); urb 71 drivers/media/usb/cx231xx/cx231xx-vbi.c static inline int cx231xx_isoc_vbi_copy(struct cx231xx *dev, struct urb *urb) urb 73 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx_dmaqueue *dma_q = urb->context; urb 85 drivers/media/usb/cx231xx/cx231xx-vbi.c if (urb->status < 0) { urb 86 drivers/media/usb/cx231xx/cx231xx-vbi.c print_err_status(dev, -1, urb->status); urb 87 drivers/media/usb/cx231xx/cx231xx-vbi.c if (urb->status == -ENOENT) urb 92 drivers/media/usb/cx231xx/cx231xx-vbi.c p_buffer = urb->transfer_buffer; urb 93 drivers/media/usb/cx231xx/cx231xx-vbi.c buffer_size = urb->actual_length; urb 290 drivers/media/usb/cx231xx/cx231xx-vbi.c static void cx231xx_irq_vbi_callback(struct urb *urb) urb 292 drivers/media/usb/cx231xx/cx231xx-vbi.c struct cx231xx_dmaqueue *dma_q = urb->context; urb 298 drivers/media/usb/cx231xx/cx231xx-vbi.c switch (urb->status) { urb 308 drivers/media/usb/cx231xx/cx231xx-vbi.c "urb completion error %d.\n", urb->status); urb 314 drivers/media/usb/cx231xx/cx231xx-vbi.c dev->vbi_mode.bulk_ctl.bulk_copy(dev, urb); urb 318 drivers/media/usb/cx231xx/cx231xx-vbi.c urb->status = 0; urb 320 drivers/media/usb/cx231xx/cx231xx-vbi.c urb->status = usb_submit_urb(urb, GFP_ATOMIC); urb 321 drivers/media/usb/cx231xx/cx231xx-vbi.c if (urb->status) { urb 323 drivers/media/usb/cx231xx/cx231xx-vbi.c urb->status); urb 332 drivers/media/usb/cx231xx/cx231xx-vbi.c struct urb *urb; urb 339 drivers/media/usb/cx231xx/cx231xx-vbi.c urb = dev->vbi_mode.bulk_ctl.urb[i]; urb 340 drivers/media/usb/cx231xx/cx231xx-vbi.c if (urb) { urb 342 drivers/media/usb/cx231xx/cx231xx-vbi.c usb_kill_urb(urb); urb 344 drivers/media/usb/cx231xx/cx231xx-vbi.c usb_unlink_urb(urb); urb 353 drivers/media/usb/cx231xx/cx231xx-vbi.c usb_free_urb(urb); urb 354 drivers/media/usb/cx231xx/cx231xx-vbi.c dev->vbi_mode.bulk_ctl.urb[i] = NULL; urb 359 drivers/media/usb/cx231xx/cx231xx-vbi.c kfree(dev->vbi_mode.bulk_ctl.urb); urb 362 drivers/media/usb/cx231xx/cx231xx-vbi.c dev->vbi_mode.bulk_ctl.urb = NULL; urb 376 drivers/media/usb/cx231xx/cx231xx-vbi.c struct urb *urb)) urb 381 drivers/media/usb/cx231xx/cx231xx-vbi.c struct urb *urb; urb 407 drivers/media/usb/cx231xx/cx231xx-vbi.c dev->vbi_mode.bulk_ctl.urb = kcalloc(num_bufs, sizeof(void *), urb 409 drivers/media/usb/cx231xx/cx231xx-vbi.c if (!dev->vbi_mode.bulk_ctl.urb) { urb 420 drivers/media/usb/cx231xx/cx231xx-vbi.c kfree(dev->vbi_mode.bulk_ctl.urb); urb 432 drivers/media/usb/cx231xx/cx231xx-vbi.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 433 drivers/media/usb/cx231xx/cx231xx-vbi.c if (!urb) { urb 437 drivers/media/usb/cx231xx/cx231xx-vbi.c dev->vbi_mode.bulk_ctl.urb[i] = urb; urb 438 drivers/media/usb/cx231xx/cx231xx-vbi.c urb->transfer_flags = 0; urb 452 drivers/media/usb/cx231xx/cx231xx-vbi.c usb_fill_bulk_urb(urb, dev->udev, pipe, urb 461 drivers/media/usb/cx231xx/cx231xx-vbi.c rc = usb_submit_urb(dev->vbi_mode.bulk_ctl.urb[i], GFP_ATOMIC); urb 33 drivers/media/usb/cx231xx/cx231xx-vbi.h struct urb *urb)); urb 261 drivers/media/usb/cx231xx/cx231xx-video.c static inline int cx231xx_isoc_copy(struct cx231xx *dev, struct urb *urb) urb 263 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_dmaqueue *dma_q = urb->context; urb 275 drivers/media/usb/cx231xx/cx231xx-video.c if (urb->status < 0) { urb 276 drivers/media/usb/cx231xx/cx231xx-video.c print_err_status(dev, -1, urb->status); urb 277 drivers/media/usb/cx231xx/cx231xx-video.c if (urb->status == -ENOENT) urb 281 drivers/media/usb/cx231xx/cx231xx-video.c for (i = 0; i < urb->number_of_packets; i++) { urb 282 drivers/media/usb/cx231xx/cx231xx-video.c int status = urb->iso_frame_desc[i].status; urb 286 drivers/media/usb/cx231xx/cx231xx-video.c if (urb->iso_frame_desc[i].status != -EPROTO) urb 290 drivers/media/usb/cx231xx/cx231xx-video.c if (urb->iso_frame_desc[i].actual_length <= 0) { urb 294 drivers/media/usb/cx231xx/cx231xx-video.c if (urb->iso_frame_desc[i].actual_length > urb 301 drivers/media/usb/cx231xx/cx231xx-video.c p_buffer = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 302 drivers/media/usb/cx231xx/cx231xx-video.c buffer_size = urb->iso_frame_desc[i].actual_length; urb 358 drivers/media/usb/cx231xx/cx231xx-video.c static inline int cx231xx_bulk_copy(struct cx231xx *dev, struct urb *urb) urb 360 drivers/media/usb/cx231xx/cx231xx-video.c struct cx231xx_dmaqueue *dma_q = urb->context; urb 371 drivers/media/usb/cx231xx/cx231xx-video.c if (urb->status < 0) { urb 372 drivers/media/usb/cx231xx/cx231xx-video.c print_err_status(dev, -1, urb->status); urb 373 drivers/media/usb/cx231xx/cx231xx-video.c if (urb->status == -ENOENT) urb 380 drivers/media/usb/cx231xx/cx231xx-video.c p_buffer = urb->transfer_buffer; urb 381 drivers/media/usb/cx231xx/cx231xx-video.c buffer_size = urb->actual_length; urb 156 drivers/media/usb/cx231xx/cx231xx.h struct urb **urb; urb 179 drivers/media/usb/cx231xx/cx231xx.h int (*isoc_copy) (struct cx231xx *dev, struct urb *urb); urb 190 drivers/media/usb/cx231xx/cx231xx.h struct urb **urb; urb 213 drivers/media/usb/cx231xx/cx231xx.h int (*bulk_copy) (struct cx231xx *dev, struct urb *urb); urb 409 drivers/media/usb/cx231xx/cx231xx.h struct urb *urb[CX231XX_AUDIO_BUFS]; urb 879 drivers/media/usb/cx231xx/cx231xx.h struct urb *urb)); urb 883 drivers/media/usb/cx231xx/cx231xx.h struct urb *urb)); urb 286 drivers/media/usb/dvb-usb-v2/dvb_usb.h struct urb *urb_list[MAX_NO_URBS_FOR_DATA_STREAM]; urb 128 drivers/media/usb/dvb-usb-v2/lmedm04.c struct urb *lme_urb; urb 267 drivers/media/usb/dvb-usb-v2/lmedm04.c static void lme2510_int_response(struct urb *lme_urb) urb 19 drivers/media/usb/dvb-usb-v2/usb_urb.c static void usb_urb_complete(struct urb *urb) urb 21 drivers/media/usb/dvb-usb-v2/usb_urb.c struct usb_data_stream *stream = urb->context; urb 22 drivers/media/usb/dvb-usb-v2/usb_urb.c int ptype = usb_pipetype(urb->pipe); urb 29 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->status, urb->actual_length, urb 30 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->transfer_buffer_length, urb 31 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->number_of_packets, urb->error_count); urb 33 drivers/media/usb/dvb-usb-v2/usb_urb.c switch (urb->status) { urb 44 drivers/media/usb/dvb-usb-v2/usb_urb.c __func__, urb->status); urb 48 drivers/media/usb/dvb-usb-v2/usb_urb.c b = (u8 *) urb->transfer_buffer; urb 51 drivers/media/usb/dvb-usb-v2/usb_urb.c for (i = 0; i < urb->number_of_packets; i++) { urb 52 drivers/media/usb/dvb-usb-v2/usb_urb.c if (urb->iso_frame_desc[i].status != 0) urb 56 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->iso_frame_desc[i].status); urb 57 drivers/media/usb/dvb-usb-v2/usb_urb.c else if (urb->iso_frame_desc[i].actual_length > 0) urb 59 drivers/media/usb/dvb-usb-v2/usb_urb.c b + urb->iso_frame_desc[i].offset, urb 60 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->iso_frame_desc[i].actual_length); urb 62 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->iso_frame_desc[i].status = 0; urb 63 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->iso_frame_desc[i].actual_length = 0; urb 67 drivers/media/usb/dvb-usb-v2/usb_urb.c if (urb->actual_length > 0) urb 68 drivers/media/usb/dvb-usb-v2/usb_urb.c stream->complete(stream, b, urb->actual_length); urb 76 drivers/media/usb/dvb-usb-v2/usb_urb.c usb_submit_urb(urb, GFP_ATOMIC); urb 169 drivers/media/usb/dvb-usb-v2/usb_urb.c struct urb *urb; urb 181 drivers/media/usb/dvb-usb-v2/usb_urb.c urb = stream->urb_list[i]; urb 183 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->dev = stream->udev; urb 184 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->context = stream; urb 185 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->complete = usb_urb_complete; urb 186 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->pipe = usb_rcvisocpipe(stream->udev, urb 188 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->transfer_flags = URB_ISO_ASAP; urb 189 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->interval = stream->props.u.isoc.interval; urb 190 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->number_of_packets = stream->props.u.isoc.framesperurb; urb 191 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->transfer_buffer_length = stream->props.u.isoc.framesize * urb 193 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->transfer_buffer = stream->buf_list[i]; urb 196 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->iso_frame_desc[j].offset = frame_offset; urb 197 drivers/media/usb/dvb-usb-v2/usb_urb.c urb->iso_frame_desc[j].length = urb 141 drivers/media/usb/dvb-usb/cxusb-analog.c struct urb *urb) urb 147 drivers/media/usb/dvb-usb/cxusb-analog.c for (i = 0, len = 0; i < urb->number_of_packets; i++) urb 148 drivers/media/usb/dvb-usb/cxusb-analog.c len += urb->iso_frame_desc[i].actual_length; urb 152 drivers/media/usb/dvb-usb/cxusb-analog.c for (i = 0; i < urb->number_of_packets; i++) { urb 155 drivers/media/usb/dvb-usb/cxusb-analog.c to_copy = urb->iso_frame_desc[i].actual_length; urb 157 drivers/media/usb/dvb-usb/cxusb-analog.c memcpy(auxbuf->buf + auxbuf->paylen, urb->transfer_buffer + urb 158 drivers/media/usb/dvb-usb/cxusb-analog.c urb->iso_frame_desc[i].offset, to_copy); urb 536 drivers/media/usb/dvb-usb/cxusb-analog.c struct urb *urb; urb 550 drivers/media/usb/dvb-usb/cxusb-analog.c urb = cxdev->streamurbs[cxdev->nexturb]; urb 551 drivers/media/usb/dvb-usb/cxusb-analog.c } while (!urb); urb 553 drivers/media/usb/dvb-usb/cxusb-analog.c urb = cxdev->streamurbs[urbn]; urb 554 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "URB %u status = %d\n", urbn, urb->status); urb 556 drivers/media/usb/dvb-usb/cxusb-analog.c if (urb->status == 0 || urb->status == -EXDEV) { urb 560 drivers/media/usb/dvb-usb/cxusb-analog.c for (i = 0, len = 0; i < urb->number_of_packets; i++) urb 561 drivers/media/usb/dvb-usb/cxusb-analog.c len += urb->iso_frame_desc[i].actual_length; urb 582 drivers/media/usb/dvb-usb/cxusb-analog.c urb); urb 588 drivers/media/usb/dvb-usb/cxusb-analog.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 630 drivers/media/usb/dvb-usb/cxusb-analog.c static void cxusb_medion_v_complete(struct urb *u) urb 813 drivers/media/usb/dvb-usb/cxusb-analog.c struct urb *surb; urb 139 drivers/media/usb/dvb-usb/cxusb.h struct urb *streamurbs[CXUSB_VIDEO_URBS]; urb 708 drivers/media/usb/dvb-usb/dib0700_core.c static void dib0700_rc_urb_completion(struct urb *purb) urb 810 drivers/media/usb/dvb-usb/dib0700_core.c struct urb *purb; urb 333 drivers/media/usb/dvb-usb/dvb-usb.h struct urb *urb_list[MAX_NO_URBS_FOR_DATA_STREAM]; urb 15 drivers/media/usb/dvb-usb/usb-urb.c static void usb_urb_complete(struct urb *urb) urb 17 drivers/media/usb/dvb-usb/usb-urb.c struct usb_data_stream *stream = urb->context; urb 18 drivers/media/usb/dvb-usb/usb-urb.c int ptype = usb_pipetype(urb->pipe); urb 24 drivers/media/usb/dvb-usb/usb-urb.c urb->status,urb->actual_length,urb->transfer_buffer_length, urb 25 drivers/media/usb/dvb-usb/usb-urb.c urb->number_of_packets,urb->error_count); urb 27 drivers/media/usb/dvb-usb/usb-urb.c switch (urb->status) { urb 36 drivers/media/usb/dvb-usb/usb-urb.c deb_ts("urb completion error %d.\n", urb->status); urb 40 drivers/media/usb/dvb-usb/usb-urb.c b = (u8 *) urb->transfer_buffer; urb 43 drivers/media/usb/dvb-usb/usb-urb.c for (i = 0; i < urb->number_of_packets; i++) { urb 45 drivers/media/usb/dvb-usb/usb-urb.c if (urb->iso_frame_desc[i].status != 0) urb 46 drivers/media/usb/dvb-usb/usb-urb.c deb_ts("iso frame descriptor has an error: %d\n",urb->iso_frame_desc[i].status); urb 47 drivers/media/usb/dvb-usb/usb-urb.c else if (urb->iso_frame_desc[i].actual_length > 0) urb 48 drivers/media/usb/dvb-usb/usb-urb.c stream->complete(stream, b + urb->iso_frame_desc[i].offset, urb->iso_frame_desc[i].actual_length); urb 50 drivers/media/usb/dvb-usb/usb-urb.c urb->iso_frame_desc[i].status = 0; urb 51 drivers/media/usb/dvb-usb/usb-urb.c urb->iso_frame_desc[i].actual_length = 0; urb 56 drivers/media/usb/dvb-usb/usb-urb.c if (urb->actual_length > 0) urb 57 drivers/media/usb/dvb-usb/usb-urb.c stream->complete(stream, b, urb->actual_length); urb 63 drivers/media/usb/dvb-usb/usb-urb.c usb_submit_urb(urb,GFP_ATOMIC); urb 178 drivers/media/usb/dvb-usb/usb-urb.c struct urb *urb; urb 189 drivers/media/usb/dvb-usb/usb-urb.c urb = stream->urb_list[i]; urb 191 drivers/media/usb/dvb-usb/usb-urb.c urb->dev = stream->udev; urb 192 drivers/media/usb/dvb-usb/usb-urb.c urb->context = stream; urb 193 drivers/media/usb/dvb-usb/usb-urb.c urb->complete = usb_urb_complete; urb 194 drivers/media/usb/dvb-usb/usb-urb.c urb->pipe = usb_rcvisocpipe(stream->udev,stream->props.endpoint); urb 195 drivers/media/usb/dvb-usb/usb-urb.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 196 drivers/media/usb/dvb-usb/usb-urb.c urb->interval = stream->props.u.isoc.interval; urb 197 drivers/media/usb/dvb-usb/usb-urb.c urb->number_of_packets = stream->props.u.isoc.framesperurb; urb 198 drivers/media/usb/dvb-usb/usb-urb.c urb->transfer_buffer_length = stream->buf_size; urb 199 drivers/media/usb/dvb-usb/usb-urb.c urb->transfer_buffer = stream->buf_list[i]; urb 200 drivers/media/usb/dvb-usb/usb-urb.c urb->transfer_dma = stream->dma_addr[i]; urb 203 drivers/media/usb/dvb-usb/usb-urb.c urb->iso_frame_desc[j].offset = frame_offset; urb 204 drivers/media/usb/dvb-usb/usb-urb.c urb->iso_frame_desc[j].length = stream->props.u.isoc.framesize; urb 67 drivers/media/usb/em28xx/em28xx-audio.c struct urb *urb = dev->adev.urb[i]; urb 70 drivers/media/usb/em28xx/em28xx-audio.c usb_kill_urb(urb); urb 72 drivers/media/usb/em28xx/em28xx-audio.c usb_unlink_urb(urb); urb 78 drivers/media/usb/em28xx/em28xx-audio.c static void em28xx_audio_isocirq(struct urb *urb) urb 80 drivers/media/usb/em28xx/em28xx-audio.c struct em28xx *dev = urb->context; urb 92 drivers/media/usb/em28xx/em28xx-audio.c urb->status); urb 97 drivers/media/usb/em28xx/em28xx-audio.c switch (urb->status) { urb 106 drivers/media/usb/em28xx/em28xx-audio.c dprintk("urb completion error %d.\n", urb->status); urb 118 drivers/media/usb/em28xx/em28xx-audio.c for (i = 0; i < urb->number_of_packets; i++) { urb 121 drivers/media/usb/em28xx/em28xx-audio.c urb->iso_frame_desc[i].actual_length / stride; urb 122 drivers/media/usb/em28xx/em28xx-audio.c cp = (unsigned char *)urb->transfer_buffer + urb 123 drivers/media/usb/em28xx/em28xx-audio.c urb->iso_frame_desc[i].offset; urb 162 drivers/media/usb/em28xx/em28xx-audio.c urb->status = 0; urb 164 drivers/media/usb/em28xx/em28xx-audio.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 180 drivers/media/usb/em28xx/em28xx-audio.c dev->adev.urb[i]->transfer_buffer_length); urb 182 drivers/media/usb/em28xx/em28xx-audio.c err = usb_submit_urb(dev->adev.urb[i], GFP_ATOMIC); urb 727 drivers/media/usb/em28xx/em28xx-audio.c struct urb *urb = dev->adev.urb[i]; urb 729 drivers/media/usb/em28xx/em28xx-audio.c if (!urb) urb 732 drivers/media/usb/em28xx/em28xx-audio.c usb_free_coherent(udev, urb->transfer_buffer_length, urb 734 drivers/media/usb/em28xx/em28xx-audio.c urb->transfer_dma); urb 736 drivers/media/usb/em28xx/em28xx-audio.c usb_free_urb(urb); urb 738 drivers/media/usb/em28xx/em28xx-audio.c kfree(dev->adev.urb); urb 850 drivers/media/usb/em28xx/em28xx-audio.c dev->adev.urb = kcalloc(num_urb, sizeof(*dev->adev.urb), GFP_KERNEL); urb 851 drivers/media/usb/em28xx/em28xx-audio.c if (!dev->adev.urb) { urb 859 drivers/media/usb/em28xx/em28xx-audio.c struct urb *urb; urb 863 drivers/media/usb/em28xx/em28xx-audio.c urb = usb_alloc_urb(npackets, GFP_KERNEL); urb 864 drivers/media/usb/em28xx/em28xx-audio.c if (!urb) { urb 868 drivers/media/usb/em28xx/em28xx-audio.c dev->adev.urb[i] = urb; urb 871 drivers/media/usb/em28xx/em28xx-audio.c &urb->transfer_dma); urb 880 drivers/media/usb/em28xx/em28xx-audio.c urb->dev = udev; urb 881 drivers/media/usb/em28xx/em28xx-audio.c urb->context = dev; urb 882 drivers/media/usb/em28xx/em28xx-audio.c urb->pipe = usb_rcvisocpipe(udev, EM28XX_EP_AUDIO); urb 883 drivers/media/usb/em28xx/em28xx-audio.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 884 drivers/media/usb/em28xx/em28xx-audio.c urb->transfer_buffer = buf; urb 885 drivers/media/usb/em28xx/em28xx-audio.c urb->interval = interval; urb 886 drivers/media/usb/em28xx/em28xx-audio.c urb->complete = em28xx_audio_isocirq; urb 887 drivers/media/usb/em28xx/em28xx-audio.c urb->number_of_packets = npackets; urb 888 drivers/media/usb/em28xx/em28xx-audio.c urb->transfer_buffer_length = ep_size * npackets; urb 891 drivers/media/usb/em28xx/em28xx-audio.c urb->iso_frame_desc[j].offset = k; urb 892 drivers/media/usb/em28xx/em28xx-audio.c urb->iso_frame_desc[j].length = ep_size; urb 777 drivers/media/usb/em28xx/em28xx-core.c static void em28xx_irq_callback(struct urb *urb) urb 779 drivers/media/usb/em28xx/em28xx-core.c struct em28xx *dev = urb->context; urb 783 drivers/media/usb/em28xx/em28xx-core.c switch (urb->status) { urb 792 drivers/media/usb/em28xx/em28xx-core.c em28xx_isocdbg("urb completion error %d.\n", urb->status); urb 798 drivers/media/usb/em28xx/em28xx-core.c dev->usb_ctl.urb_data_copy(dev, urb); urb 802 drivers/media/usb/em28xx/em28xx-core.c for (i = 0; i < urb->number_of_packets; i++) { urb 804 drivers/media/usb/em28xx/em28xx-core.c urb->iso_frame_desc[i].status = 0; urb 805 drivers/media/usb/em28xx/em28xx-core.c urb->iso_frame_desc[i].actual_length = 0; urb 807 drivers/media/usb/em28xx/em28xx-core.c urb->status = 0; urb 809 drivers/media/usb/em28xx/em28xx-core.c urb->status = usb_submit_urb(urb, GFP_ATOMIC); urb 810 drivers/media/usb/em28xx/em28xx-core.c if (urb->status) { urb 812 drivers/media/usb/em28xx/em28xx-core.c urb->status); urb 821 drivers/media/usb/em28xx/em28xx-core.c struct urb *urb; urb 833 drivers/media/usb/em28xx/em28xx-core.c urb = usb_bufs->urb[i]; urb 834 drivers/media/usb/em28xx/em28xx-core.c if (urb) { urb 836 drivers/media/usb/em28xx/em28xx-core.c usb_kill_urb(urb); urb 838 drivers/media/usb/em28xx/em28xx-core.c usb_unlink_urb(urb); urb 840 drivers/media/usb/em28xx/em28xx-core.c usb_free_urb(urb); urb 841 drivers/media/usb/em28xx/em28xx-core.c usb_bufs->urb[i] = NULL; urb 845 drivers/media/usb/em28xx/em28xx-core.c kfree(usb_bufs->urb); urb 848 drivers/media/usb/em28xx/em28xx-core.c usb_bufs->urb = NULL; urb 862 drivers/media/usb/em28xx/em28xx-core.c struct urb *urb; urb 868 drivers/media/usb/em28xx/em28xx-core.c urb = isoc_bufs->urb[i]; urb 869 drivers/media/usb/em28xx/em28xx-core.c if (urb) { urb 871 drivers/media/usb/em28xx/em28xx-core.c usb_kill_urb(urb); urb 873 drivers/media/usb/em28xx/em28xx-core.c usb_unlink_urb(urb); urb 888 drivers/media/usb/em28xx/em28xx-core.c struct urb *urb; urb 928 drivers/media/usb/em28xx/em28xx-core.c usb_bufs->urb = kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); urb 929 drivers/media/usb/em28xx/em28xx-core.c if (!usb_bufs->urb) urb 934 drivers/media/usb/em28xx/em28xx-core.c kfree(usb_bufs->urb); urb 950 drivers/media/usb/em28xx/em28xx-core.c urb = usb_alloc_urb(usb_bufs->num_packets, GFP_KERNEL); urb 951 drivers/media/usb/em28xx/em28xx-core.c if (!urb) { urb 955 drivers/media/usb/em28xx/em28xx-core.c usb_bufs->urb[i] = urb; urb 970 drivers/media/usb/em28xx/em28xx-core.c urb->transfer_flags = URB_FREE_BUFFER; urb 977 drivers/media/usb/em28xx/em28xx-core.c usb_fill_bulk_urb(urb, udev, pipe, usb_bufs->buf[i], urb 984 drivers/media/usb/em28xx/em28xx-core.c usb_fill_int_urb(urb, udev, pipe, usb_bufs->buf[i], urb 986 drivers/media/usb/em28xx/em28xx-core.c urb->transfer_flags |= URB_ISO_ASAP; urb 989 drivers/media/usb/em28xx/em28xx-core.c urb->iso_frame_desc[j].offset = k; urb 990 drivers/media/usb/em28xx/em28xx-core.c urb->iso_frame_desc[j].length = urb 996 drivers/media/usb/em28xx/em28xx-core.c urb->number_of_packets = usb_bufs->num_packets; urb 1009 drivers/media/usb/em28xx/em28xx-core.c int (*urb_data_copy)(struct em28xx *dev, struct urb *urb)) urb 1040 drivers/media/usb/em28xx/em28xx-core.c rc = usb_clear_halt(udev, usb_bufs->urb[0]->pipe); urb 1057 drivers/media/usb/em28xx/em28xx-core.c rc = usb_submit_urb(usb_bufs->urb[i], GFP_KERNEL); urb 147 drivers/media/usb/em28xx/em28xx-dvb.c static inline int em28xx_dvb_urb_data_copy(struct em28xx *dev, struct urb *urb) urb 157 drivers/media/usb/em28xx/em28xx-dvb.c if (urb->status < 0) urb 158 drivers/media/usb/em28xx/em28xx-dvb.c print_err_status(dev, -1, urb->status); urb 160 drivers/media/usb/em28xx/em28xx-dvb.c xfer_bulk = usb_pipebulk(urb->pipe); urb 165 drivers/media/usb/em28xx/em28xx-dvb.c num_packets = urb->number_of_packets; urb 169 drivers/media/usb/em28xx/em28xx-dvb.c if (urb->status < 0) { urb 170 drivers/media/usb/em28xx/em28xx-dvb.c print_err_status(dev, i, urb->status); urb 171 drivers/media/usb/em28xx/em28xx-dvb.c if (urb->status != -EPROTO) urb 174 drivers/media/usb/em28xx/em28xx-dvb.c if (!urb->actual_length) urb 176 drivers/media/usb/em28xx/em28xx-dvb.c dvb_dmx_swfilter(&dev->dvb->demux, urb->transfer_buffer, urb 177 drivers/media/usb/em28xx/em28xx-dvb.c urb->actual_length); urb 179 drivers/media/usb/em28xx/em28xx-dvb.c if (urb->iso_frame_desc[i].status < 0) { urb 181 drivers/media/usb/em28xx/em28xx-dvb.c urb->iso_frame_desc[i].status); urb 182 drivers/media/usb/em28xx/em28xx-dvb.c if (urb->iso_frame_desc[i].status != -EPROTO) urb 185 drivers/media/usb/em28xx/em28xx-dvb.c if (!urb->iso_frame_desc[i].actual_length) urb 188 drivers/media/usb/em28xx/em28xx-dvb.c urb->transfer_buffer + urb 189 drivers/media/usb/em28xx/em28xx-dvb.c urb->iso_frame_desc[i].offset, urb 190 drivers/media/usb/em28xx/em28xx-dvb.c urb->iso_frame_desc[i].actual_length); urb 789 drivers/media/usb/em28xx/em28xx-video.c static inline int em28xx_urb_data_copy(struct em28xx *dev, struct urb *urb) urb 801 drivers/media/usb/em28xx/em28xx-video.c if (urb->status < 0) urb 802 drivers/media/usb/em28xx/em28xx-video.c print_err_status(dev, -1, urb->status); urb 804 drivers/media/usb/em28xx/em28xx-video.c xfer_bulk = usb_pipebulk(urb->pipe); urb 809 drivers/media/usb/em28xx/em28xx-video.c num_packets = urb->number_of_packets; urb 813 drivers/media/usb/em28xx/em28xx-video.c usb_data_len = urb->actual_length; urb 815 drivers/media/usb/em28xx/em28xx-video.c usb_data_pkt = urb->transfer_buffer; urb 817 drivers/media/usb/em28xx/em28xx-video.c if (urb->iso_frame_desc[i].status < 0) { urb 819 drivers/media/usb/em28xx/em28xx-video.c urb->iso_frame_desc[i].status); urb 820 drivers/media/usb/em28xx/em28xx-video.c if (urb->iso_frame_desc[i].status != -EPROTO) urb 824 drivers/media/usb/em28xx/em28xx-video.c usb_data_len = urb->iso_frame_desc[i].actual_length; urb 830 drivers/media/usb/em28xx/em28xx-video.c usb_data_pkt = urb->transfer_buffer + urb 831 drivers/media/usb/em28xx/em28xx-video.c urb->iso_frame_desc[i].offset; urb 230 drivers/media/usb/em28xx/em28xx.h struct urb **urb; urb 248 drivers/media/usb/em28xx/em28xx.h int (*urb_data_copy)(struct em28xx *dev, struct urb *urb); urb 609 drivers/media/usb/em28xx/em28xx.h struct urb **urb; urb 830 drivers/media/usb/em28xx/em28xx.h (struct em28xx *dev, struct urb *urb)); urb 57 drivers/media/usb/go7007/go7007-usb.c struct urb *video_urbs[8]; urb 58 drivers/media/usb/go7007/go7007-usb.c struct urb *audio_urbs[8]; urb 59 drivers/media/usb/go7007/go7007-usb.c struct urb *intr_urb; urb 745 drivers/media/usb/go7007/go7007-usb.c static void go7007_usb_readinterrupt_complete(struct urb *urb) urb 747 drivers/media/usb/go7007/go7007-usb.c struct go7007 *go = (struct go7007 *)urb->context; urb 748 drivers/media/usb/go7007/go7007-usb.c __le16 *regs = (__le16 *)urb->transfer_buffer; urb 749 drivers/media/usb/go7007/go7007-usb.c int status = urb->status; urb 754 drivers/media/usb/go7007/go7007-usb.c dev_err(go->dev, "error in read interrupt: %d\n", urb->status); urb 759 drivers/media/usb/go7007/go7007-usb.c } else if (urb->actual_length != urb->transfer_buffer_length) { urb 785 drivers/media/usb/go7007/go7007-usb.c static void go7007_usb_read_video_pipe_complete(struct urb *urb) urb 787 drivers/media/usb/go7007/go7007-usb.c struct go7007 *go = (struct go7007 *)urb->context; urb 788 drivers/media/usb/go7007/go7007-usb.c int r, status = urb->status; urb 798 drivers/media/usb/go7007/go7007-usb.c if (urb->actual_length != urb->transfer_buffer_length) { urb 802 drivers/media/usb/go7007/go7007-usb.c go7007_parse_video_stream(go, urb->transfer_buffer, urb->actual_length); urb 803 drivers/media/usb/go7007/go7007-usb.c r = usb_submit_urb(urb, GFP_ATOMIC); urb 808 drivers/media/usb/go7007/go7007-usb.c static void go7007_usb_read_audio_pipe_complete(struct urb *urb) urb 810 drivers/media/usb/go7007/go7007-usb.c struct go7007 *go = (struct go7007 *)urb->context; urb 811 drivers/media/usb/go7007/go7007-usb.c int r, status = urb->status; urb 820 drivers/media/usb/go7007/go7007-usb.c if (urb->actual_length != urb->transfer_buffer_length) { urb 825 drivers/media/usb/go7007/go7007-usb.c go->audio_deliver(go, urb->transfer_buffer, urb->actual_length); urb 826 drivers/media/usb/go7007/go7007-usb.c r = usb_submit_urb(urb, GFP_ATOMIC); urb 899 drivers/media/usb/go7007/go7007-usb.c struct urb *vurb, *aurb; urb 44 drivers/media/usb/go7007/s2250-board.c struct urb *video_urbs[8]; urb 45 drivers/media/usb/go7007/s2250-board.c struct urb *audio_urbs[8]; urb 46 drivers/media/usb/go7007/s2250-board.c struct urb *intr_urb; urb 30 drivers/media/usb/gspca/benq.c static void sd_isoc_irq(struct urb *urb); urb 74 drivers/media/usb/gspca/benq.c struct urb *urb; urb 84 drivers/media/usb/gspca/benq.c urb = usb_alloc_urb(SD_NPKT, GFP_KERNEL); urb 85 drivers/media/usb/gspca/benq.c if (!urb) urb 87 drivers/media/usb/gspca/benq.c gspca_dev->urb[n] = urb; urb 88 drivers/media/usb/gspca/benq.c urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev, urb 91 drivers/media/usb/gspca/benq.c &urb->transfer_dma); urb 93 drivers/media/usb/gspca/benq.c if (urb->transfer_buffer == NULL) { urb 97 drivers/media/usb/gspca/benq.c urb->dev = gspca_dev->dev; urb 98 drivers/media/usb/gspca/benq.c urb->context = gspca_dev; urb 99 drivers/media/usb/gspca/benq.c urb->transfer_buffer_length = SD_PKT_SZ * SD_NPKT; urb 100 drivers/media/usb/gspca/benq.c urb->pipe = usb_rcvisocpipe(gspca_dev->dev, urb 102 drivers/media/usb/gspca/benq.c urb->transfer_flags = URB_ISO_ASAP urb 104 drivers/media/usb/gspca/benq.c urb->interval = 1; urb 105 drivers/media/usb/gspca/benq.c urb->complete = sd_isoc_irq; urb 106 drivers/media/usb/gspca/benq.c urb->number_of_packets = SD_NPKT; urb 108 drivers/media/usb/gspca/benq.c urb->iso_frame_desc[i].length = SD_PKT_SZ; urb 109 drivers/media/usb/gspca/benq.c urb->iso_frame_desc[i].offset = SD_PKT_SZ * i; urb 139 drivers/media/usb/gspca/benq.c static void sd_isoc_irq(struct urb *urb) urb 141 drivers/media/usb/gspca/benq.c struct gspca_dev *gspca_dev = (struct gspca_dev *) urb->context; urb 142 drivers/media/usb/gspca/benq.c struct urb *urb0; urb 149 drivers/media/usb/gspca/benq.c if (urb->status != 0) { urb 150 drivers/media/usb/gspca/benq.c if (urb->status == -ESHUTDOWN) urb 156 drivers/media/usb/gspca/benq.c pr_err("urb status: %d\n", urb->status); urb 161 drivers/media/usb/gspca/benq.c if (urb == gspca_dev->urb[0] || urb == gspca_dev->urb[2]) urb 165 drivers/media/usb/gspca/benq.c if (urb == gspca_dev->urb[1]) urb 166 drivers/media/usb/gspca/benq.c urb0 = gspca_dev->urb[0]; urb 168 drivers/media/usb/gspca/benq.c urb0 = gspca_dev->urb[2]; urb 169 drivers/media/usb/gspca/benq.c for (i = 0; i < urb->number_of_packets; i++) { urb 173 drivers/media/usb/gspca/benq.c || urb->iso_frame_desc[i].actual_length != SD_PKT_SZ) { urb 176 drivers/media/usb/gspca/benq.c urb->iso_frame_desc[i].actual_length); urb 182 drivers/media/usb/gspca/benq.c st = urb->iso_frame_desc[i].status; urb 222 drivers/media/usb/gspca/benq.c data = (u8 *) urb->transfer_buffer urb 223 drivers/media/usb/gspca/benq.c + urb->iso_frame_desc[i].offset; urb 232 drivers/media/usb/gspca/benq.c st = usb_submit_urb(urb, GFP_ATOMIC); urb 78 drivers/media/usb/gspca/finepix.c struct urb *urb = gspca_dev->urb[0]; urb 79 drivers/media/usb/gspca/finepix.c u8 *data = urb->transfer_buffer; urb 109 drivers/media/usb/gspca/finepix.c urb->pipe, urb 196 drivers/media/usb/gspca/finepix.c gspca_dev->urb[0]->pipe, urb 197 drivers/media/usb/gspca/finepix.c gspca_dev->urb[0]->transfer_buffer, urb 213 drivers/media/usb/gspca/finepix.c usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe); urb 80 drivers/media/usb/gspca/gspca.c static void int_irq(struct urb *urb) urb 82 drivers/media/usb/gspca/gspca.c struct gspca_dev *gspca_dev = (struct gspca_dev *) urb->context; urb 85 drivers/media/usb/gspca/gspca.c ret = urb->status; urb 89 drivers/media/usb/gspca/gspca.c urb->transfer_buffer, urb->actual_length) < 0) { urb 105 drivers/media/usb/gspca/gspca.c urb->status); urb 106 drivers/media/usb/gspca/gspca.c urb->status = 0; urb 111 drivers/media/usb/gspca/gspca.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 159 drivers/media/usb/gspca/gspca.c struct urb *urb; urb 171 drivers/media/usb/gspca/gspca.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 172 drivers/media/usb/gspca/gspca.c if (!urb) { urb 178 drivers/media/usb/gspca/gspca.c GFP_KERNEL, &urb->transfer_dma); urb 183 drivers/media/usb/gspca/gspca.c usb_fill_int_urb(urb, dev, urb 187 drivers/media/usb/gspca/gspca.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 188 drivers/media/usb/gspca/gspca.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 194 drivers/media/usb/gspca/gspca.c gspca_dev->int_urb = urb; urb 199 drivers/media/usb/gspca/gspca.c urb->transfer_buffer_length, urb 200 drivers/media/usb/gspca/gspca.c urb->transfer_buffer, urb 201 drivers/media/usb/gspca/gspca.c urb->transfer_dma); urb 203 drivers/media/usb/gspca/gspca.c usb_free_urb(urb); urb 232 drivers/media/usb/gspca/gspca.c struct urb *urb; urb 234 drivers/media/usb/gspca/gspca.c urb = gspca_dev->int_urb; urb 235 drivers/media/usb/gspca/gspca.c if (urb) { urb 237 drivers/media/usb/gspca/gspca.c usb_kill_urb(urb); urb 239 drivers/media/usb/gspca/gspca.c urb->transfer_buffer_length, urb 240 drivers/media/usb/gspca/gspca.c urb->transfer_buffer, urb 241 drivers/media/usb/gspca/gspca.c urb->transfer_dma); urb 242 drivers/media/usb/gspca/gspca.c usb_free_urb(urb); urb 264 drivers/media/usb/gspca/gspca.c struct urb *urb) urb 270 drivers/media/usb/gspca/gspca.c if (urb->status != 0) { urb 271 drivers/media/usb/gspca/gspca.c if (urb->status == -ESHUTDOWN) urb 277 drivers/media/usb/gspca/gspca.c gspca_err(gspca_dev, "urb status: %d\n", urb->status); urb 278 drivers/media/usb/gspca/gspca.c urb->status = 0; urb 282 drivers/media/usb/gspca/gspca.c for (i = 0; i < urb->number_of_packets; i++) { urb 283 drivers/media/usb/gspca/gspca.c len = urb->iso_frame_desc[i].actual_length; urb 286 drivers/media/usb/gspca/gspca.c st = urb->iso_frame_desc[i].status; urb 301 drivers/media/usb/gspca/gspca.c i, urb->iso_frame_desc[i].offset, len); urb 302 drivers/media/usb/gspca/gspca.c data = (u8 *) urb->transfer_buffer urb 303 drivers/media/usb/gspca/gspca.c + urb->iso_frame_desc[i].offset; urb 311 drivers/media/usb/gspca/gspca.c st = usb_submit_urb(urb, GFP_ATOMIC); urb 321 drivers/media/usb/gspca/gspca.c static void isoc_irq(struct urb *urb) urb 323 drivers/media/usb/gspca/gspca.c struct gspca_dev *gspca_dev = (struct gspca_dev *) urb->context; urb 328 drivers/media/usb/gspca/gspca.c fill_frame(gspca_dev, urb); urb 334 drivers/media/usb/gspca/gspca.c static void bulk_irq(struct urb *urb) urb 336 drivers/media/usb/gspca/gspca.c struct gspca_dev *gspca_dev = (struct gspca_dev *) urb->context; urb 342 drivers/media/usb/gspca/gspca.c switch (urb->status) { urb 352 drivers/media/usb/gspca/gspca.c gspca_err(gspca_dev, "urb status: %d\n", urb->status); urb 353 drivers/media/usb/gspca/gspca.c urb->status = 0; urb 357 drivers/media/usb/gspca/gspca.c gspca_dbg(gspca_dev, D_PACK, "packet l:%d\n", urb->actual_length); urb 359 drivers/media/usb/gspca/gspca.c urb->transfer_buffer, urb 360 drivers/media/usb/gspca/gspca.c urb->actual_length); urb 367 drivers/media/usb/gspca/gspca.c st = usb_submit_urb(urb, GFP_ATOMIC); urb 466 drivers/media/usb/gspca/gspca.c struct urb *urb; urb 476 drivers/media/usb/gspca/gspca.c usb_kill_urb(gspca_dev->urb[i]); urb 480 drivers/media/usb/gspca/gspca.c urb = gspca_dev->urb[i]; urb 481 drivers/media/usb/gspca/gspca.c if (!urb) urb 483 drivers/media/usb/gspca/gspca.c gspca_dev->urb[i] = NULL; urb 485 drivers/media/usb/gspca/gspca.c urb->transfer_buffer_length, urb 486 drivers/media/usb/gspca/gspca.c urb->transfer_buffer, urb 487 drivers/media/usb/gspca/gspca.c urb->transfer_dma); urb 488 drivers/media/usb/gspca/gspca.c usb_free_urb(urb); urb 662 drivers/media/usb/gspca/gspca.c struct urb *urb; urb 696 drivers/media/usb/gspca/gspca.c urb = usb_alloc_urb(npkt, GFP_KERNEL); urb 697 drivers/media/usb/gspca/gspca.c if (!urb) urb 699 drivers/media/usb/gspca/gspca.c gspca_dev->urb[n] = urb; urb 700 drivers/media/usb/gspca/gspca.c urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev, urb 703 drivers/media/usb/gspca/gspca.c &urb->transfer_dma); urb 705 drivers/media/usb/gspca/gspca.c if (urb->transfer_buffer == NULL) { urb 709 drivers/media/usb/gspca/gspca.c urb->dev = gspca_dev->dev; urb 710 drivers/media/usb/gspca/gspca.c urb->context = gspca_dev; urb 711 drivers/media/usb/gspca/gspca.c urb->transfer_buffer_length = bsize; urb 713 drivers/media/usb/gspca/gspca.c urb->pipe = usb_rcvisocpipe(gspca_dev->dev, urb 715 drivers/media/usb/gspca/gspca.c urb->transfer_flags = URB_ISO_ASAP urb 717 drivers/media/usb/gspca/gspca.c urb->interval = 1 << (ep->desc.bInterval - 1); urb 718 drivers/media/usb/gspca/gspca.c urb->complete = isoc_irq; urb 719 drivers/media/usb/gspca/gspca.c urb->number_of_packets = npkt; urb 721 drivers/media/usb/gspca/gspca.c urb->iso_frame_desc[i].length = psize; urb 722 drivers/media/usb/gspca/gspca.c urb->iso_frame_desc[i].offset = psize * i; urb 725 drivers/media/usb/gspca/gspca.c urb->pipe = usb_rcvbulkpipe(gspca_dev->dev, urb 727 drivers/media/usb/gspca/gspca.c urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urb 728 drivers/media/usb/gspca/gspca.c urb->complete = bulk_irq; urb 758 drivers/media/usb/gspca/gspca.c struct urb *urb; urb 837 drivers/media/usb/gspca/gspca.c gspca_dev->urb[0]->pipe); urb 854 drivers/media/usb/gspca/gspca.c urb = gspca_dev->urb[n]; urb 855 drivers/media/usb/gspca/gspca.c if (urb == NULL) urb 857 drivers/media/usb/gspca/gspca.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 179 drivers/media/usb/gspca/gspca.h struct urb *urb[MAX_NURBS]; urb 181 drivers/media/usb/gspca/gspca.h struct urb *int_urb; urb 336 drivers/media/usb/gspca/jeilinj.c gspca_dev->urb[0]->pipe, urb 337 drivers/media/usb/gspca/jeilinj.c gspca_dev->urb[0]->transfer_buffer, urb 343 drivers/media/usb/gspca/jeilinj.c buf = gspca_dev->urb[0]->transfer_buffer; urb 38 drivers/media/usb/gspca/konica.c struct urb *last_data_urb; urb 75 drivers/media/usb/gspca/konica.c static void sd_isoc_irq(struct urb *urb); urb 171 drivers/media/usb/gspca/konica.c struct urb *urb; urb 205 drivers/media/usb/gspca/konica.c urb = usb_alloc_urb(SD_NPKT, GFP_KERNEL); urb 206 drivers/media/usb/gspca/konica.c if (!urb) urb 208 drivers/media/usb/gspca/konica.c gspca_dev->urb[n] = urb; urb 209 drivers/media/usb/gspca/konica.c urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev, urb 212 drivers/media/usb/gspca/konica.c &urb->transfer_dma); urb 213 drivers/media/usb/gspca/konica.c if (urb->transfer_buffer == NULL) { urb 218 drivers/media/usb/gspca/konica.c urb->dev = gspca_dev->dev; urb 219 drivers/media/usb/gspca/konica.c urb->context = gspca_dev; urb 220 drivers/media/usb/gspca/konica.c urb->transfer_buffer_length = packet_size * SD_NPKT; urb 221 drivers/media/usb/gspca/konica.c urb->pipe = usb_rcvisocpipe(gspca_dev->dev, urb 223 drivers/media/usb/gspca/konica.c urb->transfer_flags = URB_ISO_ASAP urb 225 drivers/media/usb/gspca/konica.c urb->interval = 1; urb 226 drivers/media/usb/gspca/konica.c urb->complete = sd_isoc_irq; urb 227 drivers/media/usb/gspca/konica.c urb->number_of_packets = SD_NPKT; urb 229 drivers/media/usb/gspca/konica.c urb->iso_frame_desc[i].length = packet_size; urb 230 drivers/media/usb/gspca/konica.c urb->iso_frame_desc[i].offset = packet_size * i; urb 254 drivers/media/usb/gspca/konica.c static void sd_isoc_irq(struct urb *urb) urb 256 drivers/media/usb/gspca/konica.c struct gspca_dev *gspca_dev = (struct gspca_dev *) urb->context; urb 258 drivers/media/usb/gspca/konica.c struct urb *data_urb, *status_urb; urb 266 drivers/media/usb/gspca/konica.c if (urb->status != 0) { urb 267 drivers/media/usb/gspca/konica.c if (urb->status == -ESHUTDOWN) urb 273 drivers/media/usb/gspca/konica.c gspca_err(gspca_dev, "urb status: %d\n", urb->status); urb 274 drivers/media/usb/gspca/konica.c st = usb_submit_urb(urb, GFP_ATOMIC); urb 281 drivers/media/usb/gspca/konica.c if (urb->transfer_buffer_length > 32) { urb 282 drivers/media/usb/gspca/konica.c sd->last_data_urb = urb; urb 286 drivers/media/usb/gspca/konica.c status_urb = urb; urb 2201 drivers/media/usb/gspca/sn9c20x.c gspca_dev->urb[0]->iso_frame_desc[0].length); urb 2760 drivers/media/usb/gspca/sonixj.c gspca_dev->urb[0]->iso_frame_desc[0].length); urb 1043 drivers/media/usb/gspca/sq930x.c ret = usb_submit_urb(gspca_dev->urb[0], GFP_KERNEL); urb 1416 drivers/media/usb/gspca/xirlink_cit.c usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe); urb 1422 drivers/media/usb/gspca/xirlink_cit.c usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe); urb 131 drivers/media/usb/hackrf/hackrf.c struct urb *urb_list[MAX_BULK_BUFS]; urb 481 drivers/media/usb/hackrf/hackrf.c static void hackrf_urb_complete_in(struct urb *urb) urb 483 drivers/media/usb/hackrf/hackrf.c struct hackrf_dev *dev = urb->context; urb 488 drivers/media/usb/hackrf/hackrf.c dev_dbg_ratelimited(&intf->dev, "status=%d length=%u/%u\n", urb->status, urb 489 drivers/media/usb/hackrf/hackrf.c urb->actual_length, urb->transfer_buffer_length); urb 491 drivers/media/usb/hackrf/hackrf.c switch (urb->status) { urb 500 drivers/media/usb/hackrf/hackrf.c dev_err_ratelimited(&intf->dev, "URB failed %d\n", urb->status); urb 515 drivers/media/usb/hackrf/hackrf.c urb->actual_length); urb 517 drivers/media/usb/hackrf/hackrf.c urb->transfer_buffer, len); urb 523 drivers/media/usb/hackrf/hackrf.c usb_submit_urb(urb, GFP_ATOMIC); urb 526 drivers/media/usb/hackrf/hackrf.c static void hackrf_urb_complete_out(struct urb *urb) urb 528 drivers/media/usb/hackrf/hackrf.c struct hackrf_dev *dev = urb->context; urb 533 drivers/media/usb/hackrf/hackrf.c dev_dbg_ratelimited(&intf->dev, "status=%d length=%u/%u\n", urb->status, urb 534 drivers/media/usb/hackrf/hackrf.c urb->actual_length, urb->transfer_buffer_length); urb 536 drivers/media/usb/hackrf/hackrf.c switch (urb->status) { urb 545 drivers/media/usb/hackrf/hackrf.c dev_err_ratelimited(&intf->dev, "URB failed %d\n", urb->status); urb 555 drivers/media/usb/hackrf/hackrf.c urb->actual_length = 0; urb 559 drivers/media/usb/hackrf/hackrf.c len = min_t(unsigned long, urb->transfer_buffer_length, urb 561 drivers/media/usb/hackrf/hackrf.c hackrf_copy_stream(dev, urb->transfer_buffer, urb 563 drivers/media/usb/hackrf/hackrf.c urb->actual_length = len; urb 568 drivers/media/usb/hackrf/hackrf.c usb_submit_urb(urb, GFP_ATOMIC); urb 69 drivers/media/usb/hdpvr/hdpvr-video.c static void hdpvr_read_bulk_callback(struct urb *urb) urb 71 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_buffer *buf = (struct hdpvr_buffer *)urb->context; urb 88 drivers/media/usb/hdpvr/hdpvr-video.c usb_kill_urb(buf->urb); urb 102 drivers/media/usb/hdpvr/hdpvr-video.c struct urb *urb; urb 107 drivers/media/usb/hdpvr/hdpvr-video.c urb = buf->urb; urb 108 drivers/media/usb/hdpvr/hdpvr-video.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 109 drivers/media/usb/hdpvr/hdpvr-video.c urb->transfer_buffer, urb->transfer_dma); urb 110 drivers/media/usb/hdpvr/hdpvr-video.c usb_free_urb(urb); urb 138 drivers/media/usb/hdpvr/hdpvr-video.c struct urb *urb; urb 152 drivers/media/usb/hdpvr/hdpvr-video.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 153 drivers/media/usb/hdpvr/hdpvr-video.c if (!urb) urb 155 drivers/media/usb/hdpvr/hdpvr-video.c buf->urb = urb; urb 158 drivers/media/usb/hdpvr/hdpvr-video.c &urb->transfer_dma); urb 165 drivers/media/usb/hdpvr/hdpvr-video.c usb_fill_bulk_urb(buf->urb, dev->udev, urb 171 drivers/media/usb/hdpvr/hdpvr-video.c buf->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 177 drivers/media/usb/hdpvr/hdpvr-video.c usb_free_urb(urb); urb 188 drivers/media/usb/hdpvr/hdpvr-video.c struct urb *urb; urb 205 drivers/media/usb/hdpvr/hdpvr-video.c urb = buf->urb; urb 206 drivers/media/usb/hdpvr/hdpvr-video.c urb->status = 0; urb 207 drivers/media/usb/hdpvr/hdpvr-video.c urb->actual_length = 0; urb 208 drivers/media/usb/hdpvr/hdpvr-video.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 412 drivers/media/usb/hdpvr/hdpvr-video.c struct urb *urb; urb 487 drivers/media/usb/hdpvr/hdpvr-video.c urb = buf->urb; urb 488 drivers/media/usb/hdpvr/hdpvr-video.c rem = urb->actual_length - buf->pos; urb 491 drivers/media/usb/hdpvr/hdpvr-video.c if (copy_to_user(buffer, urb->transfer_buffer + buf->pos, urb 505 drivers/media/usb/hdpvr/hdpvr-video.c if (buf->pos == urb->actual_length) { urb 136 drivers/media/usb/hdpvr/hdpvr.h struct urb *urb; urb 132 drivers/media/usb/msi2500/msi2500.c struct urb *urbs[MAX_ISO_BUFS]; urb 363 drivers/media/usb/msi2500/msi2500.c static void msi2500_isoc_handler(struct urb *urb) urb 365 drivers/media/usb/msi2500/msi2500.c struct msi2500_dev *dev = (struct msi2500_dev *)urb->context; urb 370 drivers/media/usb/msi2500/msi2500.c if (unlikely(urb->status == -ENOENT || urb 371 drivers/media/usb/msi2500/msi2500.c urb->status == -ECONNRESET || urb 372 drivers/media/usb/msi2500/msi2500.c urb->status == -ESHUTDOWN)) { urb 374 drivers/media/usb/msi2500/msi2500.c urb, urb->status == -ENOENT ? "" : "a"); urb 378 drivers/media/usb/msi2500/msi2500.c if (unlikely(urb->status != 0)) { urb 379 drivers/media/usb/msi2500/msi2500.c dev_dbg(dev->dev, "called with status %d\n", urb->status); urb 390 drivers/media/usb/msi2500/msi2500.c for (i = 0; i < urb->number_of_packets; i++) { urb 394 drivers/media/usb/msi2500/msi2500.c fstatus = urb->iso_frame_desc[i].status; urb 398 drivers/media/usb/msi2500/msi2500.c i, urb->number_of_packets, fstatus); urb 403 drivers/media/usb/msi2500/msi2500.c flen = urb->iso_frame_desc[i].actual_length; urb 407 drivers/media/usb/msi2500/msi2500.c iso_buf = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 427 drivers/media/usb/msi2500/msi2500.c i = usb_submit_urb(urb, GFP_ATOMIC); urb 481 drivers/media/usb/msi2500/msi2500.c struct urb *urb; urb 494 drivers/media/usb/msi2500/msi2500.c urb = usb_alloc_urb(ISO_FRAMES_PER_DESC, GFP_KERNEL); urb 495 drivers/media/usb/msi2500/msi2500.c if (urb == NULL) { urb 499 drivers/media/usb/msi2500/msi2500.c dev->urbs[i] = urb; urb 500 drivers/media/usb/msi2500/msi2500.c dev_dbg(dev->dev, "Allocated URB at 0x%p\n", urb); urb 502 drivers/media/usb/msi2500/msi2500.c urb->interval = 1; urb 503 drivers/media/usb/msi2500/msi2500.c urb->dev = dev->udev; urb 504 drivers/media/usb/msi2500/msi2500.c urb->pipe = usb_rcvisocpipe(dev->udev, 0x81); urb 505 drivers/media/usb/msi2500/msi2500.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 506 drivers/media/usb/msi2500/msi2500.c urb->transfer_buffer = usb_alloc_coherent(dev->udev, urb 508 drivers/media/usb/msi2500/msi2500.c GFP_KERNEL, &urb->transfer_dma); urb 509 drivers/media/usb/msi2500/msi2500.c if (urb->transfer_buffer == NULL) { urb 515 drivers/media/usb/msi2500/msi2500.c urb->transfer_buffer_length = ISO_BUFFER_SIZE; urb 516 drivers/media/usb/msi2500/msi2500.c urb->complete = msi2500_isoc_handler; urb 517 drivers/media/usb/msi2500/msi2500.c urb->context = dev; urb 518 drivers/media/usb/msi2500/msi2500.c urb->start_frame = 0; urb 519 drivers/media/usb/msi2500/msi2500.c urb->number_of_packets = ISO_FRAMES_PER_DESC; urb 521 drivers/media/usb/msi2500/msi2500.c urb->iso_frame_desc[j].offset = j * ISO_MAX_FRAME_SIZE; urb 522 drivers/media/usb/msi2500/msi2500.c urb->iso_frame_desc[j].length = ISO_MAX_FRAME_SIZE; urb 200 drivers/media/usb/pvrusb2/pvrusb2-hdw-internal.h struct urb *ctl_write_urb; urb 201 drivers/media/usb/pvrusb2/pvrusb2-hdw-internal.h struct urb *ctl_read_urb; urb 3533 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static void pvr2_ctl_write_complete(struct urb *urb) urb 3535 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct pvr2_hdw *hdw = urb->context; urb 3542 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static void pvr2_ctl_read_complete(struct urb *urb) urb 3544 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct pvr2_hdw *hdw = urb->context; urb 84 drivers/media/usb/pvrusb2/pvrusb2-io.c struct urb *purb; urb 415 drivers/media/usb/pvrusb2/pvrusb2-io.c static void buffer_complete(struct urb *urb) urb 417 drivers/media/usb/pvrusb2/pvrusb2-io.c struct pvr2_buffer *bp = urb->context; urb 426 drivers/media/usb/pvrusb2/pvrusb2-io.c bp, urb->status, urb->actual_length); urb 428 drivers/media/usb/pvrusb2/pvrusb2-io.c if ((!(urb->status)) || urb 429 drivers/media/usb/pvrusb2/pvrusb2-io.c (urb->status == -ENOENT) || urb 430 drivers/media/usb/pvrusb2/pvrusb2-io.c (urb->status == -ECONNRESET) || urb 431 drivers/media/usb/pvrusb2/pvrusb2-io.c (urb->status == -ESHUTDOWN)) { urb 433 drivers/media/usb/pvrusb2/pvrusb2-io.c sp->bytes_processed += urb->actual_length; urb 434 drivers/media/usb/pvrusb2/pvrusb2-io.c bp->used_count = urb->actual_length; urb 448 drivers/media/usb/pvrusb2/pvrusb2-io.c sp, urb->status, sp->fail_count); urb 451 drivers/media/usb/pvrusb2/pvrusb2-io.c bp->status = urb->status; urb 274 drivers/media/usb/pwc/pwc-if.c static void pwc_isoc_handler(struct urb *urb) urb 276 drivers/media/usb/pwc/pwc-if.c struct pwc_device *pdev = (struct pwc_device *)urb->context; urb 280 drivers/media/usb/pwc/pwc-if.c trace_pwc_handler_enter(urb, pdev); urb 282 drivers/media/usb/pwc/pwc-if.c if (urb->status == -ENOENT || urb->status == -ECONNRESET || urb 283 drivers/media/usb/pwc/pwc-if.c urb->status == -ESHUTDOWN) { urb 285 drivers/media/usb/pwc/pwc-if.c urb, urb->status == -ENOENT ? "" : "a"); urb 292 drivers/media/usb/pwc/pwc-if.c if (urb->status != 0) { urb 296 drivers/media/usb/pwc/pwc-if.c switch(urb->status) { urb 305 drivers/media/usb/pwc/pwc-if.c urb->status, errmsg); urb 323 drivers/media/usb/pwc/pwc-if.c dma_sync_single_for_cpu(&urb->dev->dev, urb 324 drivers/media/usb/pwc/pwc-if.c urb->transfer_dma, urb 325 drivers/media/usb/pwc/pwc-if.c urb->transfer_buffer_length, urb 333 drivers/media/usb/pwc/pwc-if.c for (i = 0; i < urb->number_of_packets; i++) { urb 334 drivers/media/usb/pwc/pwc-if.c fst = urb->iso_frame_desc[i].status; urb 335 drivers/media/usb/pwc/pwc-if.c flen = urb->iso_frame_desc[i].actual_length; urb 336 drivers/media/usb/pwc/pwc-if.c iso_buf = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 374 drivers/media/usb/pwc/pwc-if.c dma_sync_single_for_device(&urb->dev->dev, urb 375 drivers/media/usb/pwc/pwc-if.c urb->transfer_dma, urb 376 drivers/media/usb/pwc/pwc-if.c urb->transfer_buffer_length, urb 380 drivers/media/usb/pwc/pwc-if.c trace_pwc_handler_exit(urb, pdev); urb 382 drivers/media/usb/pwc/pwc-if.c i = usb_submit_urb(urb, GFP_ATOMIC); urb 391 drivers/media/usb/pwc/pwc-if.c struct urb *urb; urb 443 drivers/media/usb/pwc/pwc-if.c urb = usb_alloc_urb(ISO_FRAMES_PER_DESC, GFP_KERNEL); urb 444 drivers/media/usb/pwc/pwc-if.c if (urb == NULL) { urb 448 drivers/media/usb/pwc/pwc-if.c pdev->urbs[i] = urb; urb 449 drivers/media/usb/pwc/pwc-if.c PWC_DEBUG_MEMORY("Allocated URB at 0x%p\n", urb); urb 451 drivers/media/usb/pwc/pwc-if.c urb->interval = 1; // devik urb 452 drivers/media/usb/pwc/pwc-if.c urb->dev = udev; urb 453 drivers/media/usb/pwc/pwc-if.c urb->pipe = usb_rcvisocpipe(udev, pdev->vendpoint); urb 454 drivers/media/usb/pwc/pwc-if.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 455 drivers/media/usb/pwc/pwc-if.c urb->transfer_buffer_length = ISO_BUFFER_SIZE; urb 456 drivers/media/usb/pwc/pwc-if.c urb->transfer_buffer = pwc_alloc_urb_buffer(&udev->dev, urb 457 drivers/media/usb/pwc/pwc-if.c urb->transfer_buffer_length, urb 458 drivers/media/usb/pwc/pwc-if.c &urb->transfer_dma); urb 459 drivers/media/usb/pwc/pwc-if.c if (urb->transfer_buffer == NULL) { urb 464 drivers/media/usb/pwc/pwc-if.c urb->complete = pwc_isoc_handler; urb 465 drivers/media/usb/pwc/pwc-if.c urb->context = pdev; urb 466 drivers/media/usb/pwc/pwc-if.c urb->start_frame = 0; urb 467 drivers/media/usb/pwc/pwc-if.c urb->number_of_packets = ISO_FRAMES_PER_DESC; urb 469 drivers/media/usb/pwc/pwc-if.c urb->iso_frame_desc[j].offset = j * ISO_MAX_FRAME_SIZE; urb 470 drivers/media/usb/pwc/pwc-if.c urb->iso_frame_desc[j].length = pdev->vmax_packet_size; urb 514 drivers/media/usb/pwc/pwc-if.c struct urb *urb = pdev->urbs[i]; urb 516 drivers/media/usb/pwc/pwc-if.c if (urb) { urb 518 drivers/media/usb/pwc/pwc-if.c if (urb->transfer_buffer) urb 519 drivers/media/usb/pwc/pwc-if.c pwc_free_urb_buffer(&urb->dev->dev, urb 520 drivers/media/usb/pwc/pwc-if.c urb->transfer_buffer_length, urb 521 drivers/media/usb/pwc/pwc-if.c urb->transfer_buffer, urb 522 drivers/media/usb/pwc/pwc-if.c urb->transfer_dma); urb 523 drivers/media/usb/pwc/pwc-if.c usb_free_urb(urb); urb 249 drivers/media/usb/pwc/pwc.h struct urb *urbs[MAX_ISO_BUFS]; urb 182 drivers/media/usb/s2255/s2255drv.c struct urb *fw_urb; urb 492 drivers/media/usb/s2255/s2255drv.c static void s2255_fwchunk_complete(struct urb *urb) urb 494 drivers/media/usb/s2255/s2255drv.c struct s2255_fw *data = urb->context; urb 495 drivers/media/usb/s2255/s2255drv.c struct usb_device *udev = urb->dev; urb 497 drivers/media/usb/s2255/s2255drv.c if (urb->status) { urb 498 drivers/media/usb/s2255/s2255drv.c dev_err(&udev->dev, "URB failed with status %d\n", urb->status); urb 2035 drivers/media/usb/s2255/s2255drv.c static void read_pipe_completion(struct urb *purb) urb 43 drivers/media/usb/siano/smsusb.c struct urb urb; urb 86 drivers/media/usb/siano/smsusb.c static void smsusb_onresponse(struct urb *urb) urb 88 drivers/media/usb/siano/smsusb.c struct smsusb_urb_t *surb = (struct smsusb_urb_t *) urb->context; urb 91 drivers/media/usb/siano/smsusb.c if (urb->status == -ESHUTDOWN) { urb 93 drivers/media/usb/siano/smsusb.c urb->status, urb->actual_length); urb 97 drivers/media/usb/siano/smsusb.c if ((urb->actual_length > 0) && (urb->status == 0)) { urb 101 drivers/media/usb/siano/smsusb.c if (urb->actual_length >= phdr->msg_length) { urb 113 drivers/media/usb/siano/smsusb.c surb->cb->offset) > urb->actual_length) { urb 117 drivers/media/usb/siano/smsusb.c urb->actual_length); urb 138 drivers/media/usb/siano/smsusb.c phdr->msg_length, urb->actual_length); urb 142 drivers/media/usb/siano/smsusb.c urb->status, urb->actual_length); urb 163 drivers/media/usb/siano/smsusb.c &surb->urb, urb 171 drivers/media/usb/siano/smsusb.c surb->urb.transfer_flags |= URB_FREE_BUFFER; urb 173 drivers/media/usb/siano/smsusb.c return usb_submit_urb(&surb->urb, GFP_ATOMIC); urb 181 drivers/media/usb/siano/smsusb.c usb_kill_urb(&dev->surbs[i].urb); urb 471 drivers/media/usb/siano/smsusb.c usb_init_urb(&dev->surbs[i].urb); urb 235 drivers/media/usb/stk1160/stk1160-v4l.c rc = usb_submit_urb(dev->isoc_ctl.urb[i], GFP_KERNEL); urb 217 drivers/media/usb/stk1160/stk1160-video.c static void stk1160_process_isoc(struct stk1160 *dev, struct urb *urb) urb 227 drivers/media/usb/stk1160/stk1160-video.c if (urb->status < 0) { urb 229 drivers/media/usb/stk1160/stk1160-video.c print_err_status(dev, -1, urb->status); urb 233 drivers/media/usb/stk1160/stk1160-video.c for (i = 0; i < urb->number_of_packets; i++) { urb 234 drivers/media/usb/stk1160/stk1160-video.c status = urb->iso_frame_desc[i].status; urb 241 drivers/media/usb/stk1160/stk1160-video.c p = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 242 drivers/media/usb/stk1160/stk1160-video.c len = urb->iso_frame_desc[i].actual_length; urb 295 drivers/media/usb/stk1160/stk1160-video.c static void stk1160_isoc_irq(struct urb *urb) urb 298 drivers/media/usb/stk1160/stk1160-video.c struct stk1160 *dev = urb->context; urb 300 drivers/media/usb/stk1160/stk1160-video.c switch (urb->status) { urb 309 drivers/media/usb/stk1160/stk1160-video.c stk1160_err("urb error! status %d\n", urb->status); urb 313 drivers/media/usb/stk1160/stk1160-video.c stk1160_process_isoc(dev, urb); urb 316 drivers/media/usb/stk1160/stk1160-video.c for (i = 0; i < urb->number_of_packets; i++) { urb 317 drivers/media/usb/stk1160/stk1160-video.c urb->iso_frame_desc[i].status = 0; urb 318 drivers/media/usb/stk1160/stk1160-video.c urb->iso_frame_desc[i].actual_length = 0; urb 321 drivers/media/usb/stk1160/stk1160-video.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 350 drivers/media/usb/stk1160/stk1160-video.c usb_kill_urb(dev->isoc_ctl.urb[i]); urb 362 drivers/media/usb/stk1160/stk1160-video.c struct urb *urb; urb 369 drivers/media/usb/stk1160/stk1160-video.c urb = dev->isoc_ctl.urb[i]; urb 370 drivers/media/usb/stk1160/stk1160-video.c if (urb) { urb 375 drivers/media/usb/stk1160/stk1160-video.c urb->transfer_buffer_length, urb 377 drivers/media/usb/stk1160/stk1160-video.c urb->transfer_dma); urb 382 drivers/media/usb/stk1160/stk1160-video.c usb_free_urb(urb); urb 383 drivers/media/usb/stk1160/stk1160-video.c dev->isoc_ctl.urb[i] = NULL; urb 388 drivers/media/usb/stk1160/stk1160-video.c kfree(dev->isoc_ctl.urb); urb 391 drivers/media/usb/stk1160/stk1160-video.c dev->isoc_ctl.urb = NULL; urb 413 drivers/media/usb/stk1160/stk1160-video.c struct urb *urb; urb 432 drivers/media/usb/stk1160/stk1160-video.c dev->isoc_ctl.urb = kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); urb 433 drivers/media/usb/stk1160/stk1160-video.c if (!dev->isoc_ctl.urb) { urb 442 drivers/media/usb/stk1160/stk1160-video.c kfree(dev->isoc_ctl.urb); urb 449 drivers/media/usb/stk1160/stk1160-video.c urb = usb_alloc_urb(max_packets, GFP_KERNEL); urb 450 drivers/media/usb/stk1160/stk1160-video.c if (!urb) urb 452 drivers/media/usb/stk1160/stk1160-video.c dev->isoc_ctl.urb[i] = urb; urb 456 drivers/media/usb/stk1160/stk1160-video.c sb_size, GFP_KERNEL, &urb->transfer_dma); urb 474 drivers/media/usb/stk1160/stk1160-video.c urb->dev = dev->udev; urb 475 drivers/media/usb/stk1160/stk1160-video.c urb->pipe = usb_rcvisocpipe(dev->udev, STK1160_EP_VIDEO); urb 476 drivers/media/usb/stk1160/stk1160-video.c urb->transfer_buffer = dev->isoc_ctl.transfer_buffer[i]; urb 477 drivers/media/usb/stk1160/stk1160-video.c urb->transfer_buffer_length = sb_size; urb 478 drivers/media/usb/stk1160/stk1160-video.c urb->complete = stk1160_isoc_irq; urb 479 drivers/media/usb/stk1160/stk1160-video.c urb->context = dev; urb 480 drivers/media/usb/stk1160/stk1160-video.c urb->interval = 1; urb 481 drivers/media/usb/stk1160/stk1160-video.c urb->start_frame = 0; urb 482 drivers/media/usb/stk1160/stk1160-video.c urb->number_of_packets = max_packets; urb 484 drivers/media/usb/stk1160/stk1160-video.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 486 drivers/media/usb/stk1160/stk1160-video.c urb->transfer_flags = URB_ISO_ASAP; urb 491 drivers/media/usb/stk1160/stk1160-video.c urb->iso_frame_desc[j].offset = k; urb 492 drivers/media/usb/stk1160/stk1160-video.c urb->iso_frame_desc[j].length = urb 511 drivers/media/usb/stk1160/stk1160-video.c usb_free_urb(dev->isoc_ctl.urb[i]); urb 512 drivers/media/usb/stk1160/stk1160-video.c dev->isoc_ctl.urb[i] = NULL; urb 95 drivers/media/usb/stk1160/stk1160.h struct urb **urb; urb 204 drivers/media/usb/stkwebcam/stk-webcam.c if (dev->isobufs[i].urb) { urb 205 drivers/media/usb/stkwebcam/stk-webcam.c ret = usb_submit_urb(dev->isobufs[i].urb, GFP_KERNEL); urb 224 drivers/media/usb/stkwebcam/stk-webcam.c if (dev->isobufs[i].urb) urb 225 drivers/media/usb/stkwebcam/stk-webcam.c usb_kill_urb(dev->isobufs[i].urb); urb 304 drivers/media/usb/stkwebcam/stk-webcam.c static void stk_isoc_handler(struct urb *urb) urb 317 drivers/media/usb/stkwebcam/stk-webcam.c dev = (struct stk_camera *) urb->context; urb 324 drivers/media/usb/stkwebcam/stk-webcam.c if (urb->status == -ENOENT || urb->status == -ECONNRESET urb 325 drivers/media/usb/stkwebcam/stk-webcam.c || urb->status == -ESHUTDOWN) { urb 332 drivers/media/usb/stkwebcam/stk-webcam.c if (urb->status != -EINPROGRESS && urb->status != 0) { urb 333 drivers/media/usb/stkwebcam/stk-webcam.c pr_err("isoc_handler: urb->status == %d\n", urb->status); urb 346 drivers/media/usb/stkwebcam/stk-webcam.c for (i = 0; i < urb->number_of_packets; i++) { urb 347 drivers/media/usb/stkwebcam/stk-webcam.c if (urb->iso_frame_desc[i].status != 0) { urb 348 drivers/media/usb/stkwebcam/stk-webcam.c if (urb->iso_frame_desc[i].status != -EXDEV) urb 350 drivers/media/usb/stkwebcam/stk-webcam.c i, urb->iso_frame_desc[i].status); urb 353 drivers/media/usb/stkwebcam/stk-webcam.c framelen = urb->iso_frame_desc[i].actual_length; urb 354 drivers/media/usb/stkwebcam/stk-webcam.c iso_buf = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 415 drivers/media/usb/stkwebcam/stk-webcam.c urb->dev = dev->udev; urb 416 drivers/media/usb/stkwebcam/stk-webcam.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 429 drivers/media/usb/stkwebcam/stk-webcam.c struct urb *urb; urb 455 drivers/media/usb/stkwebcam/stk-webcam.c if (dev->isobufs[i].urb == NULL) { urb 456 drivers/media/usb/stkwebcam/stk-webcam.c urb = usb_alloc_urb(ISO_FRAMES_PER_DESC, GFP_KERNEL); urb 457 drivers/media/usb/stkwebcam/stk-webcam.c if (urb == NULL) urb 459 drivers/media/usb/stkwebcam/stk-webcam.c dev->isobufs[i].urb = urb; urb 462 drivers/media/usb/stkwebcam/stk-webcam.c usb_kill_urb(dev->isobufs[i].urb); urb 463 drivers/media/usb/stkwebcam/stk-webcam.c urb = dev->isobufs[i].urb; urb 465 drivers/media/usb/stkwebcam/stk-webcam.c urb->interval = 1; urb 466 drivers/media/usb/stkwebcam/stk-webcam.c urb->dev = udev; urb 467 drivers/media/usb/stkwebcam/stk-webcam.c urb->pipe = usb_rcvisocpipe(udev, dev->isoc_ep); urb 468 drivers/media/usb/stkwebcam/stk-webcam.c urb->transfer_flags = URB_ISO_ASAP; urb 469 drivers/media/usb/stkwebcam/stk-webcam.c urb->transfer_buffer = dev->isobufs[i].data; urb 470 drivers/media/usb/stkwebcam/stk-webcam.c urb->transfer_buffer_length = ISO_BUFFER_SIZE; urb 471 drivers/media/usb/stkwebcam/stk-webcam.c urb->complete = stk_isoc_handler; urb 472 drivers/media/usb/stkwebcam/stk-webcam.c urb->context = dev; urb 473 drivers/media/usb/stkwebcam/stk-webcam.c urb->start_frame = 0; urb 474 drivers/media/usb/stkwebcam/stk-webcam.c urb->number_of_packets = ISO_FRAMES_PER_DESC; urb 477 drivers/media/usb/stkwebcam/stk-webcam.c urb->iso_frame_desc[j].offset = j * ISO_MAX_FRAME_SIZE; urb 478 drivers/media/usb/stkwebcam/stk-webcam.c urb->iso_frame_desc[j].length = ISO_MAX_FRAME_SIZE; urb 487 drivers/media/usb/stkwebcam/stk-webcam.c for (i = 0; i < MAX_ISO_BUFS && dev->isobufs[i].urb; i++) urb 488 drivers/media/usb/stkwebcam/stk-webcam.c usb_free_urb(dev->isobufs[i].urb); urb 502 drivers/media/usb/stkwebcam/stk-webcam.c struct urb *urb; urb 504 drivers/media/usb/stkwebcam/stk-webcam.c urb = dev->isobufs[i].urb; urb 505 drivers/media/usb/stkwebcam/stk-webcam.c if (urb) { urb 507 drivers/media/usb/stkwebcam/stk-webcam.c usb_kill_urb(urb); urb 508 drivers/media/usb/stkwebcam/stk-webcam.c usb_free_urb(urb); urb 29 drivers/media/usb/stkwebcam/stk-webcam.h struct urb *urb; urb 73 drivers/media/usb/tm6000/tm6000-dvb.c static void tm6000_urb_received(struct urb *urb) urb 76 drivers/media/usb/tm6000/tm6000-dvb.c struct tm6000_core *dev = urb->context; urb 78 drivers/media/usb/tm6000/tm6000-dvb.c switch (urb->status) { urb 87 drivers/media/usb/tm6000/tm6000-dvb.c print_err_status(dev, 0, urb->status); urb 90 drivers/media/usb/tm6000/tm6000-dvb.c if (urb->actual_length > 0) urb 91 drivers/media/usb/tm6000/tm6000-dvb.c dvb_dmx_swfilter(&dev->dvb->demux, urb->transfer_buffer, urb 92 drivers/media/usb/tm6000/tm6000-dvb.c urb->actual_length); urb 95 drivers/media/usb/tm6000/tm6000-dvb.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 98 drivers/media/usb/tm6000/tm6000-dvb.c kfree(urb->transfer_buffer); urb 99 drivers/media/usb/tm6000/tm6000-dvb.c usb_free_urb(urb); urb 364 drivers/media/usb/tm6000/tm6000-dvb.c struct urb *bulk_urb = dvb->bulk_urb; urb 58 drivers/media/usb/tm6000/tm6000-input.c struct urb *int_urb; urb 184 drivers/media/usb/tm6000/tm6000-input.c static void tm6000_ir_urb_received(struct urb *urb) urb 186 drivers/media/usb/tm6000/tm6000-input.c struct tm6000_core *dev = urb->context; urb 191 drivers/media/usb/tm6000/tm6000-input.c if (urb->status < 0 || urb->actual_length <= 0) { urb 193 drivers/media/usb/tm6000/tm6000-input.c urb->status, urb->actual_length); urb 198 drivers/media/usb/tm6000/tm6000-input.c buf = urb->transfer_buffer; urb 203 drivers/media/usb/tm6000/tm6000-input.c buf, urb->actual_length, false); urb 205 drivers/media/usb/tm6000/tm6000-input.c tm6000_ir_keydown(ir, urb->transfer_buffer, urb->actual_length); urb 207 drivers/media/usb/tm6000/tm6000-input.c usb_submit_urb(urb, GFP_ATOMIC); urb 20 drivers/media/usb/tm6000/tm6000-usb-isoc.h struct urb **urb; urb 116 drivers/media/usb/tm6000/tm6000-video.c struct urb *urb) urb 118 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_dmaqueue *dma_q = urb->context; urb 284 drivers/media/usb/tm6000/tm6000-video.c struct urb *urb) urb 286 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_dmaqueue *dma_q = urb->context; urb 369 drivers/media/usb/tm6000/tm6000-video.c static inline int tm6000_isoc_copy(struct urb *urb) urb 371 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_dmaqueue *dma_q = urb->context; urb 376 drivers/media/usb/tm6000/tm6000-video.c if (urb->status < 0) { urb 377 drivers/media/usb/tm6000/tm6000-video.c print_err_status(dev, -1, urb->status); urb 381 drivers/media/usb/tm6000/tm6000-video.c for (i = 0; i < urb->number_of_packets; i++) { urb 382 drivers/media/usb/tm6000/tm6000-video.c status = urb->iso_frame_desc[i].status; urb 389 drivers/media/usb/tm6000/tm6000-video.c len = urb->iso_frame_desc[i].actual_length; urb 392 drivers/media/usb/tm6000/tm6000-video.c p = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 393 drivers/media/usb/tm6000/tm6000-video.c if (!urb->iso_frame_desc[i].status) { urb 395 drivers/media/usb/tm6000/tm6000-video.c rc = copy_multiplexed(p, len, urb); urb 399 drivers/media/usb/tm6000/tm6000-video.c copy_streams(p, len, urb); urb 415 drivers/media/usb/tm6000/tm6000-video.c static void tm6000_irq_callback(struct urb *urb) urb 417 drivers/media/usb/tm6000/tm6000-video.c struct tm6000_dmaqueue *dma_q = urb->context; urb 422 drivers/media/usb/tm6000/tm6000-video.c switch (urb->status) { urb 433 drivers/media/usb/tm6000/tm6000-video.c tm6000_err("urb completion error %d.\n", urb->status); urb 438 drivers/media/usb/tm6000/tm6000-video.c tm6000_isoc_copy(urb); urb 442 drivers/media/usb/tm6000/tm6000-video.c for (i = 0; i < urb->number_of_packets; i++) { urb 443 drivers/media/usb/tm6000/tm6000-video.c urb->iso_frame_desc[i].status = 0; urb 444 drivers/media/usb/tm6000/tm6000-video.c urb->iso_frame_desc[i].actual_length = 0; urb 447 drivers/media/usb/tm6000/tm6000-video.c urb->status = usb_submit_urb(urb, GFP_ATOMIC); urb 448 drivers/media/usb/tm6000/tm6000-video.c if (urb->status) urb 450 drivers/media/usb/tm6000/tm6000-video.c urb->status); urb 520 drivers/media/usb/tm6000/tm6000-video.c struct urb *urb; urb 525 drivers/media/usb/tm6000/tm6000-video.c urb = dev->isoc_ctl.urb[i]; urb 526 drivers/media/usb/tm6000/tm6000-video.c if (urb) { urb 527 drivers/media/usb/tm6000/tm6000-video.c usb_kill_urb(urb); urb 528 drivers/media/usb/tm6000/tm6000-video.c usb_unlink_urb(urb); urb 529 drivers/media/usb/tm6000/tm6000-video.c usb_free_urb(urb); urb 530 drivers/media/usb/tm6000/tm6000-video.c dev->isoc_ctl.urb[i] = NULL; urb 538 drivers/media/usb/tm6000/tm6000-video.c kfree(dev->isoc_ctl.urb); urb 541 drivers/media/usb/tm6000/tm6000-video.c dev->isoc_ctl.urb = NULL; urb 554 drivers/media/usb/tm6000/tm6000-video.c struct urb *urb; urb 585 drivers/media/usb/tm6000/tm6000-video.c dev->isoc_ctl.urb = kmalloc_array(num_bufs, sizeof(void *), urb 587 drivers/media/usb/tm6000/tm6000-video.c if (!dev->isoc_ctl.urb) urb 594 drivers/media/usb/tm6000/tm6000-video.c kfree(dev->isoc_ctl.urb); urb 608 drivers/media/usb/tm6000/tm6000-video.c kfree(dev->isoc_ctl.urb); urb 615 drivers/media/usb/tm6000/tm6000-video.c urb = usb_alloc_urb(max_packets, GFP_KERNEL); urb 616 drivers/media/usb/tm6000/tm6000-video.c if (!urb) { urb 621 drivers/media/usb/tm6000/tm6000-video.c dev->isoc_ctl.urb[i] = urb; urb 623 drivers/media/usb/tm6000/tm6000-video.c urb->transfer_dma = dev->urb_dma[i]; urb 626 drivers/media/usb/tm6000/tm6000-video.c usb_fill_bulk_urb(urb, dev->udev, pipe, urb 629 drivers/media/usb/tm6000/tm6000-video.c urb->interval = dev->isoc_in.endp->desc.bInterval; urb 630 drivers/media/usb/tm6000/tm6000-video.c urb->number_of_packets = max_packets; urb 631 drivers/media/usb/tm6000/tm6000-video.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 634 drivers/media/usb/tm6000/tm6000-video.c urb->iso_frame_desc[j].offset = size * j; urb 635 drivers/media/usb/tm6000/tm6000-video.c urb->iso_frame_desc[j].length = size; urb 654 drivers/media/usb/tm6000/tm6000-video.c int rc = usb_submit_urb(dev->isoc_ctl.urb[i], GFP_ATOMIC); urb 137 drivers/media/usb/tm6000/tm6000.h struct urb *bulk_urb; urb 102 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct urb *iso_urb[ISO_BUF_COUNT]; urb 745 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c static void ttusb_iso_irq(struct urb *urb) urb 747 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct ttusb *ttusb = urb->context; urb 758 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->status, urb->error_count, urb->actual_length); urb 761 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c if (!urb->status) { urb 762 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c for (i = 0; i < urb->number_of_packets; ++i) { urb 773 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c d = &urb->iso_frame_desc[i]; urb 774 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c data = urb->transfer_buffer + d->offset; urb 781 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c usb_submit_urb(urb, GFP_ATOMIC); urb 803 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct urb *urb; urb 806 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c (urb = urb 812 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c ttusb->iso_urb[i] = urb; urb 843 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct urb *urb = ttusb->iso_urb[i]; urb 845 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->dev = ttusb->dev; urb 846 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->context = ttusb; urb 847 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->complete = ttusb_iso_irq; urb 848 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->pipe = ttusb->isoc_in_pipe; urb 849 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->transfer_flags = URB_ISO_ASAP; urb 850 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->interval = 1; urb 851 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->number_of_packets = FRAMES_PER_ISO_BUF; urb 852 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->transfer_buffer_length = urb 854 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->transfer_buffer = ttusb->iso_buffer + buffer_offset; urb 858 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->iso_frame_desc[j].offset = frame_offset; urb 859 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c urb->iso_frame_desc[j].length = ISO_FRAME_SIZE; urb 117 drivers/media/usb/ttusb-dec/ttusb_dec.c struct urb *irq_urb; urb 120 drivers/media/usb/ttusb-dec/ttusb_dec.c struct urb *iso_urb[ISO_BUF_COUNT]; urb 248 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_handle_irq( struct urb *urb) urb 250 drivers/media/usb/ttusb-dec/ttusb_dec.c struct ttusb_dec *dec = urb->context; urb 254 drivers/media/usb/ttusb-dec/ttusb_dec.c switch(urb->status) { urb 263 drivers/media/usb/ttusb-dec/ttusb_dec.c __func__, urb->status); urb 267 drivers/media/usb/ttusb-dec/ttusb_dec.c __func__,urb->status); urb 294 drivers/media/usb/ttusb-dec/ttusb_dec.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 796 drivers/media/usb/ttusb-dec/ttusb_dec.c static void ttusb_dec_process_urb(struct urb *urb) urb 798 drivers/media/usb/ttusb-dec/ttusb_dec.c struct ttusb_dec *dec = urb->context; urb 800 drivers/media/usb/ttusb-dec/ttusb_dec.c if (!urb->status) { urb 809 drivers/media/usb/ttusb-dec/ttusb_dec.c d = &urb->iso_frame_desc[i]; urb 810 drivers/media/usb/ttusb-dec/ttusb_dec.c b = urb->transfer_buffer + d->offset; urb 832 drivers/media/usb/ttusb-dec/ttusb_dec.c if (urb->status != -ENOENT) urb 834 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->status); urb 838 drivers/media/usb/ttusb-dec/ttusb_dec.c usb_submit_urb(urb, GFP_ATOMIC); urb 849 drivers/media/usb/ttusb-dec/ttusb_dec.c struct urb *urb = dec->iso_urb[i]; urb 851 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->dev = dec->udev; urb 852 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->context = dec; urb 853 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->complete = ttusb_dec_process_urb; urb 854 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->pipe = dec->in_pipe; urb 855 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->transfer_flags = URB_ISO_ASAP; urb 856 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->interval = 1; urb 857 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->number_of_packets = FRAMES_PER_ISO_BUF; urb 858 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->transfer_buffer_length = ISO_FRAME_SIZE * urb 860 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->transfer_buffer = dec->iso_buffer + buffer_offset; urb 864 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->iso_frame_desc[j].offset = frame_offset; urb 865 drivers/media/usb/ttusb-dec/ttusb_dec.c urb->iso_frame_desc[j].length = ISO_FRAME_SIZE; urb 1192 drivers/media/usb/ttusb-dec/ttusb_dec.c struct urb *urb; urb 1194 drivers/media/usb/ttusb-dec/ttusb_dec.c if (!(urb = usb_alloc_urb(FRAMES_PER_ISO_BUF, GFP_ATOMIC))) { urb 1199 drivers/media/usb/ttusb-dec/ttusb_dec.c dec->iso_urb[i] = urb; urb 122 drivers/media/usb/usbtv/usbtv-audio.c static void usbtv_audio_urb_received(struct urb *urb) urb 124 drivers/media/usb/usbtv/usbtv-audio.c struct usbtv *chip = urb->context; urb 132 drivers/media/usb/usbtv/usbtv-audio.c switch (urb->status) { urb 143 drivers/media/usb/usbtv/usbtv-audio.c urb->status); urb 156 drivers/media/usb/usbtv/usbtv-audio.c for (i = 0; i < urb->actual_length; i += USBTV_CHUNK_SIZE) { urb 157 drivers/media/usb/usbtv/usbtv-audio.c urb_current = urb->transfer_buffer + i + USBTV_AUDIO_HDRSIZE; urb 193 drivers/media/usb/usbtv/usbtv-audio.c usb_submit_urb(urb, GFP_ATOMIC); urb 456 drivers/media/usb/usbtv/usbtv-video.c static void usbtv_iso_cb(struct urb *ip) urb 495 drivers/media/usb/usbtv/usbtv-video.c static struct urb *usbtv_setup_iso_transfer(struct usbtv *usbtv) urb 497 drivers/media/usb/usbtv/usbtv-video.c struct urb *ip; urb 534 drivers/media/usb/usbtv/usbtv-video.c struct urb *ip = usbtv->isoc_urbs[i]; urb 577 drivers/media/usb/usbtv/usbtv-video.c struct urb *ip; urb 117 drivers/media/usb/usbtv/usbtv.h struct urb *isoc_urbs[USBTV_ISOC_TRANSFERS]; urb 124 drivers/media/usb/usbtv/usbtv.h struct urb *snd_bulk_urb; urb 1181 drivers/media/usb/usbvision/usbvision-core.c struct urb *urb) urb 1186 drivers/media/usb/usbvision/usbvision-core.c for (i = 0; i < urb->number_of_packets; i++) { urb 1187 drivers/media/usb/usbvision/usbvision-core.c int packet_len = urb->iso_frame_desc[i].actual_length; urb 1188 drivers/media/usb/usbvision/usbvision-core.c int packet_stat = urb->iso_frame_desc[i].status; urb 1190 drivers/media/usb/usbvision/usbvision-core.c packet_data = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 1259 drivers/media/usb/usbvision/usbvision-core.c static void usbvision_isoc_irq(struct urb *urb) urb 1263 drivers/media/usb/usbvision/usbvision-core.c struct usb_usbvision *usbvision = urb->context; urb 1272 drivers/media/usb/usbvision/usbvision-core.c if (urb->status == -ENOENT) urb 1289 drivers/media/usb/usbvision/usbvision-core.c len = usbvision_compress_isochronous(usbvision, urb); urb 1317 drivers/media/usb/usbvision/usbvision-core.c urb->iso_frame_desc[i].status = 0; urb 1318 drivers/media/usb/usbvision/usbvision-core.c urb->iso_frame_desc[i].actual_length = 0; urb 1321 drivers/media/usb/usbvision/usbvision-core.c urb->status = 0; urb 1322 drivers/media/usb/usbvision/usbvision-core.c urb->dev = usbvision->dev; urb 1323 drivers/media/usb/usbvision/usbvision-core.c err_code = usb_submit_urb(urb, GFP_ATOMIC); urb 1397 drivers/media/usb/usbvision/usbvision-core.c static void usbvision_ctrl_urb_complete(struct urb *urb) urb 1399 drivers/media/usb/usbvision/usbvision-core.c struct usb_usbvision *usbvision = (struct usb_usbvision *)urb->context; urb 2284 drivers/media/usb/usbvision/usbvision-core.c struct urb *urb; urb 2286 drivers/media/usb/usbvision/usbvision-core.c urb = usb_alloc_urb(USBVISION_URB_FRAMES, GFP_KERNEL); urb 2287 drivers/media/usb/usbvision/usbvision-core.c if (urb == NULL) urb 2289 drivers/media/usb/usbvision/usbvision-core.c usbvision->sbuf[buf_idx].urb = urb; urb 2294 drivers/media/usb/usbvision/usbvision-core.c &urb->transfer_dma); urb 2298 drivers/media/usb/usbvision/usbvision-core.c urb->dev = dev; urb 2299 drivers/media/usb/usbvision/usbvision-core.c urb->context = usbvision; urb 2300 drivers/media/usb/usbvision/usbvision-core.c urb->pipe = usb_rcvisocpipe(dev, usbvision->video_endp); urb 2301 drivers/media/usb/usbvision/usbvision-core.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 2302 drivers/media/usb/usbvision/usbvision-core.c urb->interval = 1; urb 2303 drivers/media/usb/usbvision/usbvision-core.c urb->transfer_buffer = usbvision->sbuf[buf_idx].data; urb 2304 drivers/media/usb/usbvision/usbvision-core.c urb->complete = usbvision_isoc_irq; urb 2305 drivers/media/usb/usbvision/usbvision-core.c urb->number_of_packets = USBVISION_URB_FRAMES; urb 2306 drivers/media/usb/usbvision/usbvision-core.c urb->transfer_buffer_length = urb 2310 drivers/media/usb/usbvision/usbvision-core.c urb->iso_frame_desc[j].offset = k; urb 2311 drivers/media/usb/usbvision/usbvision-core.c urb->iso_frame_desc[j].length = urb 2318 drivers/media/usb/usbvision/usbvision-core.c err_code = usb_submit_urb(usbvision->sbuf[buf_idx].urb, urb 2351 drivers/media/usb/usbvision/usbvision-core.c usb_kill_urb(usbvision->sbuf[buf_idx].urb); urb 2356 drivers/media/usb/usbvision/usbvision-core.c usbvision->sbuf[buf_idx].urb->transfer_dma); urb 2358 drivers/media/usb/usbvision/usbvision-core.c usb_free_urb(usbvision->sbuf[buf_idx].urb); urb 2359 drivers/media/usb/usbvision/usbvision-core.c usbvision->sbuf[buf_idx].urb = NULL; urb 250 drivers/media/usb/usbvision/usbvision.h struct urb *urb; urb 354 drivers/media/usb/usbvision/usbvision.h struct urb *ctrl_urb; urb 1313 drivers/media/usb/uvc/uvc_ctrl.c w->urb->interval = dev->int_ep->desc.bInterval; urb 1314 drivers/media/usb/uvc/uvc_ctrl.c ret = usb_submit_urb(w->urb, GFP_KERNEL); urb 1320 drivers/media/usb/uvc/uvc_ctrl.c bool uvc_ctrl_status_event(struct urb *urb, struct uvc_video_chain *chain, urb 1332 drivers/media/usb/uvc/uvc_ctrl.c w->urb = urb; urb 100 drivers/media/usb/uvc/uvc_isight.c struct urb *urb = uvc_urb->urb; urb 104 drivers/media/usb/uvc/uvc_isight.c for (i = 0; i < urb->number_of_packets; ++i) { urb 105 drivers/media/usb/uvc/uvc_isight.c if (urb->iso_frame_desc[i].status < 0) { urb 108 drivers/media/usb/uvc/uvc_isight.c urb->iso_frame_desc[i].status); urb 121 drivers/media/usb/uvc/uvc_isight.c urb->transfer_buffer + urb 122 drivers/media/usb/uvc/uvc_isight.c urb->iso_frame_desc[i].offset, urb 123 drivers/media/usb/uvc/uvc_isight.c urb->iso_frame_desc[i].actual_length); urb 156 drivers/media/usb/uvc/uvc_status.c static bool uvc_event_control(struct urb *urb, urb 160 drivers/media/usb/uvc/uvc_status.c struct uvc_device *dev = urb->context; urb 182 drivers/media/usb/uvc/uvc_status.c return uvc_ctrl_status_event(urb, chain, ctrl, status->bValue); urb 194 drivers/media/usb/uvc/uvc_status.c static void uvc_status_complete(struct urb *urb) urb 196 drivers/media/usb/uvc/uvc_status.c struct uvc_device *dev = urb->context; urb 199 drivers/media/usb/uvc/uvc_status.c switch (urb->status) { urb 212 drivers/media/usb/uvc/uvc_status.c "completion handler.\n", urb->status); urb 216 drivers/media/usb/uvc/uvc_status.c len = urb->actual_length; urb 223 drivers/media/usb/uvc/uvc_status.c if (uvc_event_control(urb, status, len)) urb 245 drivers/media/usb/uvc/uvc_status.c urb->interval = dev->int_ep->desc.bInterval; urb 246 drivers/media/usb/uvc/uvc_status.c if ((ret = usb_submit_urb(urb, GFP_ATOMIC)) < 0) { urb 1121 drivers/media/usb/uvc/uvc_video.c ret = usb_submit_urb(uvc_urb->urb, GFP_KERNEL); urb 1335 drivers/media/usb/uvc/uvc_video.c struct urb *urb = uvc_urb->urb; urb 1340 drivers/media/usb/uvc/uvc_video.c for (i = 0; i < urb->number_of_packets; ++i) { urb 1341 drivers/media/usb/uvc/uvc_video.c if (urb->iso_frame_desc[i].status < 0) { urb 1343 drivers/media/usb/uvc/uvc_video.c "lost (%d).\n", urb->iso_frame_desc[i].status); urb 1351 drivers/media/usb/uvc/uvc_video.c mem = urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 1354 drivers/media/usb/uvc/uvc_video.c urb->iso_frame_desc[i].actual_length); urb 1366 drivers/media/usb/uvc/uvc_video.c urb->iso_frame_desc[i].actual_length - ret); urb 1370 drivers/media/usb/uvc/uvc_video.c urb->iso_frame_desc[i].actual_length); urb 1380 drivers/media/usb/uvc/uvc_video.c struct urb *urb = uvc_urb->urb; urb 1389 drivers/media/usb/uvc/uvc_video.c if (urb->actual_length == 0 && stream->bulk.header_size == 0) urb 1392 drivers/media/usb/uvc/uvc_video.c mem = urb->transfer_buffer; urb 1393 drivers/media/usb/uvc/uvc_video.c len = urb->actual_length; urb 1432 drivers/media/usb/uvc/uvc_video.c if (urb->actual_length < urb->transfer_buffer_length || urb 1450 drivers/media/usb/uvc/uvc_video.c struct urb *urb = uvc_urb->urb; urb 1453 drivers/media/usb/uvc/uvc_video.c u8 *mem = urb->transfer_buffer; urb 1457 drivers/media/usb/uvc/uvc_video.c urb->transfer_buffer_length = 0; urb 1490 drivers/media/usb/uvc/uvc_video.c urb->transfer_buffer_length = stream->urb_size - len; urb 1493 drivers/media/usb/uvc/uvc_video.c static void uvc_video_complete(struct urb *urb) urb 1495 drivers/media/usb/uvc/uvc_video.c struct uvc_urb *uvc_urb = urb->context; urb 1505 drivers/media/usb/uvc/uvc_video.c switch (urb->status) { urb 1511 drivers/media/usb/uvc/uvc_video.c "completion handler.\n", urb->status); urb 1519 drivers/media/usb/uvc/uvc_video.c uvc_queue_cancel(queue, urb->status == -ESHUTDOWN); urb 1521 drivers/media/usb/uvc/uvc_video.c uvc_queue_cancel(qmeta, urb->status == -ESHUTDOWN); urb 1546 drivers/media/usb/uvc/uvc_video.c ret = usb_submit_urb(uvc_urb->urb, GFP_ATOMIC); urb 1659 drivers/media/usb/uvc/uvc_video.c usb_poison_urb(uvc_urb->urb); urb 1664 drivers/media/usb/uvc/uvc_video.c usb_free_urb(uvc_urb->urb); urb 1665 drivers/media/usb/uvc/uvc_video.c uvc_urb->urb = NULL; urb 1705 drivers/media/usb/uvc/uvc_video.c struct urb *urb; urb 1721 drivers/media/usb/uvc/uvc_video.c urb = usb_alloc_urb(npackets, gfp_flags); urb 1722 drivers/media/usb/uvc/uvc_video.c if (urb == NULL) { urb 1727 drivers/media/usb/uvc/uvc_video.c urb->dev = stream->dev->udev; urb 1728 drivers/media/usb/uvc/uvc_video.c urb->context = uvc_urb; urb 1729 drivers/media/usb/uvc/uvc_video.c urb->pipe = usb_rcvisocpipe(stream->dev->udev, urb 1732 drivers/media/usb/uvc/uvc_video.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 1733 drivers/media/usb/uvc/uvc_video.c urb->transfer_dma = uvc_urb->dma; urb 1735 drivers/media/usb/uvc/uvc_video.c urb->transfer_flags = URB_ISO_ASAP; urb 1737 drivers/media/usb/uvc/uvc_video.c urb->interval = ep->desc.bInterval; urb 1738 drivers/media/usb/uvc/uvc_video.c urb->transfer_buffer = uvc_urb->buffer; urb 1739 drivers/media/usb/uvc/uvc_video.c urb->complete = uvc_video_complete; urb 1740 drivers/media/usb/uvc/uvc_video.c urb->number_of_packets = npackets; urb 1741 drivers/media/usb/uvc/uvc_video.c urb->transfer_buffer_length = size; urb 1744 drivers/media/usb/uvc/uvc_video.c urb->iso_frame_desc[i].offset = i * psize; urb 1745 drivers/media/usb/uvc/uvc_video.c urb->iso_frame_desc[i].length = psize; urb 1748 drivers/media/usb/uvc/uvc_video.c uvc_urb->urb = urb; urb 1761 drivers/media/usb/uvc/uvc_video.c struct urb *urb; urb 1788 drivers/media/usb/uvc/uvc_video.c urb = usb_alloc_urb(0, gfp_flags); urb 1789 drivers/media/usb/uvc/uvc_video.c if (urb == NULL) { urb 1794 drivers/media/usb/uvc/uvc_video.c usb_fill_bulk_urb(urb, stream->dev->udev, pipe, uvc_urb->buffer, urb 1797 drivers/media/usb/uvc/uvc_video.c urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urb 1798 drivers/media/usb/uvc/uvc_video.c urb->transfer_dma = uvc_urb->dma; urb 1801 drivers/media/usb/uvc/uvc_video.c uvc_urb->urb = urb; urb 1894 drivers/media/usb/uvc/uvc_video.c ret = usb_submit_urb(uvc_urb->urb, gfp_flags); urb 524 drivers/media/usb/uvc/uvcvideo.h struct urb *urb; urb 665 drivers/media/usb/uvc/uvcvideo.h struct urb *int_urb; urb 672 drivers/media/usb/uvc/uvcvideo.h struct urb *urb; urb 835 drivers/media/usb/uvc/uvcvideo.h bool uvc_ctrl_status_event(struct urb *urb, struct uvc_video_chain *chain, urb 555 drivers/media/usb/zr364xx/zr364xx.c struct urb *purb) urb 953 drivers/media/usb/zr364xx/zr364xx.c static void read_pipe_completion(struct urb *purb) urb 67 drivers/mfd/dln2.c struct urb *urb; urb 104 drivers/mfd/dln2.c struct urb *rx_urb[DLN2_MAX_URBS]; urb 193 drivers/mfd/dln2.c static bool dln2_transfer_complete(struct dln2_dev *dln2, struct urb *urb, urb 208 drivers/mfd/dln2.c if (rxc->in_use && !rxc->urb) { urb 209 drivers/mfd/dln2.c rxc->urb = urb; urb 239 drivers/mfd/dln2.c static void dln2_rx(struct urb *urb) urb 241 drivers/mfd/dln2.c struct dln2_dev *dln2 = urb->context; urb 242 drivers/mfd/dln2.c struct dln2_header *hdr = urb->transfer_buffer; urb 249 drivers/mfd/dln2.c switch (urb->status) { urb 258 drivers/mfd/dln2.c dev_dbg(dev, "urb shutting down with status %d\n", urb->status); urb 261 drivers/mfd/dln2.c dev_dbg(dev, "nonzero urb status received %d\n", urb->status); urb 265 drivers/mfd/dln2.c if (urb->actual_length < sizeof(struct dln2_header)) { urb 266 drivers/mfd/dln2.c dev_err(dev, "short response: %d\n", urb->actual_length); urb 275 drivers/mfd/dln2.c if (size != urb->actual_length) { urb 277 drivers/mfd/dln2.c handle, id, echo, size, urb->actual_length); urb 286 drivers/mfd/dln2.c data = urb->transfer_buffer + sizeof(struct dln2_header); urb 287 drivers/mfd/dln2.c len = urb->actual_length - sizeof(struct dln2_header); urb 293 drivers/mfd/dln2.c if (dln2_transfer_complete(dln2, urb, handle, echo)) urb 298 drivers/mfd/dln2.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 397 drivers/mfd/dln2.c struct urb *urb = NULL; urb 409 drivers/mfd/dln2.c urb = rxc->urb; urb 410 drivers/mfd/dln2.c rxc->urb = NULL; urb 415 drivers/mfd/dln2.c if (urb) { urb 419 drivers/mfd/dln2.c err = usb_submit_urb(urb, GFP_KERNEL); urb 479 drivers/mfd/dln2.c rsp = rxc->urb->transfer_buffer; urb 93 drivers/mmc/host/ushc.c struct urb *int_urb; urb 96 drivers/mmc/host/ushc.c struct urb *cbw_urb; urb 99 drivers/mmc/host/ushc.c struct urb *data_urb; urb 101 drivers/mmc/host/ushc.c struct urb *csw_urb; urb 117 drivers/mmc/host/ushc.c static void data_callback(struct urb *urb); urb 163 drivers/mmc/host/ushc.c static void int_callback(struct urb *urb) urb 165 drivers/mmc/host/ushc.c struct ushc_data *ushc = urb->context; urb 168 drivers/mmc/host/ushc.c if (urb->status < 0) urb 197 drivers/mmc/host/ushc.c static void cbw_callback(struct urb *urb) urb 199 drivers/mmc/host/ushc.c struct ushc_data *ushc = urb->context; urb 201 drivers/mmc/host/ushc.c if (urb->status != 0) { urb 207 drivers/mmc/host/ushc.c static void data_callback(struct urb *urb) urb 209 drivers/mmc/host/ushc.c struct ushc_data *ushc = urb->context; urb 211 drivers/mmc/host/ushc.c if (urb->status != 0) urb 215 drivers/mmc/host/ushc.c static void csw_callback(struct urb *urb) urb 217 drivers/mmc/host/ushc.c struct ushc_data *ushc = urb->context; urb 223 drivers/mmc/host/ushc.c if (urb->status != 0) { urb 224 drivers/mmc/host/ushc.c req->cmd->error = urb->status; urb 337 drivers/mmc/host/vub300.c struct urb *urb; urb 338 drivers/mmc/host/vub300.c struct urb *command_out_urb; urb 339 drivers/mmc/host/vub300.c struct urb *command_res_urb; urb 445 drivers/mmc/host/vub300.c static void irqpoll_res_completed(struct urb *urb) urb 447 drivers/mmc/host/vub300.c struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)urb->context; urb 448 drivers/mmc/host/vub300.c if (urb->status) urb 449 drivers/mmc/host/vub300.c vub300->usb_transport_fail = urb->status; urb 453 drivers/mmc/host/vub300.c static void irqpoll_out_completed(struct urb *urb) urb 455 drivers/mmc/host/vub300.c struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)urb->context; urb 456 drivers/mmc/host/vub300.c if (urb->status) { urb 457 drivers/mmc/host/vub300.c vub300->usb_transport_fail = urb->status; urb 791 drivers/mmc/host/vub300.c static void command_res_completed(struct urb *urb) urb 793 drivers/mmc/host/vub300.c struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)urb->context; urb 794 drivers/mmc/host/vub300.c if (urb->status) { urb 808 drivers/mmc/host/vub300.c } else if (vub300->urb) { urb 811 drivers/mmc/host/vub300.c usb_unlink_urb(vub300->urb); urb 820 drivers/mmc/host/vub300.c static void command_out_completed(struct urb *urb) urb 822 drivers/mmc/host/vub300.c struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)urb->context; urb 823 drivers/mmc/host/vub300.c if (urb->status) { urb 1392 drivers/mmc/host/vub300.c static void vub300_usb_bulk_msg_completion(struct urb *urb) urb 1394 drivers/mmc/host/vub300.c complete((struct completion *)urb->context); urb 1405 drivers/mmc/host/vub300.c vub300->urb = usb_alloc_urb(0, GFP_KERNEL); urb 1406 drivers/mmc/host/vub300.c if (!vub300->urb) urb 1408 drivers/mmc/host/vub300.c usb_fill_bulk_urb(vub300->urb, usb_dev, pipe, data, len, urb 1411 drivers/mmc/host/vub300.c vub300->urb->context = &done; urb 1412 drivers/mmc/host/vub300.c vub300->urb->actual_length = 0; urb 1413 drivers/mmc/host/vub300.c retval = usb_submit_urb(vub300->urb, GFP_KERNEL); urb 1419 drivers/mmc/host/vub300.c usb_kill_urb(vub300->urb); urb 1421 drivers/mmc/host/vub300.c retval = vub300->urb->status; urb 1424 drivers/mmc/host/vub300.c *actual_length = vub300->urb->actual_length; urb 1425 drivers/mmc/host/vub300.c usb_free_urb(vub300->urb); urb 1426 drivers/mmc/host/vub300.c vub300->urb = NULL; urb 2095 drivers/mmc/host/vub300.c struct urb *command_out_urb; urb 2096 drivers/mmc/host/vub300.c struct urb *command_res_urb; urb 250 drivers/net/can/usb/ems_usb.c struct urb *intr_urb; urb 260 drivers/net/can/usb/ems_usb.c static void ems_usb_read_interrupt_callback(struct urb *urb) urb 262 drivers/net/can/usb/ems_usb.c struct ems_usb *dev = urb->context; urb 269 drivers/net/can/usb/ems_usb.c switch (urb->status) { urb 285 drivers/net/can/usb/ems_usb.c netdev_info(netdev, "Rx interrupt aborted %d\n", urb->status); urb 289 drivers/net/can/usb/ems_usb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 406 drivers/net/can/usb/ems_usb.c static void ems_usb_read_bulk_callback(struct urb *urb) urb 408 drivers/net/can/usb/ems_usb.c struct ems_usb *dev = urb->context; urb 417 drivers/net/can/usb/ems_usb.c switch (urb->status) { urb 425 drivers/net/can/usb/ems_usb.c netdev_info(netdev, "Rx URB aborted (%d)\n", urb->status); urb 429 drivers/net/can/usb/ems_usb.c if (urb->actual_length > CPC_HEADER_SIZE) { urb 431 drivers/net/can/usb/ems_usb.c u8 *ibuf = urb->transfer_buffer; urb 468 drivers/net/can/usb/ems_usb.c if (start > urb->transfer_buffer_length) { urb 476 drivers/net/can/usb/ems_usb.c usb_fill_bulk_urb(urb, dev->udev, usb_rcvbulkpipe(dev->udev, 2), urb 477 drivers/net/can/usb/ems_usb.c urb->transfer_buffer, RX_BUFFER_SIZE, urb 480 drivers/net/can/usb/ems_usb.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 492 drivers/net/can/usb/ems_usb.c static void ems_usb_write_bulk_callback(struct urb *urb) urb 494 drivers/net/can/usb/ems_usb.c struct ems_tx_urb_context *context = urb->context; urb 504 drivers/net/can/usb/ems_usb.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 505 drivers/net/can/usb/ems_usb.c urb->transfer_buffer, urb->transfer_dma); urb 512 drivers/net/can/usb/ems_usb.c if (urb->status) urb 513 drivers/net/can/usb/ems_usb.c netdev_info(netdev, "Tx URB aborted (%d)\n", urb->status); urb 588 drivers/net/can/usb/ems_usb.c struct urb *urb = NULL; urb 592 drivers/net/can/usb/ems_usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 593 drivers/net/can/usb/ems_usb.c if (!urb) { urb 599 drivers/net/can/usb/ems_usb.c &urb->transfer_dma); urb 602 drivers/net/can/usb/ems_usb.c usb_free_urb(urb); urb 607 drivers/net/can/usb/ems_usb.c usb_fill_bulk_urb(urb, dev->udev, usb_rcvbulkpipe(dev->udev, 2), urb 610 drivers/net/can/usb/ems_usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 611 drivers/net/can/usb/ems_usb.c usb_anchor_urb(urb, &dev->rx_submitted); urb 613 drivers/net/can/usb/ems_usb.c err = usb_submit_urb(urb, GFP_KERNEL); urb 615 drivers/net/can/usb/ems_usb.c usb_unanchor_urb(urb); urb 617 drivers/net/can/usb/ems_usb.c urb->transfer_dma); urb 618 drivers/net/can/usb/ems_usb.c usb_free_urb(urb); urb 623 drivers/net/can/usb/ems_usb.c usb_free_urb(urb); urb 734 drivers/net/can/usb/ems_usb.c struct urb *urb; urb 744 drivers/net/can/usb/ems_usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 745 drivers/net/can/usb/ems_usb.c if (!urb) urb 748 drivers/net/can/usb/ems_usb.c buf = usb_alloc_coherent(dev->udev, size, GFP_ATOMIC, &urb->transfer_dma); urb 751 drivers/net/can/usb/ems_usb.c usb_free_urb(urb); urb 787 drivers/net/can/usb/ems_usb.c usb_free_coherent(dev->udev, size, buf, urb->transfer_dma); urb 788 drivers/net/can/usb/ems_usb.c usb_free_urb(urb); urb 799 drivers/net/can/usb/ems_usb.c usb_fill_bulk_urb(urb, dev->udev, usb_sndbulkpipe(dev->udev, 2), buf, urb 801 drivers/net/can/usb/ems_usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 802 drivers/net/can/usb/ems_usb.c usb_anchor_urb(urb, &dev->tx_submitted); urb 808 drivers/net/can/usb/ems_usb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 812 drivers/net/can/usb/ems_usb.c usb_unanchor_urb(urb); urb 813 drivers/net/can/usb/ems_usb.c usb_free_coherent(dev->udev, size, buf, urb->transfer_dma); urb 839 drivers/net/can/usb/ems_usb.c usb_free_urb(urb); urb 372 drivers/net/can/usb/esd_usb2.c static void esd_usb2_read_bulk_callback(struct urb *urb) urb 374 drivers/net/can/usb/esd_usb2.c struct esd_usb2 *dev = urb->context; urb 379 drivers/net/can/usb/esd_usb2.c switch (urb->status) { urb 391 drivers/net/can/usb/esd_usb2.c "Rx URB aborted (%d)\n", urb->status); urb 395 drivers/net/can/usb/esd_usb2.c while (pos < urb->actual_length) { urb 398 drivers/net/can/usb/esd_usb2.c msg = (struct esd_usb2_msg *)(urb->transfer_buffer + pos); urb 423 drivers/net/can/usb/esd_usb2.c if (pos > urb->actual_length) { urb 430 drivers/net/can/usb/esd_usb2.c usb_fill_bulk_urb(urb, dev->udev, usb_rcvbulkpipe(dev->udev, 1), urb 431 drivers/net/can/usb/esd_usb2.c urb->transfer_buffer, RX_BUFFER_SIZE, urb 434 drivers/net/can/usb/esd_usb2.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 451 drivers/net/can/usb/esd_usb2.c static void esd_usb2_write_bulk_callback(struct urb *urb) urb 453 drivers/net/can/usb/esd_usb2.c struct esd_tx_urb_context *context = urb->context; urb 464 drivers/net/can/usb/esd_usb2.c usb_free_coherent(urb->dev, size, urb 465 drivers/net/can/usb/esd_usb2.c urb->transfer_buffer, urb->transfer_dma); urb 470 drivers/net/can/usb/esd_usb2.c if (urb->status) urb 471 drivers/net/can/usb/esd_usb2.c netdev_info(netdev, "Tx URB aborted (%d)\n", urb->status); urb 545 drivers/net/can/usb/esd_usb2.c struct urb *urb = NULL; urb 549 drivers/net/can/usb/esd_usb2.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 550 drivers/net/can/usb/esd_usb2.c if (!urb) { urb 556 drivers/net/can/usb/esd_usb2.c &urb->transfer_dma); urb 564 drivers/net/can/usb/esd_usb2.c usb_fill_bulk_urb(urb, dev->udev, urb 568 drivers/net/can/usb/esd_usb2.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 569 drivers/net/can/usb/esd_usb2.c usb_anchor_urb(urb, &dev->rx_submitted); urb 571 drivers/net/can/usb/esd_usb2.c err = usb_submit_urb(urb, GFP_KERNEL); urb 573 drivers/net/can/usb/esd_usb2.c usb_unanchor_urb(urb); urb 575 drivers/net/can/usb/esd_usb2.c urb->transfer_dma); urb 580 drivers/net/can/usb/esd_usb2.c usb_free_urb(urb); urb 709 drivers/net/can/usb/esd_usb2.c struct urb *urb; urb 719 drivers/net/can/usb/esd_usb2.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 720 drivers/net/can/usb/esd_usb2.c if (!urb) { urb 727 drivers/net/can/usb/esd_usb2.c &urb->transfer_dma); urb 777 drivers/net/can/usb/esd_usb2.c usb_fill_bulk_urb(urb, dev->udev, usb_sndbulkpipe(dev->udev, 2), buf, urb 781 drivers/net/can/usb/esd_usb2.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 783 drivers/net/can/usb/esd_usb2.c usb_anchor_urb(urb, &priv->tx_submitted); urb 793 drivers/net/can/usb/esd_usb2.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 798 drivers/net/can/usb/esd_usb2.c usb_unanchor_urb(urb); urb 816 drivers/net/can/usb/esd_usb2.c usb_free_urb(urb); urb 821 drivers/net/can/usb/esd_usb2.c usb_free_coherent(dev->udev, size, buf, urb->transfer_dma); urb 824 drivers/net/can/usb/esd_usb2.c usb_free_urb(urb); urb 290 drivers/net/can/usb/gs_usb.c static void gs_usb_receive_bulk_callback(struct urb *urb) urb 292 drivers/net/can/usb/gs_usb.c struct gs_usb *usbcan = urb->context; urb 297 drivers/net/can/usb/gs_usb.c struct gs_host_frame *hf = urb->transfer_buffer; urb 304 drivers/net/can/usb/gs_usb.c switch (urb->status) { urb 389 drivers/net/can/usb/gs_usb.c usb_fill_bulk_urb(urb, urb 398 drivers/net/can/usb/gs_usb.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 447 drivers/net/can/usb/gs_usb.c static void gs_usb_xmit_callback(struct urb *urb) urb 449 drivers/net/can/usb/gs_usb.c struct gs_tx_context *txc = urb->context; urb 453 drivers/net/can/usb/gs_usb.c if (urb->status) urb 456 drivers/net/can/usb/gs_usb.c usb_free_coherent(urb->dev, urb 457 drivers/net/can/usb/gs_usb.c urb->transfer_buffer_length, urb 458 drivers/net/can/usb/gs_usb.c urb->transfer_buffer, urb 459 drivers/net/can/usb/gs_usb.c urb->transfer_dma); urb 467 drivers/net/can/usb/gs_usb.c struct urb *urb; urb 483 drivers/net/can/usb/gs_usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 484 drivers/net/can/usb/gs_usb.c if (!urb) urb 488 drivers/net/can/usb/gs_usb.c &urb->transfer_dma); urb 510 drivers/net/can/usb/gs_usb.c usb_fill_bulk_urb(urb, dev->udev, urb 517 drivers/net/can/usb/gs_usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 518 drivers/net/can/usb/gs_usb.c usb_anchor_urb(urb, &dev->tx_submitted); urb 524 drivers/net/can/usb/gs_usb.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 531 drivers/net/can/usb/gs_usb.c usb_unanchor_urb(urb); urb 535 drivers/net/can/usb/gs_usb.c urb->transfer_dma); urb 550 drivers/net/can/usb/gs_usb.c usb_free_urb(urb); urb 558 drivers/net/can/usb/gs_usb.c urb->transfer_dma); urb 560 drivers/net/can/usb/gs_usb.c usb_free_urb(urb); urb 583 drivers/net/can/usb/gs_usb.c struct urb *urb; urb 587 drivers/net/can/usb/gs_usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 588 drivers/net/can/usb/gs_usb.c if (!urb) urb 595 drivers/net/can/usb/gs_usb.c &urb->transfer_dma); urb 599 drivers/net/can/usb/gs_usb.c usb_free_urb(urb); urb 604 drivers/net/can/usb/gs_usb.c usb_fill_bulk_urb(urb, urb 612 drivers/net/can/usb/gs_usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 614 drivers/net/can/usb/gs_usb.c usb_anchor_urb(urb, &parent->rx_submitted); urb 616 drivers/net/can/usb/gs_usb.c rc = usb_submit_urb(urb, GFP_KERNEL); urb 625 drivers/net/can/usb/gs_usb.c usb_unanchor_urb(urb); urb 626 drivers/net/can/usb/gs_usb.c usb_free_urb(urb); urb 633 drivers/net/can/usb/gs_usb.c usb_free_urb(urb); urb 203 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c static void kvaser_usb_send_cmd_callback(struct urb *urb) urb 205 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c struct net_device *netdev = urb->context; urb 207 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c kfree(urb->transfer_buffer); urb 209 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c if (urb->status) urb 210 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c netdev_warn(netdev, "urb status received: %d\n", urb->status); urb 218 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c struct urb *urb; urb 221 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 222 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c if (!urb) urb 225 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_fill_bulk_urb(urb, dev->udev, urb 229 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_anchor_urb(urb, &priv->tx_submitted); urb 231 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 234 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_unanchor_urb(urb); urb 236 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_free_urb(urb); urb 267 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c static void kvaser_usb_read_bulk_callback(struct urb *urb) urb 269 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c struct kvaser_usb *dev = urb->context; urb 273 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c switch (urb->status) { urb 282 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c dev_info(&dev->intf->dev, "Rx URB aborted (%d)\n", urb->status); urb 286 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c dev->ops->dev_read_bulk_callback(dev, urb->transfer_buffer, urb 287 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c urb->actual_length); urb 290 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_fill_bulk_urb(urb, dev->udev, urb 293 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c urb->transfer_buffer, KVASER_USB_RX_BUFFER_SIZE, urb 296 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 318 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c struct urb *urb = NULL; urb 322 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 323 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c if (!urb) { urb 333 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_free_urb(urb); urb 338 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_fill_bulk_urb(urb, dev->udev, urb 344 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c urb->transfer_dma = buf_dma; urb 345 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 346 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_anchor_urb(urb, &dev->rx_submitted); urb 348 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c err = usb_submit_urb(urb, GFP_KERNEL); urb 350 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_unanchor_urb(urb); urb 354 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_free_urb(urb); urb 361 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_free_urb(urb); urb 480 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c static void kvaser_usb_write_bulk_callback(struct urb *urb) urb 482 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c struct kvaser_usb_tx_urb_context *context = urb->context; urb 492 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c kfree(urb->transfer_buffer); urb 497 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c if (urb->status) urb 498 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c netdev_info(netdev, "Tx URB aborted (%d)\n", urb->status); urb 508 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c struct urb *urb; urb 518 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 519 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c if (!urb) { urb 567 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_fill_bulk_urb(urb, dev->udev, urb 572 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_anchor_urb(urb, &priv->tx_submitted); urb 574 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 585 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_unanchor_urb(urb); urb 601 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c usb_free_urb(urb); urb 219 drivers/net/can/usb/mcba_usb.c static void mcba_usb_write_bulk_callback(struct urb *urb) urb 221 drivers/net/can/usb/mcba_usb.c struct mcba_usb_ctx *ctx = urb->context; urb 229 drivers/net/can/usb/mcba_usb.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 230 drivers/net/can/usb/mcba_usb.c urb->transfer_buffer, urb->transfer_dma); urb 243 drivers/net/can/usb/mcba_usb.c if (urb->status) urb 244 drivers/net/can/usb/mcba_usb.c netdev_info(netdev, "Tx URB aborted (%d)\n", urb->status); urb 255 drivers/net/can/usb/mcba_usb.c struct urb *urb; urb 260 drivers/net/can/usb/mcba_usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 261 drivers/net/can/usb/mcba_usb.c if (!urb) urb 265 drivers/net/can/usb/mcba_usb.c &urb->transfer_dma); urb 273 drivers/net/can/usb/mcba_usb.c usb_fill_bulk_urb(urb, priv->udev, urb 278 drivers/net/can/usb/mcba_usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 279 drivers/net/can/usb/mcba_usb.c usb_anchor_urb(urb, &priv->tx_submitted); urb 281 drivers/net/can/usb/mcba_usb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 288 drivers/net/can/usb/mcba_usb.c usb_free_urb(urb); urb 293 drivers/net/can/usb/mcba_usb.c usb_unanchor_urb(urb); urb 295 drivers/net/can/usb/mcba_usb.c urb->transfer_dma); urb 303 drivers/net/can/usb/mcba_usb.c usb_free_urb(urb); urb 567 drivers/net/can/usb/mcba_usb.c static void mcba_usb_read_bulk_callback(struct urb *urb) urb 569 drivers/net/can/usb/mcba_usb.c struct mcba_priv *priv = urb->context; urb 579 drivers/net/can/usb/mcba_usb.c switch (urb->status) { urb 590 drivers/net/can/usb/mcba_usb.c netdev_info(netdev, "Rx URB aborted (%d)\n", urb->status); urb 595 drivers/net/can/usb/mcba_usb.c while (pos < urb->actual_length) { urb 598 drivers/net/can/usb/mcba_usb.c if (pos + sizeof(struct mcba_usb_msg) > urb->actual_length) { urb 603 drivers/net/can/usb/mcba_usb.c msg = (struct mcba_usb_msg *)(urb->transfer_buffer + pos); urb 611 drivers/net/can/usb/mcba_usb.c usb_fill_bulk_urb(urb, priv->udev, urb 613 drivers/net/can/usb/mcba_usb.c urb->transfer_buffer, MCBA_USB_RX_BUFF_SIZE, urb 616 drivers/net/can/usb/mcba_usb.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 634 drivers/net/can/usb/mcba_usb.c struct urb *urb = NULL; urb 638 drivers/net/can/usb/mcba_usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 639 drivers/net/can/usb/mcba_usb.c if (!urb) { urb 645 drivers/net/can/usb/mcba_usb.c GFP_KERNEL, &urb->transfer_dma); urb 648 drivers/net/can/usb/mcba_usb.c usb_free_urb(urb); urb 653 drivers/net/can/usb/mcba_usb.c usb_fill_bulk_urb(urb, priv->udev, urb 657 drivers/net/can/usb/mcba_usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 658 drivers/net/can/usb/mcba_usb.c usb_anchor_urb(urb, &priv->rx_submitted); urb 660 drivers/net/can/usb/mcba_usb.c err = usb_submit_urb(urb, GFP_KERNEL); urb 662 drivers/net/can/usb/mcba_usb.c usb_unanchor_urb(urb); urb 664 drivers/net/can/usb/mcba_usb.c buf, urb->transfer_dma); urb 665 drivers/net/can/usb/mcba_usb.c usb_free_urb(urb); urb 670 drivers/net/can/usb/mcba_usb.c usb_free_urb(urb); urb 266 drivers/net/can/usb/peak_usb/pcan_usb.c static void pcan_usb_restart_pending(struct urb *urb) urb 268 drivers/net/can/usb/peak_usb/pcan_usb.c struct pcan_usb *pdev = urb->context; urb 275 drivers/net/can/usb/peak_usb/pcan_usb.c peak_usb_async_complete(urb); urb 281 drivers/net/can/usb/peak_usb/pcan_usb.c static int pcan_usb_restart_async(struct peak_usb_device *dev, struct urb *urb, urb 294 drivers/net/can/usb/peak_usb/pcan_usb.c usb_fill_bulk_urb(urb, dev->udev, urb 299 drivers/net/can/usb/peak_usb/pcan_usb.c return usb_submit_urb(urb, GFP_ATOMIC); urb 713 drivers/net/can/usb/peak_usb/pcan_usb.c static int pcan_usb_decode_buf(struct peak_usb_device *dev, struct urb *urb) urb 717 drivers/net/can/usb/peak_usb/pcan_usb.c if (urb->actual_length > PCAN_USB_MSG_HEADER_LEN) { urb 718 drivers/net/can/usb/peak_usb/pcan_usb.c err = pcan_usb_decode_msg(dev, urb->transfer_buffer, urb 719 drivers/net/can/usb/peak_usb/pcan_usb.c urb->actual_length); urb 721 drivers/net/can/usb/peak_usb/pcan_usb.c } else if (urb->actual_length > 0) { urb 723 drivers/net/can/usb/peak_usb/pcan_usb.c urb->actual_length); urb 165 drivers/net/can/usb/peak_usb/pcan_usb_core.c static void peak_usb_read_bulk_callback(struct urb *urb) urb 167 drivers/net/can/usb/peak_usb/pcan_usb_core.c struct peak_usb_device *dev = urb->context; urb 177 drivers/net/can/usb/peak_usb/pcan_usb_core.c switch (urb->status) { urb 191 drivers/net/can/usb/peak_usb/pcan_usb_core.c "Rx urb aborted (%d)\n", urb->status); urb 196 drivers/net/can/usb/peak_usb/pcan_usb_core.c if ((urb->actual_length > 0) && (dev->adapter->dev_decode_buf)) { urb 199 drivers/net/can/usb/peak_usb/pcan_usb_core.c err = dev->adapter->dev_decode_buf(dev, urb); urb 202 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb->transfer_buffer, urb 203 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb->transfer_buffer_length); urb 208 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_fill_bulk_urb(urb, dev->udev, urb 210 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb->transfer_buffer, dev->adapter->rx_buffer_size, urb 213 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_anchor_urb(urb, &dev->rx_submitted); urb 214 drivers/net/can/usb/peak_usb/pcan_usb_core.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 218 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_unanchor_urb(urb); urb 230 drivers/net/can/usb/peak_usb/pcan_usb_core.c static void peak_usb_write_bulk_callback(struct urb *urb) urb 232 drivers/net/can/usb/peak_usb/pcan_usb_core.c struct peak_tx_urb_context *context = urb->context; urb 247 drivers/net/can/usb/peak_usb/pcan_usb_core.c switch (urb->status) { urb 260 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb->status); urb 274 drivers/net/can/usb/peak_usb/pcan_usb_core.c if (!urb->status) urb 288 drivers/net/can/usb/peak_usb/pcan_usb_core.c struct urb *urb; urb 307 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb = context->urb; urb 308 drivers/net/can/usb/peak_usb/pcan_usb_core.c obuf = urb->transfer_buffer; urb 324 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_anchor_urb(urb, &dev->tx_submitted); urb 330 drivers/net/can/usb/peak_usb/pcan_usb_core.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 334 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_unanchor_urb(urb); urb 374 drivers/net/can/usb/peak_usb/pcan_usb_core.c struct urb *urb; urb 378 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 379 drivers/net/can/usb/peak_usb/pcan_usb_core.c if (!urb) { urb 386 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_free_urb(urb); urb 391 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_fill_bulk_urb(urb, dev->udev, urb 397 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb->transfer_flags |= URB_FREE_BUFFER; urb 398 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_anchor_urb(urb, &dev->rx_submitted); urb 400 drivers/net/can/usb/peak_usb/pcan_usb_core.c err = usb_submit_urb(urb, GFP_KERNEL); urb 405 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_unanchor_urb(urb); urb 407 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_free_urb(urb); urb 412 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_free_urb(urb); urb 428 drivers/net/can/usb/peak_usb/pcan_usb_core.c struct urb *urb; urb 432 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 433 drivers/net/can/usb/peak_usb/pcan_usb_core.c if (!urb) { urb 440 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_free_urb(urb); urb 447 drivers/net/can/usb/peak_usb/pcan_usb_core.c context->urb = urb; urb 449 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_fill_bulk_urb(urb, dev->udev, urb 455 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb->transfer_flags |= URB_FREE_BUFFER; urb 494 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_free_urb(dev->tx_contexts[i].urb); urb 495 drivers/net/can/usb/peak_usb/pcan_usb_core.c dev->tx_contexts[i].urb = NULL; urb 541 drivers/net/can/usb/peak_usb/pcan_usb_core.c struct urb *urb = dev->tx_contexts[i].urb; urb 543 drivers/net/can/usb/peak_usb/pcan_usb_core.c if (!urb || urb 552 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_free_urb(urb); urb 553 drivers/net/can/usb/peak_usb/pcan_usb_core.c dev->tx_contexts[i].urb = NULL; urb 603 drivers/net/can/usb/peak_usb/pcan_usb_core.c void peak_usb_async_complete(struct urb *urb) urb 605 drivers/net/can/usb/peak_usb/pcan_usb_core.c kfree(urb->transfer_buffer); urb 606 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_free_urb(urb); urb 615 drivers/net/can/usb/peak_usb/pcan_usb_core.c struct urb *urb; urb 629 drivers/net/can/usb/peak_usb/pcan_usb_core.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 630 drivers/net/can/usb/peak_usb/pcan_usb_core.c if (!urb) urb 636 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_free_urb(urb); urb 641 drivers/net/can/usb/peak_usb/pcan_usb_core.c err = dev->adapter->dev_restart_async(dev, urb, buf); urb 646 drivers/net/can/usb/peak_usb/pcan_usb_core.c usb_free_urb(urb); urb 62 drivers/net/can/usb/peak_usb/pcan_usb_core.h int (*dev_decode_buf)(struct peak_usb_device *dev, struct urb *urb); urb 67 drivers/net/can/usb/peak_usb/pcan_usb_core.h int (*dev_restart_async)(struct peak_usb_device *dev, struct urb *urb, urb 102 drivers/net/can/usb/peak_usb/pcan_usb_core.h struct urb *urb; urb 149 drivers/net/can/usb/peak_usb/pcan_usb_core.h void peak_usb_async_complete(struct urb *urb); urb 429 drivers/net/can/usb/peak_usb/pcan_usb_fd.c struct urb *urb, u8 *buf) urb 443 drivers/net/can/usb/peak_usb/pcan_usb_fd.c usb_fill_bulk_urb(urb, dev->udev, urb 449 drivers/net/can/usb/peak_usb/pcan_usb_fd.c return usb_submit_urb(urb, GFP_ATOMIC); urb 633 drivers/net/can/usb/peak_usb/pcan_usb_fd.c static int pcan_usb_fd_decode_buf(struct peak_usb_device *dev, struct urb *urb) urb 642 drivers/net/can/usb/peak_usb/pcan_usb_fd.c msg_ptr = urb->transfer_buffer; urb 643 drivers/net/can/usb/peak_usb/pcan_usb_fd.c msg_end = urb->transfer_buffer + urb->actual_length; urb 706 drivers/net/can/usb/peak_usb/pcan_usb_fd.c urb->transfer_buffer, urb->actual_length); urb 464 drivers/net/can/usb/peak_usb/pcan_usb_pro.c void pcan_usb_pro_restart_complete(struct urb *urb) urb 467 drivers/net/can/usb/peak_usb/pcan_usb_pro.c peak_usb_async_complete(urb); urb 470 drivers/net/can/usb/peak_usb/pcan_usb_pro.c peak_usb_restart_complete(urb->context); urb 477 drivers/net/can/usb/peak_usb/pcan_usb_pro.c struct urb *urb, u8 *buf) urb 484 drivers/net/can/usb/peak_usb/pcan_usb_pro.c usb_fill_bulk_urb(urb, dev->udev, urb 489 drivers/net/can/usb/peak_usb/pcan_usb_pro.c return usb_submit_urb(urb, GFP_ATOMIC); urb 685 drivers/net/can/usb/peak_usb/pcan_usb_pro.c static int pcan_usb_pro_decode_buf(struct peak_usb_device *dev, struct urb *urb) urb 694 drivers/net/can/usb/peak_usb/pcan_usb_pro.c rec_ptr = pcan_msg_init(&usb_msg, urb->transfer_buffer, urb 695 drivers/net/can/usb/peak_usb/pcan_usb_pro.c urb->actual_length); urb 697 drivers/net/can/usb/peak_usb/pcan_usb_pro.c netdev_err(netdev, "bad msg hdr len %d\n", urb->actual_length); urb 702 drivers/net/can/usb/peak_usb/pcan_usb_pro.c msg_end = urb->transfer_buffer + urb->actual_length; urb 756 drivers/net/can/usb/peak_usb/pcan_usb_pro.c urb->transfer_buffer, urb->actual_length); urb 182 drivers/net/can/usb/peak_usb/pcan_usb_pro.h void pcan_usb_pro_restart_complete(struct urb *urb); urb 685 drivers/net/can/usb/ucan.c static void ucan_read_bulk_callback(struct urb *urb) urb 689 drivers/net/can/usb/ucan.c struct ucan_priv *up = urb->context; urb 699 drivers/net/can/usb/ucan.c urb->transfer_buffer, urb 700 drivers/net/can/usb/ucan.c urb->transfer_dma); urb 705 drivers/net/can/usb/ucan.c switch (urb->status) { urb 716 drivers/net/can/usb/ucan.c urb->transfer_buffer, urb 717 drivers/net/can/usb/ucan.c urb->transfer_dma); urb 719 drivers/net/can/usb/ucan.c urb->status); urb 731 drivers/net/can/usb/ucan.c while (pos < urb->actual_length) { urb 735 drivers/net/can/usb/ucan.c if ((urb->actual_length - pos) < UCAN_IN_HDR_SIZE) { urb 738 drivers/net/can/usb/ucan.c urb->actual_length); urb 744 drivers/net/can/usb/ucan.c ((u8 *)urb->transfer_buffer + pos); urb 748 drivers/net/can/usb/ucan.c if (urb->actual_length - pos < len) { urb 751 drivers/net/can/usb/ucan.c urb->actual_length); urb 757 drivers/net/can/usb/ucan.c urb->transfer_buffer, urb 758 drivers/net/can/usb/ucan.c urb->actual_length, urb 786 drivers/net/can/usb/ucan.c usb_fill_bulk_urb(urb, up->udev, urb 789 drivers/net/can/usb/ucan.c urb->transfer_buffer, urb 794 drivers/net/can/usb/ucan.c usb_anchor_urb(urb, &up->rx_urbs); urb 795 drivers/net/can/usb/ucan.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 802 drivers/net/can/usb/ucan.c usb_unanchor_urb(urb); urb 805 drivers/net/can/usb/ucan.c urb->transfer_buffer, urb 806 drivers/net/can/usb/ucan.c urb->transfer_dma); urb 814 drivers/net/can/usb/ucan.c static void ucan_write_bulk_callback(struct urb *urb) urb 818 drivers/net/can/usb/ucan.c struct ucan_urb_context *context = urb->context; urb 825 drivers/net/can/usb/ucan.c usb_free_coherent(urb->dev, urb 827 drivers/net/can/usb/ucan.c urb->transfer_buffer, urb 828 drivers/net/can/usb/ucan.c urb->transfer_dma); urb 839 drivers/net/can/usb/ucan.c if (urb->status) { urb 842 drivers/net/can/usb/ucan.c urb->status); urb 858 drivers/net/can/usb/ucan.c static void ucan_cleanup_rx_urbs(struct ucan_priv *up, struct urb **urbs) urb 877 drivers/net/can/usb/ucan.c struct urb **urbs) urb 925 drivers/net/can/usb/ucan.c static int ucan_submit_rx_urbs(struct ucan_priv *up, struct urb **urbs) urb 964 drivers/net/can/usb/ucan.c struct urb *urbs[UCAN_MAX_RX_URBS]; urb 1047 drivers/net/can/usb/ucan.c static struct urb *ucan_prepare_tx_urb(struct ucan_priv *up, urb 1053 drivers/net/can/usb/ucan.c struct urb *urb; urb 1057 drivers/net/can/usb/ucan.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 1058 drivers/net/can/usb/ucan.c if (!urb) { urb 1066 drivers/net/can/usb/ucan.c &urb->transfer_dma); urb 1069 drivers/net/can/usb/ucan.c usb_free_urb(urb); urb 1094 drivers/net/can/usb/ucan.c usb_fill_bulk_urb(urb, up->udev, urb 1098 drivers/net/can/usb/ucan.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1100 drivers/net/can/usb/ucan.c return urb; urb 1103 drivers/net/can/usb/ucan.c static void ucan_clean_up_tx_urb(struct ucan_priv *up, struct urb *urb) urb 1106 drivers/net/can/usb/ucan.c urb->transfer_buffer, urb->transfer_dma); urb 1107 drivers/net/can/usb/ucan.c usb_free_urb(urb); urb 1117 drivers/net/can/usb/ucan.c struct urb *urb; urb 1134 drivers/net/can/usb/ucan.c urb = ucan_prepare_tx_urb(up, context, cf, echo_index); urb 1135 drivers/net/can/usb/ucan.c if (!urb) urb 1144 drivers/net/can/usb/ucan.c usb_anchor_urb(urb, &up->tx_urbs); urb 1145 drivers/net/can/usb/ucan.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 1150 drivers/net/can/usb/ucan.c usb_unanchor_urb(urb); urb 1151 drivers/net/can/usb/ucan.c ucan_clean_up_tx_urb(up, urb); urb 1177 drivers/net/can/usb/ucan.c usb_free_urb(urb); urb 499 drivers/net/can/usb/usb_8dev.c static void usb_8dev_read_bulk_callback(struct urb *urb) urb 501 drivers/net/can/usb/usb_8dev.c struct usb_8dev_priv *priv = urb->context; urb 511 drivers/net/can/usb/usb_8dev.c switch (urb->status) { urb 523 drivers/net/can/usb/usb_8dev.c urb->status); urb 527 drivers/net/can/usb/usb_8dev.c while (pos < urb->actual_length) { urb 530 drivers/net/can/usb/usb_8dev.c if (pos + sizeof(struct usb_8dev_rx_msg) > urb->actual_length) { urb 535 drivers/net/can/usb/usb_8dev.c msg = (struct usb_8dev_rx_msg *)(urb->transfer_buffer + pos); urb 542 drivers/net/can/usb/usb_8dev.c usb_fill_bulk_urb(urb, priv->udev, urb 544 drivers/net/can/usb/usb_8dev.c urb->transfer_buffer, RX_BUFFER_SIZE, urb 547 drivers/net/can/usb/usb_8dev.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 561 drivers/net/can/usb/usb_8dev.c static void usb_8dev_write_bulk_callback(struct urb *urb) urb 563 drivers/net/can/usb/usb_8dev.c struct usb_8dev_tx_urb_context *context = urb->context; urb 573 drivers/net/can/usb/usb_8dev.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 574 drivers/net/can/usb/usb_8dev.c urb->transfer_buffer, urb->transfer_dma); urb 581 drivers/net/can/usb/usb_8dev.c if (urb->status) urb 583 drivers/net/can/usb/usb_8dev.c urb->status); urb 606 drivers/net/can/usb/usb_8dev.c struct urb *urb; urb 616 drivers/net/can/usb/usb_8dev.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 617 drivers/net/can/usb/usb_8dev.c if (!urb) urb 621 drivers/net/can/usb/usb_8dev.c &urb->transfer_dma); urb 661 drivers/net/can/usb/usb_8dev.c usb_fill_bulk_urb(urb, priv->udev, urb 664 drivers/net/can/usb/usb_8dev.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 665 drivers/net/can/usb/usb_8dev.c usb_anchor_urb(urb, &priv->tx_submitted); urb 671 drivers/net/can/usb/usb_8dev.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 681 drivers/net/can/usb/usb_8dev.c usb_free_urb(urb); urb 686 drivers/net/can/usb/usb_8dev.c usb_free_coherent(priv->udev, size, buf, urb->transfer_dma); urb 687 drivers/net/can/usb/usb_8dev.c usb_free_urb(urb); urb 696 drivers/net/can/usb/usb_8dev.c usb_unanchor_urb(urb); urb 697 drivers/net/can/usb/usb_8dev.c usb_free_coherent(priv->udev, size, buf, urb->transfer_dma); urb 707 drivers/net/can/usb/usb_8dev.c usb_free_urb(urb); urb 734 drivers/net/can/usb/usb_8dev.c struct urb *urb = NULL; urb 738 drivers/net/can/usb/usb_8dev.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 739 drivers/net/can/usb/usb_8dev.c if (!urb) { urb 745 drivers/net/can/usb/usb_8dev.c &urb->transfer_dma); urb 748 drivers/net/can/usb/usb_8dev.c usb_free_urb(urb); urb 753 drivers/net/can/usb/usb_8dev.c usb_fill_bulk_urb(urb, priv->udev, urb 758 drivers/net/can/usb/usb_8dev.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 759 drivers/net/can/usb/usb_8dev.c usb_anchor_urb(urb, &priv->rx_submitted); urb 761 drivers/net/can/usb/usb_8dev.c err = usb_submit_urb(urb, GFP_KERNEL); urb 763 drivers/net/can/usb/usb_8dev.c usb_unanchor_urb(urb); urb 765 drivers/net/can/usb/usb_8dev.c urb->transfer_dma); urb 766 drivers/net/can/usb/usb_8dev.c usb_free_urb(urb); urb 771 drivers/net/can/usb/usb_8dev.c usb_free_urb(urb); urb 59 drivers/net/ieee802154/atusb.c struct urb *tx_urb; urb 200 drivers/net/ieee802154/atusb.c static void atusb_in(struct urb *urb); urb 202 drivers/net/ieee802154/atusb.c static int atusb_submit_rx_urb(struct atusb *atusb, struct urb *urb) urb 205 drivers/net/ieee802154/atusb.c struct sk_buff *skb = urb->context; urb 219 drivers/net/ieee802154/atusb.c usb_fill_bulk_urb(urb, usb_dev, usb_rcvbulkpipe(usb_dev, 1), urb 221 drivers/net/ieee802154/atusb.c usb_anchor_urb(urb, &atusb->rx_urbs); urb 223 drivers/net/ieee802154/atusb.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 225 drivers/net/ieee802154/atusb.c usb_unanchor_urb(urb); urb 227 drivers/net/ieee802154/atusb.c urb->context = NULL; urb 237 drivers/net/ieee802154/atusb.c struct urb *urb; urb 244 drivers/net/ieee802154/atusb.c urb = usb_get_from_anchor(&atusb->idle_urbs); urb 245 drivers/net/ieee802154/atusb.c if (!urb) urb 247 drivers/net/ieee802154/atusb.c ret = atusb_submit_rx_urb(atusb, urb); urb 250 drivers/net/ieee802154/atusb.c usb_anchor_urb(urb, &atusb->idle_urbs); urb 280 drivers/net/ieee802154/atusb.c static void atusb_in_good(struct urb *urb) urb 282 drivers/net/ieee802154/atusb.c struct usb_device *usb_dev = urb->dev; urb 283 drivers/net/ieee802154/atusb.c struct sk_buff *skb = urb->context; urb 287 drivers/net/ieee802154/atusb.c if (!urb->actual_length) { urb 294 drivers/net/ieee802154/atusb.c if (urb->actual_length == 1) { urb 299 drivers/net/ieee802154/atusb.c if (len + 1 > urb->actual_length - 1) { urb 301 drivers/net/ieee802154/atusb.c len, urb->actual_length); urb 315 drivers/net/ieee802154/atusb.c urb->context = NULL; /* skb is gone */ urb 318 drivers/net/ieee802154/atusb.c static void atusb_in(struct urb *urb) urb 320 drivers/net/ieee802154/atusb.c struct usb_device *usb_dev = urb->dev; urb 321 drivers/net/ieee802154/atusb.c struct sk_buff *skb = urb->context; urb 325 drivers/net/ieee802154/atusb.c urb->status, urb->actual_length); urb 326 drivers/net/ieee802154/atusb.c if (urb->status) { urb 327 drivers/net/ieee802154/atusb.c if (urb->status == -ENOENT) { /* being killed */ urb 329 drivers/net/ieee802154/atusb.c urb->context = NULL; urb 332 drivers/net/ieee802154/atusb.c dev_dbg(&usb_dev->dev, "%s: URB error %d\n", __func__, urb->status); urb 334 drivers/net/ieee802154/atusb.c atusb_in_good(urb); urb 337 drivers/net/ieee802154/atusb.c usb_anchor_urb(urb, &atusb->idle_urbs); urb 346 drivers/net/ieee802154/atusb.c struct urb *urb; urb 349 drivers/net/ieee802154/atusb.c urb = usb_get_from_anchor(&atusb->idle_urbs); urb 350 drivers/net/ieee802154/atusb.c if (!urb) urb 352 drivers/net/ieee802154/atusb.c kfree_skb(urb->context); urb 353 drivers/net/ieee802154/atusb.c usb_free_urb(urb); urb 359 drivers/net/ieee802154/atusb.c struct urb *urb; urb 362 drivers/net/ieee802154/atusb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 363 drivers/net/ieee802154/atusb.c if (!urb) { urb 367 drivers/net/ieee802154/atusb.c usb_anchor_urb(urb, &atusb->idle_urbs); urb 375 drivers/net/ieee802154/atusb.c static void atusb_xmit_complete(struct urb *urb) urb 377 drivers/net/ieee802154/atusb.c dev_dbg(&urb->dev->dev, "atusb_xmit urb completed"); urb 775 drivers/net/usb/aqc111.c static void aqc111_status(struct usbnet *dev, struct urb *urb) urb 781 drivers/net/usb/aqc111.c if (urb->actual_length < sizeof(*event_data)) urb 784 drivers/net/usb/aqc111.c event_data = urb->transfer_buffer; urb 43 drivers/net/usb/asix_devices.c static void asix_status(struct usbnet *dev, struct urb *urb) urb 48 drivers/net/usb/asix_devices.c if (urb->actual_length < 8) urb 51 drivers/net/usb/asix_devices.c event = urb->transfer_buffer; urb 80 drivers/net/usb/ax88172a.c static void ax88172a_status(struct usbnet *dev, struct urb *urb) urb 333 drivers/net/usb/ax88179_178a.c static void ax88179_status(struct usbnet *dev, struct urb *urb) urb 338 drivers/net/usb/ax88179_178a.c if (urb->actual_length < 8) urb 341 drivers/net/usb/ax88179_178a.c event = urb->transfer_buffer; urb 182 drivers/net/usb/catc.c struct urb *tx_urb, *rx_urb, *irq_urb, *ctrl_urb; urb 212 drivers/net/usb/catc.c static void catc_rx_done(struct urb *urb) urb 214 drivers/net/usb/catc.c struct catc *catc = urb->context; urb 215 drivers/net/usb/catc.c u8 *pkt_start = urb->transfer_buffer; urb 218 drivers/net/usb/catc.c int status = urb->status; urb 226 drivers/net/usb/catc.c dev_dbg(&urb->dev->dev, "rx_done, status %d, length %d\n", urb 227 drivers/net/usb/catc.c status, urb->actual_length); urb 234 drivers/net/usb/catc.c if (pkt_len > urb->actual_length) { urb 240 drivers/net/usb/catc.c pkt_len = urb->actual_length; urb 260 drivers/net/usb/catc.c } while (pkt_start - (u8 *) urb->transfer_buffer < urb->actual_length); urb 267 drivers/net/usb/catc.c urb->dev = catc->usbdev; urb 268 drivers/net/usb/catc.c if ((state = usb_submit_urb(urb, GFP_ATOMIC)) < 0) { urb 278 drivers/net/usb/catc.c static void catc_irq_done(struct urb *urb) urb 280 drivers/net/usb/catc.c struct catc *catc = urb->context; urb 281 drivers/net/usb/catc.c u8 *data = urb->transfer_buffer; urb 282 drivers/net/usb/catc.c int status = urb->status; urb 309 drivers/net/usb/catc.c dev_dbg(&urb->dev->dev, urb 338 drivers/net/usb/catc.c res = usb_submit_urb (urb, GFP_ATOMIC); urb 372 drivers/net/usb/catc.c static void catc_tx_done(struct urb *urb) urb 374 drivers/net/usb/catc.c struct catc *catc = urb->context; urb 376 drivers/net/usb/catc.c int r, status = urb->status; urb 379 drivers/net/usb/catc.c dev_dbg(&urb->dev->dev, "Tx Reset.\n"); urb 380 drivers/net/usb/catc.c urb->status = 0; urb 389 drivers/net/usb/catc.c dev_dbg(&urb->dev->dev, "tx_done, status %d, length %d\n", urb 390 drivers/net/usb/catc.c status, urb->actual_length); urb 474 drivers/net/usb/catc.c struct urb *urb = catc->ctrl_urb; urb 484 drivers/net/usb/catc.c urb->pipe = q->dir ? usb_rcvctrlpipe(usbdev, 0) : usb_sndctrlpipe(usbdev, 0); urb 485 drivers/net/usb/catc.c urb->transfer_buffer_length = q->len; urb 486 drivers/net/usb/catc.c urb->transfer_buffer = catc->ctrl_buf; urb 487 drivers/net/usb/catc.c urb->setup_packet = (void *) dr; urb 488 drivers/net/usb/catc.c urb->dev = usbdev; urb 498 drivers/net/usb/catc.c static void catc_ctrl_done(struct urb *urb) urb 500 drivers/net/usb/catc.c struct catc *catc = urb->context; urb 503 drivers/net/usb/catc.c int status = urb->status; urb 506 drivers/net/usb/catc.c dev_dbg(&urb->dev->dev, "ctrl_done, status %d, len %d.\n", urb 507 drivers/net/usb/catc.c status, urb->actual_length); urb 39 drivers/net/usb/cdc-phonet.c struct urb *urbs[0]; urb 42 drivers/net/usb/cdc-phonet.c static void tx_complete(struct urb *req); urb 43 drivers/net/usb/cdc-phonet.c static void rx_complete(struct urb *req); urb 51 drivers/net/usb/cdc-phonet.c struct urb *req = NULL; urb 83 drivers/net/usb/cdc-phonet.c static void tx_complete(struct urb *req) urb 116 drivers/net/usb/cdc-phonet.c static int rx_submit(struct usbpn_dev *pnd, struct urb *req, gfp_t gfp_flags) urb 137 drivers/net/usb/cdc-phonet.c static void rx_complete(struct urb *req) urb 221 drivers/net/usb/cdc-phonet.c struct urb *req = usb_alloc_urb(0, GFP_KERNEL); urb 244 drivers/net/usb/cdc-phonet.c struct urb *req = pnd->urbs[i]; urb 41 drivers/net/usb/cdc_eem.c static void eem_linkcmd_complete(struct urb *urb) urb 43 drivers/net/usb/cdc_eem.c dev_kfree_skb(urb->context); urb 44 drivers/net/usb/cdc_eem.c usb_free_urb(urb); urb 49 drivers/net/usb/cdc_eem.c struct urb *urb; urb 52 drivers/net/usb/cdc_eem.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 53 drivers/net/usb/cdc_eem.c if (!urb) urb 56 drivers/net/usb/cdc_eem.c usb_fill_bulk_urb(urb, dev->udev, dev->out, urb 59 drivers/net/usb/cdc_eem.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 61 drivers/net/usb/cdc_eem.c usb_free_urb(urb); urb 391 drivers/net/usb/cdc_ether.c void usbnet_cdc_status(struct usbnet *dev, struct urb *urb) urb 395 drivers/net/usb/cdc_ether.c if (urb->actual_length < sizeof(*event)) urb 400 drivers/net/usb/cdc_ether.c dumpspeed(dev, (__le32 *) urb->transfer_buffer); urb 404 drivers/net/usb/cdc_ether.c event = urb->transfer_buffer; urb 413 drivers/net/usb/cdc_ether.c urb->actual_length); urb 414 drivers/net/usb/cdc_ether.c if (urb->actual_length != (sizeof(*event) + 8)) urb 487 drivers/net/usb/cdc_ether.c static void usbnet_cdc_zte_status(struct usbnet *dev, struct urb *urb) urb 491 drivers/net/usb/cdc_ether.c if (urb->actual_length < sizeof(*event)) urb 494 drivers/net/usb/cdc_ether.c event = urb->transfer_buffer; urb 497 drivers/net/usb/cdc_ether.c usbnet_cdc_status(dev, urb); urb 1605 drivers/net/usb/cdc_ncm.c static void cdc_ncm_status(struct usbnet *dev, struct urb *urb) urb 1609 drivers/net/usb/cdc_ncm.c if (urb->actual_length < sizeof(*event)) urb 1615 drivers/net/usb/cdc_ncm.c (struct usb_cdc_speed_change *)urb->transfer_buffer); urb 1619 drivers/net/usb/cdc_ncm.c event = urb->transfer_buffer; urb 1635 drivers/net/usb/cdc_ncm.c if (urb->actual_length < (sizeof(*event) + urb 228 drivers/net/usb/ch9200.c static void ch9200_status(struct usbnet *dev, struct urb *urb) urb 233 drivers/net/usb/ch9200.c if (urb->actual_length < 16) urb 236 drivers/net/usb/ch9200.c buf = urb->transfer_buffer; urb 519 drivers/net/usb/dm9601.c static void dm9601_status(struct usbnet *dev, struct urb *urb) urb 535 drivers/net/usb/dm9601.c if (urb->actual_length < 8) urb 538 drivers/net/usb/dm9601.c buf = urb->transfer_buffer; urb 121 drivers/net/usb/hso.c struct urb *shared_intr_urb; urb 137 drivers/net/usb/hso.c struct urb *mux_bulk_rx_urb_pool[MUX_BULK_RX_BUF_COUNT]; urb 138 drivers/net/usb/hso.c struct urb *mux_bulk_tx_urb; urb 188 drivers/net/usb/hso.c struct urb *urb; urb 204 drivers/net/usb/hso.c struct urb *rx_urb[MAX_RX_URBS]; urb 209 drivers/net/usb/hso.c struct urb *tx_urb; urb 293 drivers/net/usb/hso.c static void ctrl_callback(struct urb *urb); urb 294 drivers/net/usb/hso.c static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial); urb 311 drivers/net/usb/hso.c static void hso_std_serial_read_bulk_callback(struct urb *urb); urb 317 drivers/net/usb/hso.c static void tiocmget_intr_callback(struct urb *urb); urb 517 drivers/net/usb/hso.c static int hso_urb_to_index(struct hso_serial *serial, struct urb *urb) urb 522 drivers/net/usb/hso.c if (serial->rx_urb[idx] == urb) urb 741 drivers/net/usb/hso.c static void write_bulk_callback(struct urb *urb) urb 743 drivers/net/usb/hso.c struct hso_net *odev = urb->context; urb 744 drivers/net/usb/hso.c int status = urb->status; urb 748 drivers/net/usb/hso.c dev_err(&urb->dev->dev, "%s: device not running\n", __func__); urb 754 drivers/net/usb/hso.c dev_err(&urb->dev->dev, "%s: net device not present\n", urb 970 drivers/net/usb/hso.c static void fix_crc_bug(struct urb *urb, __le16 max_packet_size) urb 973 drivers/net/usb/hso.c u32 rest = urb->actual_length % le16_to_cpu(max_packet_size); urb 976 drivers/net/usb/hso.c !memcmp(((u8 *)urb->transfer_buffer) + urb->actual_length - 4, urb 978 drivers/net/usb/hso.c urb->actual_length -= 4; urb 983 drivers/net/usb/hso.c static void read_bulk_callback(struct urb *urb) urb 985 drivers/net/usb/hso.c struct hso_net *odev = urb->context; urb 989 drivers/net/usb/hso.c int status = urb->status; urb 1002 drivers/net/usb/hso.c usb_mark_last_busy(urb->dev); urb 1012 drivers/net/usb/hso.c fix_crc_bug(urb, odev->in_endp->wMaxPacketSize); urb 1015 drivers/net/usb/hso.c if (urb->actual_length) { urb 1019 drivers/net/usb/hso.c packetizeRx(odev, urb->transfer_buffer, urb->actual_length, urb 1020 drivers/net/usb/hso.c (urb->transfer_buffer_length > urb 1021 drivers/net/usb/hso.c urb->actual_length) ? 1 : 0); urb 1027 drivers/net/usb/hso.c usb_fill_bulk_urb(urb, urb 1032 drivers/net/usb/hso.c urb->transfer_buffer, MUX_BULK_RX_BUF_SIZE, urb 1037 drivers/net/usb/hso.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 1114 drivers/net/usb/hso.c static void hso_resubmit_rx_bulk_urb(struct hso_serial *serial, struct urb *urb) urb 1119 drivers/net/usb/hso.c usb_fill_bulk_urb(urb, serial->parent->usb, urb 1123 drivers/net/usb/hso.c urb->transfer_buffer, serial->rx_data_length, urb 1127 drivers/net/usb/hso.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 1129 drivers/net/usb/hso.c dev_err(&urb->dev->dev, "%s failed submit serial rx_urb %d\n", urb 1140 drivers/net/usb/hso.c struct urb *curr_urb; urb 1159 drivers/net/usb/hso.c struct urb *urb; urb 1161 drivers/net/usb/hso.c urb = serial->rx_urb[0]; urb 1163 drivers/net/usb/hso.c count = put_rxbuf_data(urb, serial); urb 1169 drivers/net/usb/hso.c if (count == 0 && ((urb->actual_length != 0) || urb 1179 drivers/net/usb/hso.c static void hso_std_serial_read_bulk_callback(struct urb *urb) urb 1181 drivers/net/usb/hso.c struct hso_serial *serial = urb->context; urb 1182 drivers/net/usb/hso.c int status = urb->status; urb 1197 drivers/net/usb/hso.c hso_dbg(0x1, "Actual length = %d\n", urb->actual_length); urb 1198 drivers/net/usb/hso.c DUMP1(urb->transfer_buffer, urb->actual_length); urb 1205 drivers/net/usb/hso.c fix_crc_bug(urb, serial->in_endp->wMaxPacketSize); urb 1208 drivers/net/usb/hso.c serial->rx_urb_filled[hso_urb_to_index(serial, urb)] = 1; urb 1431 drivers/net/usb/hso.c usb_fill_int_urb(tiocmget->urb, usb, urb 1439 drivers/net/usb/hso.c result = usb_submit_urb(tiocmget->urb, GFP_ATOMIC); urb 1448 drivers/net/usb/hso.c static void tiocmget_intr_callback(struct urb *urb) urb 1450 drivers/net/usb/hso.c struct hso_serial *serial = urb->context; urb 1452 drivers/net/usb/hso.c int status = urb->status; urb 1752 drivers/net/usb/hso.c struct urb *ctrl_urb, urb 1835 drivers/net/usb/hso.c static void intr_callback(struct urb *urb) urb 1837 drivers/net/usb/hso.c struct hso_shared_int *shared_int = urb->context; urb 1840 drivers/net/usb/hso.c int status = urb->status; urb 1844 drivers/net/usb/hso.c usb_mark_last_busy(urb->dev); urb 1858 drivers/net/usb/hso.c port_req = urb->transfer_buffer; urb 1889 drivers/net/usb/hso.c hso_mux_submit_intr_urb(shared_int, urb->dev, GFP_ATOMIC); urb 1907 drivers/net/usb/hso.c static void hso_std_serial_write_bulk_callback(struct urb *urb) urb 1909 drivers/net/usb/hso.c struct hso_serial *serial = urb->context; urb 1910 drivers/net/usb/hso.c int status = urb->status; urb 1958 drivers/net/usb/hso.c static void ctrl_callback(struct urb *urb) urb 1960 drivers/net/usb/hso.c struct hso_serial *serial = urb->context; urb 1962 drivers/net/usb/hso.c int status = urb->status; urb 1978 drivers/net/usb/hso.c req = (struct usb_ctrlrequest *)(urb->setup_packet); urb 1980 drivers/net/usb/hso.c hso_dbg(0x8, "Actual length of urb = %d\n", urb->actual_length); urb 1981 drivers/net/usb/hso.c DUMP1(urb->transfer_buffer, urb->actual_length); urb 1999 drivers/net/usb/hso.c static int put_rxbuf_data(struct urb *urb, struct hso_serial *serial) urb 2005 drivers/net/usb/hso.c if (urb == NULL || serial == NULL) { urb 2019 drivers/net/usb/hso.c count = tty_buffer_request_room(&serial->port, urb->actual_length); urb 2020 drivers/net/usb/hso.c if (count >= urb->actual_length) { urb 2021 drivers/net/usb/hso.c tty_insert_flip_string(&serial->port, urb->transfer_buffer, urb 2022 drivers/net/usb/hso.c urb->actual_length); urb 2026 drivers/net/usb/hso.c "dropping data, %d bytes lost\n", urb->actual_length); urb 2031 drivers/net/usb/hso.c serial->rx_urb_filled[hso_urb_to_index(serial, urb)] = 0; urb 2212 drivers/net/usb/hso.c struct urb *urb; urb 2214 drivers/net/usb/hso.c urb = serial->shared_int->shared_intr_urb; urb 2215 drivers/net/usb/hso.c if (urb) urb 2216 drivers/net/usb/hso.c usb_kill_urb(urb); urb 2223 drivers/net/usb/hso.c usb_kill_urb(tiocmget->urb); urb 2565 drivers/net/usb/hso.c usb_free_urb(tiocmget->urb); urb 2566 drivers/net/usb/hso.c tiocmget->urb = NULL; urb 2636 drivers/net/usb/hso.c tiocmget->urb = usb_alloc_urb(0, GFP_KERNEL); urb 2637 drivers/net/usb/hso.c if (tiocmget->urb) { urb 91 drivers/net/usb/ipheth.c struct urb *tx_urb; urb 92 drivers/net/usb/ipheth.c struct urb *rx_urb; urb 106 drivers/net/usb/ipheth.c struct urb *tx_urb = NULL; urb 107 drivers/net/usb/ipheth.c struct urb *rx_urb = NULL; urb 163 drivers/net/usb/ipheth.c static void ipheth_rcvbulk_callback(struct urb *urb) urb 171 drivers/net/usb/ipheth.c dev = urb->context; urb 175 drivers/net/usb/ipheth.c status = urb->status; urb 190 drivers/net/usb/ipheth.c if (urb->actual_length <= IPHETH_IP_ALIGN) { urb 194 drivers/net/usb/ipheth.c len = urb->actual_length - IPHETH_IP_ALIGN; urb 195 drivers/net/usb/ipheth.c buf = urb->transfer_buffer + IPHETH_IP_ALIGN; urb 216 drivers/net/usb/ipheth.c static void ipheth_sndbulk_callback(struct urb *urb) urb 219 drivers/net/usb/ipheth.c int status = urb->status; urb 221 drivers/net/usb/ipheth.c dev = urb->context; urb 219 drivers/net/usb/kaweth.c struct urb *rx_urb; urb 220 drivers/net/usb/kaweth.c struct urb *tx_urb; urb 221 drivers/net/usb/kaweth.c struct urb *irq_urb; urb 462 drivers/net/usb/kaweth.c static void kaweth_usb_receive(struct urb *); urb 488 drivers/net/usb/kaweth.c static void int_callback(struct urb *u) urb 572 drivers/net/usb/kaweth.c static void kaweth_usb_receive(struct urb *urb) urb 574 drivers/net/usb/kaweth.c struct device *dev = &urb->dev->dev; urb 575 drivers/net/usb/kaweth.c struct kaweth_device *kaweth = urb->context; urb 577 drivers/net/usb/kaweth.c int status = urb->status; urb 579 drivers/net/usb/kaweth.c int count = urb->actual_length; urb 580 drivers/net/usb/kaweth.c int count2 = urb->transfer_buffer_length; urb 757 drivers/net/usb/kaweth.c static void kaweth_usb_transmit_complete(struct urb *urb) urb 759 drivers/net/usb/kaweth.c struct kaweth_device *kaweth = urb->context; urb 761 drivers/net/usb/kaweth.c int status = urb->status; urb 765 drivers/net/usb/kaweth.c dev_dbg(&urb->dev->dev, "%s: TX status %d.\n", urb 1209 drivers/net/usb/kaweth.c static void usb_api_blocking_completion(struct urb *urb) urb 1211 drivers/net/usb/kaweth.c struct usb_api_data *awd = (struct usb_api_data *)urb->context; urb 1222 drivers/net/usb/kaweth.c static int usb_start_wait_urb(struct urb *urb, int timeout, int* actual_length) urb 1230 drivers/net/usb/kaweth.c urb->context = &awd; urb 1231 drivers/net/usb/kaweth.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 1234 drivers/net/usb/kaweth.c usb_free_urb(urb); urb 1240 drivers/net/usb/kaweth.c dev_warn(&urb->dev->dev, "usb_control/bulk_msg: timeout\n"); urb 1241 drivers/net/usb/kaweth.c usb_kill_urb(urb); // remove urb safely urb 1245 drivers/net/usb/kaweth.c status = urb->status; urb 1249 drivers/net/usb/kaweth.c *actual_length = urb->actual_length; urb 1252 drivers/net/usb/kaweth.c usb_free_urb(urb); urb 1263 drivers/net/usb/kaweth.c struct urb *urb; urb 1267 drivers/net/usb/kaweth.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 1268 drivers/net/usb/kaweth.c if (!urb) urb 1271 drivers/net/usb/kaweth.c usb_fill_control_urb(urb, usb_dev, pipe, (unsigned char*)cmd, data, urb 1274 drivers/net/usb/kaweth.c retv = usb_start_wait_urb(urb, timeout, &length); urb 323 drivers/net/usb/lan78xx.c struct urb *urb; urb 386 drivers/net/usb/lan78xx.c struct urb *urb_intr; urb 1252 drivers/net/usb/lan78xx.c static void lan78xx_status(struct lan78xx_net *dev, struct urb *urb) urb 1256 drivers/net/usb/lan78xx.c if (urb->actual_length != 4) { urb 1258 drivers/net/usb/lan78xx.c "unexpected urb length %d", urb->actual_length); urb 1262 drivers/net/usb/lan78xx.c intdata = get_unaligned_le32(urb->transfer_buffer); urb 2240 drivers/net/usb/lan78xx.c struct urb *urb; urb 2251 drivers/net/usb/lan78xx.c urb = entry->urb; urb 2259 drivers/net/usb/lan78xx.c usb_get_urb(urb); urb 2264 drivers/net/usb/lan78xx.c ret = usb_unlink_urb(urb); urb 2269 drivers/net/usb/lan78xx.c usb_put_urb(urb); urb 2793 drivers/net/usb/lan78xx.c static void tx_complete(struct urb *urb) urb 2795 drivers/net/usb/lan78xx.c struct sk_buff *skb = (struct sk_buff *)urb->context; urb 2799 drivers/net/usb/lan78xx.c if (urb->status == 0) { urb 2805 drivers/net/usb/lan78xx.c switch (urb->status) { urb 2822 drivers/net/usb/lan78xx.c "tx err %d\n", entry->urb->status); urb 3185 drivers/net/usb/lan78xx.c static void rx_complete(struct urb *urb); urb 3187 drivers/net/usb/lan78xx.c static int rx_submit(struct lan78xx_net *dev, struct urb *urb, gfp_t flags) urb 3197 drivers/net/usb/lan78xx.c usb_free_urb(urb); urb 3202 drivers/net/usb/lan78xx.c entry->urb = urb; urb 3206 drivers/net/usb/lan78xx.c usb_fill_bulk_urb(urb, dev->udev, dev->pipe_in, urb 3215 drivers/net/usb/lan78xx.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 3242 drivers/net/usb/lan78xx.c usb_free_urb(urb); urb 3247 drivers/net/usb/lan78xx.c static void rx_complete(struct urb *urb) urb 3249 drivers/net/usb/lan78xx.c struct sk_buff *skb = (struct sk_buff *)urb->context; urb 3252 drivers/net/usb/lan78xx.c int urb_status = urb->status; urb 3255 drivers/net/usb/lan78xx.c skb_put(skb, urb->actual_length); urb 3257 drivers/net/usb/lan78xx.c entry->urb = NULL; urb 3279 drivers/net/usb/lan78xx.c entry->urb = urb; urb 3280 drivers/net/usb/lan78xx.c urb = NULL; urb 3287 drivers/net/usb/lan78xx.c entry->urb = urb; urb 3288 drivers/net/usb/lan78xx.c urb = NULL; urb 3305 drivers/net/usb/lan78xx.c if (urb) { urb 3309 drivers/net/usb/lan78xx.c rx_submit(dev, urb, GFP_ATOMIC); urb 3312 drivers/net/usb/lan78xx.c usb_free_urb(urb); urb 3320 drivers/net/usb/lan78xx.c struct urb *urb = NULL; urb 3372 drivers/net/usb/lan78xx.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 3373 drivers/net/usb/lan78xx.c if (!urb) urb 3377 drivers/net/usb/lan78xx.c entry->urb = urb; urb 3389 drivers/net/usb/lan78xx.c usb_fill_bulk_urb(urb, dev->udev, dev->pipe_out, urb 3394 drivers/net/usb/lan78xx.c urb->transfer_flags |= URB_ZERO_PACKET; urb 3401 drivers/net/usb/lan78xx.c usb_anchor_urb(urb, &dev->deferred); urb 3404 drivers/net/usb/lan78xx.c usb_put_urb(urb); urb 3411 drivers/net/usb/lan78xx.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 3439 drivers/net/usb/lan78xx.c usb_free_urb(urb); urb 3447 drivers/net/usb/lan78xx.c struct urb *urb; urb 3454 drivers/net/usb/lan78xx.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 3455 drivers/net/usb/lan78xx.c if (urb) urb 3456 drivers/net/usb/lan78xx.c if (rx_submit(dev, urb, GFP_ATOMIC) == -ENOLINK) urb 3481 drivers/net/usb/lan78xx.c usb_free_urb(entry->urb); urb 3485 drivers/net/usb/lan78xx.c usb_free_urb(entry->urb); urb 3589 drivers/net/usb/lan78xx.c static void intr_complete(struct urb *urb) urb 3591 drivers/net/usb/lan78xx.c struct lan78xx_net *dev = urb->context; urb 3592 drivers/net/usb/lan78xx.c int status = urb->status; urb 3597 drivers/net/usb/lan78xx.c lan78xx_status(dev, urb); urb 3618 drivers/net/usb/lan78xx.c memset(urb->transfer_buffer, 0, urb->transfer_buffer_length); urb 3619 drivers/net/usb/lan78xx.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 4106 drivers/net/usb/lan78xx.c struct urb *res; urb 545 drivers/net/usb/mcs7830.c static void mcs7830_status(struct usbnet *dev, struct urb *urb) urb 547 drivers/net/usb/mcs7830.c u8 *buf = urb->transfer_buffer; urb 550 drivers/net/usb/mcs7830.c if (urb->actual_length < 16) urb 113 drivers/net/usb/pegasus.c static void async_ctrl_callback(struct urb *urb) urb 115 drivers/net/usb/pegasus.c struct usb_ctrlrequest *req = (struct usb_ctrlrequest *)urb->context; urb 116 drivers/net/usb/pegasus.c int status = urb->status; urb 119 drivers/net/usb/pegasus.c dev_dbg(&urb->dev->dev, "%s failed with %d", __func__, status); urb 121 drivers/net/usb/pegasus.c usb_free_urb(urb); urb 187 drivers/net/usb/pegasus.c struct urb *async_urb; urb 457 drivers/net/usb/pegasus.c static void read_bulk_callback(struct urb *urb) urb 459 drivers/net/usb/pegasus.c pegasus_t *pegasus = urb->context; urb 461 drivers/net/usb/pegasus.c int rx_status, count = urb->actual_length; urb 462 drivers/net/usb/pegasus.c int status = urb->status; urb 463 drivers/net/usb/pegasus.c u8 *buf = urb->transfer_buffer; urb 511 drivers/net/usb/pegasus.c pkt_len = le32_to_cpu(*(__le32 *)urb->transfer_buffer); urb 604 drivers/net/usb/pegasus.c static void write_bulk_callback(struct urb *urb) urb 606 drivers/net/usb/pegasus.c pegasus_t *pegasus = urb->context; urb 608 drivers/net/usb/pegasus.c int status = urb->status; urb 640 drivers/net/usb/pegasus.c static void intr_callback(struct urb *urb) urb 642 drivers/net/usb/pegasus.c pegasus_t *pegasus = urb->context; urb 644 drivers/net/usb/pegasus.c int res, status = urb->status; urb 664 drivers/net/usb/pegasus.c if (urb->actual_length >= 6) { urb 665 drivers/net/usb/pegasus.c u8 *d = urb->transfer_buffer; urb 688 drivers/net/usb/pegasus.c res = usb_submit_urb(urb, GFP_ATOMIC); urb 92 drivers/net/usb/pegasus.h struct urb *rx_urb, *tx_urb, *intr_urb; urb 716 drivers/net/usb/r8152.c struct urb *urb; urb 724 drivers/net/usb/r8152.c struct urb *urb; urb 738 drivers/net/usb/r8152.c struct urb *intr_urb; urb 1345 drivers/net/usb/r8152.c static void read_bulk_callback(struct urb *urb) urb 1348 drivers/net/usb/r8152.c int status = urb->status; urb 1353 drivers/net/usb/r8152.c agg = urb->context; urb 1378 drivers/net/usb/r8152.c if (urb->actual_length < ETH_ZLEN) urb 1405 drivers/net/usb/r8152.c static void write_bulk_callback(struct urb *urb) urb 1412 drivers/net/usb/r8152.c int status = urb->status; urb 1414 drivers/net/usb/r8152.c agg = urb->context; urb 1452 drivers/net/usb/r8152.c static void intr_callback(struct urb *urb) urb 1456 drivers/net/usb/r8152.c int status = urb->status; urb 1459 drivers/net/usb/r8152.c tp = urb->context; urb 1490 drivers/net/usb/r8152.c d = urb->transfer_buffer; urb 1505 drivers/net/usb/r8152.c res = usb_submit_urb(urb, GFP_ATOMIC); urb 1529 drivers/net/usb/r8152.c usb_free_urb(agg->urb); urb 1554 drivers/net/usb/r8152.c rx_agg->urb = usb_alloc_urb(0, mflags); urb 1555 drivers/net/usb/r8152.c if (!rx_agg->urb) urb 1593 drivers/net/usb/r8152.c usb_free_urb(tp->tx_info[i].urb); urb 1594 drivers/net/usb/r8152.c tp->tx_info[i].urb = NULL; urb 1633 drivers/net/usb/r8152.c struct urb *urb; urb 1648 drivers/net/usb/r8152.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1649 drivers/net/usb/r8152.c if (!urb) { urb 1656 drivers/net/usb/r8152.c tp->tx_info[i].urb = urb; urb 1960 drivers/net/usb/r8152.c usb_fill_bulk_urb(agg->urb, tp->udev, usb_sndbulkpipe(tp->udev, 2), urb 1964 drivers/net/usb/r8152.c ret = usb_submit_urb(agg->urb, GFP_ATOMIC); urb 2078 drivers/net/usb/r8152.c struct urb *urb; urb 2084 drivers/net/usb/r8152.c urb = agg->urb; urb 2085 drivers/net/usb/r8152.c if (urb->actual_length < ETH_ZLEN) urb 2094 drivers/net/usb/r8152.c while (urb->actual_length > len_used) { urb 2109 drivers/net/usb/r8152.c if (urb->actual_length < len_used) urb 2166 drivers/net/usb/r8152.c urb = agg->urb; urb 2175 drivers/net/usb/r8152.c urb->actual_length = 0; urb 2277 drivers/net/usb/r8152.c usb_fill_bulk_urb(agg->urb, tp->udev, usb_rcvbulkpipe(tp->udev, 1), urb 2281 drivers/net/usb/r8152.c ret = usb_submit_urb(agg->urb, mem_flags); urb 2286 drivers/net/usb/r8152.c struct urb *urb = agg->urb; urb 2289 drivers/net/usb/r8152.c urb->actual_length = 0; urb 2561 drivers/net/usb/r8152.c usb_kill_urb(agg->urb); urb 2699 drivers/net/usb/r8152.c usb_kill_urb(tp->tx_info[i].urb); urb 45 drivers/net/usb/rndis_host.c void rndis_status(struct usbnet *dev, struct urb *urb) urb 48 drivers/net/usb/rndis_host.c urb->actual_length, urb->status); urb 129 drivers/net/usb/rtl8150.c struct urb *rx_urb, *tx_urb, *intr_urb; urb 187 drivers/net/usb/rtl8150.c static void async_set_reg_cb(struct urb *urb) urb 189 drivers/net/usb/rtl8150.c struct async_req *req = (struct async_req *)urb->context; urb 190 drivers/net/usb/rtl8150.c int status = urb->status; urb 193 drivers/net/usb/rtl8150.c dev_dbg(&urb->dev->dev, "%s failed with %d", __func__, status); urb 195 drivers/net/usb/rtl8150.c usb_free_urb(urb); urb 201 drivers/net/usb/rtl8150.c struct urb *async_urb; urb 382 drivers/net/usb/rtl8150.c static void read_bulk_callback(struct urb *urb) urb 388 drivers/net/usb/rtl8150.c int status = urb->status; urb 392 drivers/net/usb/rtl8150.c dev = urb->context; urb 408 drivers/net/usb/rtl8150.c dev_warn(&urb->dev->dev, "may be reset is needed?..\n"); urb 412 drivers/net/usb/rtl8150.c dev_warn(&urb->dev->dev, "Rx status %d\n", status); urb 419 drivers/net/usb/rtl8150.c if (urb->actual_length < 4) urb 422 drivers/net/usb/rtl8150.c res = urb->actual_length; urb 456 drivers/net/usb/rtl8150.c static void write_bulk_callback(struct urb *urb) urb 459 drivers/net/usb/rtl8150.c int status = urb->status; urb 461 drivers/net/usb/rtl8150.c dev = urb->context; urb 468 drivers/net/usb/rtl8150.c dev_info(&urb->dev->dev, "%s: Tx status %d\n", urb 474 drivers/net/usb/rtl8150.c static void intr_callback(struct urb *urb) urb 478 drivers/net/usb/rtl8150.c int status = urb->status; urb 481 drivers/net/usb/rtl8150.c dev = urb->context; urb 493 drivers/net/usb/rtl8150.c dev_info(&urb->dev->dev, "%s: intr status %d\n", urb 498 drivers/net/usb/rtl8150.c d = urb->transfer_buffer; urb 522 drivers/net/usb/rtl8150.c res = usb_submit_urb (urb, GFP_ATOMIC); urb 589 drivers/net/usb/sierra_net.c static void sierra_net_status(struct usbnet *dev, struct urb *urb) urb 595 drivers/net/usb/sierra_net.c if (urb->actual_length < sizeof *event) urb 599 drivers/net/usb/sierra_net.c event = urb->transfer_buffer; urb 654 drivers/net/usb/smsc75xx.c static void smsc75xx_status(struct usbnet *dev, struct urb *urb) urb 658 drivers/net/usb/smsc75xx.c if (urb->actual_length != 4) { urb 660 drivers/net/usb/smsc75xx.c urb->actual_length); urb 664 drivers/net/usb/smsc75xx.c intdata = get_unaligned_le32(urb->transfer_buffer); urb 599 drivers/net/usb/smsc95xx.c static void smsc95xx_status(struct usbnet *dev, struct urb *urb) urb 603 drivers/net/usb/smsc95xx.c if (urb->actual_length != 4) { urb 605 drivers/net/usb/smsc95xx.c urb->actual_length); urb 609 drivers/net/usb/smsc95xx.c intdata = get_unaligned_le32(urb->transfer_buffer); urb 479 drivers/net/usb/sr9700.c static void sr9700_status(struct usbnet *dev, struct urb *urb) urb 495 drivers/net/usb/sr9700.c if (urb->actual_length < 8) urb 498 drivers/net/usb/sr9700.c buf = urb->transfer_buffer; urb 150 drivers/net/usb/sr9800.c static void sr_status(struct usbnet *dev, struct urb *urb) urb 155 drivers/net/usb/sr9800.c if (urb->actual_length < 8) urb 158 drivers/net/usb/sr9800.c event = urb->transfer_buffer; urb 171 drivers/net/usb/usbnet.c static void intr_complete (struct urb *urb) urb 173 drivers/net/usb/usbnet.c struct usbnet *dev = urb->context; urb 174 drivers/net/usb/usbnet.c int status = urb->status; urb 179 drivers/net/usb/usbnet.c dev->driver_info->status(dev, urb); urb 197 drivers/net/usb/usbnet.c status = usb_submit_urb (urb, GFP_ATOMIC); urb 466 drivers/net/usb/usbnet.c static void rx_complete (struct urb *urb); urb 468 drivers/net/usb/usbnet.c static int rx_submit (struct usbnet *dev, struct urb *urb, gfp_t flags) urb 478 drivers/net/usb/usbnet.c usb_free_urb(urb); urb 489 drivers/net/usb/usbnet.c usb_free_urb (urb); urb 494 drivers/net/usb/usbnet.c entry->urb = urb; urb 498 drivers/net/usb/usbnet.c usb_fill_bulk_urb (urb, dev->udev, dev->in, urb 508 drivers/net/usb/usbnet.c switch (retval = usb_submit_urb (urb, GFP_ATOMIC)) { urb 537 drivers/net/usb/usbnet.c usb_free_urb (urb); urb 575 drivers/net/usb/usbnet.c static void rx_complete (struct urb *urb) urb 577 drivers/net/usb/usbnet.c struct sk_buff *skb = (struct sk_buff *) urb->context; urb 580 drivers/net/usb/usbnet.c int urb_status = urb->status; urb 583 drivers/net/usb/usbnet.c skb_put (skb, urb->actual_length); urb 585 drivers/net/usb/usbnet.c entry->urb = NULL; urb 624 drivers/net/usb/usbnet.c entry->urb = urb; urb 625 drivers/net/usb/usbnet.c urb = NULL; urb 653 drivers/net/usb/usbnet.c if (urb) { urb 657 drivers/net/usb/usbnet.c rx_submit (dev, urb, GFP_ATOMIC); urb 661 drivers/net/usb/usbnet.c usb_free_urb (urb); urb 713 drivers/net/usb/usbnet.c struct urb *urb; urb 724 drivers/net/usb/usbnet.c urb = entry->urb; urb 733 drivers/net/usb/usbnet.c usb_get_urb(urb); urb 737 drivers/net/usb/usbnet.c retval = usb_unlink_urb (urb); urb 742 drivers/net/usb/usbnet.c usb_put_urb(urb); urb 1181 drivers/net/usb/usbnet.c struct urb *urb = NULL; urb 1185 drivers/net/usb/usbnet.c urb = usb_alloc_urb (0, GFP_KERNEL); urb 1188 drivers/net/usb/usbnet.c if (urb != NULL) { urb 1192 drivers/net/usb/usbnet.c usb_free_urb(urb); urb 1195 drivers/net/usb/usbnet.c if (rx_submit (dev, urb, GFP_KERNEL) == -ENOLINK) urb 1241 drivers/net/usb/usbnet.c static void tx_complete (struct urb *urb) urb 1243 drivers/net/usb/usbnet.c struct sk_buff *skb = (struct sk_buff *) urb->context; urb 1247 drivers/net/usb/usbnet.c if (urb->status == 0) { urb 1258 drivers/net/usb/usbnet.c switch (urb->status) { urb 1279 drivers/net/usb/usbnet.c "tx throttle %d\n", urb->status); urb 1285 drivers/net/usb/usbnet.c "tx err %d\n", entry->urb->status); urb 1313 drivers/net/usb/usbnet.c static int build_dma_sg(const struct sk_buff *skb, struct urb *urb) urb 1323 drivers/net/usb/usbnet.c urb->sg = kmalloc_array(num_sgs + 1, sizeof(struct scatterlist), urb 1325 drivers/net/usb/usbnet.c if (!urb->sg) urb 1328 drivers/net/usb/usbnet.c urb->num_sgs = num_sgs; urb 1329 drivers/net/usb/usbnet.c sg_init_table(urb->sg, urb->num_sgs + 1); urb 1331 drivers/net/usb/usbnet.c sg_set_buf(&urb->sg[s++], skb->data, skb_headlen(skb)); urb 1338 drivers/net/usb/usbnet.c sg_set_page(&urb->sg[i + s], skb_frag_page(f), skb_frag_size(f), urb 1341 drivers/net/usb/usbnet.c urb->transfer_buffer_length = total_len; urb 1351 drivers/net/usb/usbnet.c struct urb *urb = NULL; urb 1373 drivers/net/usb/usbnet.c if (!(urb = usb_alloc_urb (0, GFP_ATOMIC))) { urb 1379 drivers/net/usb/usbnet.c entry->urb = urb; urb 1382 drivers/net/usb/usbnet.c usb_fill_bulk_urb (urb, dev->udev, dev->out, urb 1385 drivers/net/usb/usbnet.c if (build_dma_sg(skb, urb) < 0) urb 1388 drivers/net/usb/usbnet.c length = urb->transfer_buffer_length; urb 1401 drivers/net/usb/usbnet.c if (skb_tailroom(skb) && !urb->num_sgs) { urb 1404 drivers/net/usb/usbnet.c } else if (urb->num_sgs) urb 1405 drivers/net/usb/usbnet.c sg_set_buf(&urb->sg[urb->num_sgs++], urb 1409 drivers/net/usb/usbnet.c urb->transfer_flags |= URB_ZERO_PACKET; urb 1411 drivers/net/usb/usbnet.c urb->transfer_buffer_length = length; urb 1441 drivers/net/usb/usbnet.c usb_anchor_urb(urb, &dev->deferred); urb 1444 drivers/net/usb/usbnet.c usb_put_urb(urb); urb 1451 drivers/net/usb/usbnet.c switch ((retval = usb_submit_urb (urb, GFP_ATOMIC))) { urb 1477 drivers/net/usb/usbnet.c if (urb) { urb 1478 drivers/net/usb/usbnet.c kfree(urb->sg); urb 1479 drivers/net/usb/usbnet.c usb_free_urb(urb); urb 1493 drivers/net/usb/usbnet.c struct urb *urb; urb 1499 drivers/net/usb/usbnet.c urb = usb_alloc_urb(0, flags); urb 1500 drivers/net/usb/usbnet.c if (urb != NULL) { urb 1501 drivers/net/usb/usbnet.c ret = rx_submit(dev, urb, flags); urb 1531 drivers/net/usb/usbnet.c kfree(entry->urb->sg); urb 1534 drivers/net/usb/usbnet.c usb_free_urb (entry->urb); urb 1885 drivers/net/usb/usbnet.c struct urb *res; urb 2098 drivers/net/usb/usbnet.c static void usbnet_async_cmd_cb(struct urb *urb) urb 2100 drivers/net/usb/usbnet.c struct usb_ctrlrequest *req = (struct usb_ctrlrequest *)urb->context; urb 2101 drivers/net/usb/usbnet.c int status = urb->status; urb 2104 drivers/net/usb/usbnet.c dev_dbg(&urb->dev->dev, "%s failed with %d", urb 2108 drivers/net/usb/usbnet.c usb_free_urb(urb); urb 2119 drivers/net/usb/usbnet.c struct urb *urb; urb 2127 drivers/net/usb/usbnet.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 2128 drivers/net/usb/usbnet.c if (!urb) urb 2150 drivers/net/usb/usbnet.c usb_fill_control_urb(urb, dev->udev, urb 2154 drivers/net/usb/usbnet.c urb->transfer_flags |= URB_FREE_BUFFER; urb 2156 drivers/net/usb/usbnet.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 2168 drivers/net/usb/usbnet.c usb_free_urb(urb); urb 230 drivers/net/wimax/i2400m/i2400m-usb.h struct urb *notif_urb; urb 229 drivers/net/wimax/i2400m/usb-fw.c void __i2400mu_bm_notif_cb(struct urb *urb) urb 231 drivers/net/wimax/i2400m/usb-fw.c complete(urb->context); urb 245 drivers/net/wimax/i2400m/usb-fw.c int i2400mu_notif_submit(struct i2400mu *i2400mu, struct urb *urb, urb 255 drivers/net/wimax/i2400m/usb-fw.c usb_fill_int_urb(urb, i2400mu->usb_dev, pipe, urb 259 drivers/net/wimax/i2400m/usb-fw.c return usb_submit_urb(urb, GFP_KERNEL); urb 283 drivers/net/wimax/i2400m/usb-fw.c struct urb notif_urb; urb 123 drivers/net/wimax/i2400m/usb-notif.c void i2400mu_notification_cb(struct urb *urb) urb 126 drivers/net/wimax/i2400m/usb-notif.c struct i2400mu *i2400mu = urb->context; urb 130 drivers/net/wimax/i2400m/usb-notif.c urb, urb->status, urb->actual_length); urb 131 drivers/net/wimax/i2400m/usb-notif.c ret = urb->status; urb 134 drivers/net/wimax/i2400m/usb-notif.c ret = i2400mu_notification_grok(i2400mu, urb->transfer_buffer, urb 135 drivers/net/wimax/i2400m/usb-notif.c urb->actual_length); urb 153 drivers/net/wimax/i2400m/usb-notif.c urb->status); urb 170 drivers/net/wimax/i2400m/usb-notif.c urb, urb->status, urb->actual_length); urb 180 drivers/net/wimax/i2400m/usb-notif.c urb, urb->status, urb->actual_length); urb 92 drivers/net/wireless/ath/ar5523/ar5523.c static void ar5523_cmd_rx_cb(struct urb *urb) urb 94 drivers/net/wireless/ath/ar5523/ar5523.c struct ar5523 *ar = urb->context; urb 100 drivers/net/wireless/ath/ar5523/ar5523.c if (urb->status) { urb 101 drivers/net/wireless/ath/ar5523/ar5523.c if (urb->status != -ESHUTDOWN) urb 102 drivers/net/wireless/ath/ar5523/ar5523.c ar5523_err(ar, "RX USB error %d.\n", urb->status); urb 106 drivers/net/wireless/ath/ar5523/ar5523.c if (urb->actual_length < sizeof(struct ar5523_cmd_hdr)) { urb 221 drivers/net/wireless/ath/ar5523/ar5523.c static void ar5523_cmd_tx_cb(struct urb *urb) urb 223 drivers/net/wireless/ath/ar5523/ar5523.c struct ar5523_tx_cmd *cmd = urb->context; urb 226 drivers/net/wireless/ath/ar5523/ar5523.c if (urb->status) { urb 228 drivers/net/wireless/ath/ar5523/ar5523.c urb->status); urb 229 drivers/net/wireless/ath/ar5523/ar5523.c cmd->res = urb->status; urb 524 drivers/net/wireless/ath/ar5523/ar5523.c static void ar5523_data_rx_cb(struct urb *urb) urb 526 drivers/net/wireless/ath/ar5523/ar5523.c struct ar5523_rx_data *data = urb->context; urb 533 drivers/net/wireless/ath/ar5523/ar5523.c int usblen = urb->actual_length; urb 538 drivers/net/wireless/ath/ar5523/ar5523.c if (urb->status) { urb 539 drivers/net/wireless/ath/ar5523/ar5523.c if (urb->status != -ESHUTDOWN) urb 541 drivers/net/wireless/ath/ar5523/ar5523.c urb->status); urb 642 drivers/net/wireless/ath/ar5523/ar5523.c usb_fill_bulk_urb(data->urb, ar->dev, urb 651 drivers/net/wireless/ath/ar5523/ar5523.c error = usb_submit_urb(data->urb, GFP_KERNEL); urb 683 drivers/net/wireless/ath/ar5523/ar5523.c usb_kill_urb(data->urb); urb 697 drivers/net/wireless/ath/ar5523/ar5523.c usb_free_urb(data->urb); urb 709 drivers/net/wireless/ath/ar5523/ar5523.c data->urb = usb_alloc_urb(0, GFP_KERNEL); urb 710 drivers/net/wireless/ath/ar5523/ar5523.c if (!data->urb) urb 736 drivers/net/wireless/ath/ar5523/ar5523.c static void ar5523_data_tx_cb(struct urb *urb) urb 738 drivers/net/wireless/ath/ar5523/ar5523.c struct sk_buff *skb = urb->context; urb 745 drivers/net/wireless/ath/ar5523/ar5523.c ar5523_dbg(ar, "data tx urb completed: %d\n", urb->status); urb 751 drivers/net/wireless/ath/ar5523/ar5523.c if (urb->status) { urb 752 drivers/net/wireless/ath/ar5523/ar5523.c ar5523_dbg(ar, "%s: urb status: %d\n", __func__, urb->status); urb 759 drivers/net/wireless/ath/ar5523/ar5523.c usb_free_urb(urb); urb 794 drivers/net/wireless/ath/ar5523/ar5523.c struct urb *urb; urb 824 drivers/net/wireless/ath/ar5523/ar5523.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 825 drivers/net/wireless/ath/ar5523/ar5523.c if (!urb) { urb 831 drivers/net/wireless/ath/ar5523/ar5523.c data->urb = urb; urb 856 drivers/net/wireless/ath/ar5523/ar5523.c urb->transfer_flags = URB_ZERO_PACKET; urb 857 drivers/net/wireless/ath/ar5523/ar5523.c usb_fill_bulk_urb(urb, ar->dev, ar5523_data_tx_pipe(ar->dev), urb 868 drivers/net/wireless/ath/ar5523/ar5523.c error = usb_submit_urb(urb, GFP_KERNEL); urb 877 drivers/net/wireless/ath/ar5523/ar5523.c usb_free_urb(urb); urb 62 drivers/net/wireless/ath/ar5523/ar5523.h struct urb *urb_tx; urb 77 drivers/net/wireless/ath/ar5523/ar5523.h struct urb *urb; urb 83 drivers/net/wireless/ath/ar5523/ar5523.h struct urb *urb; urb 114 drivers/net/wireless/ath/ar5523/ar5523.h struct urb *rx_cmd_urb; urb 125 drivers/net/wireless/ath/ath10k/usb.c static void ath10k_usb_recv_complete(struct urb *urb) urb 127 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_urb_context *urb_context = urb->context; urb 135 drivers/net/wireless/ath/ath10k/usb.c pipe->logical_pipe_num, urb->status, urb->actual_length, urb 136 drivers/net/wireless/ath/ath10k/usb.c urb); urb 138 drivers/net/wireless/ath/ath10k/usb.c if (urb->status != 0) { urb 140 drivers/net/wireless/ath/ath10k/usb.c switch (urb->status) { urb 153 drivers/net/wireless/ath/ath10k/usb.c pipe->ep_address, urb->status); urb 159 drivers/net/wireless/ath/ath10k/usb.c if (urb->actual_length == 0) urb 166 drivers/net/wireless/ath/ath10k/usb.c skb_put(skb, urb->actual_length); urb 182 drivers/net/wireless/ath/ath10k/usb.c static void ath10k_usb_transmit_complete(struct urb *urb) urb 184 drivers/net/wireless/ath/ath10k/usb.c struct ath10k_urb_context *urb_context = urb->context; urb 189 drivers/net/wireless/ath/ath10k/usb.c if (urb->status != 0) { urb 192 drivers/net/wireless/ath/ath10k/usb.c pipe->logical_pipe_num, urb->status); urb 209 drivers/net/wireless/ath/ath10k/usb.c struct urb *urb; urb 221 drivers/net/wireless/ath/ath10k/usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 222 drivers/net/wireless/ath/ath10k/usb.c if (!urb) urb 225 drivers/net/wireless/ath/ath10k/usb.c usb_fill_bulk_urb(urb, urb 238 drivers/net/wireless/ath/ath10k/usb.c usb_anchor_urb(urb, &recv_pipe->urb_submitted); urb 239 drivers/net/wireless/ath/ath10k/usb.c usb_status = usb_submit_urb(urb, GFP_ATOMIC); urb 245 drivers/net/wireless/ath/ath10k/usb.c usb_unanchor_urb(urb); urb 246 drivers/net/wireless/ath/ath10k/usb.c usb_free_urb(urb); urb 249 drivers/net/wireless/ath/ath10k/usb.c usb_free_urb(urb); urb 409 drivers/net/wireless/ath/ath10k/usb.c struct urb *urb; urb 422 drivers/net/wireless/ath/ath10k/usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 423 drivers/net/wireless/ath/ath10k/usb.c if (!urb) { urb 428 drivers/net/wireless/ath/ath10k/usb.c usb_fill_bulk_urb(urb, urb 437 drivers/net/wireless/ath/ath10k/usb.c urb->transfer_flags |= URB_ZERO_PACKET; urb 440 drivers/net/wireless/ath/ath10k/usb.c usb_anchor_urb(urb, &pipe->urb_submitted); urb 441 drivers/net/wireless/ath/ath10k/usb.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 445 drivers/net/wireless/ath/ath10k/usb.c usb_unanchor_urb(urb); urb 446 drivers/net/wireless/ath/ath10k/usb.c usb_free_urb(urb); urb 451 drivers/net/wireless/ath/ath10k/usb.c usb_free_urb(urb); urb 121 drivers/net/wireless/ath/ath6kl/usb.c static void ath6kl_usb_recv_complete(struct urb *urb); urb 414 drivers/net/wireless/ath/ath6kl/usb.c struct urb *urb; urb 426 drivers/net/wireless/ath/ath6kl/usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 427 drivers/net/wireless/ath/ath6kl/usb.c if (urb == NULL) urb 430 drivers/net/wireless/ath/ath6kl/usb.c usb_fill_bulk_urb(urb, urb 443 drivers/net/wireless/ath/ath6kl/usb.c usb_anchor_urb(urb, &recv_pipe->urb_submitted); urb 444 drivers/net/wireless/ath/ath6kl/usb.c usb_status = usb_submit_urb(urb, GFP_ATOMIC); urb 450 drivers/net/wireless/ath/ath6kl/usb.c usb_unanchor_urb(urb); urb 451 drivers/net/wireless/ath/ath6kl/usb.c usb_free_urb(urb); urb 454 drivers/net/wireless/ath/ath6kl/usb.c usb_free_urb(urb); urb 497 drivers/net/wireless/ath/ath6kl/usb.c static void ath6kl_usb_recv_complete(struct urb *urb) urb 499 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_urb_context *urb_context = urb->context; urb 506 drivers/net/wireless/ath/ath6kl/usb.c pipe->logical_pipe_num, urb->status, urb->actual_length, urb 507 drivers/net/wireless/ath/ath6kl/usb.c urb); urb 509 drivers/net/wireless/ath/ath6kl/usb.c if (urb->status != 0) { urb 511 drivers/net/wireless/ath/ath6kl/usb.c switch (urb->status) { urb 525 drivers/net/wireless/ath/ath6kl/usb.c pipe->ep_address, urb->status); urb 531 drivers/net/wireless/ath/ath6kl/usb.c if (urb->actual_length == 0) urb 538 drivers/net/wireless/ath/ath6kl/usb.c skb_put(skb, urb->actual_length); urb 554 drivers/net/wireless/ath/ath6kl/usb.c static void ath6kl_usb_usb_transmit_complete(struct urb *urb) urb 556 drivers/net/wireless/ath/ath6kl/usb.c struct ath6kl_urb_context *urb_context = urb->context; urb 562 drivers/net/wireless/ath/ath6kl/usb.c __func__, pipe->logical_pipe_num, urb->status, urb 563 drivers/net/wireless/ath/ath6kl/usb.c urb->actual_length); urb 565 drivers/net/wireless/ath/ath6kl/usb.c if (urb->status != 0) { urb 568 drivers/net/wireless/ath/ath6kl/usb.c __func__, pipe->logical_pipe_num, urb->status); urb 707 drivers/net/wireless/ath/ath6kl/usb.c struct urb *urb; urb 733 drivers/net/wireless/ath/ath6kl/usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 734 drivers/net/wireless/ath/ath6kl/usb.c if (urb == NULL) { urb 741 drivers/net/wireless/ath/ath6kl/usb.c usb_fill_bulk_urb(urb, urb 750 drivers/net/wireless/ath/ath6kl/usb.c urb->transfer_flags |= URB_ZERO_PACKET; urb 758 drivers/net/wireless/ath/ath6kl/usb.c usb_anchor_urb(urb, &pipe->urb_submitted); urb 759 drivers/net/wireless/ath/ath6kl/usb.c usb_status = usb_submit_urb(urb, GFP_ATOMIC); urb 765 drivers/net/wireless/ath/ath6kl/usb.c usb_unanchor_urb(urb); urb 770 drivers/net/wireless/ath/ath6kl/usb.c usb_free_urb(urb); urb 73 drivers/net/wireless/ath/ath9k/hif_usb.c static void hif_usb_regout_cb(struct urb *urb) urb 75 drivers/net/wireless/ath/ath9k/hif_usb.c struct cmd_buf *cmd = (struct cmd_buf *)urb->context; urb 77 drivers/net/wireless/ath/ath9k/hif_usb.c switch (urb->status) { urb 104 drivers/net/wireless/ath/ath9k/hif_usb.c struct urb *urb; urb 108 drivers/net/wireless/ath/ath9k/hif_usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 109 drivers/net/wireless/ath/ath9k/hif_usb.c if (urb == NULL) urb 114 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(urb); urb 121 drivers/net/wireless/ath/ath9k/hif_usb.c usb_fill_int_urb(urb, hif_dev->udev, urb 126 drivers/net/wireless/ath/ath9k/hif_usb.c usb_anchor_urb(urb, &hif_dev->regout_submitted); urb 127 drivers/net/wireless/ath/ath9k/hif_usb.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 129 drivers/net/wireless/ath/ath9k/hif_usb.c usb_unanchor_urb(urb); urb 132 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(urb); urb 137 drivers/net/wireless/ath/ath9k/hif_usb.c static void hif_usb_mgmt_cb(struct urb *urb) urb 139 drivers/net/wireless/ath/ath9k/hif_usb.c struct cmd_buf *cmd = (struct cmd_buf *)urb->context; urb 149 drivers/net/wireless/ath/ath9k/hif_usb.c switch (urb->status) { urb 186 drivers/net/wireless/ath/ath9k/hif_usb.c struct urb *urb; urb 191 drivers/net/wireless/ath/ath9k/hif_usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 192 drivers/net/wireless/ath/ath9k/hif_usb.c if (urb == NULL) urb 197 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(urb); urb 208 drivers/net/wireless/ath/ath9k/hif_usb.c usb_fill_bulk_urb(urb, hif_dev->udev, urb 213 drivers/net/wireless/ath/ath9k/hif_usb.c usb_anchor_urb(urb, &hif_dev->mgmt_submitted); urb 214 drivers/net/wireless/ath/ath9k/hif_usb.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 216 drivers/net/wireless/ath/ath9k/hif_usb.c usb_unanchor_urb(urb); urb 219 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(urb); urb 255 drivers/net/wireless/ath/ath9k/hif_usb.c static void hif_usb_tx_cb(struct urb *urb) urb 257 drivers/net/wireless/ath/ath9k/hif_usb.c struct tx_buf *tx_buf = (struct tx_buf *) urb->context; urb 266 drivers/net/wireless/ath/ath9k/hif_usb.c switch (urb->status) { urb 359 drivers/net/wireless/ath/ath9k/hif_usb.c usb_fill_bulk_urb(tx_buf->urb, hif_dev->udev, urb 364 drivers/net/wireless/ath/ath9k/hif_usb.c ret = usb_submit_urb(tx_buf->urb, GFP_ATOMIC); urb 454 drivers/net/wireless/ath/ath9k/hif_usb.c usb_kill_urb(tx_buf->urb); urb 644 drivers/net/wireless/ath/ath9k/hif_usb.c static void ath9k_hif_usb_rx_cb(struct urb *urb) urb 646 drivers/net/wireless/ath/ath9k/hif_usb.c struct rx_buf *rx_buf = (struct rx_buf *)urb->context; urb 657 drivers/net/wireless/ath/ath9k/hif_usb.c switch (urb->status) { urb 669 drivers/net/wireless/ath/ath9k/hif_usb.c if (likely(urb->actual_length != 0)) { urb 670 drivers/net/wireless/ath/ath9k/hif_usb.c skb_put(skb, urb->actual_length); urb 678 drivers/net/wireless/ath/ath9k/hif_usb.c usb_anchor_urb(urb, &hif_dev->rx_submitted); urb 679 drivers/net/wireless/ath/ath9k/hif_usb.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 681 drivers/net/wireless/ath/ath9k/hif_usb.c usb_unanchor_urb(urb); urb 691 drivers/net/wireless/ath/ath9k/hif_usb.c static void ath9k_hif_usb_reg_in_cb(struct urb *urb) urb 693 drivers/net/wireless/ath/ath9k/hif_usb.c struct rx_buf *rx_buf = (struct rx_buf *)urb->context; urb 705 drivers/net/wireless/ath/ath9k/hif_usb.c switch (urb->status) { urb 720 drivers/net/wireless/ath/ath9k/hif_usb.c if (likely(urb->actual_length != 0)) { urb 721 drivers/net/wireless/ath/ath9k/hif_usb.c skb_put(skb, urb->actual_length); urb 732 drivers/net/wireless/ath/ath9k/hif_usb.c urb->context = NULL; urb 736 drivers/net/wireless/ath/ath9k/hif_usb.c usb_fill_int_urb(urb, hif_dev->udev, urb 744 drivers/net/wireless/ath/ath9k/hif_usb.c usb_anchor_urb(urb, &hif_dev->reg_in_submitted); urb 745 drivers/net/wireless/ath/ath9k/hif_usb.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 747 drivers/net/wireless/ath/ath9k/hif_usb.c usb_unanchor_urb(urb); urb 755 drivers/net/wireless/ath/ath9k/hif_usb.c urb->context = NULL; urb 765 drivers/net/wireless/ath/ath9k/hif_usb.c usb_kill_urb(tx_buf->urb); urb 767 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(tx_buf->urb); urb 778 drivers/net/wireless/ath/ath9k/hif_usb.c usb_kill_urb(tx_buf->urb); urb 780 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(tx_buf->urb); urb 808 drivers/net/wireless/ath/ath9k/hif_usb.c tx_buf->urb = usb_alloc_urb(0, GFP_KERNEL); urb 809 drivers/net/wireless/ath/ath9k/hif_usb.c if (!tx_buf->urb) urb 839 drivers/net/wireless/ath/ath9k/hif_usb.c struct urb *urb = NULL; urb 854 drivers/net/wireless/ath/ath9k/hif_usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 855 drivers/net/wireless/ath/ath9k/hif_usb.c if (urb == NULL) { urb 870 drivers/net/wireless/ath/ath9k/hif_usb.c usb_fill_bulk_urb(urb, hif_dev->udev, urb 877 drivers/net/wireless/ath/ath9k/hif_usb.c usb_anchor_urb(urb, &hif_dev->rx_submitted); urb 880 drivers/net/wireless/ath/ath9k/hif_usb.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 882 drivers/net/wireless/ath/ath9k/hif_usb.c usb_unanchor_urb(urb); urb 890 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(urb); urb 898 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(urb); urb 915 drivers/net/wireless/ath/ath9k/hif_usb.c struct urb *urb = NULL; urb 929 drivers/net/wireless/ath/ath9k/hif_usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 930 drivers/net/wireless/ath/ath9k/hif_usb.c if (urb == NULL) { urb 945 drivers/net/wireless/ath/ath9k/hif_usb.c usb_fill_int_urb(urb, hif_dev->udev, urb 952 drivers/net/wireless/ath/ath9k/hif_usb.c usb_anchor_urb(urb, &hif_dev->reg_in_submitted); urb 955 drivers/net/wireless/ath/ath9k/hif_usb.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 957 drivers/net/wireless/ath/ath9k/hif_usb.c usb_unanchor_urb(urb); urb 965 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(urb); urb 973 drivers/net/wireless/ath/ath9k/hif_usb.c usb_free_urb(urb); urb 83 drivers/net/wireless/ath/ath9k/hif_usb.h struct urb *urb; urb 135 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 141 drivers/net/wireless/ath/carl9170/usb.c urb = usb_get_from_anchor(&ar->tx_wait); urb 142 drivers/net/wireless/ath/carl9170/usb.c if (!urb) urb 145 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->tx_anch); urb 147 drivers/net/wireless/ath/carl9170/usb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 151 drivers/net/wireless/ath/carl9170/usb.c urb->status); urb 154 drivers/net/wireless/ath/carl9170/usb.c usb_unanchor_urb(urb); urb 155 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->tx_err); urb 158 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 167 drivers/net/wireless/ath/carl9170/usb.c static void carl9170_usb_tx_data_complete(struct urb *urb) urb 169 drivers/net/wireless/ath/carl9170/usb.c struct ar9170 *ar = usb_get_intfdata(usb_ifnum_to_if(urb->dev, 0)); urb 172 drivers/net/wireless/ath/carl9170/usb.c dev_kfree_skb_irq(urb->context); urb 178 drivers/net/wireless/ath/carl9170/usb.c switch (urb->status) { urb 181 drivers/net/wireless/ath/carl9170/usb.c carl9170_tx_callback(ar, (void *)urb->context); urb 194 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->tx_err); urb 201 drivers/net/wireless/ath/carl9170/usb.c urb->status); urb 204 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->tx_err); urb 214 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 222 drivers/net/wireless/ath/carl9170/usb.c urb = usb_get_from_anchor(&ar->tx_cmd); urb 223 drivers/net/wireless/ath/carl9170/usb.c if (!urb) { urb 228 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->tx_anch); urb 229 drivers/net/wireless/ath/carl9170/usb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 231 drivers/net/wireless/ath/carl9170/usb.c usb_unanchor_urb(urb); urb 234 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 239 drivers/net/wireless/ath/carl9170/usb.c static void carl9170_usb_cmd_complete(struct urb *urb) urb 241 drivers/net/wireless/ath/carl9170/usb.c struct ar9170 *ar = urb->context; urb 249 drivers/net/wireless/ath/carl9170/usb.c switch (urb->status) { urb 262 drivers/net/wireless/ath/carl9170/usb.c err = urb->status; urb 277 drivers/net/wireless/ath/carl9170/usb.c static void carl9170_usb_rx_irq_complete(struct urb *urb) urb 279 drivers/net/wireless/ath/carl9170/usb.c struct ar9170 *ar = urb->context; urb 284 drivers/net/wireless/ath/carl9170/usb.c switch (urb->status) { urb 307 drivers/net/wireless/ath/carl9170/usb.c carl9170_handle_command_response(ar, urb->transfer_buffer, urb 308 drivers/net/wireless/ath/carl9170/usb.c urb->actual_length); urb 311 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->rx_anch); urb 312 drivers/net/wireless/ath/carl9170/usb.c if (unlikely(usb_submit_urb(urb, GFP_ATOMIC))) urb 313 drivers/net/wireless/ath/carl9170/usb.c usb_unanchor_urb(urb); urb 318 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 324 drivers/net/wireless/ath/carl9170/usb.c urb = usb_get_from_anchor(&ar->rx_pool); urb 325 drivers/net/wireless/ath/carl9170/usb.c if (urb) { urb 326 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->rx_anch); urb 327 drivers/net/wireless/ath/carl9170/usb.c err = usb_submit_urb(urb, gfp); urb 329 drivers/net/wireless/ath/carl9170/usb.c usb_unanchor_urb(urb); urb 330 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->rx_pool); urb 335 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 344 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 348 drivers/net/wireless/ath/carl9170/usb.c urb = usb_get_from_anchor(&ar->rx_work); urb 349 drivers/net/wireless/ath/carl9170/usb.c if (!urb) urb 354 drivers/net/wireless/ath/carl9170/usb.c carl9170_rx(ar, urb->transfer_buffer, urb 355 drivers/net/wireless/ath/carl9170/usb.c urb->actual_length); urb 358 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->rx_pool); urb 361 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 369 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 371 drivers/net/wireless/ath/carl9170/usb.c while ((urb = usb_get_from_anchor(&ar->tx_err))) { urb 372 drivers/net/wireless/ath/carl9170/usb.c struct sk_buff *skb = (void *)urb->context; urb 376 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 398 drivers/net/wireless/ath/carl9170/usb.c static void carl9170_usb_rx_complete(struct urb *urb) urb 400 drivers/net/wireless/ath/carl9170/usb.c struct ar9170 *ar = (struct ar9170 *)urb->context; urb 408 drivers/net/wireless/ath/carl9170/usb.c switch (urb->status) { urb 411 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->rx_work); urb 424 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->rx_pool); urb 459 drivers/net/wireless/ath/carl9170/usb.c static struct urb *carl9170_usb_alloc_rx_urb(struct ar9170 *ar, gfp_t gfp) urb 461 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 468 drivers/net/wireless/ath/carl9170/usb.c urb = usb_alloc_urb(0, gfp); urb 469 drivers/net/wireless/ath/carl9170/usb.c if (!urb) { urb 474 drivers/net/wireless/ath/carl9170/usb.c usb_fill_bulk_urb(urb, ar->udev, usb_rcvbulkpipe(ar->udev, urb 478 drivers/net/wireless/ath/carl9170/usb.c urb->transfer_flags |= URB_FREE_BUFFER; urb 480 drivers/net/wireless/ath/carl9170/usb.c return urb; urb 485 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb = NULL; urb 489 drivers/net/wireless/ath/carl9170/usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 490 drivers/net/wireless/ath/carl9170/usb.c if (!urb) urb 497 drivers/net/wireless/ath/carl9170/usb.c usb_fill_int_urb(urb, ar->udev, usb_rcvintpipe(ar->udev, urb 501 drivers/net/wireless/ath/carl9170/usb.c urb->transfer_flags |= URB_FREE_BUFFER; urb 503 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->rx_anch); urb 504 drivers/net/wireless/ath/carl9170/usb.c err = usb_submit_urb(urb, GFP_KERNEL); urb 506 drivers/net/wireless/ath/carl9170/usb.c usb_unanchor_urb(urb); urb 509 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 515 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 529 drivers/net/wireless/ath/carl9170/usb.c urb = carl9170_usb_alloc_rx_urb(ar, GFP_KERNEL); urb 530 drivers/net/wireless/ath/carl9170/usb.c if (!urb) { urb 535 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->rx_pool); urb 537 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 558 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 561 drivers/net/wireless/ath/carl9170/usb.c while ((urb = usb_get_from_anchor(&ar->tx_wait))) { urb 562 drivers/net/wireless/ath/carl9170/usb.c struct sk_buff *skb = (void *)urb->context; urb 565 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 607 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 620 drivers/net/wireless/ath/carl9170/usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 621 drivers/net/wireless/ath/carl9170/usb.c if (!urb) { urb 627 drivers/net/wireless/ath/carl9170/usb.c usb_fill_bulk_urb(urb, ar->udev, urb 632 drivers/net/wireless/ath/carl9170/usb.c usb_fill_int_urb(urb, ar->udev, urb 638 drivers/net/wireless/ath/carl9170/usb.c urb->transfer_flags |= URB_FREE_BUFFER; urb 640 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->tx_cmd); urb 641 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 717 drivers/net/wireless/ath/carl9170/usb.c struct urb *urb; urb 725 drivers/net/wireless/ath/carl9170/usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 726 drivers/net/wireless/ath/carl9170/usb.c if (!urb) urb 741 drivers/net/wireless/ath/carl9170/usb.c usb_fill_bulk_urb(urb, ar->udev, usb_sndbulkpipe(ar->udev, urb 745 drivers/net/wireless/ath/carl9170/usb.c urb->transfer_flags |= URB_ZERO_PACKET; urb 747 drivers/net/wireless/ath/carl9170/usb.c usb_anchor_urb(urb, &ar->tx_wait); urb 749 drivers/net/wireless/ath/carl9170/usb.c usb_free_urb(urb); urb 1198 drivers/net/wireless/atmel/at76c50x-usb.c static void at76_rx_callback(struct urb *urb) urb 1200 drivers/net/wireless/atmel/at76c50x-usb.c struct at76_priv *priv = urb->context; urb 1202 drivers/net/wireless/atmel/at76c50x-usb.c priv->rx_tasklet.data = (unsigned long)urb; urb 1550 drivers/net/wireless/atmel/at76c50x-usb.c struct urb *urb = (struct urb *)param; urb 1551 drivers/net/wireless/atmel/at76c50x-usb.c struct at76_priv *priv = urb->context; urb 1557 drivers/net/wireless/atmel/at76c50x-usb.c at76_dbg(DBG_DEVSTART, "urb status %d", urb->status); urb 1566 drivers/net/wireless/atmel/at76c50x-usb.c if (urb->status != 0) { urb 1567 drivers/net/wireless/atmel/at76c50x-usb.c if (urb->status != -ENOENT && urb->status != -ECONNRESET) urb 1571 drivers/net/wireless/atmel/at76c50x-usb.c urb->status); urb 1729 drivers/net/wireless/atmel/at76c50x-usb.c static void at76_mac80211_tx_callback(struct urb *urb) urb 1731 drivers/net/wireless/atmel/at76c50x-usb.c struct at76_priv *priv = urb->context; urb 1736 drivers/net/wireless/atmel/at76c50x-usb.c switch (urb->status) { urb 1748 drivers/net/wireless/atmel/at76c50x-usb.c __func__, urb->status); urb 376 drivers/net/wireless/atmel/at76c50x-usb.h struct urb *tx_urb; /* URB for sending data */ urb 377 drivers/net/wireless/atmel/at76c50x-usb.h struct urb *rx_urb; /* URB for receiving data */ urb 155 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct urb *ctl_urb; /* URB for control endpoint */ urb 165 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct urb *bulk_urb; /* used for FW download */ urb 222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_ctlread_complete(struct urb *urb) urb 225 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c (struct brcmf_usbdev_info *)urb->context; urb 228 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->ctl_urb_actual_length = urb->actual_length; urb 230 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c urb->status); urb 234 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_ctlwrite_complete(struct urb *urb) urb 237 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c (struct brcmf_usbdev_info *)urb->context; urb 241 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c urb->status); urb 416 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c req->urb = usb_alloc_urb(0, GFP_ATOMIC); urb 417 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!req->urb) urb 430 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_free_urb(req->urb); urb 443 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!req->urb) { urb 447 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_free_urb(req->urb); urb 463 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_usb_tx_complete(struct urb *urb) urb 465 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbreq *req = (struct brcmf_usbreq *)urb->context; urb 469 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_dbg(USB, "Enter, urb->status=%d, skb=%p\n", urb->status, urb 473 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_proto_bcdc_txcomplete(devinfo->dev, req->skb, urb->status == 0); urb 485 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c static void brcmf_usb_rx_complete(struct urb *urb) urb 487 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbreq *req = (struct brcmf_usbreq *)urb->context; urb 491 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_dbg(USB, "Enter, urb->status=%d\n", urb->status); urb 497 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (urb->status != 0 || !urb->actual_length) { urb 504 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c skb_put(skb, urb->actual_length); urb 531 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_fill_bulk_urb(req->urb, devinfo->usbdev, devinfo->rx_pipe, urb 537 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = usb_submit_urb(req->urb, GFP_ATOMIC); urb 607 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_fill_bulk_urb(req->urb, devinfo->usbdev, devinfo->tx_pipe, urb 609 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c req->urb->transfer_flags |= URB_ZERO_PACKET; urb 611 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = usb_submit_urb(req->urb, GFP_ATOMIC); urb 678 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_kill_urb(devinfo->tx_reqs[i].urb); urb 681 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c usb_kill_urb(devinfo->rx_reqs[i].urb); urb 701 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c brcmf_usb_sync_complete(struct urb *urb) urb 704 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c (struct brcmf_usbdev_info *)urb->context; urb 38 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.h struct urb *urb; urb 247 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct urb *read_urb; urb 271 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct urb *outurb; /* OUT for req pkt */ urb 286 drivers/net/wireless/intersil/orinoco/orinoco_usb.c static void ezusb_bulk_in_callback(struct urb *urb); urb 518 drivers/net/wireless/intersil/orinoco/orinoco_usb.c static void ezusb_request_out_callback(struct urb *urb) urb 522 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct request_context *ctx = urb->context; urb 537 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (urb->status == 0) { urb 560 drivers/net/wireless/intersil/orinoco/orinoco_usb.c state, urb->status); urb 584 drivers/net/wireless/intersil/orinoco/orinoco_usb.c state, urb->status); urb 593 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct urb *urb) urb 595 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct ezusb_packet *ans = urb->transfer_buffer; urb 632 drivers/net/wireless/intersil/orinoco/orinoco_usb.c urb->transfer_buffer = ctx->buf; urb 634 drivers/net/wireless/intersil/orinoco/orinoco_usb.c ctx->buf_length = urb->actual_length; urb 1392 drivers/net/wireless/intersil/orinoco/orinoco_usb.c static void ezusb_bulk_in_callback(struct urb *urb) urb 1394 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct ezusb_priv *upriv = (struct ezusb_priv *) urb->context; urb 1395 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct ezusb_packet *ans = urb->transfer_buffer; urb 1402 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (urb->status == -ETIMEDOUT) { urb 1409 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (urb->status == -ECONNABORTED) { urb 1414 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if ((urb->status == -EILSEQ) urb 1415 drivers/net/wireless/intersil/orinoco/orinoco_usb.c || (urb->status == -ENOENT) urb 1416 drivers/net/wireless/intersil/orinoco/orinoco_usb.c || (urb->status == -ECONNRESET)) { urb 1418 drivers/net/wireless/intersil/orinoco/orinoco_usb.c urb->status); urb 1421 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (urb->status) urb 1423 drivers/net/wireless/intersil/orinoco/orinoco_usb.c urb->status, urb->actual_length); urb 1424 drivers/net/wireless/intersil/orinoco/orinoco_usb.c if (urb->actual_length < sizeof(*ans)) { urb 1436 drivers/net/wireless/intersil/orinoco/orinoco_usb.c ezusb_request_in_callback(upriv, urb); urb 140 drivers/net/wireless/intersil/p54/p54usb.c static void p54u_rx_cb(struct urb *urb) urb 142 drivers/net/wireless/intersil/p54/p54usb.c struct sk_buff *skb = (struct sk_buff *) urb->context; urb 149 drivers/net/wireless/intersil/p54/p54usb.c if (unlikely(urb->status)) { urb 154 drivers/net/wireless/intersil/p54/p54usb.c skb_put(skb, urb->actual_length); urb 171 drivers/net/wireless/intersil/p54/p54usb.c info->urb = urb; urb 173 drivers/net/wireless/intersil/p54/p54usb.c urb->transfer_buffer = skb_tail_pointer(skb); urb 174 drivers/net/wireless/intersil/p54/p54usb.c urb->context = skb; urb 184 drivers/net/wireless/intersil/p54/p54usb.c urb->transfer_buffer = skb_tail_pointer(skb); urb 187 drivers/net/wireless/intersil/p54/p54usb.c usb_anchor_urb(urb, &priv->submitted); urb 188 drivers/net/wireless/intersil/p54/p54usb.c if (usb_submit_urb(urb, GFP_ATOMIC)) { urb 190 drivers/net/wireless/intersil/p54/p54usb.c usb_unanchor_urb(urb); urb 195 drivers/net/wireless/intersil/p54/p54usb.c static void p54u_tx_cb(struct urb *urb) urb 197 drivers/net/wireless/intersil/p54/p54usb.c struct sk_buff *skb = urb->context; urb 199 drivers/net/wireless/intersil/p54/p54usb.c usb_get_intfdata(usb_ifnum_to_if(urb->dev, 0)); urb 204 drivers/net/wireless/intersil/p54/p54usb.c static void p54u_tx_dummy_cb(struct urb *urb) { } urb 225 drivers/net/wireless/intersil/p54/p54usb.c struct urb *entry = NULL; urb 247 drivers/net/wireless/intersil/p54/p54usb.c info->urb = entry; urb 297 drivers/net/wireless/intersil/p54/p54usb.c struct urb *data_urb; urb 326 drivers/net/wireless/intersil/p54/p54usb.c struct urb *int_urb = NULL, *data_urb = NULL; urb 130 drivers/net/wireless/intersil/p54/p54usb.h struct urb *urb; urb 66 drivers/net/wireless/marvell/libertas/if_usb.c static void if_usb_receive(struct urb *urb); urb 67 drivers/net/wireless/marvell/libertas/if_usb.c static void if_usb_receive_fwload(struct urb *urb); urb 85 drivers/net/wireless/marvell/libertas/if_usb.c static void if_usb_write_bulk_callback(struct urb *urb) urb 87 drivers/net/wireless/marvell/libertas/if_usb.c struct if_usb_card *cardp = (struct if_usb_card *) urb->context; urb 91 drivers/net/wireless/marvell/libertas/if_usb.c if (urb->status == 0) { urb 94 drivers/net/wireless/marvell/libertas/if_usb.c lbs_deb_usb2(&urb->dev->dev, "URB status is successful\n"); urb 95 drivers/net/wireless/marvell/libertas/if_usb.c lbs_deb_usb2(&urb->dev->dev, "Actual length transmitted %d\n", urb 96 drivers/net/wireless/marvell/libertas/if_usb.c urb->actual_length); urb 105 drivers/net/wireless/marvell/libertas/if_usb.c pr_info("URB in failure status: %d\n", urb->status); urb 445 drivers/net/wireless/marvell/libertas/if_usb.c void (*callbackfn)(struct urb *urb)) urb 489 drivers/net/wireless/marvell/libertas/if_usb.c static void if_usb_receive_fwload(struct urb *urb) urb 491 drivers/net/wireless/marvell/libertas/if_usb.c struct if_usb_card *cardp = urb->context; urb 496 drivers/net/wireless/marvell/libertas/if_usb.c if (urb->status) { urb 653 drivers/net/wireless/marvell/libertas/if_usb.c static void if_usb_receive(struct urb *urb) urb 655 drivers/net/wireless/marvell/libertas/if_usb.c struct if_usb_card *cardp = urb->context; urb 658 drivers/net/wireless/marvell/libertas/if_usb.c int recvlength = urb->actual_length; urb 665 drivers/net/wireless/marvell/libertas/if_usb.c if (urb->status) { urb 667 drivers/net/wireless/marvell/libertas/if_usb.c urb->status); urb 677 drivers/net/wireless/marvell/libertas/if_usb.c } else if (urb->status) { urb 48 drivers/net/wireless/marvell/libertas/if_usb.h struct urb *rx_urb, *tx_urb; urb 39 drivers/net/wireless/marvell/libertas_tf/if_usb.c static void if_usb_receive(struct urb *urb); urb 40 drivers/net/wireless/marvell/libertas_tf/if_usb.c static void if_usb_receive_fwload(struct urb *urb); urb 55 drivers/net/wireless/marvell/libertas_tf/if_usb.c static void if_usb_write_bulk_callback(struct urb *urb) urb 57 drivers/net/wireless/marvell/libertas_tf/if_usb.c if (urb->status != 0) { urb 59 drivers/net/wireless/marvell/libertas_tf/if_usb.c pr_info("URB in failure status: %d\n", urb->status); urb 61 drivers/net/wireless/marvell/libertas_tf/if_usb.c lbtf_deb_usb2(&urb->dev->dev, "URB status is successful\n"); urb 62 drivers/net/wireless/marvell/libertas_tf/if_usb.c lbtf_deb_usb2(&urb->dev->dev, "Actual length transmitted %d\n", urb 63 drivers/net/wireless/marvell/libertas_tf/if_usb.c urb->actual_length); urb 374 drivers/net/wireless/marvell/libertas_tf/if_usb.c struct urb *urb; urb 384 drivers/net/wireless/marvell/libertas_tf/if_usb.c urb = cardp->tx_urb; urb 386 drivers/net/wireless/marvell/libertas_tf/if_usb.c urb = cardp->cmd_urb; urb 388 drivers/net/wireless/marvell/libertas_tf/if_usb.c usb_fill_bulk_urb(urb, cardp->udev, urb 393 drivers/net/wireless/marvell/libertas_tf/if_usb.c urb->transfer_flags |= URB_ZERO_PACKET; urb 395 drivers/net/wireless/marvell/libertas_tf/if_usb.c if (usb_submit_urb(urb, GFP_ATOMIC)) { urb 411 drivers/net/wireless/marvell/libertas_tf/if_usb.c void (*callbackfn)(struct urb *urb)) urb 460 drivers/net/wireless/marvell/libertas_tf/if_usb.c static void if_usb_receive_fwload(struct urb *urb) urb 462 drivers/net/wireless/marvell/libertas_tf/if_usb.c struct if_usb_card *cardp = urb->context; urb 468 drivers/net/wireless/marvell/libertas_tf/if_usb.c if (urb->status) { urb 624 drivers/net/wireless/marvell/libertas_tf/if_usb.c static void if_usb_receive(struct urb *urb) urb 626 drivers/net/wireless/marvell/libertas_tf/if_usb.c struct if_usb_card *cardp = urb->context; urb 629 drivers/net/wireless/marvell/libertas_tf/if_usb.c int recvlength = urb->actual_length; urb 637 drivers/net/wireless/marvell/libertas_tf/if_usb.c if (urb->status) { urb 639 drivers/net/wireless/marvell/libertas_tf/if_usb.c urb->status); urb 649 drivers/net/wireless/marvell/libertas_tf/if_usb.c } else if (urb->status) { urb 43 drivers/net/wireless/marvell/libertas_tf/if_usb.h struct urb *rx_urb, *tx_urb, *cmd_urb; urb 163 drivers/net/wireless/marvell/mwifiex/usb.c static void mwifiex_usb_rx_complete(struct urb *urb) urb 165 drivers/net/wireless/marvell/mwifiex/usb.c struct urb_context *context = (struct urb_context *)urb->context; urb 169 drivers/net/wireless/marvell/mwifiex/usb.c int recv_length = urb->actual_length; urb 184 drivers/net/wireless/marvell/mwifiex/usb.c if (urb->status || urb 187 drivers/net/wireless/marvell/mwifiex/usb.c "URB status is failed: %d\n", urb->status); urb 221 drivers/net/wireless/marvell/mwifiex/usb.c } else if (urb->status) { urb 224 drivers/net/wireless/marvell/mwifiex/usb.c "Card is removed: %d\n", urb->status); urb 256 drivers/net/wireless/marvell/mwifiex/usb.c static void mwifiex_usb_tx_complete(struct urb *urb) urb 258 drivers/net/wireless/marvell/mwifiex/usb.c struct urb_context *context = (struct urb_context *)(urb->context); urb 265 drivers/net/wireless/marvell/mwifiex/usb.c "%s: status: %d\n", __func__, urb->status); urb 276 drivers/net/wireless/marvell/mwifiex/usb.c urb->status ? -1 : 0); urb 325 drivers/net/wireless/marvell/mwifiex/usb.c usb_fill_int_urb(ctx->urb, card->udev, urb 330 drivers/net/wireless/marvell/mwifiex/usb.c usb_fill_bulk_urb(ctx->urb, card->udev, urb 340 drivers/net/wireless/marvell/mwifiex/usb.c if (usb_submit_urb(ctx->urb, GFP_ATOMIC)) { urb 361 drivers/net/wireless/marvell/mwifiex/usb.c if (atomic_read(&card->rx_cmd_urb_pending) && card->rx_cmd.urb) urb 362 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->rx_cmd.urb); urb 364 drivers/net/wireless/marvell/mwifiex/usb.c usb_free_urb(card->rx_cmd.urb); urb 365 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd.urb = NULL; urb 369 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_data_list[i].urb) urb 370 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->rx_data_list[i].urb); urb 373 drivers/net/wireless/marvell/mwifiex/usb.c usb_free_urb(card->rx_data_list[i].urb); urb 374 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_data_list[i].urb = NULL; urb 380 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(port->tx_data_list[j].urb); urb 381 drivers/net/wireless/marvell/mwifiex/usb.c usb_free_urb(port->tx_data_list[j].urb); urb 382 drivers/net/wireless/marvell/mwifiex/usb.c port->tx_data_list[j].urb = NULL; urb 386 drivers/net/wireless/marvell/mwifiex/usb.c usb_free_urb(card->tx_cmd.urb); urb 387 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd.urb = NULL; urb 568 drivers/net/wireless/marvell/mwifiex/usb.c if (atomic_read(&card->rx_cmd_urb_pending) && card->rx_cmd.urb) urb 569 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->rx_cmd.urb); urb 573 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_data_list[i].urb) urb 574 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->rx_data_list[i].urb); urb 579 drivers/net/wireless/marvell/mwifiex/usb.c if (port->tx_data_list[j].urb) urb 580 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(port->tx_data_list[j].urb); urb 584 drivers/net/wireless/marvell/mwifiex/usb.c if (card->tx_cmd.urb) urb 585 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->tx_cmd.urb); urb 812 drivers/net/wireless/marvell/mwifiex/usb.c struct urb *tx_urb; urb 817 drivers/net/wireless/marvell/mwifiex/usb.c tx_urb = context->urb; urb 1234 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd.urb = usb_alloc_urb(0, GFP_KERNEL); urb 1235 drivers/net/wireless/marvell/mwifiex/usb.c if (!card->tx_cmd.urb) urb 1251 drivers/net/wireless/marvell/mwifiex/usb.c port->tx_data_list[j].urb = urb 1253 drivers/net/wireless/marvell/mwifiex/usb.c if (!port->tx_data_list[j].urb) urb 1276 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd.urb = usb_alloc_urb(0, GFP_KERNEL); urb 1277 drivers/net/wireless/marvell/mwifiex/usb.c if (!card->rx_cmd.urb) urb 1291 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_data_list[i].urb = usb_alloc_urb(0, GFP_KERNEL); urb 1292 drivers/net/wireless/marvell/mwifiex/usb.c if (!card->rx_data_list[i].urb) urb 63 drivers/net/wireless/marvell/mwifiex/usb.h struct urb *urb; urb 93 drivers/net/wireless/mediatek/mt76/mt76.h struct urb *urb; urb 783 drivers/net/wireless/mediatek/mt76/mt76.h static inline bool mt76u_urb_error(struct urb *urb) urb 785 drivers/net/wireless/mediatek/mt76/mt76.h return urb->status && urb 786 drivers/net/wireless/mediatek/mt76/mt76.h urb->status != -ECONNRESET && urb 787 drivers/net/wireless/mediatek/mt76/mt76.h urb->status != -ESHUTDOWN && urb 788 drivers/net/wireless/mediatek/mt76/mt76.h urb->status != -ENOENT; urb 34 drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2u.h void mt76x2u_mcu_complete_urb(struct urb *urb); urb 275 drivers/net/wireless/mediatek/mt76/usb.c mt76u_fill_rx_sg(struct mt76_dev *dev, struct mt76_queue *q, struct urb *urb, urb 291 drivers/net/wireless/mediatek/mt76/usb.c sg_set_page(&urb->sg[i], page, q->buf_size, offset); urb 297 drivers/net/wireless/mediatek/mt76/usb.c for (j = nsgs; j < urb->num_sgs; j++) urb 298 drivers/net/wireless/mediatek/mt76/usb.c skb_free_frag(sg_virt(&urb->sg[j])); urb 299 drivers/net/wireless/mediatek/mt76/usb.c urb->num_sgs = i; urb 302 drivers/net/wireless/mediatek/mt76/usb.c urb->num_sgs = max_t(int, i, urb->num_sgs); urb 303 drivers/net/wireless/mediatek/mt76/usb.c urb->transfer_buffer_length = urb->num_sgs * q->buf_size; urb 304 drivers/net/wireless/mediatek/mt76/usb.c sg_init_marker(urb->sg, urb->num_sgs); urb 310 drivers/net/wireless/mediatek/mt76/usb.c mt76u_refill_rx(struct mt76_dev *dev, struct urb *urb, int nsgs, gfp_t gfp) urb 315 drivers/net/wireless/mediatek/mt76/usb.c return mt76u_fill_rx_sg(dev, q, urb, nsgs, gfp); urb 317 drivers/net/wireless/mediatek/mt76/usb.c urb->transfer_buffer_length = q->buf_size; urb 318 drivers/net/wireless/mediatek/mt76/usb.c urb->transfer_buffer = page_frag_alloc(&q->rx_page, q->buf_size, gfp); urb 320 drivers/net/wireless/mediatek/mt76/usb.c return urb->transfer_buffer ? 0 : -ENOMEM; urb 327 drivers/net/wireless/mediatek/mt76/usb.c unsigned int size = sizeof(struct urb); urb 332 drivers/net/wireless/mediatek/mt76/usb.c e->urb = kzalloc(size, GFP_KERNEL); urb 333 drivers/net/wireless/mediatek/mt76/usb.c if (!e->urb) urb 336 drivers/net/wireless/mediatek/mt76/usb.c usb_init_urb(e->urb); urb 339 drivers/net/wireless/mediatek/mt76/usb.c e->urb->sg = (struct scatterlist *)(e->urb + 1); urb 353 drivers/net/wireless/mediatek/mt76/usb.c return mt76u_refill_rx(dev, e->urb, MT_RX_SG_MAX_SIZE, urb 357 drivers/net/wireless/mediatek/mt76/usb.c static void mt76u_urb_free(struct urb *urb) urb 361 drivers/net/wireless/mediatek/mt76/usb.c for (i = 0; i < urb->num_sgs; i++) urb 362 drivers/net/wireless/mediatek/mt76/usb.c skb_free_frag(sg_virt(&urb->sg[i])); urb 364 drivers/net/wireless/mediatek/mt76/usb.c if (urb->transfer_buffer) urb 365 drivers/net/wireless/mediatek/mt76/usb.c skb_free_frag(urb->transfer_buffer); urb 367 drivers/net/wireless/mediatek/mt76/usb.c usb_free_urb(urb); urb 372 drivers/net/wireless/mediatek/mt76/usb.c struct urb *urb, usb_complete_t complete_fn, urb 384 drivers/net/wireless/mediatek/mt76/usb.c urb->dev = udev; urb 385 drivers/net/wireless/mediatek/mt76/usb.c urb->pipe = pipe; urb 386 drivers/net/wireless/mediatek/mt76/usb.c urb->complete = complete_fn; urb 387 drivers/net/wireless/mediatek/mt76/usb.c urb->context = context; urb 390 drivers/net/wireless/mediatek/mt76/usb.c static inline struct urb * urb 394 drivers/net/wireless/mediatek/mt76/usb.c struct urb *urb = NULL; urb 399 drivers/net/wireless/mediatek/mt76/usb.c urb = q->entry[q->head].urb; urb 405 drivers/net/wireless/mediatek/mt76/usb.c return urb; urb 460 drivers/net/wireless/mediatek/mt76/usb.c mt76u_process_rx_entry(struct mt76_dev *dev, struct urb *urb) urb 463 drivers/net/wireless/mediatek/mt76/usb.c u8 *data = urb->num_sgs ? sg_virt(&urb->sg[0]) : urb->transfer_buffer; urb 464 drivers/net/wireless/mediatek/mt76/usb.c int data_len = urb->num_sgs ? urb->sg[0].length : urb->actual_length; urb 471 drivers/net/wireless/mediatek/mt76/usb.c len = mt76u_get_rx_entry_len(data, urb->actual_length); urb 481 drivers/net/wireless/mediatek/mt76/usb.c while (len > 0 && nsgs < urb->num_sgs) { urb 482 drivers/net/wireless/mediatek/mt76/usb.c data_len = min_t(int, len, urb->sg[nsgs].length); urb 484 drivers/net/wireless/mediatek/mt76/usb.c sg_page(&urb->sg[nsgs]), urb 485 drivers/net/wireless/mediatek/mt76/usb.c urb->sg[nsgs].offset, urb 495 drivers/net/wireless/mediatek/mt76/usb.c static void mt76u_complete_rx(struct urb *urb) urb 497 drivers/net/wireless/mediatek/mt76/usb.c struct mt76_dev *dev = urb->context; urb 501 drivers/net/wireless/mediatek/mt76/usb.c trace_rx_urb(dev, urb); urb 503 drivers/net/wireless/mediatek/mt76/usb.c switch (urb->status) { urb 510 drivers/net/wireless/mediatek/mt76/usb.c urb->status); urb 517 drivers/net/wireless/mediatek/mt76/usb.c if (WARN_ONCE(q->entry[q->tail].urb != urb, "rx urb mismatch")) urb 528 drivers/net/wireless/mediatek/mt76/usb.c mt76u_submit_rx_buf(struct mt76_dev *dev, struct urb *urb) urb 530 drivers/net/wireless/mediatek/mt76/usb.c mt76u_fill_bulk_urb(dev, USB_DIR_IN, MT_EP_IN_PKT_RX, urb, urb 532 drivers/net/wireless/mediatek/mt76/usb.c trace_submit_urb(dev, urb); urb 534 drivers/net/wireless/mediatek/mt76/usb.c return usb_submit_urb(urb, GFP_ATOMIC); urb 540 drivers/net/wireless/mediatek/mt76/usb.c struct urb *urb; urb 546 drivers/net/wireless/mediatek/mt76/usb.c urb = mt76u_get_next_rx_entry(dev); urb 547 drivers/net/wireless/mediatek/mt76/usb.c if (!urb) urb 550 drivers/net/wireless/mediatek/mt76/usb.c count = mt76u_process_rx_entry(dev, urb); urb 552 drivers/net/wireless/mediatek/mt76/usb.c err = mt76u_refill_rx(dev, urb, count, GFP_ATOMIC); urb 556 drivers/net/wireless/mediatek/mt76/usb.c mt76u_submit_rx_buf(dev, urb); urb 571 drivers/net/wireless/mediatek/mt76/usb.c err = mt76u_submit_rx_buf(dev, q->entry[i].urb); urb 618 drivers/net/wireless/mediatek/mt76/usb.c mt76u_urb_free(q->entry[i].urb); urb 634 drivers/net/wireless/mediatek/mt76/usb.c usb_poison_urb(q->entry[i].urb); urb 646 drivers/net/wireless/mediatek/mt76/usb.c usb_unpoison_urb(q->entry[i].urb); urb 736 drivers/net/wireless/mediatek/mt76/usb.c static void mt76u_complete_tx(struct urb *urb) urb 738 drivers/net/wireless/mediatek/mt76/usb.c struct mt76_dev *dev = dev_get_drvdata(&urb->dev->dev); urb 739 drivers/net/wireless/mediatek/mt76/usb.c struct mt76_queue_entry *e = urb->context; urb 741 drivers/net/wireless/mediatek/mt76/usb.c if (mt76u_urb_error(urb)) urb 742 drivers/net/wireless/mediatek/mt76/usb.c dev_err(dev->dev, "tx urb failed: %d\n", urb->status); urb 750 drivers/net/wireless/mediatek/mt76/usb.c struct urb *urb) urb 752 drivers/net/wireless/mediatek/mt76/usb.c urb->transfer_buffer_length = skb->len; urb 755 drivers/net/wireless/mediatek/mt76/usb.c urb->transfer_buffer = skb->data; urb 759 drivers/net/wireless/mediatek/mt76/usb.c sg_init_table(urb->sg, MT_TX_SG_MAX_SIZE); urb 760 drivers/net/wireless/mediatek/mt76/usb.c urb->num_sgs = skb_to_sgvec(skb, urb->sg, 0, skb->len); urb 761 drivers/net/wireless/mediatek/mt76/usb.c if (!urb->num_sgs) urb 764 drivers/net/wireless/mediatek/mt76/usb.c return urb->num_sgs; urb 787 drivers/net/wireless/mediatek/mt76/usb.c err = mt76u_tx_setup_buffers(dev, tx_info.skb, q->entry[idx].urb); urb 792 drivers/net/wireless/mediatek/mt76/usb.c q->entry[idx].urb, mt76u_complete_tx, urb 804 drivers/net/wireless/mediatek/mt76/usb.c struct urb *urb; urb 808 drivers/net/wireless/mediatek/mt76/usb.c urb = q->entry[q->first].urb; urb 810 drivers/net/wireless/mediatek/mt76/usb.c trace_submit_urb(dev, urb); urb 811 drivers/net/wireless/mediatek/mt76/usb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 870 drivers/net/wireless/mediatek/mt76/usb.c usb_free_urb(q->entry[j].urb); urb 888 drivers/net/wireless/mediatek/mt76/usb.c usb_kill_urb(q->entry[j].urb); urb 55 drivers/net/wireless/mediatek/mt76/usb_trace.h TP_PROTO(struct mt76_dev *dev, struct urb *u), urb 70 drivers/net/wireless/mediatek/mt76/usb_trace.h TP_PROTO(struct mt76_dev *dev, struct urb *u), urb 75 drivers/net/wireless/mediatek/mt76/usb_trace.h TP_PROTO(struct mt76_dev *dev, struct urb *u), urb 130 drivers/net/wireless/mediatek/mt7601u/dma.c u32 seg_len, data_len = e->urb->actual_length; urb 182 drivers/net/wireless/mediatek/mt7601u/dma.c static void mt7601u_complete_rx(struct urb *urb) urb 184 drivers/net/wireless/mediatek/mt7601u/dma.c struct mt7601u_dev *dev = urb->context; urb 191 drivers/net/wireless/mediatek/mt7601u/dma.c switch (urb->status) { urb 198 drivers/net/wireless/mediatek/mt7601u/dma.c urb->status); urb 205 drivers/net/wireless/mediatek/mt7601u/dma.c if (WARN_ONCE(q->e[q->end].urb != urb, "RX urb mismatch")) urb 221 drivers/net/wireless/mediatek/mt7601u/dma.c if (e->urb->status) urb 229 drivers/net/wireless/mediatek/mt7601u/dma.c static void mt7601u_complete_tx(struct urb *urb) urb 231 drivers/net/wireless/mediatek/mt7601u/dma.c struct mt7601u_tx_queue *q = urb->context; urb 236 drivers/net/wireless/mediatek/mt7601u/dma.c switch (urb->status) { urb 243 drivers/net/wireless/mediatek/mt7601u/dma.c urb->status); urb 250 drivers/net/wireless/mediatek/mt7601u/dma.c if (WARN_ONCE(q->e[q->start].urb != urb, "TX urb mismatch")) urb 314 drivers/net/wireless/mediatek/mt7601u/dma.c usb_fill_bulk_urb(e->urb, usb_dev, snd_pipe, skb->data, skb->len, urb 316 drivers/net/wireless/mediatek/mt7601u/dma.c ret = usb_submit_urb(e->urb, GFP_ATOMIC); urb 384 drivers/net/wireless/mediatek/mt7601u/dma.c usb_poison_urb(dev->rx_q.e[i].urb); urb 397 drivers/net/wireless/mediatek/mt7601u/dma.c usb_fill_bulk_urb(e->urb, usb_dev, pipe, buf, MT_RX_URB_SIZE, urb 400 drivers/net/wireless/mediatek/mt7601u/dma.c trace_mt_submit_urb(dev, e->urb); urb 401 drivers/net/wireless/mediatek/mt7601u/dma.c ret = usb_submit_urb(e->urb, gfp); urb 427 drivers/net/wireless/mediatek/mt7601u/dma.c usb_free_urb(dev->rx_q.e[i].urb); urb 440 drivers/net/wireless/mediatek/mt7601u/dma.c dev->rx_q.e[i].urb = usb_alloc_urb(0, GFP_KERNEL); urb 443 drivers/net/wireless/mediatek/mt7601u/dma.c if (!dev->rx_q.e[i].urb || !dev->rx_q.e[i].p) urb 455 drivers/net/wireless/mediatek/mt7601u/dma.c usb_poison_urb(q->e[i].urb); urb 458 drivers/net/wireless/mediatek/mt7601u/dma.c usb_free_urb(q->e[i].urb); urb 482 drivers/net/wireless/mediatek/mt7601u/dma.c q->e[i].urb = usb_alloc_urb(0, GFP_KERNEL); urb 483 drivers/net/wireless/mediatek/mt7601u/dma.c if (!q->e[i].urb) urb 70 drivers/net/wireless/mediatek/mt7601u/mcu.c struct urb *urb = dev->mcu.resp.urb; urb 83 drivers/net/wireless/mediatek/mt7601u/mcu.c urb_status = urb->status * mt7601u_urb_has_error(urb); urb 317 drivers/net/wireless/mediatek/mt7601u/mcu.c usb_kill_urb(buf.urb); urb 320 drivers/net/wireless/mediatek/mt7601u/mcu.c if (mt7601u_urb_has_error(buf.urb)) { urb 322 drivers/net/wireless/mediatek/mt7601u/mcu.c buf.urb->status); urb 323 drivers/net/wireless/mediatek/mt7601u/mcu.c return buf.urb->status; urb 531 drivers/net/wireless/mediatek/mt7601u/mcu.c usb_kill_urb(dev->mcu.resp.urb); urb 36 drivers/net/wireless/mediatek/mt7601u/mt7601u.h struct urb *urb; urb 71 drivers/net/wireless/mediatek/mt7601u/mt7601u.h struct urb *urb; urb 87 drivers/net/wireless/mediatek/mt7601u/mt7601u.h struct urb *urb; urb 57 drivers/net/wireless/mediatek/mt7601u/trace.h TP_PROTO(struct mt7601u_dev *dev, struct urb *u), urb 72 drivers/net/wireless/mediatek/mt7601u/trace.h struct urb u; \ urb 40 drivers/net/wireless/mediatek/mt7601u/usb.c buf->urb = usb_alloc_urb(0, GFP_KERNEL); urb 43 drivers/net/wireless/mediatek/mt7601u/usb.c return !buf->urb || !buf->buf; urb 51 drivers/net/wireless/mediatek/mt7601u/usb.c usb_free_urb(buf->urb); urb 67 drivers/net/wireless/mediatek/mt7601u/usb.c usb_fill_bulk_urb(buf->urb, usb_dev, pipe, buf->buf, buf->len, urb 69 drivers/net/wireless/mediatek/mt7601u/usb.c buf->urb->transfer_dma = buf->dma; urb 70 drivers/net/wireless/mediatek/mt7601u/usb.c buf->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 72 drivers/net/wireless/mediatek/mt7601u/usb.c trace_mt_submit_urb(dev, buf->urb); urb 73 drivers/net/wireless/mediatek/mt7601u/usb.c ret = usb_submit_urb(buf->urb, gfp); urb 80 drivers/net/wireless/mediatek/mt7601u/usb.c void mt7601u_complete_urb(struct urb *urb) urb 82 drivers/net/wireless/mediatek/mt7601u/usb.c struct completion *cmpl = urb->context; urb 48 drivers/net/wireless/mediatek/mt7601u/usb.h static inline bool mt7601u_urb_has_error(struct urb *urb) urb 50 drivers/net/wireless/mediatek/mt7601u/usb.h return urb->status && urb 51 drivers/net/wireless/mediatek/mt7601u/usb.h urb->status != -ENOENT && urb 52 drivers/net/wireless/mediatek/mt7601u/usb.h urb->status != -ECONNRESET && urb 53 drivers/net/wireless/mediatek/mt7601u/usb.h urb->status != -ESHUTDOWN; urb 62 drivers/net/wireless/mediatek/mt7601u/usb.h void mt7601u_complete_urb(struct urb *urb); urb 1116 drivers/net/wireless/ralink/rt2x00/rt2500usb.c static void rt2500usb_beacondone(struct urb *urb); urb 1159 drivers/net/wireless/ralink/rt2x00/rt2500usb.c usb_fill_bulk_urb(bcn_priv->urb, usb_dev, pipe, urb 1224 drivers/net/wireless/ralink/rt2x00/rt2500usb.c (entry_priv->urb->actual_length - urb 1292 drivers/net/wireless/ralink/rt2x00/rt2500usb.c static void rt2500usb_beacondone(struct urb *urb) urb 1294 drivers/net/wireless/ralink/rt2x00/rt2500usb.c struct queue_entry *entry = (struct queue_entry *)urb->context; urb 1306 drivers/net/wireless/ralink/rt2x00/rt2500usb.c if (bcn_priv->guardian_urb == urb) { urb 1307 drivers/net/wireless/ralink/rt2x00/rt2500usb.c usb_submit_urb(bcn_priv->urb, GFP_ATOMIC); urb 1308 drivers/net/wireless/ralink/rt2x00/rt2500usb.c } else if (bcn_priv->urb == urb) { urb 175 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c static void rt2x00usb_register_read_async_cb(struct urb *urb) urb 177 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c struct rt2x00_async_read_data *rd = urb->context; urb 178 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c if (rd->callback(rd->rt2x00dev, urb->status, le32_to_cpu(rd->reg))) { urb 179 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_anchor_urb(urb, rd->rt2x00dev->anchor); urb 180 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c if (usb_submit_urb(urb, GFP_ATOMIC) < 0) { urb 181 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_unanchor_urb(urb); urb 193 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c struct urb *urb; urb 200 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 201 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c if (!urb) { urb 214 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_fill_control_urb(urb, usb_dev, usb_rcvctrlpipe(usb_dev, 0), urb 217 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_anchor_urb(urb, rt2x00dev->anchor); urb 218 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c if (usb_submit_urb(urb, GFP_ATOMIC) < 0) { urb 219 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_unanchor_urb(urb); urb 222 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_free_urb(urb); urb 265 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c static void rt2x00usb_interrupt_txdone(struct urb *urb) urb 267 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c struct queue_entry *entry = (struct queue_entry *)urb->context; urb 275 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c if (urb->status) urb 322 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_fill_bulk_urb(entry_priv->urb, usb_dev, urb 327 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c status = usb_submit_urb(entry_priv->urb, GFP_ATOMIC); urb 369 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c static void rt2x00usb_interrupt_rxdone(struct urb *urb) urb 371 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c struct queue_entry *entry = (struct queue_entry *)urb->context; urb 382 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c if (urb->actual_length < entry->queue->desc_size || urb->status) urb 408 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_fill_bulk_urb(entry_priv->urb, usb_dev, urb 413 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c status = usb_submit_urb(entry_priv->urb, GFP_ATOMIC); urb 461 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_kill_urb(entry_priv->urb); urb 655 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c entry_priv->urb = usb_alloc_urb(0, GFP_KERNEL); urb 656 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c if (!entry_priv->urb) urb 691 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_kill_urb(entry_priv->urb); urb 692 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c usb_free_urb(entry_priv->urb); urb 337 drivers/net/wireless/ralink/rt2x00/rt2x00usb.h struct urb *urb; urb 352 drivers/net/wireless/ralink/rt2x00/rt2x00usb.h struct urb *urb; urb 355 drivers/net/wireless/ralink/rt2x00/rt2x00usb.h struct urb *guardian_urb; urb 116 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c static void rtl8187_iowrite_async_cb(struct urb *urb) urb 118 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c kfree(urb->context); urb 125 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c struct urb *urb; urb 136 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 137 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c if (!urb) { urb 152 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_fill_control_urb(urb, priv->udev, usb_sndctrlpipe(priv->udev, 0), urb 155 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_anchor_urb(urb, &priv->anchored); urb 156 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 159 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_unanchor_urb(urb); urb 161 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_free_urb(urb); urb 186 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c static void rtl8187_tx_cb(struct urb *urb) urb 188 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c struct sk_buff *skb = (struct sk_buff *)urb->context; urb 197 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c if (!(urb->status) && !(info->flags & IEEE80211_TX_CTL_NO_ACK)) { urb 236 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c struct urb *urb; urb 241 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 242 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c if (!urb) { urb 311 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c info->rate_driver_data[1] = urb; urb 313 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_fill_bulk_urb(urb, priv->udev, usb_sndbulkpipe(priv->udev, ep), urb 315 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c urb->transfer_flags |= URB_ZERO_PACKET; urb 316 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_anchor_urb(urb, &priv->anchored); urb 317 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 319 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_unanchor_urb(urb); urb 322 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_free_urb(urb); urb 325 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c static void rtl8187_rx_cb(struct urb *urb) urb 327 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c struct sk_buff *skb = (struct sk_buff *)urb->context; urb 339 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c skb_put(skb, urb->actual_length); urb 341 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c if (unlikely(urb->status)) { urb 400 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c info->urb = urb; urb 402 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c urb->transfer_buffer = skb_tail_pointer(skb); urb 403 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c urb->context = skb; urb 406 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_anchor_urb(urb, &priv->anchored); urb 407 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c if (usb_submit_urb(urb, GFP_ATOMIC)) { urb 408 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_unanchor_urb(urb); urb 417 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c struct urb *entry = NULL; urb 439 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c info->urb = entry; urb 460 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c static void rtl8187b_status_cb(struct urb *urb) urb 462 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c struct ieee80211_hw *hw = (struct ieee80211_hw *)urb->context; urb 467 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c if (unlikely(urb->status)) urb 542 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_anchor_urb(urb, &priv->anchored); urb 543 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c if (usb_submit_urb(urb, GFP_ATOMIC)) urb 544 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c usb_unanchor_urb(urb); urb 550 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c struct urb *entry; urb 40 drivers/net/wireless/realtek/rtl818x/rtl8187/rtl8187.h struct urb *urb; urb 1297 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h struct urb urb; urb 1303 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h struct urb urb; urb 4650 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_free_urb(&tx_urb->urb); urb 4699 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c static void rtl8xxxu_tx_complete(struct urb *urb) urb 4701 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c struct sk_buff *skb = (struct sk_buff *)urb->context; urb 4706 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c container_of(urb, struct rtl8xxxu_tx_urb, urb); urb 4718 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (!urb->status) urb 5020 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_fill_bulk_urb(&tx_urb->urb, priv->udev, priv->pipe_out[queue], urb 5023 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_anchor_urb(&tx_urb->urb, &priv->tx_anchor); urb 5024 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c ret = usb_submit_urb(&tx_urb->urb, GFP_ATOMIC); urb 5026 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_unanchor_urb(&tx_urb->urb); urb 5080 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_free_urb(&rx_urb->urb); urb 5100 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c skb = (struct sk_buff *)rx_urb->urb.context; urb 5102 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_free_urb(&rx_urb->urb); urb 5147 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c skb = (struct sk_buff *)rx_urb->urb.context; urb 5149 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_free_urb(&rx_urb->urb); urb 5353 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c static void rtl8xxxu_rx_complete(struct urb *urb) urb 5356 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c container_of(urb, struct rtl8xxxu_rx_urb, urb); urb 5359 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c struct sk_buff *skb = (struct sk_buff *)urb->context; urb 5362 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c skb_put(skb, urb->actual_length); urb 5364 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (urb->status == 0) { urb 5368 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rx_urb->urb.context = NULL; urb 5371 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c dev_dbg(dev, "%s: status %i\n", __func__, urb->status); urb 5377 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_free_urb(urb); urb 5404 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_fill_bulk_urb(&rx_urb->urb, priv->udev, priv->pipe_in, skb->data, urb 5406 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_anchor_urb(&rx_urb->urb, &priv->rx_anchor); urb 5407 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c ret = usb_submit_urb(&rx_urb->urb, GFP_ATOMIC); urb 5409 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_unanchor_urb(&rx_urb->urb); urb 5413 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c static void rtl8xxxu_int_complete(struct urb *urb) urb 5415 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c struct rtl8xxxu_priv *priv = (struct rtl8xxxu_priv *)urb->context; urb 5420 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c dev_dbg(dev, "%s: status %i\n", __func__, urb->status); urb 5421 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (urb->status == 0) { urb 5422 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_anchor_urb(urb, &priv->int_anchor); urb 5423 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 5425 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_unanchor_urb(urb); urb 5427 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c dev_dbg(dev, "%s: Error %i\n", __func__, urb->status); urb 5435 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c struct urb *urb; urb 5439 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 5440 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (!urb) urb 5443 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_fill_int_urb(urb, priv->udev, priv->pipe_interrupt, urb 5446 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_anchor_urb(urb, &priv->int_anchor); urb 5447 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 5449 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_unanchor_urb(urb); urb 5450 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_free_urb(urb); urb 5808 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_init_urb(&tx_urb->urb); urb 5829 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c usb_init_urb(&rx_urb->urb); urb 430 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c int rtl8192c_tx_post_hdl(struct ieee80211_hw *hw, struct urb *urb, urb 386 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.h int rtl8192c_tx_post_hdl(struct ieee80211_hw *hw, struct urb *urb, urb 26 drivers/net/wireless/realtek/rtlwifi/usb.c static void usbctrl_async_callback(struct urb *urb) urb 28 drivers/net/wireless/realtek/rtlwifi/usb.c if (urb) { urb 30 drivers/net/wireless/realtek/rtlwifi/usb.c kfree(urb->setup_packet); urb 32 drivers/net/wireless/realtek/rtlwifi/usb.c kfree(urb->transfer_buffer); urb 44 drivers/net/wireless/realtek/rtlwifi/usb.c struct urb *urb; urb 64 drivers/net/wireless/realtek/rtlwifi/usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 65 drivers/net/wireless/realtek/rtlwifi/usb.c if (!urb) { urb 78 drivers/net/wireless/realtek/rtlwifi/usb.c usb_fill_control_urb(urb, udev, pipe, urb 81 drivers/net/wireless/realtek/rtlwifi/usb.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 86 drivers/net/wireless/realtek/rtlwifi/usb.c usb_free_urb(urb); urb 398 drivers/net/wireless/realtek/rtlwifi/usb.c static void _rtl_rx_completed(struct urb *urb); urb 401 drivers/net/wireless/realtek/rtlwifi/usb.c struct urb *urb, gfp_t gfp_mask) urb 406 drivers/net/wireless/realtek/rtlwifi/usb.c &urb->transfer_dma); urb 412 drivers/net/wireless/realtek/rtlwifi/usb.c usb_fill_bulk_urb(urb, rtlusb->udev, urb 415 drivers/net/wireless/realtek/rtlwifi/usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 590 drivers/net/wireless/realtek/rtlwifi/usb.c static void _rtl_rx_completed(struct urb *_urb) urb 676 drivers/net/wireless/realtek/rtlwifi/usb.c struct urb *urb; urb 688 drivers/net/wireless/realtek/rtlwifi/usb.c while ((urb = usb_get_from_anchor(&rtlusb->rx_cleanup_urbs))) { urb 689 drivers/net/wireless/realtek/rtlwifi/usb.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 690 drivers/net/wireless/realtek/rtlwifi/usb.c urb->transfer_buffer, urb->transfer_dma); urb 691 drivers/net/wireless/realtek/rtlwifi/usb.c usb_free_urb(urb); urb 697 drivers/net/wireless/realtek/rtlwifi/usb.c struct urb *urb; urb 708 drivers/net/wireless/realtek/rtlwifi/usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 709 drivers/net/wireless/realtek/rtlwifi/usb.c if (!urb) urb 712 drivers/net/wireless/realtek/rtlwifi/usb.c err = _rtl_prep_rx_urb(hw, rtlusb, urb, GFP_KERNEL); urb 715 drivers/net/wireless/realtek/rtlwifi/usb.c usb_free_urb(urb); urb 719 drivers/net/wireless/realtek/rtlwifi/usb.c usb_anchor_urb(urb, &rtlusb->rx_submitted); urb 720 drivers/net/wireless/realtek/rtlwifi/usb.c err = usb_submit_urb(urb, GFP_KERNEL); urb 723 drivers/net/wireless/realtek/rtlwifi/usb.c usb_free_urb(urb); urb 792 drivers/net/wireless/realtek/rtlwifi/usb.c struct urb *urb; urb 810 drivers/net/wireless/realtek/rtlwifi/usb.c while ((urb = usb_get_from_anchor(&rtlusb->rx_cleanup_urbs))) { urb 811 drivers/net/wireless/realtek/rtlwifi/usb.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 812 drivers/net/wireless/realtek/rtlwifi/usb.c urb->transfer_buffer, urb->transfer_dma); urb 813 drivers/net/wireless/realtek/rtlwifi/usb.c usb_free_urb(urb); urb 819 drivers/net/wireless/realtek/rtlwifi/usb.c static void _rtl_submit_tx_urb(struct ieee80211_hw *hw, struct urb *_urb) urb 837 drivers/net/wireless/realtek/rtlwifi/usb.c static int _usb_tx_post(struct ieee80211_hw *hw, struct urb *urb, urb 843 drivers/net/wireless/realtek/rtlwifi/usb.c rtlusb->usb_tx_post_hdl(hw, urb, skb); urb 849 drivers/net/wireless/realtek/rtlwifi/usb.c if (urb->status) { urb 850 drivers/net/wireless/realtek/rtlwifi/usb.c pr_err("Urb has error status 0x%X\n", urb->status); urb 856 drivers/net/wireless/realtek/rtlwifi/usb.c return urb->status; urb 859 drivers/net/wireless/realtek/rtlwifi/usb.c static void _rtl_tx_complete(struct urb *urb) urb 861 drivers/net/wireless/realtek/rtlwifi/usb.c struct sk_buff *skb = (struct sk_buff *)urb->context; urb 869 drivers/net/wireless/realtek/rtlwifi/usb.c err = _usb_tx_post(hw, urb, skb); urb 876 drivers/net/wireless/realtek/rtlwifi/usb.c static struct urb *_rtl_usb_tx_urb_setup(struct ieee80211_hw *hw, urb 880 drivers/net/wireless/realtek/rtlwifi/usb.c struct urb *_urb; urb 900 drivers/net/wireless/realtek/rtlwifi/usb.c struct urb *_urb = NULL; urb 110 drivers/net/wireless/realtek/rtlwifi/usb.h struct urb *, struct sk_buff *); urb 2413 drivers/net/wireless/realtek/rtlwifi/wifi.h int (*usb_tx_post_hdl)(struct ieee80211_hw *, struct urb *, urb 261 drivers/net/wireless/rsi/rsi_91x_usb.c static void rsi_rx_done_handler(struct urb *urb) urb 263 drivers/net/wireless/rsi/rsi_91x_usb.c struct rx_usb_ctrl_block *rx_cb = urb->context; urb 267 drivers/net/wireless/rsi/rsi_91x_usb.c if (urb->status) { urb 272 drivers/net/wireless/rsi/rsi_91x_usb.c if (urb->actual_length <= 0 || urb 273 drivers/net/wireless/rsi/rsi_91x_usb.c urb->actual_length > rx_cb->rx_skb->len) { urb 275 drivers/net/wireless/rsi/rsi_91x_usb.c __func__, urb->actual_length); urb 282 drivers/net/wireless/rsi/rsi_91x_usb.c skb_trim(rx_cb->rx_skb, urb->actual_length); urb 300 drivers/net/wireless/rsi/rsi_91x_usb.c struct urb *urb = rx_cb->rx_urb; urb 302 drivers/net/wireless/rsi/rsi_91x_usb.c usb_kill_urb(urb); urb 315 drivers/net/wireless/rsi/rsi_91x_usb.c struct urb *urb = rx_cb->rx_urb; urb 329 drivers/net/wireless/rsi/rsi_91x_usb.c urb->transfer_buffer = skb->data; urb 332 drivers/net/wireless/rsi/rsi_91x_usb.c usb_fill_bulk_urb(urb, urb 336 drivers/net/wireless/rsi/rsi_91x_usb.c urb->transfer_buffer, urb 341 drivers/net/wireless/rsi/rsi_91x_usb.c status = usb_submit_urb(urb, mem_flags); urb 49 drivers/net/wireless/rsi/rsi_usb.h struct urb *rx_urb; urb 121 drivers/net/wireless/zydas/zd1201.c static void zd1201_usbfree(struct urb *urb) urb 123 drivers/net/wireless/zydas/zd1201.c struct zd1201 *zd = urb->context; urb 125 drivers/net/wireless/zydas/zd1201.c switch(urb->status) { urb 134 drivers/net/wireless/zydas/zd1201.c zd->dev->name, urb->status); urb 137 drivers/net/wireless/zydas/zd1201.c kfree(urb->transfer_buffer); urb 138 drivers/net/wireless/zydas/zd1201.c usb_free_urb(urb); urb 156 drivers/net/wireless/zydas/zd1201.c struct urb *urb; urb 168 drivers/net/wireless/zydas/zd1201.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 169 drivers/net/wireless/zydas/zd1201.c if (!urb) { urb 173 drivers/net/wireless/zydas/zd1201.c usb_fill_bulk_urb(urb, zd->usb, usb_sndbulkpipe(zd->usb, zd->endp_out2), urb 175 drivers/net/wireless/zydas/zd1201.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 178 drivers/net/wireless/zydas/zd1201.c usb_free_urb(urb); urb 185 drivers/net/wireless/zydas/zd1201.c static void zd1201_usbtx(struct urb *urb) urb 187 drivers/net/wireless/zydas/zd1201.c struct zd1201 *zd = urb->context; urb 192 drivers/net/wireless/zydas/zd1201.c static void zd1201_usbrx(struct urb *urb) urb 194 drivers/net/wireless/zydas/zd1201.c struct zd1201 *zd = urb->context; urb 196 drivers/net/wireless/zydas/zd1201.c unsigned char *data = urb->transfer_buffer; urb 203 drivers/net/wireless/zydas/zd1201.c switch(urb->status) { urb 212 drivers/net/wireless/zydas/zd1201.c zd->dev->name, urb->status); urb 217 drivers/net/wireless/zydas/zd1201.c if (urb->status != 0 || urb->actual_length == 0) urb 222 drivers/net/wireless/zydas/zd1201.c memcpy(zd->rxdata, data, urb->actual_length); urb 223 drivers/net/wireless/zydas/zd1201.c zd->rxlen = urb->actual_length; urb 293 drivers/net/wireless/zydas/zd1201.c while (i < urb->actual_length) { urb 302 drivers/net/wireless/zydas/zd1201.c if (i >= urb->actual_length) { urb 309 drivers/net/wireless/zydas/zd1201.c if (data[urb->actual_length-1] == ZD1201_PACKET_RXDATA) { urb 310 drivers/net/wireless/zydas/zd1201.c int datalen = urb->actual_length-1; urb 396 drivers/net/wireless/zydas/zd1201.c urb->status = 0; urb 397 drivers/net/wireless/zydas/zd1201.c urb->dev = zd->usb; urb 398 drivers/net/wireless/zydas/zd1201.c if(usb_submit_urb(urb, GFP_ATOMIC)) urb 406 drivers/net/wireless/zydas/zd1201.c kfree(urb->transfer_buffer); urb 516 drivers/net/wireless/zydas/zd1201.c struct urb *urb; urb 527 drivers/net/wireless/zydas/zd1201.c urb = usb_alloc_urb(0, gfp_mask); urb 528 drivers/net/wireless/zydas/zd1201.c if (!urb) { urb 551 drivers/net/wireless/zydas/zd1201.c usb_fill_bulk_urb(urb, zd->usb, usb_sndbulkpipe(zd->usb, urb 553 drivers/net/wireless/zydas/zd1201.c err = usb_submit_urb(urb, gfp_mask); urb 561 drivers/net/wireless/zydas/zd1201.c urb = usb_alloc_urb(0, gfp_mask); urb 562 drivers/net/wireless/zydas/zd1201.c if (!urb) { urb 572 drivers/net/wireless/zydas/zd1201.c usb_fill_bulk_urb(urb, zd->usb, usb_sndbulkpipe(zd->usb, zd->endp_out2), urb 574 drivers/net/wireless/zydas/zd1201.c err = usb_submit_urb(urb, gfp_mask); urb 588 drivers/net/wireless/zydas/zd1201.c usb_free_urb(urb); urb 789 drivers/net/wireless/zydas/zd1201.c struct urb *urb = zd->tx_urb; urb 817 drivers/net/wireless/zydas/zd1201.c usb_fill_bulk_urb(urb, zd->usb, usb_sndbulkpipe(zd->usb, zd->endp_out), urb 31 drivers/net/wireless/zydas/zd1201.h struct urb *rx_urb; urb 32 drivers/net/wireless/zydas/zd1201.h struct urb *tx_urb; urb 486 drivers/net/wireless/zydas/zd1211rw/zd_mac.c void zd_mac_tx_failed(struct urb *urb) urb 488 drivers/net/wireless/zydas/zd1211rw/zd_mac.c struct ieee80211_hw * hw = zd_usb_to_hw(urb->context); urb 492 drivers/net/wireless/zydas/zd1211rw/zd_mac.c struct tx_status *tx_status = (struct tx_status *)urb->transfer_buffer; urb 302 drivers/net/wireless/zydas/zd1211rw/zd_mac.h void zd_mac_tx_failed(struct urb *urb); urb 106 drivers/net/wireless/zydas/zd1211rw/zd_usb.c static void int_urb_complete(struct urb *urb); urb 356 drivers/net/wireless/zydas/zd1211rw/zd_usb.c #define urb_dev(urb) (&(urb)->dev->dev) urb 358 drivers/net/wireless/zydas/zd1211rw/zd_usb.c static inline void handle_regs_int_override(struct urb *urb) urb 360 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct zd_usb *usb = urb->context; urb 373 drivers/net/wireless/zydas/zd1211rw/zd_usb.c static inline void handle_regs_int(struct urb *urb) urb 375 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct zd_usb *usb = urb->context; urb 384 drivers/net/wireless/zydas/zd1211rw/zd_usb.c int_num = le16_to_cpu(*(__le16 *)(urb->transfer_buffer+2)); urb 386 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct zd_mac *mac = zd_hw_mac(zd_usb_to_hw(urb->context)); urb 388 drivers/net/wireless/zydas/zd1211rw/zd_usb.c memcpy(&mac->intr_buffer, urb->transfer_buffer, urb 393 drivers/net/wireless/zydas/zd1211rw/zd_usb.c len = urb->actual_length; urb 394 drivers/net/wireless/zydas/zd1211rw/zd_usb.c intr->read_regs.length = urb->actual_length; urb 398 drivers/net/wireless/zydas/zd1211rw/zd_usb.c memcpy(intr->read_regs.buffer, urb->transfer_buffer, len); urb 422 drivers/net/wireless/zydas/zd1211rw/zd_usb.c handle_regs_int_override(urb); urb 425 drivers/net/wireless/zydas/zd1211rw/zd_usb.c static void int_urb_complete(struct urb *urb) urb 432 drivers/net/wireless/zydas/zd1211rw/zd_usb.c switch (urb->status) { urb 441 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); urb 444 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); urb 448 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (urb->actual_length < sizeof(hdr)) { urb 449 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "error: urb %p to small\n", urb); urb 453 drivers/net/wireless/zydas/zd1211rw/zd_usb.c hdr = urb->transfer_buffer; urb 455 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "error: urb %p wrong type\n", urb); urb 462 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb = urb->context; urb 465 drivers/net/wireless/zydas/zd1211rw/zd_usb.c handle_regs_int_override(urb); urb 469 drivers/net/wireless/zydas/zd1211rw/zd_usb.c handle_regs_int(urb); urb 472 drivers/net/wireless/zydas/zd1211rw/zd_usb.c zd_mac_tx_failed(urb); urb 475 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "error: urb %p unknown id %x\n", urb, urb 481 drivers/net/wireless/zydas/zd1211rw/zd_usb.c r = usb_submit_urb(urb, GFP_ATOMIC); urb 483 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "error: resubmit urb %p err code %d\n", urb 484 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb, r); urb 507 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb *urb; urb 510 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb = intr->urb; urb 512 drivers/net/wireless/zydas/zd1211rw/zd_usb.c return urb != NULL; urb 520 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb *urb; urb 524 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 525 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urb) { urb 532 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (intr->urb) { urb 537 drivers/net/wireless/zydas/zd1211rw/zd_usb.c intr->urb = urb; urb 549 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_fill_int_urb(urb, udev, usb_rcvintpipe(udev, EP_INT_IN), urb 553 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb->transfer_dma = intr->buffer_dma; urb 554 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 556 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(zd_usb_dev(usb), "submit urb %p\n", intr->urb); urb 557 drivers/net/wireless/zydas/zd1211rw/zd_usb.c r = usb_submit_urb(urb, GFP_KERNEL); urb 570 drivers/net/wireless/zydas/zd1211rw/zd_usb.c intr->urb = NULL; urb 573 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_free_urb(urb); urb 583 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb *urb; urb 588 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb = intr->urb; urb 589 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urb) { urb 593 drivers/net/wireless/zydas/zd1211rw/zd_usb.c intr->urb = NULL; urb 599 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_kill_urb(urb); urb 600 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(zd_usb_dev(usb), "urb %p killed\n", urb); urb 601 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_free_urb(urb); urb 651 drivers/net/wireless/zydas/zd1211rw/zd_usb.c static void rx_urb_complete(struct urb *urb) urb 660 drivers/net/wireless/zydas/zd1211rw/zd_usb.c switch (urb->status) { urb 669 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); urb 672 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); urb 676 drivers/net/wireless/zydas/zd1211rw/zd_usb.c buffer = urb->transfer_buffer; urb 677 drivers/net/wireless/zydas/zd1211rw/zd_usb.c length = urb->actual_length; urb 678 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb = urb->context; urb 685 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "*** first fragment ***\n"); urb 699 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "*** second fragment ***\n"); urb 711 drivers/net/wireless/zydas/zd1211rw/zd_usb.c r = usb_submit_urb(urb, GFP_ATOMIC); urb 713 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "urb %p resubmit error %d\n", urb, r); urb 716 drivers/net/wireless/zydas/zd1211rw/zd_usb.c static struct urb *alloc_rx_urb(struct zd_usb *usb) urb 719 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb *urb; urb 722 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 723 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urb) urb 726 drivers/net/wireless/zydas/zd1211rw/zd_usb.c &urb->transfer_dma); urb 728 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_free_urb(urb); urb 732 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_fill_bulk_urb(urb, udev, usb_rcvbulkpipe(udev, EP_DATA_IN), urb 735 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 737 drivers/net/wireless/zydas/zd1211rw/zd_usb.c return urb; urb 740 drivers/net/wireless/zydas/zd1211rw/zd_usb.c static void free_rx_urb(struct urb *urb) urb 742 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urb) urb 744 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 745 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb->transfer_buffer, urb->transfer_dma); urb 746 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_free_urb(urb); urb 753 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb **urbs; urb 758 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urbs = kcalloc(RX_URBS_COUNT, sizeof(struct urb *), GFP_KERNEL); urb 819 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb **urbs; urb 959 drivers/net/wireless/zydas/zd1211rw/zd_usb.c static void tx_urb_complete(struct urb *urb) urb 967 drivers/net/wireless/zydas/zd1211rw/zd_usb.c skb = (struct sk_buff *)urb->context; urb 976 drivers/net/wireless/zydas/zd1211rw/zd_usb.c switch (urb->status) { urb 985 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); urb 988 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "urb %p error %d\n", urb, urb->status); urb 993 drivers/net/wireless/zydas/zd1211rw/zd_usb.c zd_mac_tx_to_dev(skb, urb->status); urb 994 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_free_urb(urb); urb 998 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_anchor_urb(urb, &tx->submitted); urb 999 drivers/net/wireless/zydas/zd1211rw/zd_usb.c r = usb_submit_urb(urb, GFP_ATOMIC); urb 1001 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_unanchor_urb(urb); urb 1002 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(urb_dev(urb), "error resubmit urb %p %d\n", urb, r); urb 1024 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb *urb; urb 1032 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 1033 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urb) { urb 1038 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_fill_bulk_urb(urb, udev, usb_sndbulkpipe(udev, EP_DATA_OUT), urb 1043 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_anchor_urb(urb, &tx->submitted); urb 1045 drivers/net/wireless/zydas/zd1211rw/zd_usb.c r = usb_submit_urb(urb, GFP_ATOMIC); urb 1047 drivers/net/wireless/zydas/zd1211rw/zd_usb.c dev_dbg_f(zd_usb_dev(usb), "error submit urb %p %d\n", urb, r); urb 1048 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_unanchor_urb(urb); urb 1055 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_free_urb(urb); urb 1777 drivers/net/wireless/zydas/zd1211rw/zd_usb.c static void iowrite16v_urb_complete(struct urb *urb) urb 1779 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct zd_usb *usb = urb->context; urb 1781 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (urb->status && !usb->cmd_error) urb 1782 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb->cmd_error = urb->status; urb 1785 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb->actual_length != urb->transfer_buffer_length) urb 1792 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb *urb = usb->urb_async_waiting; urb 1794 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urb) urb 1800 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb->transfer_flags |= URB_NO_INTERRUPT; urb 1802 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_anchor_urb(urb, &usb->submitted_cmds); urb 1803 drivers/net/wireless/zydas/zd1211rw/zd_usb.c r = usb_submit_urb(urb, GFP_KERNEL); urb 1805 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_unanchor_urb(urb); urb 1813 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_free_urb(urb); urb 1873 drivers/net/wireless/zydas/zd1211rw/zd_usb.c struct urb *urb; urb 1899 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1900 drivers/net/wireless/zydas/zd1211rw/zd_usb.c if (!urb) urb 1921 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_fill_int_urb(urb, udev, usb_sndintpipe(udev, EP_REGS_OUT), urb 1925 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_fill_bulk_urb(urb, udev, usb_sndbulkpipe(udev, EP_REGS_OUT), urb 1928 drivers/net/wireless/zydas/zd1211rw/zd_usb.c urb->transfer_flags |= URB_FREE_BUFFER; urb 1942 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb->urb_async_waiting = urb; urb 1945 drivers/net/wireless/zydas/zd1211rw/zd_usb.c usb_free_urb(urb); urb 157 drivers/net/wireless/zydas/zd1211rw/zd_usb.h struct urb *urb; urb 180 drivers/net/wireless/zydas/zd1211rw/zd_usb.h struct urb **urbs; urb 212 drivers/net/wireless/zydas/zd1211rw/zd_usb.h struct urb *urb_async_waiting; urb 68 drivers/nfc/nfcmrvl/usb.c static void nfcmrvl_bulk_complete(struct urb *urb) urb 70 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_usb_drv_data *drv_data = urb->context; urb 75 drivers/nfc/nfcmrvl/usb.c urb, urb->status, urb->actual_length); urb 80 drivers/nfc/nfcmrvl/usb.c if (!urb->status) { urb 81 drivers/nfc/nfcmrvl/usb.c skb = nci_skb_alloc(drv_data->priv->ndev, urb->actual_length, urb 86 drivers/nfc/nfcmrvl/usb.c skb_put_data(skb, urb->transfer_buffer, urb 87 drivers/nfc/nfcmrvl/usb.c urb->actual_length); urb 97 drivers/nfc/nfcmrvl/usb.c usb_anchor_urb(urb, &drv_data->bulk_anchor); urb 100 drivers/nfc/nfcmrvl/usb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 107 drivers/nfc/nfcmrvl/usb.c "urb %p failed to resubmit (%d)\n", urb, -err); urb 108 drivers/nfc/nfcmrvl/usb.c usb_unanchor_urb(urb); urb 115 drivers/nfc/nfcmrvl/usb.c struct urb *urb; urb 123 drivers/nfc/nfcmrvl/usb.c urb = usb_alloc_urb(0, mem_flags); urb 124 drivers/nfc/nfcmrvl/usb.c if (!urb) urb 129 drivers/nfc/nfcmrvl/usb.c usb_free_urb(urb); urb 136 drivers/nfc/nfcmrvl/usb.c usb_fill_bulk_urb(urb, drv_data->udev, pipe, buf, size, urb 139 drivers/nfc/nfcmrvl/usb.c urb->transfer_flags |= URB_FREE_BUFFER; urb 142 drivers/nfc/nfcmrvl/usb.c usb_anchor_urb(urb, &drv_data->bulk_anchor); urb 144 drivers/nfc/nfcmrvl/usb.c err = usb_submit_urb(urb, mem_flags); urb 148 drivers/nfc/nfcmrvl/usb.c "urb %p submission failed (%d)\n", urb, -err); urb 149 drivers/nfc/nfcmrvl/usb.c usb_unanchor_urb(urb); urb 152 drivers/nfc/nfcmrvl/usb.c usb_free_urb(urb); urb 157 drivers/nfc/nfcmrvl/usb.c static void nfcmrvl_tx_complete(struct urb *urb) urb 159 drivers/nfc/nfcmrvl/usb.c struct sk_buff *skb = urb->context; urb 166 drivers/nfc/nfcmrvl/usb.c urb, urb->status, urb->actual_length); urb 172 drivers/nfc/nfcmrvl/usb.c kfree(urb->setup_packet); urb 234 drivers/nfc/nfcmrvl/usb.c struct urb *urb; urb 241 drivers/nfc/nfcmrvl/usb.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 242 drivers/nfc/nfcmrvl/usb.c if (!urb) urb 248 drivers/nfc/nfcmrvl/usb.c usb_fill_bulk_urb(urb, drv_data->udev, pipe, skb->data, skb->len, urb 253 drivers/nfc/nfcmrvl/usb.c usb_anchor_urb(urb, &drv_data->deferred); urb 259 drivers/nfc/nfcmrvl/usb.c usb_anchor_urb(urb, &drv_data->tx_anchor); urb 261 drivers/nfc/nfcmrvl/usb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 265 drivers/nfc/nfcmrvl/usb.c "urb %p submission failed (%d)\n", urb, -err); urb 266 drivers/nfc/nfcmrvl/usb.c kfree(urb->setup_packet); urb 267 drivers/nfc/nfcmrvl/usb.c usb_unanchor_urb(urb); urb 273 drivers/nfc/nfcmrvl/usb.c usb_free_urb(urb); urb 400 drivers/nfc/nfcmrvl/usb.c struct urb *urb; urb 403 drivers/nfc/nfcmrvl/usb.c while ((urb = usb_get_from_anchor(&drv_data->deferred))) { urb 404 drivers/nfc/nfcmrvl/usb.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 50 drivers/nfc/pn533/usb.c struct urb *out_urb; urb 51 drivers/nfc/pn533/usb.c struct urb *in_urb; urb 53 drivers/nfc/pn533/usb.c struct urb *ack_urb; urb 59 drivers/nfc/pn533/usb.c static void pn533_recv_response(struct urb *urb) urb 61 drivers/nfc/pn533/usb.c struct pn533_usb_phy *phy = urb->context; urb 64 drivers/nfc/pn533/usb.c if (!urb->status) { urb 65 drivers/nfc/pn533/usb.c skb = alloc_skb(urb->actual_length, GFP_ATOMIC); urb 69 drivers/nfc/pn533/usb.c skb_put_data(skb, urb->transfer_buffer, urb 70 drivers/nfc/pn533/usb.c urb->actual_length); urb 74 drivers/nfc/pn533/usb.c pn533_recv_frame(phy->priv, skb, urb->status); urb 84 drivers/nfc/pn533/usb.c static void pn533_recv_ack(struct urb *urb) urb 86 drivers/nfc/pn533/usb.c struct pn533_usb_phy *phy = urb->context; urb 92 drivers/nfc/pn533/usb.c cmd->status = urb->status; urb 94 drivers/nfc/pn533/usb.c switch (urb->status) { urb 101 drivers/nfc/pn533/usb.c urb->status); urb 106 drivers/nfc/pn533/usb.c "Urb failure (status %d)\n", urb->status); urb 353 drivers/nfc/pn533/usb.c static void pn533_acr122_poweron_rdr_resp(struct urb *urb) urb 355 drivers/nfc/pn533/usb.c struct pn533_acr122_poweron_rdr_arg *arg = urb->context; urb 357 drivers/nfc/pn533/usb.c dev_dbg(&urb->dev->dev, "%s\n", __func__); urb 360 drivers/nfc/pn533/usb.c urb->transfer_buffer, urb->transfer_buffer_length, urb 363 drivers/nfc/pn533/usb.c arg->rc = urb->status; urb 415 drivers/nfc/pn533/usb.c static void pn533_send_complete(struct urb *urb) urb 417 drivers/nfc/pn533/usb.c struct pn533_usb_phy *phy = urb->context; urb 419 drivers/nfc/pn533/usb.c switch (urb->status) { urb 426 drivers/nfc/pn533/usb.c urb->status); urb 432 drivers/nfc/pn533/usb.c urb->status); urb 448 drivers/nfc/port100.c struct urb *out_urb; urb 449 drivers/nfc/port100.c struct urb *in_urb; urb 613 drivers/nfc/port100.c static void port100_recv_response(struct urb *urb) urb 615 drivers/nfc/port100.c struct port100 *dev = urb->context; urb 619 drivers/nfc/port100.c cmd->status = urb->status; urb 621 drivers/nfc/port100.c switch (urb->status) { urb 627 drivers/nfc/port100.c "The urb has been canceled (status %d)\n", urb->status); urb 632 drivers/nfc/port100.c urb->status); urb 665 drivers/nfc/port100.c static void port100_recv_ack(struct urb *urb) urb 667 drivers/nfc/port100.c struct port100 *dev = urb->context; urb 672 drivers/nfc/port100.c cmd->status = urb->status; urb 674 drivers/nfc/port100.c switch (urb->status) { urb 680 drivers/nfc/port100.c "The urb has been stopped (status %d)\n", urb->status); urb 685 drivers/nfc/port100.c urb->status); urb 928 drivers/nfc/port100.c static void port100_send_complete(struct urb *urb) urb 930 drivers/nfc/port100.c struct port100 *dev = urb->context; urb 937 drivers/nfc/port100.c switch (urb->status) { urb 943 drivers/nfc/port100.c "The urb has been stopped (status %d)\n", urb->status); urb 948 drivers/nfc/port100.c urb->status); urb 174 drivers/staging/comedi/drivers/usbdux.c struct urb **ai_urbs; urb 175 drivers/staging/comedi/drivers/usbdux.c struct urb **ao_urbs; urb 177 drivers/staging/comedi/drivers/usbdux.c struct urb *pwm_urb; urb 207 drivers/staging/comedi/drivers/usbdux.c static void usbdux_unlink_urbs(struct urb **urbs, int num_urbs) urb 241 drivers/staging/comedi/drivers/usbdux.c struct urb *urb) urb 274 drivers/staging/comedi/drivers/usbdux.c urb->dev = comedi_to_usb_dev(dev); urb 275 drivers/staging/comedi/drivers/usbdux.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 288 drivers/staging/comedi/drivers/usbdux.c static void usbduxsub_ai_isoc_irq(struct urb *urb) urb 290 drivers/staging/comedi/drivers/usbdux.c struct comedi_device *dev = urb->context; urb 299 drivers/staging/comedi/drivers/usbdux.c switch (urb->status) { urb 302 drivers/staging/comedi/drivers/usbdux.c memcpy(devpriv->in_buf, urb->transfer_buffer, SIZEINBUF); urb 303 drivers/staging/comedi/drivers/usbdux.c usbduxsub_ai_handle_urb(dev, s, urb); urb 313 drivers/staging/comedi/drivers/usbdux.c usbduxsub_ai_handle_urb(dev, s, urb); urb 328 drivers/staging/comedi/drivers/usbdux.c urb->status); urb 369 drivers/staging/comedi/drivers/usbdux.c struct urb *urb) urb 389 drivers/staging/comedi/drivers/usbdux.c datap = urb->transfer_buffer; urb 411 drivers/staging/comedi/drivers/usbdux.c urb->transfer_buffer_length = SIZEOUTBUF; urb 412 drivers/staging/comedi/drivers/usbdux.c urb->dev = comedi_to_usb_dev(dev); urb 413 drivers/staging/comedi/drivers/usbdux.c urb->status = 0; urb 415 drivers/staging/comedi/drivers/usbdux.c urb->interval = 8; /* uframes */ urb 417 drivers/staging/comedi/drivers/usbdux.c urb->interval = 1; /* frames */ urb 418 drivers/staging/comedi/drivers/usbdux.c urb->number_of_packets = 1; urb 419 drivers/staging/comedi/drivers/usbdux.c urb->iso_frame_desc[0].offset = 0; urb 420 drivers/staging/comedi/drivers/usbdux.c urb->iso_frame_desc[0].length = SIZEOUTBUF; urb 421 drivers/staging/comedi/drivers/usbdux.c urb->iso_frame_desc[0].status = 0; urb 422 drivers/staging/comedi/drivers/usbdux.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 435 drivers/staging/comedi/drivers/usbdux.c static void usbduxsub_ao_isoc_irq(struct urb *urb) urb 437 drivers/staging/comedi/drivers/usbdux.c struct comedi_device *dev = urb->context; urb 446 drivers/staging/comedi/drivers/usbdux.c switch (urb->status) { urb 448 drivers/staging/comedi/drivers/usbdux.c usbduxsub_ao_handle_urb(dev, s, urb); urb 463 drivers/staging/comedi/drivers/usbdux.c urb->status); urb 479 drivers/staging/comedi/drivers/usbdux.c struct urb **urbs, int num_urbs, urb 484 drivers/staging/comedi/drivers/usbdux.c struct urb *urb; urb 490 drivers/staging/comedi/drivers/usbdux.c urb = urbs[i]; urb 494 drivers/staging/comedi/drivers/usbdux.c urb->interval = devpriv->ai_interval; urb 495 drivers/staging/comedi/drivers/usbdux.c urb->context = dev; urb 496 drivers/staging/comedi/drivers/usbdux.c urb->dev = usb; urb 497 drivers/staging/comedi/drivers/usbdux.c urb->status = 0; urb 498 drivers/staging/comedi/drivers/usbdux.c urb->transfer_flags = URB_ISO_ASAP; urb 500 drivers/staging/comedi/drivers/usbdux.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 1150 drivers/staging/comedi/drivers/usbdux.c static void usbduxsub_pwm_irq(struct urb *urb) urb 1152 drivers/staging/comedi/drivers/usbdux.c struct comedi_device *dev = urb->context; urb 1156 drivers/staging/comedi/drivers/usbdux.c switch (urb->status) { urb 1179 drivers/staging/comedi/drivers/usbdux.c urb->status); urb 1189 drivers/staging/comedi/drivers/usbdux.c urb->transfer_buffer_length = devpriv->pwm_buf_sz; urb 1190 drivers/staging/comedi/drivers/usbdux.c urb->dev = comedi_to_usb_dev(dev); urb 1191 drivers/staging/comedi/drivers/usbdux.c urb->status = 0; urb 1193 drivers/staging/comedi/drivers/usbdux.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 1212 drivers/staging/comedi/drivers/usbdux.c struct urb *urb = devpriv->pwm_urb; urb 1215 drivers/staging/comedi/drivers/usbdux.c usb_fill_bulk_urb(urb, usb, usb_sndbulkpipe(usb, 4), urb 1216 drivers/staging/comedi/drivers/usbdux.c urb->transfer_buffer, urb 1221 drivers/staging/comedi/drivers/usbdux.c return usb_submit_urb(urb, GFP_ATOMIC); urb 1441 drivers/staging/comedi/drivers/usbdux.c struct urb *urb; urb 1457 drivers/staging/comedi/drivers/usbdux.c urb = usb_alloc_urb(1, GFP_KERNEL); urb 1458 drivers/staging/comedi/drivers/usbdux.c if (!urb) urb 1460 drivers/staging/comedi/drivers/usbdux.c devpriv->ai_urbs[i] = urb; urb 1462 drivers/staging/comedi/drivers/usbdux.c urb->dev = usb; urb 1463 drivers/staging/comedi/drivers/usbdux.c urb->context = dev; urb 1464 drivers/staging/comedi/drivers/usbdux.c urb->pipe = usb_rcvisocpipe(usb, 6); urb 1465 drivers/staging/comedi/drivers/usbdux.c urb->transfer_flags = URB_ISO_ASAP; urb 1466 drivers/staging/comedi/drivers/usbdux.c urb->transfer_buffer = kzalloc(SIZEINBUF, GFP_KERNEL); urb 1467 drivers/staging/comedi/drivers/usbdux.c if (!urb->transfer_buffer) urb 1470 drivers/staging/comedi/drivers/usbdux.c urb->complete = usbduxsub_ai_isoc_irq; urb 1471 drivers/staging/comedi/drivers/usbdux.c urb->number_of_packets = 1; urb 1472 drivers/staging/comedi/drivers/usbdux.c urb->transfer_buffer_length = SIZEINBUF; urb 1473 drivers/staging/comedi/drivers/usbdux.c urb->iso_frame_desc[0].offset = 0; urb 1474 drivers/staging/comedi/drivers/usbdux.c urb->iso_frame_desc[0].length = SIZEINBUF; urb 1479 drivers/staging/comedi/drivers/usbdux.c urb = usb_alloc_urb(1, GFP_KERNEL); urb 1480 drivers/staging/comedi/drivers/usbdux.c if (!urb) urb 1482 drivers/staging/comedi/drivers/usbdux.c devpriv->ao_urbs[i] = urb; urb 1484 drivers/staging/comedi/drivers/usbdux.c urb->dev = usb; urb 1485 drivers/staging/comedi/drivers/usbdux.c urb->context = dev; urb 1486 drivers/staging/comedi/drivers/usbdux.c urb->pipe = usb_sndisocpipe(usb, 2); urb 1487 drivers/staging/comedi/drivers/usbdux.c urb->transfer_flags = URB_ISO_ASAP; urb 1488 drivers/staging/comedi/drivers/usbdux.c urb->transfer_buffer = kzalloc(SIZEOUTBUF, GFP_KERNEL); urb 1489 drivers/staging/comedi/drivers/usbdux.c if (!urb->transfer_buffer) urb 1492 drivers/staging/comedi/drivers/usbdux.c urb->complete = usbduxsub_ao_isoc_irq; urb 1493 drivers/staging/comedi/drivers/usbdux.c urb->number_of_packets = 1; urb 1494 drivers/staging/comedi/drivers/usbdux.c urb->transfer_buffer_length = SIZEOUTBUF; urb 1495 drivers/staging/comedi/drivers/usbdux.c urb->iso_frame_desc[0].offset = 0; urb 1496 drivers/staging/comedi/drivers/usbdux.c urb->iso_frame_desc[0].length = SIZEOUTBUF; urb 1498 drivers/staging/comedi/drivers/usbdux.c urb->interval = 8; /* uframes */ urb 1500 drivers/staging/comedi/drivers/usbdux.c urb->interval = 1; /* frames */ urb 1505 drivers/staging/comedi/drivers/usbdux.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1506 drivers/staging/comedi/drivers/usbdux.c if (!urb) urb 1508 drivers/staging/comedi/drivers/usbdux.c devpriv->pwm_urb = urb; urb 1511 drivers/staging/comedi/drivers/usbdux.c urb->transfer_buffer = kzalloc(devpriv->pwm_buf_sz, urb 1513 drivers/staging/comedi/drivers/usbdux.c if (!urb->transfer_buffer) urb 1523 drivers/staging/comedi/drivers/usbdux.c struct urb *urb; urb 1526 drivers/staging/comedi/drivers/usbdux.c urb = devpriv->pwm_urb; urb 1527 drivers/staging/comedi/drivers/usbdux.c if (urb) { urb 1528 drivers/staging/comedi/drivers/usbdux.c kfree(urb->transfer_buffer); urb 1529 drivers/staging/comedi/drivers/usbdux.c usb_free_urb(urb); urb 1533 drivers/staging/comedi/drivers/usbdux.c urb = devpriv->ao_urbs[i]; urb 1534 drivers/staging/comedi/drivers/usbdux.c if (urb) { urb 1535 drivers/staging/comedi/drivers/usbdux.c kfree(urb->transfer_buffer); urb 1536 drivers/staging/comedi/drivers/usbdux.c usb_free_urb(urb); urb 1543 drivers/staging/comedi/drivers/usbdux.c urb = devpriv->ai_urbs[i]; urb 1544 drivers/staging/comedi/drivers/usbdux.c if (urb) { urb 1545 drivers/staging/comedi/drivers/usbdux.c kfree(urb->transfer_buffer); urb 1546 drivers/staging/comedi/drivers/usbdux.c usb_free_urb(urb); urb 150 drivers/staging/comedi/drivers/usbduxfast.c struct urb *urb; /* BULK-transfer handling: urb */ urb 202 drivers/staging/comedi/drivers/usbduxfast.c if (do_unlink && devpriv->urb) { urb 204 drivers/staging/comedi/drivers/usbduxfast.c usb_kill_urb(devpriv->urb); urb 225 drivers/staging/comedi/drivers/usbduxfast.c struct urb *urb) urb 237 drivers/staging/comedi/drivers/usbduxfast.c nsamples = comedi_bytes_to_samples(s, urb->actual_length); urb 239 drivers/staging/comedi/drivers/usbduxfast.c comedi_buf_write_samples(s, urb->transfer_buffer, nsamples); urb 248 drivers/staging/comedi/drivers/usbduxfast.c urb->dev = comedi_to_usb_dev(dev); urb 249 drivers/staging/comedi/drivers/usbduxfast.c urb->status = 0; urb 250 drivers/staging/comedi/drivers/usbduxfast.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 258 drivers/staging/comedi/drivers/usbduxfast.c static void usbduxfast_ai_interrupt(struct urb *urb) urb 260 drivers/staging/comedi/drivers/usbduxfast.c struct comedi_device *dev = urb->context; urb 269 drivers/staging/comedi/drivers/usbduxfast.c switch (urb->status) { urb 271 drivers/staging/comedi/drivers/usbduxfast.c usbduxfast_ai_handle_urb(dev, s, urb); urb 286 drivers/staging/comedi/drivers/usbduxfast.c urb->status); urb 307 drivers/staging/comedi/drivers/usbduxfast.c usb_fill_bulk_urb(devpriv->urb, usb, usb_rcvbulkpipe(usb, BULKINEP), urb 311 drivers/staging/comedi/drivers/usbduxfast.c ret = usb_submit_urb(devpriv->urb, GFP_ATOMIC); urb 946 drivers/staging/comedi/drivers/usbduxfast.c devpriv->urb = usb_alloc_urb(0, GFP_KERNEL); urb 947 drivers/staging/comedi/drivers/usbduxfast.c if (!devpriv->urb) urb 992 drivers/staging/comedi/drivers/usbduxfast.c if (devpriv->urb) { urb 994 drivers/staging/comedi/drivers/usbduxfast.c usb_kill_urb(devpriv->urb); urb 997 drivers/staging/comedi/drivers/usbduxfast.c usb_free_urb(devpriv->urb); urb 137 drivers/staging/comedi/drivers/usbduxsigma.c struct urb **ai_urbs; urb 138 drivers/staging/comedi/drivers/usbduxsigma.c struct urb **ao_urbs; urb 140 drivers/staging/comedi/drivers/usbduxsigma.c struct urb *pwm_urb; urb 170 drivers/staging/comedi/drivers/usbduxsigma.c static void usbduxsigma_unlink_urbs(struct urb **urbs, int num_urbs) urb 203 drivers/staging/comedi/drivers/usbduxsigma.c struct urb *urb) urb 212 drivers/staging/comedi/drivers/usbduxsigma.c if ((urb->actual_length > 0) && (urb->status != -EXDEV)) { urb 237 drivers/staging/comedi/drivers/usbduxsigma.c urb->dev = comedi_to_usb_dev(dev); urb 238 drivers/staging/comedi/drivers/usbduxsigma.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 250 drivers/staging/comedi/drivers/usbduxsigma.c static void usbduxsigma_ai_urb_complete(struct urb *urb) urb 252 drivers/staging/comedi/drivers/usbduxsigma.c struct comedi_device *dev = urb->context; urb 261 drivers/staging/comedi/drivers/usbduxsigma.c switch (urb->status) { urb 264 drivers/staging/comedi/drivers/usbduxsigma.c memcpy(devpriv->in_buf, urb->transfer_buffer, SIZEINBUF); urb 265 drivers/staging/comedi/drivers/usbduxsigma.c usbduxsigma_ai_handle_urb(dev, s, urb); urb 275 drivers/staging/comedi/drivers/usbduxsigma.c usbduxsigma_ai_handle_urb(dev, s, urb); urb 289 drivers/staging/comedi/drivers/usbduxsigma.c urb->status); urb 329 drivers/staging/comedi/drivers/usbduxsigma.c struct urb *urb) urb 349 drivers/staging/comedi/drivers/usbduxsigma.c datap = urb->transfer_buffer; urb 369 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_buffer_length = SIZEOUTBUF; urb 370 drivers/staging/comedi/drivers/usbduxsigma.c urb->dev = comedi_to_usb_dev(dev); urb 371 drivers/staging/comedi/drivers/usbduxsigma.c urb->status = 0; urb 372 drivers/staging/comedi/drivers/usbduxsigma.c urb->interval = 1; /* (u)frames */ urb 373 drivers/staging/comedi/drivers/usbduxsigma.c urb->number_of_packets = 1; urb 374 drivers/staging/comedi/drivers/usbduxsigma.c urb->iso_frame_desc[0].offset = 0; urb 375 drivers/staging/comedi/drivers/usbduxsigma.c urb->iso_frame_desc[0].length = SIZEOUTBUF; urb 376 drivers/staging/comedi/drivers/usbduxsigma.c urb->iso_frame_desc[0].status = 0; urb 377 drivers/staging/comedi/drivers/usbduxsigma.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 389 drivers/staging/comedi/drivers/usbduxsigma.c static void usbduxsigma_ao_urb_complete(struct urb *urb) urb 391 drivers/staging/comedi/drivers/usbduxsigma.c struct comedi_device *dev = urb->context; urb 400 drivers/staging/comedi/drivers/usbduxsigma.c switch (urb->status) { urb 402 drivers/staging/comedi/drivers/usbduxsigma.c usbduxsigma_ao_handle_urb(dev, s, urb); urb 416 drivers/staging/comedi/drivers/usbduxsigma.c urb->status); urb 432 drivers/staging/comedi/drivers/usbduxsigma.c struct urb **urbs, int num_urbs, urb 436 drivers/staging/comedi/drivers/usbduxsigma.c struct urb *urb; urb 442 drivers/staging/comedi/drivers/usbduxsigma.c urb = urbs[i]; urb 446 drivers/staging/comedi/drivers/usbduxsigma.c urb->interval = 1; urb 447 drivers/staging/comedi/drivers/usbduxsigma.c urb->context = dev; urb 448 drivers/staging/comedi/drivers/usbduxsigma.c urb->dev = usb; urb 449 drivers/staging/comedi/drivers/usbduxsigma.c urb->status = 0; urb 450 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_flags = URB_ISO_ASAP; urb 452 drivers/staging/comedi/drivers/usbduxsigma.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 1012 drivers/staging/comedi/drivers/usbduxsigma.c static void usbduxsigma_pwm_urb_complete(struct urb *urb) urb 1014 drivers/staging/comedi/drivers/usbduxsigma.c struct comedi_device *dev = urb->context; urb 1018 drivers/staging/comedi/drivers/usbduxsigma.c switch (urb->status) { urb 1036 drivers/staging/comedi/drivers/usbduxsigma.c urb->status); urb 1045 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_buffer_length = devpriv->pwm_buf_sz; urb 1046 drivers/staging/comedi/drivers/usbduxsigma.c urb->dev = comedi_to_usb_dev(dev); urb 1047 drivers/staging/comedi/drivers/usbduxsigma.c urb->status = 0; urb 1048 drivers/staging/comedi/drivers/usbduxsigma.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 1062 drivers/staging/comedi/drivers/usbduxsigma.c struct urb *urb = devpriv->pwm_urb; urb 1065 drivers/staging/comedi/drivers/usbduxsigma.c usb_fill_bulk_urb(urb, usb, usb_sndbulkpipe(usb, 4), urb 1066 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_buffer, devpriv->pwm_buf_sz, urb 1069 drivers/staging/comedi/drivers/usbduxsigma.c return usb_submit_urb(urb, GFP_ATOMIC); urb 1334 drivers/staging/comedi/drivers/usbduxsigma.c struct urb *urb; urb 1340 drivers/staging/comedi/drivers/usbduxsigma.c devpriv->ai_urbs = kcalloc(devpriv->n_ai_urbs, sizeof(urb), GFP_KERNEL); urb 1341 drivers/staging/comedi/drivers/usbduxsigma.c devpriv->ao_urbs = kcalloc(devpriv->n_ao_urbs, sizeof(urb), GFP_KERNEL); urb 1348 drivers/staging/comedi/drivers/usbduxsigma.c urb = usb_alloc_urb(1, GFP_KERNEL); urb 1349 drivers/staging/comedi/drivers/usbduxsigma.c if (!urb) urb 1351 drivers/staging/comedi/drivers/usbduxsigma.c devpriv->ai_urbs[i] = urb; urb 1352 drivers/staging/comedi/drivers/usbduxsigma.c urb->dev = usb; urb 1355 drivers/staging/comedi/drivers/usbduxsigma.c urb->context = NULL; urb 1356 drivers/staging/comedi/drivers/usbduxsigma.c urb->pipe = usb_rcvisocpipe(usb, 6); urb 1357 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_flags = URB_ISO_ASAP; urb 1358 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_buffer = kzalloc(SIZEINBUF, GFP_KERNEL); urb 1359 drivers/staging/comedi/drivers/usbduxsigma.c if (!urb->transfer_buffer) urb 1361 drivers/staging/comedi/drivers/usbduxsigma.c urb->complete = usbduxsigma_ai_urb_complete; urb 1362 drivers/staging/comedi/drivers/usbduxsigma.c urb->number_of_packets = 1; urb 1363 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_buffer_length = SIZEINBUF; urb 1364 drivers/staging/comedi/drivers/usbduxsigma.c urb->iso_frame_desc[0].offset = 0; urb 1365 drivers/staging/comedi/drivers/usbduxsigma.c urb->iso_frame_desc[0].length = SIZEINBUF; urb 1370 drivers/staging/comedi/drivers/usbduxsigma.c urb = usb_alloc_urb(1, GFP_KERNEL); urb 1371 drivers/staging/comedi/drivers/usbduxsigma.c if (!urb) urb 1373 drivers/staging/comedi/drivers/usbduxsigma.c devpriv->ao_urbs[i] = urb; urb 1374 drivers/staging/comedi/drivers/usbduxsigma.c urb->dev = usb; urb 1377 drivers/staging/comedi/drivers/usbduxsigma.c urb->context = NULL; urb 1378 drivers/staging/comedi/drivers/usbduxsigma.c urb->pipe = usb_sndisocpipe(usb, 2); urb 1379 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_flags = URB_ISO_ASAP; urb 1380 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_buffer = kzalloc(SIZEOUTBUF, GFP_KERNEL); urb 1381 drivers/staging/comedi/drivers/usbduxsigma.c if (!urb->transfer_buffer) urb 1383 drivers/staging/comedi/drivers/usbduxsigma.c urb->complete = usbduxsigma_ao_urb_complete; urb 1384 drivers/staging/comedi/drivers/usbduxsigma.c urb->number_of_packets = 1; urb 1385 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_buffer_length = SIZEOUTBUF; urb 1386 drivers/staging/comedi/drivers/usbduxsigma.c urb->iso_frame_desc[0].offset = 0; urb 1387 drivers/staging/comedi/drivers/usbduxsigma.c urb->iso_frame_desc[0].length = SIZEOUTBUF; urb 1388 drivers/staging/comedi/drivers/usbduxsigma.c urb->interval = 1; /* (u)frames */ urb 1392 drivers/staging/comedi/drivers/usbduxsigma.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1393 drivers/staging/comedi/drivers/usbduxsigma.c if (!urb) urb 1395 drivers/staging/comedi/drivers/usbduxsigma.c devpriv->pwm_urb = urb; urb 1397 drivers/staging/comedi/drivers/usbduxsigma.c urb->transfer_buffer = kzalloc(devpriv->pwm_buf_sz, urb 1399 drivers/staging/comedi/drivers/usbduxsigma.c if (!urb->transfer_buffer) urb 1409 drivers/staging/comedi/drivers/usbduxsigma.c struct urb *urb; urb 1412 drivers/staging/comedi/drivers/usbduxsigma.c urb = devpriv->pwm_urb; urb 1413 drivers/staging/comedi/drivers/usbduxsigma.c if (urb) { urb 1414 drivers/staging/comedi/drivers/usbduxsigma.c kfree(urb->transfer_buffer); urb 1415 drivers/staging/comedi/drivers/usbduxsigma.c usb_free_urb(urb); urb 1419 drivers/staging/comedi/drivers/usbduxsigma.c urb = devpriv->ao_urbs[i]; urb 1420 drivers/staging/comedi/drivers/usbduxsigma.c if (urb) { urb 1421 drivers/staging/comedi/drivers/usbduxsigma.c kfree(urb->transfer_buffer); urb 1422 drivers/staging/comedi/drivers/usbduxsigma.c usb_free_urb(urb); urb 1429 drivers/staging/comedi/drivers/usbduxsigma.c urb = devpriv->ai_urbs[i]; urb 1430 drivers/staging/comedi/drivers/usbduxsigma.c if (urb) { urb 1431 drivers/staging/comedi/drivers/usbduxsigma.c kfree(urb->transfer_buffer); urb 1432 drivers/staging/comedi/drivers/usbduxsigma.c usb_free_urb(urb); urb 61 drivers/staging/gdm724x/gdm_mux.c t->urb = usb_alloc_urb(0, GFP_ATOMIC); urb 63 drivers/staging/gdm724x/gdm_mux.c if (!t->urb || !t->buf) { urb 64 drivers/staging/gdm724x/gdm_mux.c usb_free_urb(t->urb); urb 76 drivers/staging/gdm724x/gdm_mux.c usb_free_urb(t->urb); urb 90 drivers/staging/gdm724x/gdm_mux.c r->urb = usb_alloc_urb(0, GFP_KERNEL); urb 92 drivers/staging/gdm724x/gdm_mux.c if (!r->urb || !r->buf) { urb 93 drivers/staging/gdm724x/gdm_mux.c usb_free_urb(r->urb); urb 105 drivers/staging/gdm724x/gdm_mux.c usb_free_urb(r->urb); urb 247 drivers/staging/gdm724x/gdm_mux.c static void gdm_mux_rcv_complete(struct urb *urb) urb 249 drivers/staging/gdm724x/gdm_mux.c struct mux_rx *r = urb->context; urb 256 drivers/staging/gdm724x/gdm_mux.c if (urb->status) { urb 258 drivers/staging/gdm724x/gdm_mux.c dev_err(&urb->dev->dev, "%s: urb status error %d\n", urb 259 drivers/staging/gdm724x/gdm_mux.c __func__, urb->status); urb 262 drivers/staging/gdm724x/gdm_mux.c r->len = r->urb->actual_length; urb 297 drivers/staging/gdm724x/gdm_mux.c usb_fill_bulk_urb(r->urb, urb 309 drivers/staging/gdm724x/gdm_mux.c ret = usb_submit_urb(r->urb, GFP_KERNEL); urb 326 drivers/staging/gdm724x/gdm_mux.c static void gdm_mux_send_complete(struct urb *urb) urb 328 drivers/staging/gdm724x/gdm_mux.c struct mux_tx *t = urb->context; urb 330 drivers/staging/gdm724x/gdm_mux.c if (urb->status == -ECONNRESET) { urb 331 drivers/staging/gdm724x/gdm_mux.c dev_info(&urb->dev->dev, "CONNRESET\n"); urb 385 drivers/staging/gdm724x/gdm_mux.c usb_fill_bulk_urb(t->urb, urb 393 drivers/staging/gdm724x/gdm_mux.c ret = usb_submit_urb(t->urb, GFP_ATOMIC); urb 441 drivers/staging/gdm724x/gdm_mux.c usb_kill_urb(r->urb); urb 606 drivers/staging/gdm724x/gdm_mux.c usb_kill_urb(r->urb); urb 36 drivers/staging/gdm724x/gdm_mux.h struct urb *urb; urb 47 drivers/staging/gdm724x/gdm_mux.h struct urb *urb; urb 88 drivers/staging/gdm724x/gdm_usb.c t->urb = usb_alloc_urb(0, GFP_ATOMIC); urb 93 drivers/staging/gdm724x/gdm_usb.c if (!t->urb || !t->buf) { urb 101 drivers/staging/gdm724x/gdm_usb.c usb_free_urb(t->urb); urb 131 drivers/staging/gdm724x/gdm_usb.c usb_free_urb(t->urb); urb 179 drivers/staging/gdm724x/gdm_usb.c r->urb = usb_alloc_urb(0, GFP_KERNEL); urb 181 drivers/staging/gdm724x/gdm_usb.c if (!r->urb || !r->buf) { urb 189 drivers/staging/gdm724x/gdm_usb.c usb_free_urb(r->urb); urb 202 drivers/staging/gdm724x/gdm_usb.c usb_free_urb(r->urb); urb 274 drivers/staging/gdm724x/gdm_usb.c usb_kill_urb(r->urb); urb 410 drivers/staging/gdm724x/gdm_usb.c r->urb->actual_length, urb 419 drivers/staging/gdm724x/gdm_usb.c r->urb->actual_length, urb 453 drivers/staging/gdm724x/gdm_usb.c static void gdm_usb_rcv_complete(struct urb *urb) urb 455 drivers/staging/gdm724x/gdm_usb.c struct usb_rx *r = urb->context; urb 463 drivers/staging/gdm724x/gdm_usb.c if (!urb->status && r->callback) { urb 469 drivers/staging/gdm724x/gdm_usb.c if (urb->status && udev->usb_state == PM_NORMAL) urb 470 drivers/staging/gdm724x/gdm_usb.c dev_err(&urb->dev->dev, "%s: urb status error %d\n", urb 471 drivers/staging/gdm724x/gdm_usb.c __func__, urb->status); urb 510 drivers/staging/gdm724x/gdm_usb.c usb_fill_bulk_urb(r->urb, urb 523 drivers/staging/gdm724x/gdm_usb.c ret = usb_submit_urb(r->urb, GFP_KERNEL); urb 525 drivers/staging/gdm724x/gdm_usb.c ret = usb_submit_urb(r->urb, GFP_ATOMIC); urb 539 drivers/staging/gdm724x/gdm_usb.c static void gdm_usb_send_complete(struct urb *urb) urb 541 drivers/staging/gdm724x/gdm_usb.c struct usb_tx *t = urb->context; urb 546 drivers/staging/gdm724x/gdm_usb.c if (urb->status == -ECONNRESET) { urb 547 drivers/staging/gdm724x/gdm_usb.c dev_info(&urb->dev->dev, "CONNRESET\n"); urb 569 drivers/staging/gdm724x/gdm_usb.c usb_fill_bulk_urb(t->urb, urb 577 drivers/staging/gdm724x/gdm_usb.c ret = usb_submit_urb(t->urb, GFP_ATOMIC); urb 695 drivers/staging/gdm724x/gdm_usb.c gdm_usb_send_complete(t->urb); urb 924 drivers/staging/gdm724x/gdm_usb.c usb_kill_urb(r->urb); urb 37 drivers/staging/gdm724x/gdm_usb.h struct urb *urb; urb 59 drivers/staging/gdm724x/gdm_usb.h struct urb *urb; urb 78 drivers/staging/greybus/usb.c static int urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) urb 83 drivers/staging/greybus/usb.c static int urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 93 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb_ctrl; /* control pipe default URB */ urb 99 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb_cmd_out; /* for sending AT commands */ urb 103 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb_cmd_in; /* for receiving AT replies */ urb 108 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb_int_in; /* URB for interrupt pipe */ urb 258 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb) urb 262 drivers/staging/isdn/gigaset/bas-gigaset.c gig_dbg(level, "%s urb(0x%08lx)->{", tag, (unsigned long) urb); urb 263 drivers/staging/isdn/gigaset/bas-gigaset.c if (urb) { urb 267 drivers/staging/isdn/gigaset/bas-gigaset.c (unsigned long) urb->dev, urb 268 drivers/staging/isdn/gigaset/bas-gigaset.c usb_pipetype_str(urb->pipe), urb 269 drivers/staging/isdn/gigaset/bas-gigaset.c usb_pipeendpoint(urb->pipe), usb_pipedevice(urb->pipe), urb 270 drivers/staging/isdn/gigaset/bas-gigaset.c usb_pipein(urb->pipe) ? "in" : "out", urb 271 drivers/staging/isdn/gigaset/bas-gigaset.c (unsigned long) urb->hcpriv, urb 272 drivers/staging/isdn/gigaset/bas-gigaset.c urb->transfer_flags); urb 276 drivers/staging/isdn/gigaset/bas-gigaset.c (unsigned long) urb->transfer_buffer, urb 277 drivers/staging/isdn/gigaset/bas-gigaset.c urb->transfer_buffer_length, urb->actual_length, urb 278 drivers/staging/isdn/gigaset/bas-gigaset.c (unsigned long) urb->setup_packet); urb 282 drivers/staging/isdn/gigaset/bas-gigaset.c urb->start_frame, urb->number_of_packets, urb->interval, urb 283 drivers/staging/isdn/gigaset/bas-gigaset.c urb->error_count); urb 287 drivers/staging/isdn/gigaset/bas-gigaset.c (unsigned long) urb->context, urb 288 drivers/staging/isdn/gigaset/bas-gigaset.c (unsigned long) urb->complete); urb 289 drivers/staging/isdn/gigaset/bas-gigaset.c for (i = 0; i < urb->number_of_packets; i++) { urb 291 drivers/staging/isdn/gigaset/bas-gigaset.c = &urb->iso_frame_desc[i]; urb 475 drivers/staging/isdn/gigaset/bas-gigaset.c static void read_ctrl_callback(struct urb *urb) urb 477 drivers/staging/isdn/gigaset/bas-gigaset.c struct inbuf_t *inbuf = urb->context; urb 480 drivers/staging/isdn/gigaset/bas-gigaset.c int status = urb->status; urb 490 drivers/staging/isdn/gigaset/bas-gigaset.c numbytes = urb->actual_length; urb 608 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb = ucs->urb_int_in; urb 609 drivers/staging/isdn/gigaset/bas-gigaset.c struct cardstate *cs = urb->context; urb 613 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_clear_halt(ucs->udev, urb->pipe); urb 617 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 669 drivers/staging/isdn/gigaset/bas-gigaset.c static void read_int_callback(struct urb *urb) urb 671 drivers/staging/isdn/gigaset/bas-gigaset.c struct cardstate *cs = urb->context; urb 674 drivers/staging/isdn/gigaset/bas-gigaset.c int status = urb->status; urb 711 drivers/staging/isdn/gigaset/bas-gigaset.c if (unlikely(urb->actual_length < IP_MSGSIZE)) { urb 713 drivers/staging/isdn/gigaset/bas-gigaset.c urb->actual_length); urb 721 drivers/staging/isdn/gigaset/bas-gigaset.c urb->actual_length, (int)ucs->int_in_buf[0], l, urb 838 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 853 drivers/staging/isdn/gigaset/bas-gigaset.c static void read_iso_callback(struct urb *urb) urb 857 drivers/staging/isdn/gigaset/bas-gigaset.c int status = urb->status; urb 872 drivers/staging/isdn/gigaset/bas-gigaset.c bcs = urb->context; urb 878 drivers/staging/isdn/gigaset/bas-gigaset.c ubc->isoindone = urb; urb 886 drivers/staging/isdn/gigaset/bas-gigaset.c ubc->isoinlost += urb->iso_frame_desc[i].actual_length; urb 887 drivers/staging/isdn/gigaset/bas-gigaset.c if (unlikely(urb->iso_frame_desc[i].status != 0 && urb 888 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[i].status != -EINPROGRESS)) urb 889 drivers/staging/isdn/gigaset/bas-gigaset.c ubc->loststatus = urb->iso_frame_desc[i].status; urb 890 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[i].status = 0; urb 891 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[i].actual_length = 0; urb 895 drivers/staging/isdn/gigaset/bas-gigaset.c urb->dev = bcs->cs->hw.bas->udev; urb 896 drivers/staging/isdn/gigaset/bas-gigaset.c urb->transfer_flags = URB_ISO_ASAP; urb 897 drivers/staging/isdn/gigaset/bas-gigaset.c urb->number_of_packets = BAS_NUMFRAMES; urb 898 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 903 drivers/staging/isdn/gigaset/bas-gigaset.c dump_urb(DEBUG_ISO, "isoc read", urb); urb 918 drivers/staging/isdn/gigaset/bas-gigaset.c static void write_iso_callback(struct urb *urb) urb 922 drivers/staging/isdn/gigaset/bas-gigaset.c int status = urb->status; urb 937 drivers/staging/isdn/gigaset/bas-gigaset.c ucx = urb->context; urb 960 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb; urb 971 drivers/staging/isdn/gigaset/bas-gigaset.c urb = ubc->isoinurbs[k]; urb 972 drivers/staging/isdn/gigaset/bas-gigaset.c if (!urb) { urb 976 drivers/staging/isdn/gigaset/bas-gigaset.c usb_fill_int_urb(urb, udev, urb 982 drivers/staging/isdn/gigaset/bas-gigaset.c urb->transfer_flags = URB_ISO_ASAP; urb 983 drivers/staging/isdn/gigaset/bas-gigaset.c urb->number_of_packets = BAS_NUMFRAMES; urb 985 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].offset = j * BAS_MAXFRAME; urb 986 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].length = BAS_MAXFRAME; urb 987 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].status = 0; urb 988 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].actual_length = 0; urb 991 drivers/staging/isdn/gigaset/bas-gigaset.c dump_urb(DEBUG_ISO, "Initial isoc read", urb); urb 992 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 1002 drivers/staging/isdn/gigaset/bas-gigaset.c urb = ubc->isoouturbs[k].urb; urb 1003 drivers/staging/isdn/gigaset/bas-gigaset.c if (!urb) { urb 1007 drivers/staging/isdn/gigaset/bas-gigaset.c usb_fill_int_urb(urb, udev, urb 1014 drivers/staging/isdn/gigaset/bas-gigaset.c urb->transfer_flags = URB_ISO_ASAP; urb 1015 drivers/staging/isdn/gigaset/bas-gigaset.c urb->number_of_packets = BAS_NUMFRAMES; urb 1017 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].offset = BAS_OUTBUFSIZE; urb 1018 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].length = BAS_NORMFRAME; urb 1019 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].status = 0; urb 1020 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[j].actual_length = 0; urb 1027 drivers/staging/isdn/gigaset/bas-gigaset.c dump_urb(DEBUG_ISO, "Initial isoc write", urb); urb 1028 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(ubc->isoouturbs[k].urb, GFP_ATOMIC); urb 1032 drivers/staging/isdn/gigaset/bas-gigaset.c dump_urb(DEBUG_ISO, "Initial isoc write (free)", urb); urb 1061 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_unlink_urb(ubc->isoouturbs[k].urb); urb 1082 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb = ucx->urb; urb 1088 drivers/staging/isdn/gigaset/bas-gigaset.c urb->dev = ucx->bcs->cs->hw.bas->udev; urb 1089 drivers/staging/isdn/gigaset/bas-gigaset.c urb->transfer_flags = URB_ISO_ASAP; urb 1090 drivers/staging/isdn/gigaset/bas-gigaset.c urb->transfer_buffer = ubc->isooutbuf->data; urb 1091 drivers/staging/isdn/gigaset/bas-gigaset.c urb->transfer_buffer_length = sizeof(ubc->isooutbuf->data); urb 1094 drivers/staging/isdn/gigaset/bas-gigaset.c ifd = &urb->iso_frame_desc[nframe]; urb 1134 drivers/staging/isdn/gigaset/bas-gigaset.c urb->number_of_packets = nframe; urb 1136 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 1163 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb; urb 1219 drivers/staging/isdn/gigaset/bas-gigaset.c urb = done->urb; urb 1234 drivers/staging/isdn/gigaset/bas-gigaset.c ifd = &urb->iso_frame_desc[i]; urb 1305 drivers/staging/isdn/gigaset/bas-gigaset.c struct urb *urb; urb 1316 drivers/staging/isdn/gigaset/bas-gigaset.c urb = ubc->isoindone; urb 1317 drivers/staging/isdn/gigaset/bas-gigaset.c if (!urb) { urb 1364 drivers/staging/isdn/gigaset/bas-gigaset.c rcvbuf = urb->transfer_buffer; urb 1365 drivers/staging/isdn/gigaset/bas-gigaset.c totleft = urb->actual_length; urb 1367 drivers/staging/isdn/gigaset/bas-gigaset.c ifd = &urb->iso_frame_desc[frame]; urb 1418 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[frame].status = 0; urb 1419 drivers/staging/isdn/gigaset/bas-gigaset.c urb->iso_frame_desc[frame].actual_length = 0; urb 1422 drivers/staging/isdn/gigaset/bas-gigaset.c urb->dev = bcs->cs->hw.bas->udev; urb 1423 drivers/staging/isdn/gigaset/bas-gigaset.c urb->transfer_flags = URB_ISO_ASAP; urb 1424 drivers/staging/isdn/gigaset/bas-gigaset.c urb->number_of_packets = BAS_NUMFRAMES; urb 1425 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 1430 drivers/staging/isdn/gigaset/bas-gigaset.c dump_urb(DEBUG_ISO, "resubmit isoc read", urb); urb 1515 drivers/staging/isdn/gigaset/bas-gigaset.c static void write_ctrl_callback(struct urb *urb) urb 1517 drivers/staging/isdn/gigaset/bas-gigaset.c struct bas_cardstate *ucs = urb->context; urb 1518 drivers/staging/isdn/gigaset/bas-gigaset.c int status = urb->status; urb 1560 drivers/staging/isdn/gigaset/bas-gigaset.c urb->dev = ucs->udev; urb 1561 drivers/staging/isdn/gigaset/bas-gigaset.c rc = usb_submit_urb(urb, GFP_ATOMIC); urb 1774 drivers/staging/isdn/gigaset/bas-gigaset.c static void write_command_callback(struct urb *urb) urb 1776 drivers/staging/isdn/gigaset/bas-gigaset.c struct cardstate *cs = urb->context; urb 1778 drivers/staging/isdn/gigaset/bas-gigaset.c int status = urb->status; urb 2100 drivers/staging/isdn/gigaset/bas-gigaset.c usb_kill_urb(ubc->isoouturbs[i].urb); urb 2101 drivers/staging/isdn/gigaset/bas-gigaset.c usb_free_urb(ubc->isoouturbs[i].urb); urb 2135 drivers/staging/isdn/gigaset/bas-gigaset.c ubc->isoouturbs[i].urb = NULL; urb 2243 drivers/staging/isdn/gigaset/bas-gigaset.c usb_kill_urb(ubc->isoouturbs[i].urb); urb 2244 drivers/staging/isdn/gigaset/bas-gigaset.c usb_free_urb(ubc->isoouturbs[i].urb); urb 2245 drivers/staging/isdn/gigaset/bas-gigaset.c ubc->isoouturbs[i].urb = NULL; urb 2348 drivers/staging/isdn/gigaset/bas-gigaset.c if (!(ubc->isoouturbs[i].urb = urb 320 drivers/staging/isdn/gigaset/gigaset.h struct urb *urb; urb 539 drivers/staging/isdn/gigaset/gigaset.h struct urb *isoinurbs[BAS_INURBS]; urb 541 drivers/staging/isdn/gigaset/gigaset.h struct urb *isoindone; /* completed isoc read URB */ urb 136 drivers/staging/isdn/gigaset/usb-gigaset.c struct urb *bulk_out_urb; urb 141 drivers/staging/isdn/gigaset/usb-gigaset.c struct urb *read_urb; urb 342 drivers/staging/isdn/gigaset/usb-gigaset.c static void gigaset_read_int_callback(struct urb *urb) urb 344 drivers/staging/isdn/gigaset/usb-gigaset.c struct cardstate *cs = urb->context; urb 346 drivers/staging/isdn/gigaset/usb-gigaset.c int status = urb->status; urb 353 drivers/staging/isdn/gigaset/usb-gigaset.c numbytes = urb->actual_length; urb 385 drivers/staging/isdn/gigaset/usb-gigaset.c r = usb_submit_urb(urb, GFP_ATOMIC); urb 393 drivers/staging/isdn/gigaset/usb-gigaset.c static void gigaset_write_bulk_callback(struct urb *urb) urb 395 drivers/staging/isdn/gigaset/usb-gigaset.c struct cardstate *cs = urb->context; urb 396 drivers/staging/isdn/gigaset/usb-gigaset.c int status = urb->status; urb 336 drivers/staging/most/usb/usb.c static void hdm_write_completion(struct urb *urb) urb 338 drivers/staging/most/usb/usb.c struct mbo *mbo = urb->context; urb 349 drivers/staging/most/usb/usb.c switch (urb->status) { urb 352 drivers/staging/most/usb/usb.c mbo->processed_length = urb->actual_length; urb 360 drivers/staging/most/usb/usb.c mdev->clear_work[channel].pipe = urb->pipe; urb 374 drivers/staging/most/usb/usb.c usb_free_urb(urb); urb 485 drivers/staging/most/usb/usb.c static void hdm_read_completion(struct urb *urb) urb 487 drivers/staging/most/usb/usb.c struct mbo *mbo = urb->context; urb 499 drivers/staging/most/usb/usb.c switch (urb->status) { urb 502 drivers/staging/most/usb/usb.c mbo->processed_length = urb->actual_length; urb 514 drivers/staging/most/usb/usb.c mdev->clear_work[channel].pipe = urb->pipe; urb 532 drivers/staging/most/usb/usb.c usb_free_urb(urb); urb 556 drivers/staging/most/usb/usb.c struct urb *urb; urb 574 drivers/staging/most/usb/usb.c urb = usb_alloc_urb(NO_ISOCHRONOUS_URB, GFP_ATOMIC); urb 575 drivers/staging/most/usb/usb.c if (!urb) { urb 586 drivers/staging/most/usb/usb.c urb->transfer_dma = mbo->bus_address; urb 591 drivers/staging/most/usb/usb.c usb_fill_bulk_urb(urb, mdev->usb_device, urb 600 drivers/staging/most/usb/usb.c urb->transfer_flags |= URB_ZERO_PACKET; urb 602 drivers/staging/most/usb/usb.c usb_fill_bulk_urb(urb, mdev->usb_device, urb 610 drivers/staging/most/usb/usb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 612 drivers/staging/most/usb/usb.c usb_anchor_urb(urb, &mdev->busy_urbs[channel]); urb 614 drivers/staging/most/usb/usb.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 623 drivers/staging/most/usb/usb.c usb_unanchor_urb(urb); urb 625 drivers/staging/most/usb/usb.c usb_free_urb(urb); urb 286 drivers/staging/octeon-usb/octeon-hcd.c struct urb *urb; urb 426 drivers/staging/octeon-usb/octeon-hcd.c static int octeon_alloc_temp_buffer(struct urb *urb, gfp_t mem_flags) urb 430 drivers/staging/octeon-usb/octeon-hcd.c if (urb->num_sgs || urb->sg || urb 431 drivers/staging/octeon-usb/octeon-hcd.c (urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP) || urb 432 drivers/staging/octeon-usb/octeon-hcd.c !(urb->transfer_buffer_length % sizeof(u32))) urb 435 drivers/staging/octeon-usb/octeon-hcd.c temp = kmalloc(ALIGN(urb->transfer_buffer_length, sizeof(u32)) + urb 440 drivers/staging/octeon-usb/octeon-hcd.c temp->orig_buffer = urb->transfer_buffer; urb 441 drivers/staging/octeon-usb/octeon-hcd.c if (usb_urb_dir_out(urb)) urb 442 drivers/staging/octeon-usb/octeon-hcd.c memcpy(temp->data, urb->transfer_buffer, urb 443 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_buffer_length); urb 444 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_buffer = temp->data; urb 445 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_flags |= URB_ALIGNED_TEMP_BUFFER; urb 456 drivers/staging/octeon-usb/octeon-hcd.c static void octeon_free_temp_buffer(struct urb *urb) urb 461 drivers/staging/octeon-usb/octeon-hcd.c if (!(urb->transfer_flags & URB_ALIGNED_TEMP_BUFFER)) urb 464 drivers/staging/octeon-usb/octeon-hcd.c temp = container_of(urb->transfer_buffer, struct octeon_temp_buffer, urb 466 drivers/staging/octeon-usb/octeon-hcd.c if (usb_urb_dir_in(urb)) { urb 467 drivers/staging/octeon-usb/octeon-hcd.c if (usb_pipeisoc(urb->pipe)) urb 468 drivers/staging/octeon-usb/octeon-hcd.c length = urb->transfer_buffer_length; urb 470 drivers/staging/octeon-usb/octeon-hcd.c length = urb->actual_length; urb 472 drivers/staging/octeon-usb/octeon-hcd.c memcpy(temp->orig_buffer, urb->transfer_buffer, length); urb 474 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_buffer = temp->orig_buffer; urb 475 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_flags &= ~URB_ALIGNED_TEMP_BUFFER; urb 485 drivers/staging/octeon-usb/octeon-hcd.c static int octeon_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, urb 490 drivers/staging/octeon-usb/octeon-hcd.c ret = octeon_alloc_temp_buffer(urb, mem_flags); urb 494 drivers/staging/octeon-usb/octeon-hcd.c ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); urb 496 drivers/staging/octeon-usb/octeon-hcd.c octeon_free_temp_buffer(urb); urb 506 drivers/staging/octeon-usb/octeon-hcd.c static void octeon_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) urb 508 drivers/staging/octeon-usb/octeon-hcd.c usb_hcd_unmap_urb_for_dma(hcd, urb); urb 509 drivers/staging/octeon-usb/octeon-hcd.c octeon_free_temp_buffer(urb); urb 1962 drivers/staging/octeon-usb/octeon-hcd.c struct urb *urb) urb 1968 drivers/staging/octeon-usb/octeon-hcd.c urb->actual_length = bytes_transferred; urb 1970 drivers/staging/octeon-usb/octeon-hcd.c urb->actual_length = 0; urb 1972 drivers/staging/octeon-usb/octeon-hcd.c urb->hcpriv = NULL; urb 1977 drivers/staging/octeon-usb/octeon-hcd.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 1984 drivers/staging/octeon-usb/octeon-hcd.c (struct cvmx_usb_iso_packet *)urb->setup_packet; urb 1986 drivers/staging/octeon-usb/octeon-hcd.c urb->actual_length = 0; urb 1987 drivers/staging/octeon-usb/octeon-hcd.c for (i = 0; i < urb->number_of_packets; i++) { urb 1989 drivers/staging/octeon-usb/octeon-hcd.c urb->iso_frame_desc[i].status = 0; urb 1990 drivers/staging/octeon-usb/octeon-hcd.c urb->iso_frame_desc[i].actual_length = urb 1992 drivers/staging/octeon-usb/octeon-hcd.c urb->actual_length += urb 1993 drivers/staging/octeon-usb/octeon-hcd.c urb->iso_frame_desc[i].actual_length; urb 1996 drivers/staging/octeon-usb/octeon-hcd.c i, urb->number_of_packets, urb 1999 drivers/staging/octeon-usb/octeon-hcd.c urb->iso_frame_desc[i].status = -EREMOTEIO; urb 2004 drivers/staging/octeon-usb/octeon-hcd.c urb->setup_packet = NULL; urb 2009 drivers/staging/octeon-usb/octeon-hcd.c urb->status = 0; urb 2012 drivers/staging/octeon-usb/octeon-hcd.c if (urb->status == 0) urb 2013 drivers/staging/octeon-usb/octeon-hcd.c urb->status = -ENOENT; urb 2018 drivers/staging/octeon-usb/octeon-hcd.c urb->status = -EPIPE; urb 2023 drivers/staging/octeon-usb/octeon-hcd.c urb->status = -EPIPE; urb 2028 drivers/staging/octeon-usb/octeon-hcd.c urb->status = -EREMOTEIO; urb 2036 drivers/staging/octeon-usb/octeon-hcd.c urb->status = -EPROTO; urb 2039 drivers/staging/octeon-usb/octeon-hcd.c usb_hcd_unlink_urb_from_ep(octeon_to_hcd(usb), urb); urb 2041 drivers/staging/octeon-usb/octeon-hcd.c usb_hcd_giveback_urb(octeon_to_hcd(usb), urb, urb->status); urb 2098 drivers/staging/octeon-usb/octeon-hcd.c transaction->urb); urb 2134 drivers/staging/octeon-usb/octeon-hcd.c struct urb *urb) urb 2153 drivers/staging/octeon-usb/octeon-hcd.c transaction->urb = urb; urb 2188 drivers/staging/octeon-usb/octeon-hcd.c struct urb *urb) urb 2191 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_dma, urb 2192 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_buffer_length, urb 2197 drivers/staging/octeon-usb/octeon-hcd.c urb); urb 2212 drivers/staging/octeon-usb/octeon-hcd.c struct urb *urb) urb 2216 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_dma, urb 2217 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_buffer_length, urb 2222 drivers/staging/octeon-usb/octeon-hcd.c urb); urb 2237 drivers/staging/octeon-usb/octeon-hcd.c struct urb *urb) urb 2239 drivers/staging/octeon-usb/octeon-hcd.c int buffer_length = urb->transfer_buffer_length; urb 2240 drivers/staging/octeon-usb/octeon-hcd.c u64 control_header = urb->setup_dma; urb 2248 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_dma, buffer_length, urb 2253 drivers/staging/octeon-usb/octeon-hcd.c urb); urb 2268 drivers/staging/octeon-usb/octeon-hcd.c struct urb *urb) urb 2272 drivers/staging/octeon-usb/octeon-hcd.c packets = (struct cvmx_usb_iso_packet *)urb->setup_packet; urb 2275 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_dma, urb 2276 drivers/staging/octeon-usb/octeon-hcd.c urb->transfer_buffer_length, urb 2278 drivers/staging/octeon-usb/octeon-hcd.c urb->start_frame, urb 2279 drivers/staging/octeon-usb/octeon-hcd.c urb->number_of_packets, urb 2280 drivers/staging/octeon-usb/octeon-hcd.c packets, urb); urb 3066 drivers/staging/octeon-usb/octeon-hcd.c struct urb *urb, urb 3075 drivers/staging/octeon-usb/octeon-hcd.c struct usb_host_endpoint *ep = urb->ep; urb 3078 drivers/staging/octeon-usb/octeon-hcd.c urb->status = 0; urb 3081 drivers/staging/octeon-usb/octeon-hcd.c rc = usb_hcd_link_urb_to_ep(hcd, urb); urb 3093 drivers/staging/octeon-usb/octeon-hcd.c switch (usb_pipetype(urb->pipe)) { urb 3107 drivers/staging/octeon-usb/octeon-hcd.c switch (urb->dev->speed) { urb 3128 drivers/staging/octeon-usb/octeon-hcd.c struct usb_device *dev = urb->dev; urb 3149 drivers/staging/octeon-usb/octeon-hcd.c pipe = cvmx_usb_open_pipe(usb, usb_pipedevice(urb->pipe), urb 3150 drivers/staging/octeon-usb/octeon-hcd.c usb_pipeendpoint(urb->pipe), speed, urb 3154 drivers/staging/octeon-usb/octeon-hcd.c usb_pipein(urb->pipe) ? urb 3157 drivers/staging/octeon-usb/octeon-hcd.c urb->interval, urb 3162 drivers/staging/octeon-usb/octeon-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 3172 drivers/staging/octeon-usb/octeon-hcd.c switch (usb_pipetype(urb->pipe)) { urb 3175 drivers/staging/octeon-usb/octeon-hcd.c usb_pipedevice(urb->pipe), urb 3176 drivers/staging/octeon-usb/octeon-hcd.c usb_pipeendpoint(urb->pipe)); urb 3181 drivers/staging/octeon-usb/octeon-hcd.c iso_packet = kmalloc_array(urb->number_of_packets, urb 3187 drivers/staging/octeon-usb/octeon-hcd.c for (i = 0; i < urb->number_of_packets; i++) { urb 3189 drivers/staging/octeon-usb/octeon-hcd.c urb->iso_frame_desc[i].offset; urb 3191 drivers/staging/octeon-usb/octeon-hcd.c urb->iso_frame_desc[i].length; urb 3199 drivers/staging/octeon-usb/octeon-hcd.c urb->setup_packet = (char *)iso_packet; urb 3201 drivers/staging/octeon-usb/octeon-hcd.c pipe, urb); urb 3207 drivers/staging/octeon-usb/octeon-hcd.c urb->setup_packet = NULL; urb 3214 drivers/staging/octeon-usb/octeon-hcd.c usb_pipedevice(urb->pipe), urb 3215 drivers/staging/octeon-usb/octeon-hcd.c usb_pipeendpoint(urb->pipe)); urb 3216 drivers/staging/octeon-usb/octeon-hcd.c transaction = cvmx_usb_submit_interrupt(usb, pipe, urb); urb 3220 drivers/staging/octeon-usb/octeon-hcd.c usb_pipedevice(urb->pipe), urb 3221 drivers/staging/octeon-usb/octeon-hcd.c usb_pipeendpoint(urb->pipe)); urb 3222 drivers/staging/octeon-usb/octeon-hcd.c transaction = cvmx_usb_submit_control(usb, pipe, urb); urb 3226 drivers/staging/octeon-usb/octeon-hcd.c usb_pipedevice(urb->pipe), urb 3227 drivers/staging/octeon-usb/octeon-hcd.c usb_pipeendpoint(urb->pipe)); urb 3228 drivers/staging/octeon-usb/octeon-hcd.c transaction = cvmx_usb_submit_bulk(usb, pipe, urb); urb 3232 drivers/staging/octeon-usb/octeon-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 3237 drivers/staging/octeon-usb/octeon-hcd.c urb->hcpriv = transaction; urb 3243 drivers/staging/octeon-usb/octeon-hcd.c struct urb *urb, urb 3250 drivers/staging/octeon-usb/octeon-hcd.c if (!urb->dev) urb 3255 drivers/staging/octeon-usb/octeon-hcd.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 3259 drivers/staging/octeon-usb/octeon-hcd.c urb->status = status; urb 3260 drivers/staging/octeon-usb/octeon-hcd.c cvmx_usb_cancel(usb, urb->ep->hcpriv, urb->hcpriv); urb 200 drivers/staging/rtl8188eu/include/rtw_recv.h struct urb *purb; urb 201 drivers/staging/rtl8188eu/include/rtw_xmit.h struct urb *pxmit_urb[8]; urb 29 drivers/staging/rtl8188eu/include/usb_ops_linux.h #define _usbctrl_vendorreq_async_callback(urb, regs) \ urb 30 drivers/staging/rtl8188eu/include/usb_ops_linux.h _usbctrl_vendorreq_async_callback(urb) urb 348 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs) urb 426 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c struct urb *purb = NULL; urb 571 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs) urb 662 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c struct urb *purb = NULL; urb 278 drivers/staging/rtl8192u/r8192U.h struct urb *urb; urb 867 drivers/staging/rtl8192u/r8192U.h struct urb **rx_urb; urb 868 drivers/staging/rtl8192u/r8192U.h struct urb **rx_cmd_urb; urb 887 drivers/staging/rtl8192u/r8192U.h struct urb *rxurb_task; urb 708 drivers/staging/rtl8192u/r8192U_core.c static void rtl8192_rx_isr(struct urb *urb); urb 719 drivers/staging/rtl8192u/r8192U_core.c struct urb *entry; urb 738 drivers/staging/rtl8192u/r8192U_core.c info->urb = entry; urb 760 drivers/staging/rtl8192u/r8192U_core.c info->urb = entry; urb 825 drivers/staging/rtl8192u/r8192U_core.c if (!info->urb) urb 828 drivers/staging/rtl8192u/r8192U_core.c usb_kill_urb(info->urb); urb 839 drivers/staging/rtl8192u/r8192U_core.c static void rtl8192_rx_isr(struct urb *urb) urb 841 drivers/staging/rtl8192u/r8192U_core.c struct sk_buff *skb = (struct sk_buff *)urb->context; urb 851 drivers/staging/rtl8192u/r8192U_core.c if (unlikely(urb->status)) { urb 852 drivers/staging/rtl8192u/r8192U_core.c info->urb = NULL; urb 855 drivers/staging/rtl8192u/r8192U_core.c usb_free_urb(urb); urb 859 drivers/staging/rtl8192u/r8192U_core.c skb_put(skb, urb->actual_length); urb 866 drivers/staging/rtl8192u/r8192U_core.c usb_free_urb(urb); urb 872 drivers/staging/rtl8192u/r8192U_core.c usb_fill_bulk_urb(urb, priv->udev, urb 878 drivers/staging/rtl8192u/r8192U_core.c info->urb = urb; urb 882 drivers/staging/rtl8192u/r8192U_core.c urb->transfer_buffer = skb_tail_pointer(skb); urb 883 drivers/staging/rtl8192u/r8192U_core.c urb->context = skb; urb 885 drivers/staging/rtl8192u/r8192U_core.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 889 drivers/staging/rtl8192u/r8192U_core.c err, urb->status); urb 972 drivers/staging/rtl8192u/r8192U_core.c static void rtl8192_tx_isr(struct urb *tx_urb) urb 1198 drivers/staging/rtl8192u/r8192U_core.c struct urb *tx_urb; urb 1407 drivers/staging/rtl8192u/r8192U_core.c static void tx_zero_isr(struct urb *tx_urb) urb 1426 drivers/staging/rtl8192u/r8192U_core.c struct urb *tx_urb = NULL, *tx_urb_zero = NULL; urb 1605 drivers/staging/rtl8192u/r8192U_core.c priv->rx_urb = kmalloc_array(MAX_RX_URB + 1, sizeof(struct urb *), urb 1647 drivers/staging/rtl8192u/r8192U_core.c memset(priv->rx_urb, 0, sizeof(struct urb *) * MAX_RX_URB); urb 26 drivers/staging/rtl8712/osdep_intf.h struct urb *piorw_urb; urb 93 drivers/staging/rtl8712/rtl8712_recv.h struct urb *purb; urb 58 drivers/staging/rtl8712/rtl871x_mp.h struct urb *pxmit_urb[8]; urb 141 drivers/staging/rtl8712/rtl871x_xmit.h struct urb *pxmit_urb[8]; urb 155 drivers/staging/rtl8712/rtl871x_xmit.h struct urb *pxmit_urb[8]; urb 141 drivers/staging/rtl8712/usb_ops_linux.c static void usb_write_mem_complete(struct urb *purb) urb 165 drivers/staging/rtl8712/usb_ops_linux.c struct urb *piorw_urb = pintfpriv->piorw_urb; urb 181 drivers/staging/rtl8712/usb_ops_linux.c static void r8712_usb_read_port_complete(struct urb *purb) urb 249 drivers/staging/rtl8712/usb_ops_linux.c struct urb *purb = NULL; urb 328 drivers/staging/rtl8712/usb_ops_linux.c static void usb_write_port_complete(struct urb *purb) urb 385 drivers/staging/rtl8712/usb_ops_linux.c struct urb *purb = NULL; urb 68 drivers/staging/uwb/hwa-rc.c struct urb *neep_urb; /* Notification endpoint handling */ urb 616 drivers/staging/uwb/hwa-rc.c void hwarc_neep_cb(struct urb *urb) urb 618 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = urb->context; urb 623 drivers/staging/uwb/hwa-rc.c switch (result = urb->status) { urb 625 drivers/staging/uwb/hwa-rc.c uwb_rc_neh_grok(hwarc->uwb_rc, urb->transfer_buffer, urb 626 drivers/staging/uwb/hwa-rc.c urb->actual_length); urb 637 drivers/staging/uwb/hwa-rc.c dev_err(dev, "NEEP: URB error %d\n", urb->status); urb 639 drivers/staging/uwb/hwa-rc.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 37 drivers/staging/uwb/i1480/dfu/usb.c struct urb *neep_urb; /* URB for reading from EP1 */ urb 184 drivers/staging/uwb/i1480/dfu/usb.c void i1480_usb_neep_cb(struct urb *urb) urb 186 drivers/staging/uwb/i1480/dfu/usb.c struct i1480 *i1480 = urb->context; urb 189 drivers/staging/uwb/i1480/dfu/usb.c switch (urb->status) { urb 194 drivers/staging/uwb/i1480/dfu/usb.c dev_dbg(dev, "NEEP: reset/noent %d\n", urb->status); urb 197 drivers/staging/uwb/i1480/dfu/usb.c dev_dbg(dev, "NEEP: down %d\n", urb->status); urb 200 drivers/staging/uwb/i1480/dfu/usb.c dev_err(dev, "NEEP: unknown status %d\n", urb->status); urb 203 drivers/staging/uwb/i1480/dfu/usb.c i1480->evt_result = urb->actual_length; urb 212 drivers/staging/vt6656/device.h struct urb *urb; urb 221 drivers/staging/vt6656/device.h struct urb *urb; urb 278 drivers/staging/vt6656/device.h struct urb *interrupt_urb; urb 399 drivers/staging/vt6656/main_usb.c if (tx_context->urb) { urb 400 drivers/staging/vt6656/main_usb.c usb_kill_urb(tx_context->urb); urb 401 drivers/staging/vt6656/main_usb.c usb_free_urb(tx_context->urb); urb 419 drivers/staging/vt6656/main_usb.c if (rcb->urb) { urb 420 drivers/staging/vt6656/main_usb.c usb_kill_urb(rcb->urb); urb 421 drivers/staging/vt6656/main_usb.c usb_free_urb(rcb->urb); urb 456 drivers/staging/vt6656/main_usb.c tx_context->urb = usb_alloc_urb(0, GFP_KERNEL); urb 457 drivers/staging/vt6656/main_usb.c if (!tx_context->urb) { urb 477 drivers/staging/vt6656/main_usb.c rcb->urb = usb_alloc_urb(0, GFP_KERNEL); urb 478 drivers/staging/vt6656/main_usb.c if (!rcb->urb) { urb 142 drivers/staging/vt6656/usbpipe.c static void vnt_start_interrupt_urb_complete(struct urb *urb) urb 144 drivers/staging/vt6656/usbpipe.c struct vnt_private *priv = urb->context; urb 145 drivers/staging/vt6656/usbpipe.c int status = urb->status; urb 209 drivers/staging/vt6656/usbpipe.c static void vnt_submit_rx_urb_complete(struct urb *urb) urb 211 drivers/staging/vt6656/usbpipe.c struct vnt_rcb *rcb = urb->context; urb 214 drivers/staging/vt6656/usbpipe.c switch (urb->status) { urb 223 drivers/staging/vt6656/usbpipe.c dev_dbg(&priv->usb->dev, "BULK In failed %d\n", urb->status); urb 227 drivers/staging/vt6656/usbpipe.c if (urb->actual_length) { urb 228 drivers/staging/vt6656/usbpipe.c if (vnt_rx_data(priv, rcb, urb->actual_length)) { urb 239 drivers/staging/vt6656/usbpipe.c urb->transfer_buffer = skb_put(rcb->skb, urb 243 drivers/staging/vt6656/usbpipe.c if (usb_submit_urb(urb, GFP_ATOMIC)) { urb 253 drivers/staging/vt6656/usbpipe.c struct urb *urb = rcb->urb; urb 261 drivers/staging/vt6656/usbpipe.c usb_fill_bulk_urb(urb, urb 269 drivers/staging/vt6656/usbpipe.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 281 drivers/staging/vt6656/usbpipe.c static void vnt_tx_context_complete(struct urb *urb) urb 283 drivers/staging/vt6656/usbpipe.c struct vnt_usb_send_context *context = urb->context; urb 286 drivers/staging/vt6656/usbpipe.c switch (urb->status) { urb 297 drivers/staging/vt6656/usbpipe.c dev_dbg(&priv->usb->dev, "BULK Out failed %d\n", urb->status); urb 304 drivers/staging/vt6656/usbpipe.c if (urb->status || context->type == CONTEXT_BEACON_PACKET) { urb 316 drivers/staging/vt6656/usbpipe.c struct urb *urb = context->urb; urb 323 drivers/staging/vt6656/usbpipe.c usb_fill_bulk_urb(urb, urb 331 drivers/staging/vt6656/usbpipe.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 1234 drivers/staging/wlan-ng/hfa384x.h struct urb rx_urb; urb 1236 drivers/staging/wlan-ng/hfa384x.h struct urb tx_urb; urb 1237 drivers/staging/wlan-ng/hfa384x.h struct urb ctlx_urb; urb 154 drivers/staging/wlan-ng/hfa384x_usb.c static void dbprint_urb(struct urb *urb); urb 164 drivers/staging/wlan-ng/hfa384x_usb.c static int submit_tx_urb(struct hfa384x *hw, struct urb *tx_urb, gfp_t flags); urb 168 drivers/staging/wlan-ng/hfa384x_usb.c static void hfa384x_usbout_callback(struct urb *urb); urb 169 drivers/staging/wlan-ng/hfa384x_usb.c static void hfa384x_ctlxout_callback(struct urb *urb); urb 170 drivers/staging/wlan-ng/hfa384x_usb.c static void hfa384x_usbin_callback(struct urb *urb); urb 286 drivers/staging/wlan-ng/hfa384x_usb.c void dbprint_urb(struct urb *urb) urb 288 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->pipe=0x%08x\n", urb->pipe); urb 289 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->status=0x%08x\n", urb->status); urb 290 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->transfer_flags=0x%08x\n", urb->transfer_flags); urb 292 drivers/staging/wlan-ng/hfa384x_usb.c (unsigned int)urb->transfer_buffer); urb 294 drivers/staging/wlan-ng/hfa384x_usb.c urb->transfer_buffer_length); urb 295 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->actual_length=0x%08x\n", urb->actual_length); urb 296 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->bandwidth=0x%08x\n", urb->bandwidth); urb 298 drivers/staging/wlan-ng/hfa384x_usb.c (unsigned int)urb->setup_packet); urb 299 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->start_frame(iso/irq)=0x%08x\n", urb->start_frame); urb 300 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->interval(irq)=0x%08x\n", urb->interval); urb 301 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->error_count(iso)=0x%08x\n", urb->error_count); urb 302 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->timeout=0x%08x\n", urb->timeout); urb 303 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->context=0x%08x\n", (unsigned int)urb->context); urb 304 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->complete=0x%08x\n", (unsigned int)urb->complete); urb 388 drivers/staging/wlan-ng/hfa384x_usb.c static int submit_tx_urb(struct hfa384x *hw, struct urb *tx_urb, gfp_t memflags) urb 2913 drivers/staging/wlan-ng/hfa384x_usb.c static void hfa384x_usbin_callback(struct urb *urb) urb 2915 drivers/staging/wlan-ng/hfa384x_usb.c struct wlandevice *wlandev = urb->context; urb 2937 drivers/staging/wlan-ng/hfa384x_usb.c if (!skb || (skb->data != urb->transfer_buffer)) { urb 2945 drivers/staging/wlan-ng/hfa384x_usb.c switch (urb->status) { urb 2950 drivers/staging/wlan-ng/hfa384x_usb.c if (urb->actual_length == 0) { urb 2984 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("status=%d, device removed.\n", urb->status); urb 2990 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("status=%d, urb explicitly unlinked.\n", urb->status); urb 2996 drivers/staging/wlan-ng/hfa384x_usb.c urb->status, urb->transfer_flags); urb 3003 drivers/staging/wlan-ng/hfa384x_usb.c urb_status = urb->status; urb 3004 drivers/staging/wlan-ng/hfa384x_usb.c usbin = (union hfa384x_usbin *)urb->transfer_buffer; urb 3477 drivers/staging/wlan-ng/hfa384x_usb.c static void hfa384x_usbout_callback(struct urb *urb) urb 3479 drivers/staging/wlan-ng/hfa384x_usb.c struct wlandevice *wlandev = urb->context; urb 3482 drivers/staging/wlan-ng/hfa384x_usb.c dbprint_urb(urb); urb 3486 drivers/staging/wlan-ng/hfa384x_usb.c switch (urb->status) { urb 3525 drivers/staging/wlan-ng/hfa384x_usb.c urb->status); urb 3549 drivers/staging/wlan-ng/hfa384x_usb.c static void hfa384x_ctlxout_callback(struct urb *urb) urb 3551 drivers/staging/wlan-ng/hfa384x_usb.c struct hfa384x *hw = urb->context; urb 3558 drivers/staging/wlan-ng/hfa384x_usb.c pr_debug("urb->status=%d\n", urb->status); urb 3560 drivers/staging/wlan-ng/hfa384x_usb.c dbprint_urb(urb); urb 3562 drivers/staging/wlan-ng/hfa384x_usb.c if ((urb->status == -ESHUTDOWN) || urb 3563 drivers/staging/wlan-ng/hfa384x_usb.c (urb->status == -ENODEV) || !hw) urb 3600 drivers/staging/wlan-ng/hfa384x_usb.c if (urb->status == 0) { urb 3622 drivers/staging/wlan-ng/hfa384x_usb.c ctlxstr(ctlx->state), urb->status); urb 3627 drivers/staging/wlan-ng/hfa384x_usb.c if ((urb->status == -EPIPE) && urb 197 drivers/staging/wusbcore/host/hwa-hc.c static int hwahc_op_urb_enqueue(struct usb_hcd *usb_hcd, struct urb *urb, urb 203 drivers/staging/wusbcore/host/hwa-hc.c return wa_urb_enqueue(&hwahc->wa, urb->ep, urb, gfp); urb 206 drivers/staging/wusbcore/host/hwa-hc.c static int hwahc_op_urb_dequeue(struct usb_hcd *usb_hcd, struct urb *urb, urb 212 drivers/staging/wusbcore/host/hwa-hc.c return wa_urb_dequeue(&hwahc->wa, urb, status); urb 252 drivers/staging/wusbcore/host/whci/asl.c int asl_urb_enqueue(struct whc *whc, struct urb *urb, gfp_t mem_flags) urb 260 drivers/staging/wusbcore/host/whci/asl.c err = usb_hcd_link_urb_to_ep(&whc->wusbhc.usb_hcd, urb); urb 266 drivers/staging/wusbcore/host/whci/asl.c qset = get_qset(whc, urb, GFP_ATOMIC); urb 270 drivers/staging/wusbcore/host/whci/asl.c err = qset_add_urb(whc, qset, urb, GFP_ATOMIC); urb 275 drivers/staging/wusbcore/host/whci/asl.c usb_hcd_unlink_urb_from_ep(&whc->wusbhc.usb_hcd, urb); urb 295 drivers/staging/wusbcore/host/whci/asl.c int asl_urb_dequeue(struct whc *whc, struct urb *urb, int status) urb 297 drivers/staging/wusbcore/host/whci/asl.c struct whc_urb *wurb = urb->hcpriv; urb 306 drivers/staging/wusbcore/host/whci/asl.c ret = usb_hcd_check_unlink_urb(&whc->wusbhc.usb_hcd, urb, status); urb 311 drivers/staging/wusbcore/host/whci/asl.c if (std->urb == urb) { urb 325 drivers/staging/wusbcore/host/whci/asl.c qset_remove_urb(whc, qset, urb, status); urb 28 drivers/staging/wusbcore/host/whci/debug.c struct urb *urb = NULL; urb 58 drivers/staging/wusbcore/host/whci/debug.c if (urb != std->urb) { urb 59 drivers/staging/wusbcore/host/whci/debug.c urb = std->urb; urb 60 drivers/staging/wusbcore/host/whci/debug.c seq_printf(s, " urb %p transferred: %d bytes\n", urb, urb 61 drivers/staging/wusbcore/host/whci/debug.c urb->actual_length); urb 106 drivers/staging/wusbcore/host/whci/hcd.c static int whc_urb_enqueue(struct usb_hcd *usb_hcd, struct urb *urb, urb 113 drivers/staging/wusbcore/host/whci/hcd.c switch (usb_pipetype(urb->pipe)) { urb 115 drivers/staging/wusbcore/host/whci/hcd.c ret = pzl_urb_enqueue(whc, urb, mem_flags); urb 124 drivers/staging/wusbcore/host/whci/hcd.c ret = asl_urb_enqueue(whc, urb, mem_flags); urb 134 drivers/staging/wusbcore/host/whci/hcd.c static int whc_urb_dequeue(struct usb_hcd *usb_hcd, struct urb *urb, int status) urb 140 drivers/staging/wusbcore/host/whci/hcd.c switch (usb_pipetype(urb->pipe)) { urb 142 drivers/staging/wusbcore/host/whci/hcd.c ret = pzl_urb_dequeue(whc, urb, status); urb 150 drivers/staging/wusbcore/host/whci/hcd.c ret = asl_urb_dequeue(whc, urb, status); urb 280 drivers/staging/wusbcore/host/whci/pzl.c int pzl_urb_enqueue(struct whc *whc, struct urb *urb, gfp_t mem_flags) urb 288 drivers/staging/wusbcore/host/whci/pzl.c err = usb_hcd_link_urb_to_ep(&whc->wusbhc.usb_hcd, urb); urb 294 drivers/staging/wusbcore/host/whci/pzl.c qset = get_qset(whc, urb, GFP_ATOMIC); urb 298 drivers/staging/wusbcore/host/whci/pzl.c err = qset_add_urb(whc, qset, urb, GFP_ATOMIC); urb 303 drivers/staging/wusbcore/host/whci/pzl.c usb_hcd_unlink_urb_from_ep(&whc->wusbhc.usb_hcd, urb); urb 323 drivers/staging/wusbcore/host/whci/pzl.c int pzl_urb_dequeue(struct whc *whc, struct urb *urb, int status) urb 325 drivers/staging/wusbcore/host/whci/pzl.c struct whc_urb *wurb = urb->hcpriv; urb 334 drivers/staging/wusbcore/host/whci/pzl.c ret = usb_hcd_check_unlink_urb(&whc->wusbhc.usb_hcd, urb, status); urb 339 drivers/staging/wusbcore/host/whci/pzl.c if (std->urb == urb) { urb 354 drivers/staging/wusbcore/host/whci/pzl.c qset_remove_urb(whc, qset, urb, status); urb 41 drivers/staging/wusbcore/host/whci/qset.c static void qset_fill_qh(struct whc *whc, struct whc_qset *qset, struct urb *urb) urb 43 drivers/staging/wusbcore/host/whci/qset.c struct usb_device *usb_dev = urb->dev; urb 49 drivers/staging/wusbcore/host/whci/qset.c is_out = usb_pipeout(urb->pipe); urb 51 drivers/staging/wusbcore/host/whci/qset.c qset->max_packet = le16_to_cpu(urb->ep->desc.wMaxPacketSize); urb 67 drivers/staging/wusbcore/host/whci/qset.c if (usb_pipecontrol(urb->pipe)) urb 79 drivers/staging/wusbcore/host/whci/qset.c QH_INFO1_EP(usb_pipeendpoint(urb->pipe)) urb 81 drivers/staging/wusbcore/host/whci/qset.c | usb_pipe_to_qh_type(urb->pipe) urb 146 drivers/staging/wusbcore/host/whci/qset.c struct whc_qset *get_qset(struct whc *whc, struct urb *urb, urb 151 drivers/staging/wusbcore/host/whci/qset.c qset = urb->ep->hcpriv; urb 157 drivers/staging/wusbcore/host/whci/qset.c qset->ep = urb->ep; urb 158 drivers/staging/wusbcore/host/whci/qset.c urb->ep->hcpriv = qset; urb 159 drivers/staging/wusbcore/host/whci/qset.c qset_fill_qh(whc, qset, urb); urb 187 drivers/staging/wusbcore/host/whci/qset.c || (qset->pause_after_urb && std->urb != qset->pause_after_urb)) urb 196 drivers/staging/wusbcore/host/whci/qset.c if (usb_pipecontrol(std->urb->pipe)) urb 197 drivers/staging/wusbcore/host/whci/qset.c memcpy(qtd->setup, std->urb->setup_packet, 8); urb 201 drivers/staging/wusbcore/host/whci/qset.c if (whc_std_last(std) && usb_pipeout(std->urb->pipe)) urb 215 drivers/staging/wusbcore/host/whci/qset.c } else if (usb_pipein(std->urb->pipe)) urb 216 drivers/staging/wusbcore/host/whci/qset.c qset->pause_after_urb = std->urb; urb 291 drivers/staging/wusbcore/host/whci/qset.c bool is_out = usb_pipeout(std->urb->pipe); urb 320 drivers/staging/wusbcore/host/whci/qset.c struct urb *urb) urb 325 drivers/staging/wusbcore/host/whci/qset.c if (std->urb != urb) urb 336 drivers/staging/wusbcore/host/whci/qset.c static void qset_free_stds(struct whc_qset *qset, struct urb *urb) urb 341 drivers/staging/wusbcore/host/whci/qset.c if (std->urb == urb) urb 401 drivers/staging/wusbcore/host/whci/qset.c qset_remove_urb(whc, qset, wurb->urb, wurb->status); urb 406 drivers/staging/wusbcore/host/whci/qset.c struct urb *urb, gfp_t mem_flags) urb 414 drivers/staging/wusbcore/host/whci/qset.c std->urb = urb; urb 423 drivers/staging/wusbcore/host/whci/qset.c static int qset_add_urb_sg(struct whc *whc, struct whc_qset *qset, struct urb *urb, urb 436 drivers/staging/wusbcore/host/whci/qset.c remaining = urb->transfer_buffer_length; urb 438 drivers/staging/wusbcore/host/whci/qset.c for_each_sg(urb->sg, sg, urb->num_mapped_sgs, i) { urb 472 drivers/staging/wusbcore/host/whci/qset.c std = qset_new_std(whc, qset, urb, mem_flags); urb 545 drivers/staging/wusbcore/host/whci/qset.c struct urb *urb, gfp_t mem_flags) urb 547 drivers/staging/wusbcore/host/whci/qset.c bool is_out = usb_pipeout(urb->pipe); urb 559 drivers/staging/wusbcore/host/whci/qset.c remaining = urb->transfer_buffer_length; urb 561 drivers/staging/wusbcore/host/whci/qset.c for_each_sg(urb->sg, sg, urb->num_mapped_sgs, i) { urb 575 drivers/staging/wusbcore/host/whci/qset.c std = qset_new_std(whc, qset, urb, mem_flags); urb 631 drivers/staging/wusbcore/host/whci/qset.c int qset_add_urb(struct whc *whc, struct whc_qset *qset, struct urb *urb, urb 635 drivers/staging/wusbcore/host/whci/qset.c int remaining = urb->transfer_buffer_length; urb 636 drivers/staging/wusbcore/host/whci/qset.c u64 transfer_dma = urb->transfer_dma; urb 643 drivers/staging/wusbcore/host/whci/qset.c urb->hcpriv = wurb; urb 645 drivers/staging/wusbcore/host/whci/qset.c wurb->urb = urb; urb 648 drivers/staging/wusbcore/host/whci/qset.c if (urb->num_sgs) { urb 649 drivers/staging/wusbcore/host/whci/qset.c ret = qset_add_urb_sg(whc, qset, urb, mem_flags); urb 651 drivers/staging/wusbcore/host/whci/qset.c qset_free_stds(qset, urb); urb 652 drivers/staging/wusbcore/host/whci/qset.c ret = qset_add_urb_sg_linearize(whc, qset, urb, mem_flags); urb 671 drivers/staging/wusbcore/host/whci/qset.c std = qset_new_std(whc, qset, urb, mem_flags); urb 690 drivers/staging/wusbcore/host/whci/qset.c qset_free_stds(qset, urb); urb 700 drivers/staging/wusbcore/host/whci/qset.c struct urb *urb, int status) urb 703 drivers/staging/wusbcore/host/whci/qset.c struct whc_urb *wurb = urb->hcpriv; urb 705 drivers/staging/wusbcore/host/whci/qset.c usb_hcd_unlink_urb_from_ep(&wusbhc->usb_hcd, urb); urb 708 drivers/staging/wusbcore/host/whci/qset.c wusbhc_giveback_urb(wusbhc, urb, status); urb 719 drivers/staging/wusbcore/host/whci/qset.c static int get_urb_status_from_qtd(struct urb *urb, u32 status) urb 723 drivers/staging/wusbcore/host/whci/qset.c return usb_pipein(urb->pipe) ? -ENOSR : -ECOMM; urb 730 drivers/staging/wusbcore/host/whci/qset.c if (usb_pipein(urb->pipe) urb 731 drivers/staging/wusbcore/host/whci/qset.c && (urb->transfer_flags & URB_SHORT_NOT_OK) urb 732 drivers/staging/wusbcore/host/whci/qset.c && urb->actual_length < urb->transfer_buffer_length) urb 749 drivers/staging/wusbcore/host/whci/qset.c struct urb *urb = std->urb; urb 755 drivers/staging/wusbcore/host/whci/qset.c urb->actual_length += std->len - QTD_STS_TO_LEN(status); urb 757 drivers/staging/wusbcore/host/whci/qset.c if (usb_pipein(urb->pipe) && (status & QTD_STS_LAST_PKT)) urb 770 drivers/staging/wusbcore/host/whci/qset.c qset_remove_qtds(whc, qset, urb); urb 771 drivers/staging/wusbcore/host/whci/qset.c qset_remove_urb(whc, qset, urb, get_urb_status_from_qtd(urb, status)); urb 801 drivers/staging/wusbcore/host/whci/qset.c struct urb *urb = std->urb; urb 804 drivers/staging/wusbcore/host/whci/qset.c urb_status = get_urb_status_from_qtd(urb, le32_to_cpu(qtd->status)); urb 806 drivers/staging/wusbcore/host/whci/qset.c qset_remove_qtds(whc, qset, urb); urb 807 drivers/staging/wusbcore/host/whci/qset.c qset_remove_urb(whc, qset, urb, urb_status); urb 83 drivers/staging/wusbcore/host/whci/whcd.h struct urb *urb; urb 107 drivers/staging/wusbcore/host/whci/whcd.h struct urb *urb; urb 162 drivers/staging/wusbcore/host/whci/whcd.h int asl_urb_enqueue(struct whc *whc, struct urb *urb, gfp_t mem_flags); urb 163 drivers/staging/wusbcore/host/whci/whcd.h int asl_urb_dequeue(struct whc *whc, struct urb *urb, int status); urb 172 drivers/staging/wusbcore/host/whci/whcd.h int pzl_urb_enqueue(struct whc *whc, struct urb *urb, gfp_t mem_flags); urb 173 drivers/staging/wusbcore/host/whci/whcd.h int pzl_urb_dequeue(struct whc *whc, struct urb *urb, int status); urb 180 drivers/staging/wusbcore/host/whci/whcd.h struct whc_qset *get_qset(struct whc *whc, struct urb *urb, gfp_t mem_flags); urb 184 drivers/staging/wusbcore/host/whci/whcd.h int qset_add_urb(struct whc *whc, struct whc_qset *qset, struct urb *urb, urb 188 drivers/staging/wusbcore/host/whci/whcd.h struct urb *urb, int status); urb 248 drivers/staging/wusbcore/host/whci/whci-hc.h struct urb *pause_after_urb; urb 185 drivers/staging/wusbcore/wa-hc.h struct urb *nep_urb; /* Notification EndPoint [lockless] */ urb 207 drivers/staging/wusbcore/wa-hc.h struct urb *dti_urb; /* URB for reading xfer results */ urb 209 drivers/staging/wusbcore/wa-hc.h struct urb buf_in_urbs[WA_MAX_BUF_IN_URBS]; urb 258 drivers/staging/wusbcore/wa-hc.h struct urb *urb = wa->nep_urb; urb 259 drivers/staging/wusbcore/wa-hc.h urb->transfer_buffer = wa->nep_buffer; urb 260 drivers/staging/wusbcore/wa-hc.h urb->transfer_buffer_length = wa->nep_buffer_size; urb 261 drivers/staging/wusbcore/wa-hc.h return usb_submit_urb(urb, gfp_mask); urb 314 drivers/staging/wusbcore/wa-hc.h struct urb *, gfp_t); urb 342 drivers/staging/wusbcore/wa-hc.h struct urb *, gfp_t); urb 343 drivers/staging/wusbcore/wa-hc.h extern int wa_urb_dequeue(struct wahc *, struct urb *, int); urb 206 drivers/staging/wusbcore/wa-nep.c static void wa_nep_cb(struct urb *urb) urb 209 drivers/staging/wusbcore/wa-nep.c struct wahc *wa = urb->context; urb 212 drivers/staging/wusbcore/wa-nep.c switch (result = urb->status) { urb 214 drivers/staging/wusbcore/wa-nep.c result = wa_nep_queue(wa, urb->actual_length); urb 222 drivers/staging/wusbcore/wa-nep.c dev_dbg(dev, "NEP: going down %d\n", urb->status); urb 232 drivers/staging/wusbcore/wa-nep.c dev_err(dev, "NEP: URB error %d\n", urb->status); urb 300 drivers/staging/wusbcore/wa-rpipe.c struct usb_host_endpoint *ep, struct urb *urb, gfp_t gfp) urb 304 drivers/staging/wusbcore/wa-rpipe.c struct usb_device *usb_dev = urb->dev; urb 331 drivers/staging/wusbcore/wa-rpipe.c wusb_port_no_to_idx(urb->dev->portnum); urb 333 drivers/staging/wusbcore/wa-rpipe.c rpipe->descr.bSpeed = usb_pipeendpoint(urb->pipe) == 0 ? urb 337 drivers/staging/wusbcore/wa-rpipe.c urb->dev->devnum, urb->dev->devnum | unauth, urb 339 drivers/staging/wusbcore/wa-rpipe.c usb_pipeendpoint(urb->pipe), rpipe->descr.bSpeed); urb 384 drivers/staging/wusbcore/wa-rpipe.c const struct urb *urb, gfp_t gfp) urb 388 drivers/staging/wusbcore/wa-rpipe.c u8 portnum = wusb_port_no_to_idx(urb->dev->portnum); urb 401 drivers/staging/wusbcore/wa-rpipe.c AIM_CHECK(bSpeed, usb_pipeendpoint(urb->pipe) == 0 ? urb 424 drivers/staging/wusbcore/wa-rpipe.c struct urb *urb, gfp_t gfp) urb 435 drivers/staging/wusbcore/wa-rpipe.c result = rpipe_check_aim(rpipe, wa, ep, urb, gfp); urb 450 drivers/staging/wusbcore/wa-rpipe.c result = rpipe_aim(rpipe, wa, ep, urb, gfp); urb 104 drivers/staging/wusbcore/wa-xfer.c struct urb tr_urb; /* transfer request urb. */ urb 105 drivers/staging/wusbcore/wa-xfer.c struct urb *isoc_pack_desc_urb; /* for isoc packet descriptor. */ urb 106 drivers/staging/wusbcore/wa-xfer.c struct urb *dto_urb; /* for data output. */ urb 141 drivers/staging/wusbcore/wa-xfer.c struct urb *urb; /* URB we are transferring for */ urb 272 drivers/staging/wusbcore/wa-xfer.c usb_hcd_unlink_urb_from_ep(&(xfer->wa->wusb->usb_hcd), xfer->urb); urb 275 drivers/staging/wusbcore/wa-xfer.c wusbhc_giveback_urb(xfer->wa->wusb, xfer->urb, xfer->result); urb 328 drivers/staging/wusbcore/wa-xfer.c struct urb *urb = xfer->urb; urb 334 drivers/staging/wusbcore/wa-xfer.c urb->actual_length = 0; urb 343 drivers/staging/wusbcore/wa-xfer.c urb->status = -EINVAL; urb 346 drivers/staging/wusbcore/wa-xfer.c urb->actual_length += seg->result; urb 347 drivers/staging/wusbcore/wa-xfer.c if (!(usb_pipeisoc(xfer->urb->pipe)) urb 354 drivers/staging/wusbcore/wa-xfer.c seg->result, urb->actual_length); urb 424 drivers/staging/wusbcore/wa-xfer.c struct urb urb; urb 429 drivers/staging/wusbcore/wa-xfer.c static void __wa_xfer_abort_cb(struct urb *urb) urb 431 drivers/staging/wusbcore/wa-xfer.c struct wa_xfer_abort_buffer *b = urb->context; urb 439 drivers/staging/wusbcore/wa-xfer.c if (urb->status < 0) { urb 445 drivers/staging/wusbcore/wa-xfer.c __func__, urb->status); urb 481 drivers/staging/wusbcore/wa-xfer.c usb_put_urb(&b->urb); urb 510 drivers/staging/wusbcore/wa-xfer.c usb_init_urb(&b->urb); urb 511 drivers/staging/wusbcore/wa-xfer.c usb_fill_bulk_urb(&b->urb, xfer->wa->usb_dev, urb 515 drivers/staging/wusbcore/wa-xfer.c result = usb_submit_urb(&b->urb, GFP_ATOMIC); urb 542 drivers/staging/wusbcore/wa-xfer.c xfer->urb->iso_frame_desc; urb 544 drivers/staging/wusbcore/wa-xfer.c while ((index < xfer->urb->number_of_packets) urb 584 drivers/staging/wusbcore/wa-xfer.c struct urb *urb = xfer->urb; urb 606 drivers/staging/wusbcore/wa-xfer.c xfer->is_inbound = urb->pipe & USB_DIR_IN ? 1 : 0; urb 607 drivers/staging/wusbcore/wa-xfer.c xfer->is_dma = urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP ? 1 : 0; urb 631 drivers/staging/wusbcore/wa-xfer.c while (index < urb->number_of_packets) { urb 638 drivers/staging/wusbcore/wa-xfer.c xfer->segs = DIV_ROUND_UP(urb->transfer_buffer_length, urb 646 drivers/staging/wusbcore/wa-xfer.c (urb->transfer_buffer_length/xfer->seg_size), urb 660 drivers/staging/wusbcore/wa-xfer.c xfer->urb->iso_frame_desc; urb 697 drivers/staging/wusbcore/wa-xfer.c memcpy(&xfer_ctl->baSetupData, xfer->urb->setup_packet, urb 732 drivers/staging/wusbcore/wa-xfer.c static void wa_seg_dto_cb(struct urb *urb) urb 734 drivers/staging/wusbcore/wa-xfer.c struct wa_seg *seg = urb->context; urb 746 drivers/staging/wusbcore/wa-xfer.c kfree(urb->sg); urb 747 drivers/staging/wusbcore/wa-xfer.c urb->sg = NULL; urb 752 drivers/staging/wusbcore/wa-xfer.c if (usb_pipeisoc(xfer->urb->pipe)) { urb 775 drivers/staging/wusbcore/wa-xfer.c switch (urb->status) { urb 778 drivers/staging/wusbcore/wa-xfer.c seg->result += urb->actual_length; urb 819 drivers/staging/wusbcore/wa-xfer.c wa_xfer_id(xfer), seg->index, urb->status); urb 839 drivers/staging/wusbcore/wa-xfer.c seg->result = urb->status; urb 869 drivers/staging/wusbcore/wa-xfer.c static void wa_seg_iso_pack_desc_cb(struct urb *urb) urb 871 drivers/staging/wusbcore/wa-xfer.c struct wa_seg *seg = urb->context; urb 880 drivers/staging/wusbcore/wa-xfer.c switch (urb->status) { urb 900 drivers/staging/wusbcore/wa-xfer.c wa_xfer_id(xfer), seg->index, urb->status); urb 908 drivers/staging/wusbcore/wa-xfer.c seg->result = urb->status; urb 942 drivers/staging/wusbcore/wa-xfer.c static void wa_seg_tr_cb(struct urb *urb) urb 944 drivers/staging/wusbcore/wa-xfer.c struct wa_seg *seg = urb->context; urb 953 drivers/staging/wusbcore/wa-xfer.c switch (urb->status) { urb 962 drivers/staging/wusbcore/wa-xfer.c !(usb_pipeisoc(xfer->urb->pipe))) urb 977 drivers/staging/wusbcore/wa-xfer.c urb->status); urb 986 drivers/staging/wusbcore/wa-xfer.c seg->result = urb->status; urb 1092 drivers/staging/wusbcore/wa-xfer.c seg->dto_urb->transfer_dma = xfer->urb->transfer_dma + urb 1093 drivers/staging/wusbcore/wa-xfer.c xfer->urb->iso_frame_desc[curr_iso_frame].offset; urb 1099 drivers/staging/wusbcore/wa-xfer.c xfer->urb->iso_frame_desc[curr_iso_frame].length; urb 1112 drivers/staging/wusbcore/wa-xfer.c xfer->urb->transfer_dma + buf_itr_offset; urb 1123 drivers/staging/wusbcore/wa-xfer.c if (xfer->urb->transfer_buffer) { urb 1125 drivers/staging/wusbcore/wa-xfer.c xfer->urb->transfer_buffer + urb 1139 drivers/staging/wusbcore/wa-xfer.c xfer->urb->sg, urb 1174 drivers/staging/wusbcore/wa-xfer.c buf_size = xfer->urb->transfer_buffer_length; urb 1183 drivers/staging/wusbcore/wa-xfer.c if (usb_pipeisoc(xfer->urb->pipe)) { urb 1207 drivers/staging/wusbcore/wa-xfer.c if (usb_pipeisoc(xfer->urb->pipe)) { urb 1245 drivers/staging/wusbcore/wa-xfer.c if (usb_pipeisoc(xfer->urb->pipe)) { urb 1296 drivers/staging/wusbcore/wa-xfer.c static int __wa_xfer_setup(struct wa_xfer *xfer, struct urb *urb) urb 1347 drivers/staging/wusbcore/wa-xfer.c transfer_size = urb->transfer_buffer_length; urb 1643 drivers/staging/wusbcore/wa-xfer.c struct urb *urb = xfer->urb; urb 1649 drivers/staging/wusbcore/wa-xfer.c result = rpipe_get_by_ep(wa, xfer->ep, urb, xfer->gfp); urb 1657 drivers/staging/wusbcore/wa-xfer.c if (urb->dev == NULL) { urb 1662 drivers/staging/wusbcore/wa-xfer.c wusb_dev = __wusb_dev_get_by_usb_dev(wusbhc, urb->dev); urb 1665 drivers/staging/wusbcore/wa-xfer.c dev_err(&(urb->dev->dev), "%s: error wusb dev gone\n", urb 1673 drivers/staging/wusbcore/wa-xfer.c result = urb->status; urb 1674 drivers/staging/wusbcore/wa-xfer.c if (urb->status != -EINPROGRESS) { urb 1675 drivers/staging/wusbcore/wa-xfer.c dev_err(&(urb->dev->dev), "%s: error_dequeued\n", __func__); urb 1679 drivers/staging/wusbcore/wa-xfer.c result = __wa_xfer_setup(xfer, urb); urb 1681 drivers/staging/wusbcore/wa-xfer.c dev_err(&(urb->dev->dev), "%s: error_xfer_setup\n", __func__); urb 1692 drivers/staging/wusbcore/wa-xfer.c dev_err(&(urb->dev->dev), "%s: error_xfer_submit\n", __func__); urb 1741 drivers/staging/wusbcore/wa-xfer.c struct urb *urb; urb 1757 drivers/staging/wusbcore/wa-xfer.c urb = xfer->urb; urb 1760 drivers/staging/wusbcore/wa-xfer.c usb_put_urb(urb); /* taken when queuing */ urb 1821 drivers/staging/wusbcore/wa-xfer.c struct urb *urb, gfp_t gfp) urb 1829 drivers/staging/wusbcore/wa-xfer.c if ((urb->transfer_buffer == NULL) urb 1830 drivers/staging/wusbcore/wa-xfer.c && (urb->sg == NULL) urb 1831 drivers/staging/wusbcore/wa-xfer.c && !(urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP) urb 1832 drivers/staging/wusbcore/wa-xfer.c && urb->transfer_buffer_length != 0) { urb 1833 drivers/staging/wusbcore/wa-xfer.c dev_err(dev, "BUG? urb %p: NULL xfer buffer & NODMA\n", urb); urb 1838 drivers/staging/wusbcore/wa-xfer.c result = usb_hcd_link_urb_to_ep(&(wa->wusb->usb_hcd), urb); urb 1849 drivers/staging/wusbcore/wa-xfer.c if (urb->status != -EINPROGRESS) /* cancelled */ urb 1853 drivers/staging/wusbcore/wa-xfer.c xfer->urb = urb; urb 1856 drivers/staging/wusbcore/wa-xfer.c urb->hcpriv = xfer; urb 1859 drivers/staging/wusbcore/wa-xfer.c xfer, urb, urb->pipe, urb->transfer_buffer_length, urb 1860 drivers/staging/wusbcore/wa-xfer.c urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP ? "dma" : "nodma", urb 1861 drivers/staging/wusbcore/wa-xfer.c urb->pipe & USB_DIR_IN ? "inbound" : "outbound", urb 1865 drivers/staging/wusbcore/wa-xfer.c usb_get_urb(urb); urb 1883 drivers/staging/wusbcore/wa-xfer.c usb_hcd_unlink_urb_from_ep(&(wa->wusb->usb_hcd), urb); urb 1894 drivers/staging/wusbcore/wa-xfer.c usb_hcd_unlink_urb_from_ep(&(wa->wusb->usb_hcd), urb); urb 1919 drivers/staging/wusbcore/wa-xfer.c int wa_urb_dequeue(struct wahc *wa, struct urb *urb, int status) urb 1931 drivers/staging/wusbcore/wa-xfer.c result = usb_hcd_check_unlink_urb(&(wa->wusb->usb_hcd), urb, status); urb 1932 drivers/staging/wusbcore/wa-xfer.c if ((result == 0) && urb->hcpriv) { urb 1937 drivers/staging/wusbcore/wa-xfer.c wa_xfer_get(urb->hcpriv); urb 1943 drivers/staging/wusbcore/wa-xfer.c xfer = urb->hcpriv; urb 2040 drivers/staging/wusbcore/wa-xfer.c xfer->result = urb->status; /* -ENOENT or -ECONNRESET */ urb 2058 drivers/staging/wusbcore/wa-xfer.c xfer->result = urb->status; urb 2062 drivers/staging/wusbcore/wa-xfer.c usb_put_urb(urb); /* we got a ref in enqueue() */ urb 2163 drivers/staging/wusbcore/wa-xfer.c struct urb *buf_in_urb, struct wa_xfer *xfer, struct wa_seg *seg) urb 2168 drivers/staging/wusbcore/wa-xfer.c xfer->urb->iso_frame_desc; urb 2204 drivers/staging/wusbcore/wa-xfer.c buf_in_urb->transfer_dma = xfer->urb->transfer_dma + urb 2218 drivers/staging/wusbcore/wa-xfer.c static int wa_populate_buf_in_urb(struct urb *buf_in_urb, struct wa_xfer *xfer, urb 2229 drivers/staging/wusbcore/wa-xfer.c buf_in_urb->transfer_dma = xfer->urb->transfer_dma urb 2239 drivers/staging/wusbcore/wa-xfer.c if (xfer->urb->transfer_buffer) { urb 2241 drivers/staging/wusbcore/wa-xfer.c xfer->urb->transfer_buffer urb 2251 drivers/staging/wusbcore/wa-xfer.c xfer->urb->sg, urb 2289 drivers/staging/wusbcore/wa-xfer.c struct urb *buf_in_urb = &(wa->buf_in_urbs[0]); urb 2330 drivers/staging/wusbcore/wa-xfer.c if (usb_pipeisoc(xfer->urb->pipe) urb 2336 drivers/staging/wusbcore/wa-xfer.c } else if (xfer->is_inbound && !usb_pipeisoc(xfer->urb->pipe) urb 2410 drivers/staging/wusbcore/wa-xfer.c wa_urb_dequeue(wa, xfer->urb, -ENOENT); urb 2430 drivers/staging/wusbcore/wa-xfer.c static int wa_process_iso_packet_status(struct wahc *wa, struct urb *urb) urb 2445 drivers/staging/wusbcore/wa-xfer.c urb->actual_length, urb->transfer_buffer); urb 2465 drivers/staging/wusbcore/wa-xfer.c if (urb->actual_length != expected_size) { urb 2467 drivers/staging/wusbcore/wa-xfer.c urb->actual_length, expected_size); urb 2477 drivers/staging/wusbcore/wa-xfer.c xfer->urb->start_frame = urb 2481 drivers/staging/wusbcore/wa-xfer.c xfer->urb->iso_frame_desc; urb 2501 drivers/staging/wusbcore/wa-xfer.c struct urb *buf_in_urb; urb 2527 drivers/staging/wusbcore/wa-xfer.c &(xfer->urb->iso_frame_desc[urb_frame_index]); urb 2582 drivers/staging/wusbcore/wa-xfer.c static void wa_buf_in_cb(struct urb *urb) urb 2584 drivers/staging/wusbcore/wa-xfer.c struct wa_seg *seg = urb->context; urb 2595 drivers/staging/wusbcore/wa-xfer.c kfree(urb->sg); urb 2596 drivers/staging/wusbcore/wa-xfer.c urb->sg = NULL; urb 2605 drivers/staging/wusbcore/wa-xfer.c if (usb_pipeisoc(xfer->urb->pipe)) { urb 2607 drivers/staging/wusbcore/wa-xfer.c xfer->urb->iso_frame_desc; urb 2630 drivers/staging/wusbcore/wa-xfer.c switch (urb->status) { urb 2634 drivers/staging/wusbcore/wa-xfer.c seg->result += urb->actual_length; urb 2639 drivers/staging/wusbcore/wa-xfer.c urb_frame_count = __wa_populate_buf_in_urb_isoc(wa, urb, urb 2644 drivers/staging/wusbcore/wa-xfer.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 2689 drivers/staging/wusbcore/wa-xfer.c urb->status); urb 2696 drivers/staging/wusbcore/wa-xfer.c seg->result = urb->status; urb 2750 drivers/staging/wusbcore/wa-xfer.c static void wa_dti_cb(struct urb *urb) urb 2753 drivers/staging/wusbcore/wa-xfer.c struct wahc *wa = urb->context; urb 2758 drivers/staging/wusbcore/wa-xfer.c BUG_ON(wa->dti_urb != urb); urb 2767 drivers/staging/wusbcore/wa-xfer.c urb->actual_length, urb->transfer_buffer); urb 2768 drivers/staging/wusbcore/wa-xfer.c if (urb->actual_length != sizeof(*xfer_result)) { urb 2770 drivers/staging/wusbcore/wa-xfer.c urb->actual_length, urb 2804 drivers/staging/wusbcore/wa-xfer.c dti_busy = wa_process_iso_packet_status(wa, urb); urb 2812 drivers/staging/wusbcore/wa-xfer.c dev_dbg(dev, "DTI: going down! %d\n", urb->status); urb 2824 drivers/staging/wusbcore/wa-xfer.c dev_err(dev, "DTI: URB error %d\n", urb->status); urb 409 drivers/staging/wusbcore/wusbhc.c void wusbhc_giveback_urb(struct wusbhc *wusbhc, struct urb *urb, int status) urb 412 drivers/staging/wusbcore/wusbhc.c urb->dev); urb 425 drivers/staging/wusbcore/wusbhc.c usb_hcd_giveback_urb(&wusbhc->usb_hcd, urb, status); urb 306 drivers/staging/wusbcore/wusbhc.h extern void wusbhc_giveback_urb(struct wusbhc *wusbhc, struct urb *urb, urb 187 drivers/usb/atm/cxacru.c struct urb *rcv_urb; urb 188 drivers/usb/atm/cxacru.c struct urb *snd_urb; urb 574 drivers/usb/atm/cxacru.c static void cxacru_blocking_completion(struct urb *urb) urb 576 drivers/usb/atm/cxacru.c complete(urb->context); urb 581 drivers/usb/atm/cxacru.c struct urb *urb; urb 588 drivers/usb/atm/cxacru.c usb_unlink_urb(timer->urb); urb 591 drivers/usb/atm/cxacru.c static int cxacru_start_wait_urb(struct urb *urb, struct completion *done, urb 595 drivers/usb/atm/cxacru.c .urb = urb, urb 605 drivers/usb/atm/cxacru.c *actual_length = urb->actual_length; urb 606 drivers/usb/atm/cxacru.c return urb->status; /* must read status after completion */ urb 134 drivers/usb/atm/speedtch.c struct urb *int_urb; urb 578 drivers/usb/atm/speedtch.c struct urb *int_urb = instance->int_urb; urb 594 drivers/usb/atm/speedtch.c static void speedtch_handle_int(struct urb *int_urb) urb 687 drivers/usb/atm/speedtch.c struct urb *int_urb = instance->int_urb; urb 131 drivers/usb/atm/ueagle-atm.c struct urb *urb_int; urb 2086 drivers/usb/atm/ueagle-atm.c static void uea_intr(struct urb *urb) urb 2088 drivers/usb/atm/ueagle-atm.c struct uea_softc *sc = urb->context; urb 2089 drivers/usb/atm/ueagle-atm.c struct intr_pkt *intr = urb->transfer_buffer; urb 2090 drivers/usb/atm/ueagle-atm.c int status = urb->status; urb 196 drivers/usb/atm/usbatm.c static struct urb *usbatm_pop_urb(struct usbatm_channel *channel) urb 198 drivers/usb/atm/usbatm.c struct urb *urb; urb 206 drivers/usb/atm/usbatm.c urb = list_entry(channel->list.next, struct urb, urb_list); urb 207 drivers/usb/atm/usbatm.c list_del(&urb->urb_list); urb 210 drivers/usb/atm/usbatm.c return urb; urb 213 drivers/usb/atm/usbatm.c static int usbatm_submit_urb(struct urb *urb) urb 215 drivers/usb/atm/usbatm.c struct usbatm_channel *channel = urb->context; urb 221 drivers/usb/atm/usbatm.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 225 drivers/usb/atm/usbatm.c __func__, urb, ret); urb 228 drivers/usb/atm/usbatm.c urb->status = -EAGAIN; urb 232 drivers/usb/atm/usbatm.c list_add(&urb->urb_list, &channel->list); urb 243 drivers/usb/atm/usbatm.c static void usbatm_complete(struct urb *urb) urb 245 drivers/usb/atm/usbatm.c struct usbatm_channel *channel = urb->context; urb 247 drivers/usb/atm/usbatm.c int status = urb->status; urb 256 drivers/usb/atm/usbatm.c list_add_tail(&urb->urb_list, &channel->list); urb 268 drivers/usb/atm/usbatm.c __func__, urb, status); urb 517 drivers/usb/atm/usbatm.c struct urb *urb; urb 519 drivers/usb/atm/usbatm.c while ((urb = usbatm_pop_urb(&instance->rx_channel))) { urb 521 drivers/usb/atm/usbatm.c "%s: processing urb 0x%p", __func__, urb); urb 523 drivers/usb/atm/usbatm.c if (usb_pipeisoc(urb->pipe)) { urb 529 drivers/usb/atm/usbatm.c for (i = 0; i < urb->number_of_packets; i++) { urb 530 drivers/usb/atm/usbatm.c if (!urb->iso_frame_desc[i].status) { urb 531 drivers/usb/atm/usbatm.c unsigned int actual_length = urb->iso_frame_desc[i].actual_length; urb 534 drivers/usb/atm/usbatm.c merge_start = (unsigned char *)urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 541 drivers/usb/atm/usbatm.c atm_rldbg(instance, "%s: status %d in frame %d!\n", __func__, urb->status, i); urb 552 drivers/usb/atm/usbatm.c if (!urb->status) urb 553 drivers/usb/atm/usbatm.c usbatm_extract_cells(instance, urb->transfer_buffer, urb->actual_length); urb 557 drivers/usb/atm/usbatm.c if (usbatm_submit_urb(urb)) urb 571 drivers/usb/atm/usbatm.c struct urb *urb = NULL; urb 580 drivers/usb/atm/usbatm.c if (!urb) { urb 581 drivers/usb/atm/usbatm.c urb = usbatm_pop_urb(&instance->tx_channel); urb 582 drivers/usb/atm/usbatm.c if (!urb) urb 584 drivers/usb/atm/usbatm.c buffer = urb->transfer_buffer; urb 585 drivers/usb/atm/usbatm.c bytes_written = (urb->status == -EAGAIN) ? urb 586 drivers/usb/atm/usbatm.c urb->transfer_buffer_length : 0; urb 595 drivers/usb/atm/usbatm.c __func__, bytes_written, skb, urb); urb 607 drivers/usb/atm/usbatm.c urb->transfer_buffer_length = bytes_written; urb 609 drivers/usb/atm/usbatm.c if (usbatm_submit_urb(urb)) urb 611 drivers/usb/atm/usbatm.c urb = NULL; urb 1018 drivers/usb/atm/usbatm.c instance = kzalloc(sizeof(*instance) + sizeof(struct urb *) * (num_rcv_urbs + num_snd_urbs), GFP_KERNEL); urb 1121 drivers/usb/atm/usbatm.c struct urb *urb; urb 1124 drivers/usb/atm/usbatm.c urb = usb_alloc_urb(iso_packets, GFP_KERNEL); urb 1125 drivers/usb/atm/usbatm.c if (!urb) { urb 1130 drivers/usb/atm/usbatm.c instance->urbs[i] = urb; urb 1139 drivers/usb/atm/usbatm.c usb_fill_bulk_urb(urb, instance->usb_dev, channel->endpoint, urb 1143 drivers/usb/atm/usbatm.c urb->interval = 1; urb 1144 drivers/usb/atm/usbatm.c urb->transfer_flags = URB_ISO_ASAP; urb 1145 drivers/usb/atm/usbatm.c urb->number_of_packets = iso_packets; urb 1147 drivers/usb/atm/usbatm.c urb->iso_frame_desc[j].offset = channel->packet_size * j; urb 1148 drivers/usb/atm/usbatm.c urb->iso_frame_desc[j].length = channel->packet_size; urb 1154 drivers/usb/atm/usbatm.c list_add_tail(&urb->urb_list, &channel->list); urb 1157 drivers/usb/atm/usbatm.c __func__, urb->transfer_buffer, urb->transfer_buffer_length, urb); urb 167 drivers/usb/atm/usbatm.h struct urb *urbs[0]; urb 107 drivers/usb/c67x00/c67x00-hcd.h int c67x00_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags); urb 108 drivers/usb/c67x00/c67x00-hcd.h int c67x00_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); urb 62 drivers/usb/c67x00/c67x00-sched.c struct urb *urb; urb 75 drivers/usb/c67x00/c67x00-sched.c struct urb *urb; urb 141 drivers/usb/c67x00/c67x00-sched.c dev_dbg(dev, "urb: 0x%p\n", td->urb); urb 198 drivers/usb/c67x00/c67x00-sched.c static void c67x00_release_urb(struct c67x00_hcd *c67x00, struct urb *urb) urb 203 drivers/usb/c67x00/c67x00-sched.c BUG_ON(!urb); urb 207 drivers/usb/c67x00/c67x00-sched.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 219 drivers/usb/c67x00/c67x00-sched.c if (urb == td->urb) urb 220 drivers/usb/c67x00/c67x00-sched.c td->urb = NULL; urb 222 drivers/usb/c67x00/c67x00-sched.c urbp = urb->hcpriv; urb 223 drivers/usb/c67x00/c67x00-sched.c urb->hcpriv = NULL; urb 231 drivers/usb/c67x00/c67x00-sched.c c67x00_ep_data_alloc(struct c67x00_hcd *c67x00, struct urb *urb) urb 233 drivers/usb/c67x00/c67x00-sched.c struct usb_host_endpoint *hep = urb->ep; urb 259 drivers/usb/c67x00/c67x00-sched.c ep_data->dev = usb_get_dev(urb->dev); urb 267 drivers/usb/c67x00/c67x00-sched.c type = usb_pipetype(urb->pipe); urb 343 drivers/usb/c67x00/c67x00-sched.c struct urb *urb, gfp_t mem_flags) urb 349 drivers/usb/c67x00/c67x00-sched.c int port = get_root_port(urb->dev)-1; urb 366 drivers/usb/c67x00/c67x00-sched.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 371 drivers/usb/c67x00/c67x00-sched.c urbp->urb = urb; urb 374 drivers/usb/c67x00/c67x00-sched.c urbp->ep_data = c67x00_ep_data_alloc(c67x00, urb); urb 384 drivers/usb/c67x00/c67x00-sched.c urb->hcpriv = urbp; urb 386 drivers/usb/c67x00/c67x00-sched.c urb->actual_length = 0; /* Nothing received/transmitted yet */ urb 388 drivers/usb/c67x00/c67x00-sched.c switch (usb_pipetype(urb->pipe)) { urb 390 drivers/usb/c67x00/c67x00-sched.c urb->interval = SETUP_STAGE; urb 402 drivers/usb/c67x00/c67x00-sched.c urb->start_frame = urbp->ep_data->next_frame; urb 405 drivers/usb/c67x00/c67x00-sched.c struct urb *last_urb; urb 409 drivers/usb/c67x00/c67x00-sched.c hep_node)->urb; urb 410 drivers/usb/c67x00/c67x00-sched.c urb->start_frame = urb 432 drivers/usb/c67x00/c67x00-sched.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 441 drivers/usb/c67x00/c67x00-sched.c int c67x00_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 448 drivers/usb/c67x00/c67x00-sched.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 452 drivers/usb/c67x00/c67x00-sched.c c67x00_release_urb(c67x00, urb); urb 453 drivers/usb/c67x00/c67x00-sched.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 456 drivers/usb/c67x00/c67x00-sched.c usb_hcd_giveback_urb(hcd, urb, status); urb 474 drivers/usb/c67x00/c67x00-sched.c c67x00_giveback_urb(struct c67x00_hcd *c67x00, struct urb *urb, int status) urb 478 drivers/usb/c67x00/c67x00-sched.c if (!urb) urb 481 drivers/usb/c67x00/c67x00-sched.c urbp = urb->hcpriv; urb 486 drivers/usb/c67x00/c67x00-sched.c c67x00_release_urb(c67x00, urb); urb 487 drivers/usb/c67x00/c67x00-sched.c usb_hcd_unlink_urb_from_ep(c67x00_hcd_to_hcd(c67x00), urb); urb 489 drivers/usb/c67x00/c67x00-sched.c usb_hcd_giveback_urb(c67x00_hcd_to_hcd(c67x00), urb, urbp->status); urb 495 drivers/usb/c67x00/c67x00-sched.c static int c67x00_claim_frame_bw(struct c67x00_hcd *c67x00, struct urb *urb, urb 498 drivers/usb/c67x00/c67x00-sched.c struct c67x00_urb_priv *urbp = urb->hcpriv; urb 518 drivers/usb/c67x00/c67x00-sched.c if (usb_pipein(urb->pipe)) urb 524 drivers/usb/c67x00/c67x00-sched.c if (usb_pipeisoc(urb->pipe)) urb 525 drivers/usb/c67x00/c67x00-sched.c bit_time = usb_pipein(urb->pipe) ? 9050 : 7840; urb 563 drivers/usb/c67x00/c67x00-sched.c static int c67x00_create_td(struct c67x00_hcd *c67x00, struct urb *urb, urb 568 drivers/usb/c67x00/c67x00-sched.c struct c67x00_urb_priv *urbp = urb->hcpriv; urb 573 drivers/usb/c67x00/c67x00-sched.c if (c67x00_claim_frame_bw(c67x00, urb, len, usb_pipeisoc(urb->pipe) urb 574 drivers/usb/c67x00/c67x00-sched.c || usb_pipeint(urb->pipe))) urb 581 drivers/usb/c67x00/c67x00-sched.c td->pipe = urb->pipe; urb 628 drivers/usb/c67x00/c67x00-sched.c td->urb = urb; urb 645 drivers/usb/c67x00/c67x00-sched.c static int c67x00_add_data_urb(struct c67x00_hcd *c67x00, struct urb *urb) urb 654 drivers/usb/c67x00/c67x00-sched.c toggle = usb_gettoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 655 drivers/usb/c67x00/c67x00-sched.c usb_pipeout(urb->pipe)); urb 656 drivers/usb/c67x00/c67x00-sched.c remaining = urb->transfer_buffer_length - urb->actual_length; urb 658 drivers/usb/c67x00/c67x00-sched.c maxps = usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe)); urb 660 drivers/usb/c67x00/c67x00-sched.c need_empty = (urb->transfer_flags & URB_ZERO_PACKET) && urb 661 drivers/usb/c67x00/c67x00-sched.c usb_pipeout(urb->pipe) && !(remaining % maxps); urb 671 drivers/usb/c67x00/c67x00-sched.c pid = usb_pipeout(urb->pipe) ? USB_PID_OUT : USB_PID_IN; urb 672 drivers/usb/c67x00/c67x00-sched.c td_buf = urb->transfer_buffer + urb->transfer_buffer_length - urb 674 drivers/usb/c67x00/c67x00-sched.c ret = c67x00_create_td(c67x00, urb, td_buf, len, pid, toggle, urb 681 drivers/usb/c67x00/c67x00-sched.c if (usb_pipecontrol(urb->pipe)) urb 691 drivers/usb/c67x00/c67x00-sched.c static int c67x00_add_ctrl_urb(struct c67x00_hcd *c67x00, struct urb *urb) urb 696 drivers/usb/c67x00/c67x00-sched.c switch (urb->interval) { urb 699 drivers/usb/c67x00/c67x00-sched.c ret = c67x00_create_td(c67x00, urb, urb->setup_packet, urb 703 drivers/usb/c67x00/c67x00-sched.c urb->interval = SETUP_STAGE; urb 704 drivers/usb/c67x00/c67x00-sched.c usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 705 drivers/usb/c67x00/c67x00-sched.c usb_pipeout(urb->pipe), 1); urb 708 drivers/usb/c67x00/c67x00-sched.c if (urb->transfer_buffer_length) { urb 709 drivers/usb/c67x00/c67x00-sched.c ret = c67x00_add_data_urb(c67x00, urb); urb 715 drivers/usb/c67x00/c67x00-sched.c pid = !usb_pipeout(urb->pipe) ? USB_PID_OUT : USB_PID_IN; urb 716 drivers/usb/c67x00/c67x00-sched.c ret = c67x00_create_td(c67x00, urb, NULL, 0, pid, 1, urb 729 drivers/usb/c67x00/c67x00-sched.c static int c67x00_add_int_urb(struct c67x00_hcd *c67x00, struct urb *urb) urb 731 drivers/usb/c67x00/c67x00-sched.c struct c67x00_urb_priv *urbp = urb->hcpriv; urb 735 drivers/usb/c67x00/c67x00-sched.c frame_add(urbp->ep_data->next_frame, urb->interval); urb 736 drivers/usb/c67x00/c67x00-sched.c return c67x00_add_data_urb(c67x00, urb); urb 741 drivers/usb/c67x00/c67x00-sched.c static int c67x00_add_iso_urb(struct c67x00_hcd *c67x00, struct urb *urb) urb 743 drivers/usb/c67x00/c67x00-sched.c struct c67x00_urb_priv *urbp = urb->hcpriv; urb 749 drivers/usb/c67x00/c67x00-sched.c BUG_ON(urbp->cnt >= urb->number_of_packets); urb 751 drivers/usb/c67x00/c67x00-sched.c td_buf = urb->transfer_buffer + urb 752 drivers/usb/c67x00/c67x00-sched.c urb->iso_frame_desc[urbp->cnt].offset; urb 753 drivers/usb/c67x00/c67x00-sched.c len = urb->iso_frame_desc[urbp->cnt].length; urb 754 drivers/usb/c67x00/c67x00-sched.c pid = usb_pipeout(urb->pipe) ? USB_PID_OUT : USB_PID_IN; urb 756 drivers/usb/c67x00/c67x00-sched.c ret = c67x00_create_td(c67x00, urb, td_buf, len, pid, 0, urb 761 drivers/usb/c67x00/c67x00-sched.c urb->iso_frame_desc[urbp->cnt].actual_length = 0; urb 762 drivers/usb/c67x00/c67x00-sched.c urb->iso_frame_desc[urbp->cnt].status = ret; urb 763 drivers/usb/c67x00/c67x00-sched.c if (urbp->cnt + 1 == urb->number_of_packets) urb 764 drivers/usb/c67x00/c67x00-sched.c c67x00_giveback_urb(c67x00, urb, 0); urb 768 drivers/usb/c67x00/c67x00-sched.c frame_add(urbp->ep_data->next_frame, urb->interval); urb 777 drivers/usb/c67x00/c67x00-sched.c int (*add)(struct c67x00_hcd *, struct urb *)) urb 780 drivers/usb/c67x00/c67x00-sched.c struct urb *urb; urb 787 drivers/usb/c67x00/c67x00-sched.c urb = list_entry(ep_data->queue.next, urb 789 drivers/usb/c67x00/c67x00-sched.c hep_node)->urb; urb 790 drivers/usb/c67x00/c67x00-sched.c add(c67x00, urb); urb 860 drivers/usb/c67x00/c67x00-sched.c struct urb *urb = td->urb; urb 873 drivers/usb/c67x00/c67x00-sched.c remaining = urb->transfer_buffer_length - urb->actual_length; urb 874 drivers/usb/c67x00/c67x00-sched.c need_empty = (urb->transfer_flags & URB_ZERO_PACKET) && urb 875 drivers/usb/c67x00/c67x00-sched.c usb_pipeout(urb->pipe) && !(remaining % maxps); urb 909 drivers/usb/c67x00/c67x00-sched.c struct urb *urb = td->urb; urb 911 drivers/usb/c67x00/c67x00-sched.c if (!urb) urb 914 drivers/usb/c67x00/c67x00-sched.c urb->actual_length += td_actual_bytes(td); urb 921 drivers/usb/c67x00/c67x00-sched.c urb->interval = urb 922 drivers/usb/c67x00/c67x00-sched.c urb->transfer_buffer_length ? urb 925 drivers/usb/c67x00/c67x00-sched.c urb->actual_length = 0; urb 930 drivers/usb/c67x00/c67x00-sched.c urb->interval = STATUS_STAGE; urb 936 drivers/usb/c67x00/c67x00-sched.c urb->interval = 0; urb 937 drivers/usb/c67x00/c67x00-sched.c c67x00_giveback_urb(c67x00, urb, 0); urb 946 drivers/usb/c67x00/c67x00-sched.c c67x00_giveback_urb(c67x00, urb, 0); urb 954 drivers/usb/c67x00/c67x00-sched.c struct urb *urb = td->urb; urb 957 drivers/usb/c67x00/c67x00-sched.c if (!urb) urb 963 drivers/usb/c67x00/c67x00-sched.c urb->error_count++; urb 965 drivers/usb/c67x00/c67x00-sched.c urb->iso_frame_desc[cnt].actual_length = td_actual_bytes(td); urb 966 drivers/usb/c67x00/c67x00-sched.c urb->iso_frame_desc[cnt].status = c67x00_td_to_error(c67x00, td); urb 967 drivers/usb/c67x00/c67x00-sched.c if (cnt + 1 == urb->number_of_packets) /* Last packet */ urb 968 drivers/usb/c67x00/c67x00-sched.c c67x00_giveback_urb(c67x00, urb, 0); urb 980 drivers/usb/c67x00/c67x00-sched.c struct urb *urb; urb 987 drivers/usb/c67x00/c67x00-sched.c urb = td->urb; /* urb can be NULL! */ urb 1002 drivers/usb/c67x00/c67x00-sched.c c67x00_giveback_urb(c67x00, urb, urb 1017 drivers/usb/c67x00/c67x00-sched.c c67x00_giveback_urb(c67x00, urb, -EOVERFLOW); urb 156 drivers/usb/class/cdc-acm.c usb_kill_urb(acm->wb[i].urb); urb 221 drivers/usb/class/cdc-acm.c wb->urb->transfer_buffer = wb->buf; urb 222 drivers/usb/class/cdc-acm.c wb->urb->transfer_dma = wb->dmah; urb 223 drivers/usb/class/cdc-acm.c wb->urb->transfer_buffer_length = wb->len; urb 224 drivers/usb/class/cdc-acm.c wb->urb->dev = acm->dev; urb 226 drivers/usb/class/cdc-acm.c rc = usb_submit_urb(wb->urb, GFP_ATOMIC); urb 341 drivers/usb/class/cdc-acm.c static void acm_ctrl_irq(struct urb *urb) urb 343 drivers/usb/class/cdc-acm.c struct acm *acm = urb->context; urb 344 drivers/usb/class/cdc-acm.c struct usb_cdc_notification *dr = urb->transfer_buffer; urb 345 drivers/usb/class/cdc-acm.c unsigned int current_size = urb->actual_length; urb 348 drivers/usb/class/cdc-acm.c int status = urb->status; urb 402 drivers/usb/class/cdc-acm.c urb->transfer_buffer, copy_size); urb 414 drivers/usb/class/cdc-acm.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 462 drivers/usb/class/cdc-acm.c static void acm_process_read_urb(struct acm *acm, struct urb *urb) urb 464 drivers/usb/class/cdc-acm.c if (!urb->actual_length) urb 467 drivers/usb/class/cdc-acm.c tty_insert_flip_string(&acm->port, urb->transfer_buffer, urb 468 drivers/usb/class/cdc-acm.c urb->actual_length); urb 472 drivers/usb/class/cdc-acm.c static void acm_read_bulk_callback(struct urb *urb) urb 474 drivers/usb/class/cdc-acm.c struct acm_rb *rb = urb->context; urb 476 drivers/usb/class/cdc-acm.c int status = urb->status; urb 482 drivers/usb/class/cdc-acm.c rb->index, urb->actual_length, status); urb 492 drivers/usb/class/cdc-acm.c acm_process_read_urb(acm, urb); urb 550 drivers/usb/class/cdc-acm.c static void acm_write_bulk(struct urb *urb) urb 552 drivers/usb/class/cdc-acm.c struct acm_wb *wb = urb->context; urb 555 drivers/usb/class/cdc-acm.c int status = urb->status; urb 557 drivers/usb/class/cdc-acm.c if (status || (urb->actual_length != urb->transfer_buffer_length)) urb 559 drivers/usb/class/cdc-acm.c urb->actual_length, urb 560 drivers/usb/class/cdc-acm.c urb->transfer_buffer_length, urb 727 drivers/usb/class/cdc-acm.c struct urb *urb; urb 742 drivers/usb/class/cdc-acm.c urb = usb_get_from_anchor(&acm->delayed); urb 743 drivers/usb/class/cdc-acm.c if (!urb) urb 745 drivers/usb/class/cdc-acm.c wb = urb->context; urb 815 drivers/usb/class/cdc-acm.c usb_anchor_urb(wb->urb, &acm->delayed); urb 1390 drivers/usb/class/cdc-acm.c struct urb *urb; urb 1399 drivers/usb/class/cdc-acm.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1400 drivers/usb/class/cdc-acm.c if (!urb) urb 1403 drivers/usb/class/cdc-acm.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1404 drivers/usb/class/cdc-acm.c urb->transfer_dma = rb->dma; urb 1406 drivers/usb/class/cdc-acm.c usb_fill_int_urb(urb, acm->dev, acm->in, rb->base, urb 1411 drivers/usb/class/cdc-acm.c usb_fill_bulk_urb(urb, acm->dev, acm->in, rb->base, urb 1415 drivers/usb/class/cdc-acm.c acm->read_urbs[i] = urb; urb 1421 drivers/usb/class/cdc-acm.c snd->urb = usb_alloc_urb(0, GFP_KERNEL); urb 1422 drivers/usb/class/cdc-acm.c if (snd->urb == NULL) urb 1426 drivers/usb/class/cdc-acm.c usb_fill_int_urb(snd->urb, usb_dev, acm->out, urb 1429 drivers/usb/class/cdc-acm.c usb_fill_bulk_urb(snd->urb, usb_dev, acm->out, urb 1431 drivers/usb/class/cdc-acm.c snd->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1433 drivers/usb/class/cdc-acm.c snd->urb->transfer_flags |= URB_ZERO_PACKET; urb 1520 drivers/usb/class/cdc-acm.c usb_free_urb(acm->wb[i].urb); urb 1574 drivers/usb/class/cdc-acm.c usb_free_urb(acm->wb[i].urb); urb 1620 drivers/usb/class/cdc-acm.c struct urb *urb; urb 1632 drivers/usb/class/cdc-acm.c urb = usb_get_from_anchor(&acm->delayed); urb 1633 drivers/usb/class/cdc-acm.c if (!urb) urb 1636 drivers/usb/class/cdc-acm.c acm_start_wb(acm, urb->context); urb 71 drivers/usb/class/cdc-acm.h struct urb *urb; urb 89 drivers/usb/class/cdc-acm.h struct urb *ctrlurb; /* urbs */ urb 97 drivers/usb/class/cdc-acm.h struct urb *read_urbs[ACM_NR]; urb 76 drivers/usb/class/cdc-wdm.c struct urb *command; urb 77 drivers/usb/class/cdc-wdm.c struct urb *response; urb 78 drivers/usb/class/cdc-wdm.c struct urb *validity; urb 142 drivers/usb/class/cdc-wdm.c static void wdm_out_callback(struct urb *urb) urb 147 drivers/usb/class/cdc-wdm.c desc = urb->context; urb 149 drivers/usb/class/cdc-wdm.c desc->werr = urb->status; urb 157 drivers/usb/class/cdc-wdm.c static void wdm_in_callback(struct urb *urb) urb 160 drivers/usb/class/cdc-wdm.c struct wdm_device *desc = urb->context; urb 161 drivers/usb/class/cdc-wdm.c int status = urb->status; urb 162 drivers/usb/class/cdc-wdm.c int length = urb->actual_length; urb 229 drivers/usb/class/cdc-wdm.c static void wdm_int_callback(struct urb *urb) urb 234 drivers/usb/class/cdc-wdm.c int status = urb->status; urb 238 drivers/usb/class/cdc-wdm.c desc = urb->context; urb 258 drivers/usb/class/cdc-wdm.c if (urb->actual_length < sizeof(struct usb_cdc_notification)) { urb 260 drivers/usb/class/cdc-wdm.c urb->actual_length); urb 279 drivers/usb/class/cdc-wdm.c urb->actual_length); urb 313 drivers/usb/class/cdc-wdm.c rv = usb_submit_urb(urb, GFP_ATOMIC); urb 291 drivers/usb/class/usblp.c static void usblp_bulk_read(struct urb *urb) urb 293 drivers/usb/class/usblp.c struct usblp *usblp = urb->context; urb 294 drivers/usb/class/usblp.c int status = urb->status; urb 307 drivers/usb/class/usblp.c usblp->rstatus = urb->actual_length; urb 312 drivers/usb/class/usblp.c usb_free_urb(urb); urb 315 drivers/usb/class/usblp.c static void usblp_bulk_write(struct urb *urb) urb 317 drivers/usb/class/usblp.c struct usblp *usblp = urb->context; urb 318 drivers/usb/class/usblp.c int status = urb->status; urb 331 drivers/usb/class/usblp.c usblp->wstatus = urb->actual_length; urb 337 drivers/usb/class/usblp.c usb_free_urb(urb); urb 693 drivers/usb/class/usblp.c static struct urb *usblp_new_writeurb(struct usblp *usblp, int transfer_length) urb 695 drivers/usb/class/usblp.c struct urb *urb; urb 701 drivers/usb/class/usblp.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 702 drivers/usb/class/usblp.c if (urb == NULL) { urb 707 drivers/usb/class/usblp.c usb_fill_bulk_urb(urb, usblp->dev, urb 711 drivers/usb/class/usblp.c urb->transfer_flags |= URB_FREE_BUFFER; urb 713 drivers/usb/class/usblp.c return urb; urb 719 drivers/usb/class/usblp.c struct urb *writeurb; urb 983 drivers/usb/class/usblp.c struct urb *urb; urb 988 drivers/usb/class/usblp.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 989 drivers/usb/class/usblp.c if (urb == NULL) urb 992 drivers/usb/class/usblp.c usb_fill_bulk_urb(urb, usblp->dev, urb 997 drivers/usb/class/usblp.c usb_anchor_urb(urb, &usblp->urbs); urb 1003 drivers/usb/class/usblp.c if ((rc = usb_submit_urb(urb, GFP_KERNEL)) < 0) { urb 1015 drivers/usb/class/usblp.c usb_unanchor_urb(urb); urb 1016 drivers/usb/class/usblp.c usb_free_urb(urb); urb 99 drivers/usb/class/usbtmc.c struct urb *iin_urb; urb 718 drivers/usb/class/usbtmc.c static struct urb *usbtmc_create_urb(void) urb 722 drivers/usb/class/usbtmc.c struct urb *urb = usb_alloc_urb(0, GFP_KERNEL); urb 724 drivers/usb/class/usbtmc.c if (!urb) urb 729 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 733 drivers/usb/class/usbtmc.c urb->transfer_buffer = dmabuf; urb 734 drivers/usb/class/usbtmc.c urb->transfer_buffer_length = bufsize; urb 735 drivers/usb/class/usbtmc.c urb->transfer_flags |= URB_FREE_BUFFER; urb 736 drivers/usb/class/usbtmc.c return urb; urb 739 drivers/usb/class/usbtmc.c static void usbtmc_read_bulk_cb(struct urb *urb) urb 741 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data = urb->context; urb 742 drivers/usb/class/usbtmc.c int status = urb->status; urb 762 drivers/usb/class/usbtmc.c file_data->in_transfer_size += urb->actual_length; urb 766 drivers/usb/class/usbtmc.c urb->actual_length, status); urb 768 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->in_anchor); urb 872 drivers/usb/class/usbtmc.c struct urb *urb = usbtmc_create_urb(); urb 874 drivers/usb/class/usbtmc.c if (!urb) { urb 879 drivers/usb/class/usbtmc.c dmabuf = urb->transfer_buffer; urb 881 drivers/usb/class/usbtmc.c usb_fill_bulk_urb(urb, data->usb_dev, urb 886 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->submitted); urb 887 drivers/usb/class/usbtmc.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 889 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 891 drivers/usb/class/usbtmc.c usb_unanchor_urb(urb); urb 910 drivers/usb/class/usbtmc.c struct urb *urb = NULL; urb 930 drivers/usb/class/usbtmc.c urb = usb_get_from_anchor(&file_data->in_anchor); urb 931 drivers/usb/class/usbtmc.c if (!urb) { urb 947 drivers/usb/class/usbtmc.c if (max_transfer_size > urb->actual_length) urb 948 drivers/usb/class/usbtmc.c max_transfer_size -= urb->actual_length; urb 952 drivers/usb/class/usbtmc.c if (remaining > urb->actual_length) urb 953 drivers/usb/class/usbtmc.c this_part = urb->actual_length; urb 958 drivers/usb/class/usbtmc.c urb->transfer_buffer, urb->actual_length, true); urb 961 drivers/usb/class/usbtmc.c urb->transfer_buffer, this_part)) { urb 962 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 971 drivers/usb/class/usbtmc.c if (urb->status) { urb 975 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 980 drivers/usb/class/usbtmc.c if (urb->actual_length < bufsize) { urb 982 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 990 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->submitted); urb 991 drivers/usb/class/usbtmc.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 993 drivers/usb/class/usbtmc.c usb_unanchor_urb(urb); urb 994 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 999 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 1040 drivers/usb/class/usbtmc.c static void usbtmc_write_bulk_cb(struct urb *urb) urb 1042 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data = urb->context; urb 1047 drivers/usb/class/usbtmc.c file_data->out_transfer_size += urb->actual_length; urb 1050 drivers/usb/class/usbtmc.c if (urb->status) { urb 1051 drivers/usb/class/usbtmc.c if (!(urb->status == -ENOENT || urb 1052 drivers/usb/class/usbtmc.c urb->status == -ECONNRESET || urb 1053 drivers/usb/class/usbtmc.c urb->status == -ESHUTDOWN)) urb 1056 drivers/usb/class/usbtmc.c __func__, urb->status); urb 1059 drivers/usb/class/usbtmc.c file_data->out_status = urb->status; urb 1086 drivers/usb/class/usbtmc.c struct urb *urb = NULL; urb 1146 drivers/usb/class/usbtmc.c urb = usbtmc_create_urb(); urb 1147 drivers/usb/class/usbtmc.c if (!urb) { urb 1152 drivers/usb/class/usbtmc.c buffer = urb->transfer_buffer; urb 1177 drivers/usb/class/usbtmc.c usb_fill_bulk_urb(urb, data->usb_dev, urb 1179 drivers/usb/class/usbtmc.c urb->transfer_buffer, aligned, urb 1182 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->submitted); urb 1183 drivers/usb/class/usbtmc.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 1185 drivers/usb/class/usbtmc.c usb_unanchor_urb(urb); urb 1190 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 1191 drivers/usb/class/usbtmc.c urb = NULL; /* urb will be finally released by usb driver */ urb 1212 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 1485 drivers/usb/class/usbtmc.c struct urb *urb = NULL; urb 1517 drivers/usb/class/usbtmc.c urb = usbtmc_create_urb(); urb 1518 drivers/usb/class/usbtmc.c if (!urb) { urb 1524 drivers/usb/class/usbtmc.c buffer = urb->transfer_buffer; urb 1525 drivers/usb/class/usbtmc.c buflen = urb->transfer_buffer_length; urb 1570 drivers/usb/class/usbtmc.c usb_fill_bulk_urb(urb, data->usb_dev, urb 1572 drivers/usb/class/usbtmc.c urb->transfer_buffer, aligned, urb 1575 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->submitted); urb 1576 drivers/usb/class/usbtmc.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 1578 drivers/usb/class/usbtmc.c usb_unanchor_urb(urb); urb 1613 drivers/usb/class/usbtmc.c usb_free_urb(urb); urb 2234 drivers/usb/class/usbtmc.c static void usbtmc_interrupt(struct urb *urb) urb 2236 drivers/usb/class/usbtmc.c struct usbtmc_device_data *data = urb->context; urb 2238 drivers/usb/class/usbtmc.c int status = urb->status; urb 2242 drivers/usb/class/usbtmc.c status, urb->actual_length); urb 2286 drivers/usb/class/usbtmc.c data->iin_wMaxPacketSize, urb->actual_length); urb 2301 drivers/usb/class/usbtmc.c rv = usb_submit_urb(urb, GFP_ATOMIC); urb 103 drivers/usb/core/devio.c struct urb *urb; urb 385 drivers/usb/core/devio.c as->urb = usb_alloc_urb(numisoframes, GFP_KERNEL); urb 386 drivers/usb/core/devio.c if (!as->urb) { urb 400 drivers/usb/core/devio.c for (i = 0; i < as->urb->num_sgs; i++) { urb 401 drivers/usb/core/devio.c if (sg_page(&as->urb->sg[i])) urb 402 drivers/usb/core/devio.c kfree(sg_virt(&as->urb->sg[i])); urb 405 drivers/usb/core/devio.c kfree(as->urb->sg); urb 407 drivers/usb/core/devio.c kfree(as->urb->transfer_buffer); urb 411 drivers/usb/core/devio.c kfree(as->urb->setup_packet); urb 412 drivers/usb/core/devio.c usb_free_urb(as->urb); urb 511 drivers/usb/core/devio.c static void snoop_urb_data(struct urb *urb, unsigned len) urb 519 drivers/usb/core/devio.c if (urb->num_sgs == 0) { urb 521 drivers/usb/core/devio.c urb->transfer_buffer, len, 1); urb 525 drivers/usb/core/devio.c for (i = 0; i < urb->num_sgs && len; i++) { urb 528 drivers/usb/core/devio.c sg_virt(&urb->sg[i]), size, 1); urb 533 drivers/usb/core/devio.c static int copy_urb_data_to_user(u8 __user *userbuffer, struct urb *urb) urb 537 drivers/usb/core/devio.c if (urb->number_of_packets > 0) /* Isochronous */ urb 538 drivers/usb/core/devio.c len = urb->transfer_buffer_length; urb 540 drivers/usb/core/devio.c len = urb->actual_length; urb 542 drivers/usb/core/devio.c if (urb->num_sgs == 0) { urb 543 drivers/usb/core/devio.c if (copy_to_user(userbuffer, urb->transfer_buffer, len)) urb 548 drivers/usb/core/devio.c for (i = 0; i < urb->num_sgs && len; i++) { urb 550 drivers/usb/core/devio.c if (copy_to_user(userbuffer, sg_virt(&urb->sg[i]), size)) urb 566 drivers/usb/core/devio.c struct urb *urb; urb 589 drivers/usb/core/devio.c urb = as->urb; urb 590 drivers/usb/core/devio.c usb_get_urb(urb); urb 592 drivers/usb/core/devio.c usb_unlink_urb(urb); urb 593 drivers/usb/core/devio.c usb_put_urb(urb); urb 600 drivers/usb/core/devio.c static void async_completed(struct urb *urb) urb 602 drivers/usb/core/devio.c struct async *as = urb->context; urb 612 drivers/usb/core/devio.c as->status = urb->status; urb 620 drivers/usb/core/devio.c snoop(&urb->dev->dev, "urb complete\n"); urb 621 drivers/usb/core/devio.c snoop_urb(urb->dev, as->userurb, urb->pipe, urb->actual_length, urb 623 drivers/usb/core/devio.c if (usb_urb_dir_in(urb)) urb 624 drivers/usb/core/devio.c snoop_urb_data(urb, urb->actual_length); urb 642 drivers/usb/core/devio.c struct urb *urb; urb 650 drivers/usb/core/devio.c urb = as->urb; urb 651 drivers/usb/core/devio.c usb_get_urb(urb); urb 655 drivers/usb/core/devio.c usb_kill_urb(urb); urb 656 drivers/usb/core/devio.c usb_put_urb(urb); urb 1123 drivers/usb/core/devio.c ret = usbfs_increase_memory_usage(PAGE_SIZE + sizeof(struct urb) + urb 1187 drivers/usb/core/devio.c usbfs_decrease_memory_usage(PAGE_SIZE + sizeof(struct urb) + urb 1216 drivers/usb/core/devio.c if (len1 >= (INT_MAX - sizeof(struct urb))) urb 1218 drivers/usb/core/devio.c ret = usbfs_increase_memory_usage(len1 + sizeof(struct urb)); urb 1262 drivers/usb/core/devio.c usbfs_decrease_memory_usage(len1 + sizeof(struct urb)); urb 1683 drivers/usb/core/devio.c u += sizeof(struct async) + sizeof(struct urb) + urb 1692 drivers/usb/core/devio.c as->urb->sg = kmalloc_array(num_sgs, urb 1695 drivers/usb/core/devio.c if (!as->urb->sg) { urb 1699 drivers/usb/core/devio.c as->urb->num_sgs = num_sgs; urb 1700 drivers/usb/core/devio.c sg_init_table(as->urb->sg, as->urb->num_sgs); urb 1703 drivers/usb/core/devio.c for (i = 0; i < as->urb->num_sgs; i++) { urb 1710 drivers/usb/core/devio.c sg_set_buf(&as->urb->sg[i], buf, u); urb 1725 drivers/usb/core/devio.c as->urb->transfer_buffer = as->usbm->mem + urb 1728 drivers/usb/core/devio.c as->urb->transfer_buffer = kmalloc(uurb->buffer_length, urb 1730 drivers/usb/core/devio.c if (!as->urb->transfer_buffer) { urb 1735 drivers/usb/core/devio.c if (copy_from_user(as->urb->transfer_buffer, urb 1748 drivers/usb/core/devio.c memset(as->urb->transfer_buffer, 0, urb 1753 drivers/usb/core/devio.c as->urb->dev = ps->dev; urb 1754 drivers/usb/core/devio.c as->urb->pipe = (uurb->type << 30) | urb 1771 drivers/usb/core/devio.c as->urb->transfer_flags = u; urb 1778 drivers/usb/core/devio.c as->urb->transfer_buffer_length = uurb->buffer_length; urb 1779 drivers/usb/core/devio.c as->urb->setup_packet = (unsigned char *)dr; urb 1781 drivers/usb/core/devio.c as->urb->start_frame = uurb->start_frame; urb 1782 drivers/usb/core/devio.c as->urb->number_of_packets = number_of_packets; urb 1783 drivers/usb/core/devio.c as->urb->stream_id = stream_id; urb 1789 drivers/usb/core/devio.c as->urb->interval = 1 << urb 1792 drivers/usb/core/devio.c as->urb->interval = ep->desc.bInterval; urb 1795 drivers/usb/core/devio.c as->urb->context = as; urb 1796 drivers/usb/core/devio.c as->urb->complete = async_completed; urb 1798 drivers/usb/core/devio.c as->urb->iso_frame_desc[u].offset = totlen; urb 1799 drivers/usb/core/devio.c as->urb->iso_frame_desc[u].length = isopkt[u].length; urb 1810 drivers/usb/core/devio.c as->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1811 drivers/usb/core/devio.c as->urb->transfer_dma = as->usbm->dma_handle + urb 1819 drivers/usb/core/devio.c snoop_urb(ps->dev, as->userurb, as->urb->pipe, urb 1820 drivers/usb/core/devio.c as->urb->transfer_buffer_length, 0, SUBMIT, urb 1823 drivers/usb/core/devio.c snoop_urb_data(as->urb, as->urb->transfer_buffer_length); urb 1852 drivers/usb/core/devio.c ret = usb_submit_urb(as->urb, GFP_ATOMIC); urb 1855 drivers/usb/core/devio.c ret = usb_submit_urb(as->urb, GFP_KERNEL); urb 1861 drivers/usb/core/devio.c snoop_urb(ps->dev, as->userurb, as->urb->pipe, urb 1894 drivers/usb/core/devio.c struct urb *urb; urb 1905 drivers/usb/core/devio.c urb = as->urb; urb 1906 drivers/usb/core/devio.c usb_get_urb(urb); urb 1909 drivers/usb/core/devio.c usb_kill_urb(urb); urb 1910 drivers/usb/core/devio.c usb_put_urb(urb); urb 1915 drivers/usb/core/devio.c static void compute_isochronous_actual_length(struct urb *urb) urb 1919 drivers/usb/core/devio.c if (urb->number_of_packets > 0) { urb 1920 drivers/usb/core/devio.c urb->actual_length = 0; urb 1921 drivers/usb/core/devio.c for (i = 0; i < urb->number_of_packets; i++) urb 1922 drivers/usb/core/devio.c urb->actual_length += urb 1923 drivers/usb/core/devio.c urb->iso_frame_desc[i].actual_length; urb 1929 drivers/usb/core/devio.c struct urb *urb = as->urb; urb 1934 drivers/usb/core/devio.c compute_isochronous_actual_length(urb); urb 1935 drivers/usb/core/devio.c if (as->userbuffer && urb->actual_length) { urb 1936 drivers/usb/core/devio.c if (copy_urb_data_to_user(as->userbuffer, urb)) urb 1941 drivers/usb/core/devio.c if (put_user(urb->actual_length, &userurb->actual_length)) urb 1943 drivers/usb/core/devio.c if (put_user(urb->error_count, &userurb->error_count)) urb 1946 drivers/usb/core/devio.c if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { urb 1947 drivers/usb/core/devio.c for (i = 0; i < urb->number_of_packets; i++) { urb 1948 drivers/usb/core/devio.c if (put_user(urb->iso_frame_desc[i].actual_length, urb 1951 drivers/usb/core/devio.c if (put_user(urb->iso_frame_desc[i].status, urb 2102 drivers/usb/core/devio.c struct urb *urb = as->urb; urb 2107 drivers/usb/core/devio.c compute_isochronous_actual_length(urb); urb 2108 drivers/usb/core/devio.c if (as->userbuffer && urb->actual_length) { urb 2109 drivers/usb/core/devio.c if (copy_urb_data_to_user(as->userbuffer, urb)) urb 2114 drivers/usb/core/devio.c if (put_user(urb->actual_length, &userurb->actual_length)) urb 2116 drivers/usb/core/devio.c if (put_user(urb->error_count, &userurb->error_count)) urb 2119 drivers/usb/core/devio.c if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { urb 2120 drivers/usb/core/devio.c for (i = 0; i < urb->number_of_packets; i++) { urb 2121 drivers/usb/core/devio.c if (put_user(urb->iso_frame_desc[i].actual_length, urb 2124 drivers/usb/core/devio.c if (put_user(urb->iso_frame_desc[i].status, urb 477 drivers/usb/core/hcd.c static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) urb 481 drivers/usb/core/hcd.c u8 *ubuf = urb->transfer_buffer; urb 493 drivers/usb/core/hcd.c status = usb_hcd_link_urb_to_ep(hcd, urb); urb 497 drivers/usb/core/hcd.c urb->hcpriv = hcd; /* Indicate it's queued */ urb 499 drivers/usb/core/hcd.c cmd = (struct usb_ctrlrequest *) urb->setup_packet; urb 505 drivers/usb/core/hcd.c if (wLength > urb->transfer_buffer_length) urb 522 drivers/usb/core/hcd.c urb->actual_length = 0; urb 621 drivers/usb/core/hcd.c urb->actual_length = rh_string(wValue & 0xff, urb 710 drivers/usb/core/hcd.c if (urb->transfer_buffer_length < len) urb 711 drivers/usb/core/hcd.c len = urb->transfer_buffer_length; urb 712 drivers/usb/core/hcd.c urb->actual_length = len; urb 736 drivers/usb/core/hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 737 drivers/usb/core/hcd.c usb_hcd_giveback_urb(hcd, urb, status); urb 754 drivers/usb/core/hcd.c struct urb *urb; urb 769 drivers/usb/core/hcd.c urb = hcd->status_urb; urb 770 drivers/usb/core/hcd.c if (urb) { urb 773 drivers/usb/core/hcd.c urb->actual_length = length; urb 774 drivers/usb/core/hcd.c memcpy(urb->transfer_buffer, buffer, length); urb 776 drivers/usb/core/hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 777 drivers/usb/core/hcd.c usb_hcd_giveback_urb(hcd, urb, 0); urb 805 drivers/usb/core/hcd.c static int rh_queue_status (struct usb_hcd *hcd, struct urb *urb) urb 809 drivers/usb/core/hcd.c unsigned len = 1 + (urb->dev->maxchild / 8); urb 812 drivers/usb/core/hcd.c if (hcd->status_urb || urb->transfer_buffer_length < len) { urb 818 drivers/usb/core/hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 822 drivers/usb/core/hcd.c hcd->status_urb = urb; urb 823 drivers/usb/core/hcd.c urb->hcpriv = hcd; /* indicate it's queued */ urb 836 drivers/usb/core/hcd.c static int rh_urb_enqueue (struct usb_hcd *hcd, struct urb *urb) urb 838 drivers/usb/core/hcd.c if (usb_endpoint_xfer_int(&urb->ep->desc)) urb 839 drivers/usb/core/hcd.c return rh_queue_status (hcd, urb); urb 840 drivers/usb/core/hcd.c if (usb_endpoint_xfer_control(&urb->ep->desc)) urb 841 drivers/usb/core/hcd.c return rh_call_control (hcd, urb); urb 850 drivers/usb/core/hcd.c static int usb_rh_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 856 drivers/usb/core/hcd.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 860 drivers/usb/core/hcd.c if (usb_endpoint_num(&urb->ep->desc) == 0) { /* Control URB */ urb 866 drivers/usb/core/hcd.c if (urb == hcd->status_urb) { urb 868 drivers/usb/core/hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 869 drivers/usb/core/hcd.c usb_hcd_giveback_urb(hcd, urb, status); urb 1144 drivers/usb/core/hcd.c int usb_hcd_link_urb_to_ep(struct usb_hcd *hcd, struct urb *urb) urb 1151 drivers/usb/core/hcd.c if (unlikely(atomic_read(&urb->reject))) { urb 1156 drivers/usb/core/hcd.c if (unlikely(!urb->ep->enabled)) { urb 1161 drivers/usb/core/hcd.c if (unlikely(!urb->dev->can_submit)) { urb 1171 drivers/usb/core/hcd.c urb->unlinked = 0; urb 1172 drivers/usb/core/hcd.c list_add_tail(&urb->urb_list, &urb->ep->urb_list); urb 1202 drivers/usb/core/hcd.c int usb_hcd_check_unlink_urb(struct usb_hcd *hcd, struct urb *urb, urb 1208 drivers/usb/core/hcd.c list_for_each(tmp, &urb->ep->urb_list) { urb 1209 drivers/usb/core/hcd.c if (tmp == &urb->urb_list) urb 1212 drivers/usb/core/hcd.c if (tmp != &urb->urb_list) urb 1218 drivers/usb/core/hcd.c if (urb->unlinked) urb 1220 drivers/usb/core/hcd.c urb->unlinked = status; urb 1235 drivers/usb/core/hcd.c void usb_hcd_unlink_urb_from_ep(struct usb_hcd *hcd, struct urb *urb) urb 1239 drivers/usb/core/hcd.c list_del_init(&urb->urb_list); urb 1322 drivers/usb/core/hcd.c void usb_hcd_unmap_urb_setup_for_dma(struct usb_hcd *hcd, struct urb *urb) urb 1325 drivers/usb/core/hcd.c (urb->transfer_flags & URB_SETUP_MAP_SINGLE)) urb 1327 drivers/usb/core/hcd.c urb->setup_dma, urb 1330 drivers/usb/core/hcd.c else if (urb->transfer_flags & URB_SETUP_MAP_LOCAL) urb 1331 drivers/usb/core/hcd.c hcd_free_coherent(urb->dev->bus, urb 1332 drivers/usb/core/hcd.c &urb->setup_dma, urb 1333 drivers/usb/core/hcd.c (void **) &urb->setup_packet, urb 1338 drivers/usb/core/hcd.c urb->transfer_flags &= ~(URB_SETUP_MAP_SINGLE | URB_SETUP_MAP_LOCAL); urb 1342 drivers/usb/core/hcd.c static void unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) urb 1345 drivers/usb/core/hcd.c hcd->driver->unmap_urb_for_dma(hcd, urb); urb 1347 drivers/usb/core/hcd.c usb_hcd_unmap_urb_for_dma(hcd, urb); urb 1350 drivers/usb/core/hcd.c void usb_hcd_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) urb 1354 drivers/usb/core/hcd.c usb_hcd_unmap_urb_setup_for_dma(hcd, urb); urb 1356 drivers/usb/core/hcd.c dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; urb 1358 drivers/usb/core/hcd.c (urb->transfer_flags & URB_DMA_MAP_SG)) urb 1360 drivers/usb/core/hcd.c urb->sg, urb 1361 drivers/usb/core/hcd.c urb->num_sgs, urb 1364 drivers/usb/core/hcd.c (urb->transfer_flags & URB_DMA_MAP_PAGE)) urb 1366 drivers/usb/core/hcd.c urb->transfer_dma, urb 1367 drivers/usb/core/hcd.c urb->transfer_buffer_length, urb 1370 drivers/usb/core/hcd.c (urb->transfer_flags & URB_DMA_MAP_SINGLE)) urb 1372 drivers/usb/core/hcd.c urb->transfer_dma, urb 1373 drivers/usb/core/hcd.c urb->transfer_buffer_length, urb 1375 drivers/usb/core/hcd.c else if (urb->transfer_flags & URB_MAP_LOCAL) urb 1376 drivers/usb/core/hcd.c hcd_free_coherent(urb->dev->bus, urb 1377 drivers/usb/core/hcd.c &urb->transfer_dma, urb 1378 drivers/usb/core/hcd.c &urb->transfer_buffer, urb 1379 drivers/usb/core/hcd.c urb->transfer_buffer_length, urb 1383 drivers/usb/core/hcd.c urb->transfer_flags &= ~(URB_DMA_MAP_SG | URB_DMA_MAP_PAGE | urb 1388 drivers/usb/core/hcd.c static int map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, urb 1392 drivers/usb/core/hcd.c return hcd->driver->map_urb_for_dma(hcd, urb, mem_flags); urb 1394 drivers/usb/core/hcd.c return usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); urb 1397 drivers/usb/core/hcd.c int usb_hcd_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, urb 1409 drivers/usb/core/hcd.c if (usb_endpoint_xfer_control(&urb->ep->desc)) { urb 1414 drivers/usb/core/hcd.c urb->dev->bus, mem_flags, urb 1415 drivers/usb/core/hcd.c &urb->setup_dma, urb 1416 drivers/usb/core/hcd.c (void **)&urb->setup_packet, urb 1421 drivers/usb/core/hcd.c urb->transfer_flags |= URB_SETUP_MAP_LOCAL; urb 1423 drivers/usb/core/hcd.c if (is_vmalloc_addr(urb->setup_packet)) { urb 1426 drivers/usb/core/hcd.c } else if (object_is_on_stack(urb->setup_packet)) { urb 1431 drivers/usb/core/hcd.c urb->setup_dma = dma_map_single( urb 1433 drivers/usb/core/hcd.c urb->setup_packet, urb 1437 drivers/usb/core/hcd.c urb->setup_dma)) urb 1439 drivers/usb/core/hcd.c urb->transfer_flags |= URB_SETUP_MAP_SINGLE; urb 1443 drivers/usb/core/hcd.c dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; urb 1444 drivers/usb/core/hcd.c if (urb->transfer_buffer_length != 0 urb 1445 drivers/usb/core/hcd.c && !(urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP)) { urb 1448 drivers/usb/core/hcd.c urb->dev->bus, mem_flags, urb 1449 drivers/usb/core/hcd.c &urb->transfer_dma, urb 1450 drivers/usb/core/hcd.c &urb->transfer_buffer, urb 1451 drivers/usb/core/hcd.c urb->transfer_buffer_length, urb 1454 drivers/usb/core/hcd.c urb->transfer_flags |= URB_MAP_LOCAL; urb 1456 drivers/usb/core/hcd.c if (urb->num_sgs) { urb 1460 drivers/usb/core/hcd.c if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { urb 1467 drivers/usb/core/hcd.c urb->sg, urb 1468 drivers/usb/core/hcd.c urb->num_sgs, urb 1473 drivers/usb/core/hcd.c urb->transfer_flags |= URB_DMA_MAP_SG; urb 1474 drivers/usb/core/hcd.c urb->num_mapped_sgs = n; urb 1475 drivers/usb/core/hcd.c if (n != urb->num_sgs) urb 1476 drivers/usb/core/hcd.c urb->transfer_flags |= urb 1478 drivers/usb/core/hcd.c } else if (urb->sg) { urb 1479 drivers/usb/core/hcd.c struct scatterlist *sg = urb->sg; urb 1480 drivers/usb/core/hcd.c urb->transfer_dma = dma_map_page( urb 1484 drivers/usb/core/hcd.c urb->transfer_buffer_length, urb 1487 drivers/usb/core/hcd.c urb->transfer_dma)) urb 1490 drivers/usb/core/hcd.c urb->transfer_flags |= URB_DMA_MAP_PAGE; urb 1491 drivers/usb/core/hcd.c } else if (is_vmalloc_addr(urb->transfer_buffer)) { urb 1494 drivers/usb/core/hcd.c } else if (object_is_on_stack(urb->transfer_buffer)) { urb 1498 drivers/usb/core/hcd.c urb->transfer_dma = dma_map_single( urb 1500 drivers/usb/core/hcd.c urb->transfer_buffer, urb 1501 drivers/usb/core/hcd.c urb->transfer_buffer_length, urb 1504 drivers/usb/core/hcd.c urb->transfer_dma)) urb 1507 drivers/usb/core/hcd.c urb->transfer_flags |= URB_DMA_MAP_SINGLE; urb 1510 drivers/usb/core/hcd.c if (ret && (urb->transfer_flags & (URB_SETUP_MAP_SINGLE | urb 1512 drivers/usb/core/hcd.c usb_hcd_unmap_urb_for_dma(hcd, urb); urb 1525 drivers/usb/core/hcd.c int usb_hcd_submit_urb (struct urb *urb, gfp_t mem_flags) urb 1528 drivers/usb/core/hcd.c struct usb_hcd *hcd = bus_to_hcd(urb->dev->bus); urb 1534 drivers/usb/core/hcd.c usb_get_urb(urb); urb 1535 drivers/usb/core/hcd.c atomic_inc(&urb->use_count); urb 1536 drivers/usb/core/hcd.c atomic_inc(&urb->dev->urbnum); urb 1537 drivers/usb/core/hcd.c usbmon_urb_submit(&hcd->self, urb); urb 1547 drivers/usb/core/hcd.c if (is_root_hub(urb->dev)) { urb 1548 drivers/usb/core/hcd.c status = rh_urb_enqueue(hcd, urb); urb 1550 drivers/usb/core/hcd.c status = map_urb_for_dma(hcd, urb, mem_flags); urb 1552 drivers/usb/core/hcd.c status = hcd->driver->urb_enqueue(hcd, urb, mem_flags); urb 1554 drivers/usb/core/hcd.c unmap_urb_for_dma(hcd, urb); urb 1559 drivers/usb/core/hcd.c usbmon_urb_submit_error(&hcd->self, urb, status); urb 1560 drivers/usb/core/hcd.c urb->hcpriv = NULL; urb 1561 drivers/usb/core/hcd.c INIT_LIST_HEAD(&urb->urb_list); urb 1562 drivers/usb/core/hcd.c atomic_dec(&urb->use_count); urb 1563 drivers/usb/core/hcd.c atomic_dec(&urb->dev->urbnum); urb 1564 drivers/usb/core/hcd.c if (atomic_read(&urb->reject)) urb 1566 drivers/usb/core/hcd.c usb_put_urb(urb); urb 1578 drivers/usb/core/hcd.c static int unlink1(struct usb_hcd *hcd, struct urb *urb, int status) urb 1582 drivers/usb/core/hcd.c if (is_root_hub(urb->dev)) urb 1583 drivers/usb/core/hcd.c value = usb_rh_urb_dequeue(hcd, urb, status); urb 1589 drivers/usb/core/hcd.c value = hcd->driver->urb_dequeue(hcd, urb, status); urb 1600 drivers/usb/core/hcd.c int usb_hcd_unlink_urb (struct urb *urb, int status) urb 1603 drivers/usb/core/hcd.c struct usb_device *udev = urb->dev; urb 1613 drivers/usb/core/hcd.c if (atomic_read(&urb->use_count) > 0) { urb 1619 drivers/usb/core/hcd.c hcd = bus_to_hcd(urb->dev->bus); urb 1620 drivers/usb/core/hcd.c retval = unlink1(hcd, urb, status); urb 1625 drivers/usb/core/hcd.c urb, retval); urb 1633 drivers/usb/core/hcd.c static void __usb_hcd_giveback_urb(struct urb *urb) urb 1635 drivers/usb/core/hcd.c struct usb_hcd *hcd = bus_to_hcd(urb->dev->bus); urb 1636 drivers/usb/core/hcd.c struct usb_anchor *anchor = urb->anchor; urb 1637 drivers/usb/core/hcd.c int status = urb->unlinked; urb 1639 drivers/usb/core/hcd.c urb->hcpriv = NULL; urb 1640 drivers/usb/core/hcd.c if (unlikely((urb->transfer_flags & URB_SHORT_NOT_OK) && urb 1641 drivers/usb/core/hcd.c urb->actual_length < urb->transfer_buffer_length && urb 1645 drivers/usb/core/hcd.c unmap_urb_for_dma(hcd, urb); urb 1646 drivers/usb/core/hcd.c usbmon_urb_complete(&hcd->self, urb, status); urb 1648 drivers/usb/core/hcd.c usb_unanchor_urb(urb); urb 1653 drivers/usb/core/hcd.c urb->status = status; urb 1654 drivers/usb/core/hcd.c urb->complete(urb); urb 1657 drivers/usb/core/hcd.c atomic_dec(&urb->use_count); urb 1658 drivers/usb/core/hcd.c if (unlikely(atomic_read(&urb->reject))) urb 1660 drivers/usb/core/hcd.c usb_put_urb(urb); urb 1675 drivers/usb/core/hcd.c struct urb *urb; urb 1677 drivers/usb/core/hcd.c urb = list_entry(local_list.next, struct urb, urb_list); urb 1678 drivers/usb/core/hcd.c list_del_init(&urb->urb_list); urb 1679 drivers/usb/core/hcd.c bh->completing_ep = urb->ep; urb 1680 drivers/usb/core/hcd.c __usb_hcd_giveback_urb(urb); urb 1709 drivers/usb/core/hcd.c void usb_hcd_giveback_urb(struct usb_hcd *hcd, struct urb *urb, int status) urb 1715 drivers/usb/core/hcd.c if (likely(!urb->unlinked)) urb 1716 drivers/usb/core/hcd.c urb->unlinked = status; urb 1718 drivers/usb/core/hcd.c if (!hcd_giveback_urb_in_bh(hcd) && !is_root_hub(urb->dev)) { urb 1719 drivers/usb/core/hcd.c __usb_hcd_giveback_urb(urb); urb 1723 drivers/usb/core/hcd.c if (usb_pipeisoc(urb->pipe) || usb_pipeint(urb->pipe)) { urb 1732 drivers/usb/core/hcd.c list_add_tail(&urb->urb_list, &bh->head); urb 1755 drivers/usb/core/hcd.c struct urb *urb; urb 1765 drivers/usb/core/hcd.c list_for_each_entry_reverse(urb, &ep->urb_list, urb_list) { urb 1768 drivers/usb/core/hcd.c if (urb->unlinked) urb 1770 drivers/usb/core/hcd.c usb_get_urb (urb); urb 1771 drivers/usb/core/hcd.c is_in = usb_urb_dir_in(urb); urb 1775 drivers/usb/core/hcd.c unlink1(hcd, urb, -ESHUTDOWN); urb 1778 drivers/usb/core/hcd.c urb, usb_endpoint_num(&ep->desc), urb 1781 drivers/usb/core/hcd.c usb_put_urb (urb); urb 1794 drivers/usb/core/hcd.c urb = NULL; urb 1796 drivers/usb/core/hcd.c urb = list_entry (ep->urb_list.prev, struct urb, urb 1798 drivers/usb/core/hcd.c usb_get_urb (urb); urb 1802 drivers/usb/core/hcd.c if (urb) { urb 1803 drivers/usb/core/hcd.c usb_kill_urb (urb); urb 1804 drivers/usb/core/hcd.c usb_put_urb (urb); urb 627 drivers/usb/core/hub.c status = usb_submit_urb(hub->urb, GFP_ATOMIC); urb 710 drivers/usb/core/hub.c static void hub_irq(struct urb *urb) urb 712 drivers/usb/core/hub.c struct usb_hub *hub = urb->context; urb 713 drivers/usb/core/hub.c int status = urb->status; urb 734 drivers/usb/core/hub.c for (i = 0; i < urb->actual_length; ++i) urb 857 drivers/usb/core/hub.c int usb_hub_clear_tt_buffer(struct urb *urb) urb 859 drivers/usb/core/hub.c struct usb_device *udev = urb->dev; urb 860 drivers/usb/core/hub.c int pipe = urb->pipe; urb 888 drivers/usb/core/hub.c clear->ep = urb->ep; urb 1265 drivers/usb/core/hub.c status = usb_submit_urb(hub->urb, GFP_NOIO); urb 1325 drivers/usb/core/hub.c usb_kill_urb(hub->urb); urb 1632 drivers/usb/core/hub.c hub->urb = usb_alloc_urb(0, GFP_KERNEL); urb 1633 drivers/usb/core/hub.c if (!hub->urb) { urb 1638 drivers/usb/core/hub.c usb_fill_int_urb(hub->urb, hdev, pipe, *hub->buffer, maxp, hub_irq, urb 1733 drivers/usb/core/hub.c usb_free_urb(hub->urb); urb 23 drivers/usb/core/hub.h struct urb *urb; /* for interrupt polling pipe */ urb 33 drivers/usb/core/message.c static void usb_api_blocking_completion(struct urb *urb) urb 35 drivers/usb/core/message.c struct api_context *ctx = urb->context; urb 37 drivers/usb/core/message.c ctx->status = urb->status; urb 48 drivers/usb/core/message.c static int usb_start_wait_urb(struct urb *urb, int timeout, int *actual_length) urb 55 drivers/usb/core/message.c urb->context = &ctx; urb 56 drivers/usb/core/message.c urb->actual_length = 0; urb 57 drivers/usb/core/message.c retval = usb_submit_urb(urb, GFP_NOIO); urb 63 drivers/usb/core/message.c usb_kill_urb(urb); urb 66 drivers/usb/core/message.c dev_dbg(&urb->dev->dev, urb 69 drivers/usb/core/message.c usb_endpoint_num(&urb->ep->desc), urb 70 drivers/usb/core/message.c usb_urb_dir_in(urb) ? "in" : "out", urb 71 drivers/usb/core/message.c urb->actual_length, urb 72 drivers/usb/core/message.c urb->transfer_buffer_length); urb 77 drivers/usb/core/message.c *actual_length = urb->actual_length; urb 79 drivers/usb/core/message.c usb_free_urb(urb); urb 90 drivers/usb/core/message.c struct urb *urb; urb 94 drivers/usb/core/message.c urb = usb_alloc_urb(0, GFP_NOIO); urb 95 drivers/usb/core/message.c if (!urb) urb 98 drivers/usb/core/message.c usb_fill_control_urb(urb, usb_dev, pipe, (unsigned char *)cmd, data, urb 101 drivers/usb/core/message.c retv = usb_start_wait_urb(urb, timeout, &length); urb 232 drivers/usb/core/message.c struct urb *urb; urb 239 drivers/usb/core/message.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 240 drivers/usb/core/message.c if (!urb) urb 246 drivers/usb/core/message.c usb_fill_int_urb(urb, usb_dev, pipe, data, len, urb 250 drivers/usb/core/message.c usb_fill_bulk_urb(urb, usb_dev, pipe, data, len, urb 253 drivers/usb/core/message.c return usb_start_wait_urb(urb, timeout, actual_length); urb 270 drivers/usb/core/message.c static void sg_complete(struct urb *urb) urb 273 drivers/usb/core/message.c struct usb_sg_request *io = urb->context; urb 274 drivers/usb/core/message.c int status = urb->status; urb 291 drivers/usb/core/message.c && urb->actual_length) { urb 295 drivers/usb/core/message.c usb_endpoint_num(&urb->ep->desc), urb 296 drivers/usb/core/message.c usb_urb_dir_in(urb) ? "in" : "out", urb 324 drivers/usb/core/message.c } else if (urb == io->urbs[i]) urb 331 drivers/usb/core/message.c io->bytes += urb->actual_length; urb 403 drivers/usb/core/message.c struct urb *urb; urb 406 drivers/usb/core/message.c urb = usb_alloc_urb(0, mem_flags); urb 407 drivers/usb/core/message.c if (!urb) { urb 411 drivers/usb/core/message.c io->urbs[i] = urb; urb 413 drivers/usb/core/message.c urb->dev = NULL; urb 414 drivers/usb/core/message.c urb->pipe = pipe; urb 415 drivers/usb/core/message.c urb->interval = period; urb 416 drivers/usb/core/message.c urb->transfer_flags = urb_flags; urb 417 drivers/usb/core/message.c urb->complete = sg_complete; urb 418 drivers/usb/core/message.c urb->context = io; urb 419 drivers/usb/core/message.c urb->sg = sg; urb 423 drivers/usb/core/message.c urb->transfer_buffer = NULL; urb 424 drivers/usb/core/message.c urb->num_sgs = nents; urb 442 drivers/usb/core/message.c urb->transfer_buffer = sg_virt(sg); urb 444 drivers/usb/core/message.c urb->transfer_buffer = NULL; urb 454 drivers/usb/core/message.c urb->transfer_buffer_length = len; urb 16 drivers/usb/core/urb.c #define to_urb(d) container_of(d, struct urb, kref) urb 21 drivers/usb/core/urb.c struct urb *urb = to_urb(kref); urb 23 drivers/usb/core/urb.c if (urb->transfer_flags & URB_FREE_BUFFER) urb 24 drivers/usb/core/urb.c kfree(urb->transfer_buffer); urb 26 drivers/usb/core/urb.c kfree(urb); urb 43 drivers/usb/core/urb.c void usb_init_urb(struct urb *urb) urb 45 drivers/usb/core/urb.c if (urb) { urb 46 drivers/usb/core/urb.c memset(urb, 0, sizeof(*urb)); urb 47 drivers/usb/core/urb.c kref_init(&urb->kref); urb 48 drivers/usb/core/urb.c INIT_LIST_HEAD(&urb->urb_list); urb 49 drivers/usb/core/urb.c INIT_LIST_HEAD(&urb->anchor_list); urb 70 drivers/usb/core/urb.c struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags) urb 72 drivers/usb/core/urb.c struct urb *urb; urb 74 drivers/usb/core/urb.c urb = kmalloc(struct_size(urb, iso_frame_desc, iso_packets), urb 76 drivers/usb/core/urb.c if (!urb) urb 78 drivers/usb/core/urb.c usb_init_urb(urb); urb 79 drivers/usb/core/urb.c return urb; urb 93 drivers/usb/core/urb.c void usb_free_urb(struct urb *urb) urb 95 drivers/usb/core/urb.c if (urb) urb 96 drivers/usb/core/urb.c kref_put(&urb->kref, urb_destroy); urb 110 drivers/usb/core/urb.c struct urb *usb_get_urb(struct urb *urb) urb 112 drivers/usb/core/urb.c if (urb) urb 113 drivers/usb/core/urb.c kref_get(&urb->kref); urb 114 drivers/usb/core/urb.c return urb; urb 126 drivers/usb/core/urb.c void usb_anchor_urb(struct urb *urb, struct usb_anchor *anchor) urb 131 drivers/usb/core/urb.c usb_get_urb(urb); urb 132 drivers/usb/core/urb.c list_add_tail(&urb->anchor_list, &anchor->urb_list); urb 133 drivers/usb/core/urb.c urb->anchor = anchor; urb 136 drivers/usb/core/urb.c atomic_inc(&urb->reject); urb 149 drivers/usb/core/urb.c static void __usb_unanchor_urb(struct urb *urb, struct usb_anchor *anchor) urb 151 drivers/usb/core/urb.c urb->anchor = NULL; urb 152 drivers/usb/core/urb.c list_del(&urb->anchor_list); urb 153 drivers/usb/core/urb.c usb_put_urb(urb); urb 164 drivers/usb/core/urb.c void usb_unanchor_urb(struct urb *urb) urb 169 drivers/usb/core/urb.c if (!urb) urb 172 drivers/usb/core/urb.c anchor = urb->anchor; urb 182 drivers/usb/core/urb.c if (likely(anchor == urb->anchor)) urb 183 drivers/usb/core/urb.c __usb_unanchor_urb(urb, anchor); urb 202 drivers/usb/core/urb.c int usb_urb_ep_type_check(const struct urb *urb) urb 206 drivers/usb/core/urb.c ep = usb_pipe_endpoint(urb->dev, urb->pipe); urb 209 drivers/usb/core/urb.c if (usb_pipetype(urb->pipe) != pipetypes[usb_endpoint_type(&ep->desc)]) urb 352 drivers/usb/core/urb.c int usb_submit_urb(struct urb *urb, gfp_t mem_flags) urb 360 drivers/usb/core/urb.c if (!urb || !urb->complete) urb 362 drivers/usb/core/urb.c if (urb->hcpriv) { urb 363 drivers/usb/core/urb.c WARN_ONCE(1, "URB %pK submitted while active\n", urb); urb 367 drivers/usb/core/urb.c dev = urb->dev; urb 375 drivers/usb/core/urb.c ep = usb_pipe_endpoint(dev, urb->pipe); urb 379 drivers/usb/core/urb.c urb->ep = ep; urb 380 drivers/usb/core/urb.c urb->status = -EINPROGRESS; urb 381 drivers/usb/core/urb.c urb->actual_length = 0; urb 389 drivers/usb/core/urb.c (struct usb_ctrlrequest *) urb->setup_packet; urb 400 drivers/usb/core/urb.c urb->transfer_flags &= ~(URB_DIR_MASK | URB_DMA_MAP_SINGLE | urb 404 drivers/usb/core/urb.c urb->transfer_flags |= (is_out ? URB_DIR_OUT : URB_DIR_IN); urb 448 drivers/usb/core/urb.c if (urb->number_of_packets <= 0) urb 450 drivers/usb/core/urb.c for (n = 0; n < urb->number_of_packets; n++) { urb 451 drivers/usb/core/urb.c len = urb->iso_frame_desc[n].length; urb 454 drivers/usb/core/urb.c urb->iso_frame_desc[n].status = -EXDEV; urb 455 drivers/usb/core/urb.c urb->iso_frame_desc[n].actual_length = 0; urb 457 drivers/usb/core/urb.c } else if (urb->num_sgs && !urb->dev->bus->no_sg_constraint && urb 462 drivers/usb/core/urb.c for_each_sg(urb->sg, sg, urb->num_sgs - 1, i) urb 468 drivers/usb/core/urb.c if (urb->transfer_buffer_length > INT_MAX) urb 477 drivers/usb/core/urb.c if (usb_urb_ep_type_check(urb)) urb 479 drivers/usb/core/urb.c usb_pipetype(urb->pipe), pipetypes[xfertype]); urb 498 drivers/usb/core/urb.c allowed &= urb->transfer_flags; urb 501 drivers/usb/core/urb.c if (allowed != urb->transfer_flags) urb 503 drivers/usb/core/urb.c urb->transfer_flags, allowed); urb 519 drivers/usb/core/urb.c if ((urb->interval < 6) urb 524 drivers/usb/core/urb.c if (urb->interval <= 0) urb 533 drivers/usb/core/urb.c if (urb->interval > (1 << 15)) urb 538 drivers/usb/core/urb.c if (urb->interval > 16) urb 543 drivers/usb/core/urb.c if (urb->interval > (1024 * 8)) urb 544 drivers/usb/core/urb.c urb->interval = 1024 * 8; urb 550 drivers/usb/core/urb.c if (urb->interval > 255) urb 555 drivers/usb/core/urb.c if (urb->interval > 1024) urb 556 drivers/usb/core/urb.c urb->interval = 1024; urb 566 drivers/usb/core/urb.c urb->interval = min(max, 1 << ilog2(urb->interval)); urb 570 drivers/usb/core/urb.c return usb_hcd_submit_urb(urb, mem_flags); urb 649 drivers/usb/core/urb.c int usb_unlink_urb(struct urb *urb) urb 651 drivers/usb/core/urb.c if (!urb) urb 653 drivers/usb/core/urb.c if (!urb->dev) urb 655 drivers/usb/core/urb.c if (!urb->ep) urb 657 drivers/usb/core/urb.c return usb_hcd_unlink_urb(urb, -ECONNRESET); urb 688 drivers/usb/core/urb.c void usb_kill_urb(struct urb *urb) urb 691 drivers/usb/core/urb.c if (!(urb && urb->dev && urb->ep)) urb 693 drivers/usb/core/urb.c atomic_inc(&urb->reject); urb 695 drivers/usb/core/urb.c usb_hcd_unlink_urb(urb, -ENOENT); urb 696 drivers/usb/core/urb.c wait_event(usb_kill_urb_queue, atomic_read(&urb->use_count) == 0); urb 698 drivers/usb/core/urb.c atomic_dec(&urb->reject); urb 729 drivers/usb/core/urb.c void usb_poison_urb(struct urb *urb) urb 732 drivers/usb/core/urb.c if (!urb) urb 734 drivers/usb/core/urb.c atomic_inc(&urb->reject); urb 736 drivers/usb/core/urb.c if (!urb->dev || !urb->ep) urb 739 drivers/usb/core/urb.c usb_hcd_unlink_urb(urb, -ENOENT); urb 740 drivers/usb/core/urb.c wait_event(usb_kill_urb_queue, atomic_read(&urb->use_count) == 0); urb 744 drivers/usb/core/urb.c void usb_unpoison_urb(struct urb *urb) urb 746 drivers/usb/core/urb.c if (!urb) urb 749 drivers/usb/core/urb.c atomic_dec(&urb->reject); urb 765 drivers/usb/core/urb.c void usb_block_urb(struct urb *urb) urb 767 drivers/usb/core/urb.c if (!urb) urb 770 drivers/usb/core/urb.c atomic_inc(&urb->reject); urb 786 drivers/usb/core/urb.c struct urb *victim; urb 790 drivers/usb/core/urb.c victim = list_entry(anchor->urb_list.prev, struct urb, urb 818 drivers/usb/core/urb.c struct urb *victim; urb 823 drivers/usb/core/urb.c victim = list_entry(anchor->urb_list.prev, struct urb, urb 847 drivers/usb/core/urb.c struct urb *lazarus; urb 871 drivers/usb/core/urb.c struct urb *victim; urb 942 drivers/usb/core/urb.c struct urb *usb_get_from_anchor(struct usb_anchor *anchor) urb 944 drivers/usb/core/urb.c struct urb *victim; urb 949 drivers/usb/core/urb.c victim = list_entry(anchor->urb_list.next, struct urb, urb 971 drivers/usb/core/urb.c struct urb *victim; urb 976 drivers/usb/core/urb.c victim = list_entry(anchor->urb_list.prev, struct urb, urb 515 drivers/usb/dwc2/hcd.c struct urb *urb = context; urb 517 drivers/usb/dwc2/hcd.c if (urb->dev->tt) urb 518 drivers/usb/dwc2/hcd.c *hub_addr = urb->dev->tt->hub->devnum; urb 521 drivers/usb/dwc2/hcd.c *hub_port = urb->dev->ttport; urb 1879 drivers/usb/dwc2/hcd.c struct dwc2_hcd_urb *urb, struct dwc2_qh *qh, urb 1892 drivers/usb/dwc2/hcd.c dev_speed = dwc2_host_get_speed(hsotg, urb->priv); urb 1908 drivers/usb/dwc2/hcd.c dwc2_hcd_qtd_init(qtd, urb); urb 1922 drivers/usb/dwc2/hcd.c !(qtd->urb->flags & URB_GIVEBACK_ASAP)) urb 1939 drivers/usb/dwc2/hcd.c struct dwc2_hcd_urb *urb) urb 1944 drivers/usb/dwc2/hcd.c urb_qtd = urb->qtd; urb 1956 drivers/usb/dwc2/hcd.c urb->priv = NULL; urb 2341 drivers/usb/dwc2/hcd.c struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) urb 2348 drivers/usb/dwc2/hcd.c dwc2_host_hub_info(hsotg, urb->priv, &hub_addr, &hub_port); urb 2357 drivers/usb/dwc2/hcd.c struct dwc2_hcd_urb *urb = qtd->urb; urb 2360 drivers/usb/dwc2/hcd.c switch (dwc2_hcd_get_pipe_type(&urb->pipe_info)) { urb 2371 drivers/usb/dwc2/hcd.c chan->xfer_dma = urb->setup_dma; urb 2373 drivers/usb/dwc2/hcd.c chan->xfer_buf = urb->setup_packet; urb 2388 drivers/usb/dwc2/hcd.c if (urb->length == 0) urb 2392 drivers/usb/dwc2/hcd.c dwc2_hcd_is_pipe_out(&urb->pipe_info); urb 2418 drivers/usb/dwc2/hcd.c frame_desc = &urb->iso_descs[qtd->isoc_frame_index]; urb 2422 drivers/usb/dwc2/hcd.c chan->xfer_dma = urb->dma; urb 2426 drivers/usb/dwc2/hcd.c chan->xfer_buf = urb->buf; urb 2474 drivers/usb/dwc2/hcd.c static void dwc2_free_dma_aligned_buffer(struct urb *urb) urb 2479 drivers/usb/dwc2/hcd.c if (!(urb->transfer_flags & URB_ALIGNED_TEMP_BUFFER)) urb 2484 drivers/usb/dwc2/hcd.c PTR_ALIGN(urb->transfer_buffer + urb->transfer_buffer_length, urb 2486 drivers/usb/dwc2/hcd.c sizeof(urb->transfer_buffer)); urb 2488 drivers/usb/dwc2/hcd.c if (usb_urb_dir_in(urb)) { urb 2489 drivers/usb/dwc2/hcd.c if (usb_pipeisoc(urb->pipe)) urb 2490 drivers/usb/dwc2/hcd.c length = urb->transfer_buffer_length; urb 2492 drivers/usb/dwc2/hcd.c length = urb->actual_length; urb 2494 drivers/usb/dwc2/hcd.c memcpy(stored_xfer_buffer, urb->transfer_buffer, length); urb 2496 drivers/usb/dwc2/hcd.c kfree(urb->transfer_buffer); urb 2497 drivers/usb/dwc2/hcd.c urb->transfer_buffer = stored_xfer_buffer; urb 2499 drivers/usb/dwc2/hcd.c urb->transfer_flags &= ~URB_ALIGNED_TEMP_BUFFER; urb 2502 drivers/usb/dwc2/hcd.c static int dwc2_alloc_dma_aligned_buffer(struct urb *urb, gfp_t mem_flags) urb 2507 drivers/usb/dwc2/hcd.c if (urb->num_sgs || urb->sg || urb 2508 drivers/usb/dwc2/hcd.c urb->transfer_buffer_length == 0 || urb 2509 drivers/usb/dwc2/hcd.c !((uintptr_t)urb->transfer_buffer & (DWC2_USB_DMA_ALIGN - 1))) urb 2517 drivers/usb/dwc2/hcd.c kmalloc_size = urb->transfer_buffer_length + urb 2519 drivers/usb/dwc2/hcd.c sizeof(urb->transfer_buffer); urb 2529 drivers/usb/dwc2/hcd.c memcpy(PTR_ALIGN(kmalloc_ptr + urb->transfer_buffer_length, urb 2531 drivers/usb/dwc2/hcd.c &urb->transfer_buffer, sizeof(urb->transfer_buffer)); urb 2533 drivers/usb/dwc2/hcd.c if (usb_urb_dir_out(urb)) urb 2534 drivers/usb/dwc2/hcd.c memcpy(kmalloc_ptr, urb->transfer_buffer, urb 2535 drivers/usb/dwc2/hcd.c urb->transfer_buffer_length); urb 2536 drivers/usb/dwc2/hcd.c urb->transfer_buffer = kmalloc_ptr; urb 2538 drivers/usb/dwc2/hcd.c urb->transfer_flags |= URB_ALIGNED_TEMP_BUFFER; urb 2543 drivers/usb/dwc2/hcd.c static int dwc2_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, urb 2549 drivers/usb/dwc2/hcd.c WARN_ON_ONCE(urb->setup_dma && urb 2550 drivers/usb/dwc2/hcd.c (urb->setup_dma & (DWC2_USB_DMA_ALIGN - 1))); urb 2552 drivers/usb/dwc2/hcd.c ret = dwc2_alloc_dma_aligned_buffer(urb, mem_flags); urb 2556 drivers/usb/dwc2/hcd.c ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); urb 2558 drivers/usb/dwc2/hcd.c dwc2_free_dma_aligned_buffer(urb); urb 2563 drivers/usb/dwc2/hcd.c static void dwc2_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) urb 2565 drivers/usb/dwc2/hcd.c usb_hcd_unmap_urb_for_dma(hcd, urb); urb 2566 drivers/usb/dwc2/hcd.c dwc2_free_dma_aligned_buffer(urb); urb 2581 drivers/usb/dwc2/hcd.c struct dwc2_hcd_urb *urb; urb 2604 drivers/usb/dwc2/hcd.c urb = qtd->urb; urb 2612 drivers/usb/dwc2/hcd.c chan->dev_addr = dwc2_hcd_get_dev_addr(&urb->pipe_info); urb 2613 drivers/usb/dwc2/hcd.c chan->ep_num = dwc2_hcd_get_ep_num(&urb->pipe_info); urb 2631 drivers/usb/dwc2/hcd.c chan->ep_is_in = (dwc2_hcd_is_pipe_in(&urb->pipe_info) != 0); urb 2640 drivers/usb/dwc2/hcd.c if (urb->actual_length > urb->length && urb 2641 drivers/usb/dwc2/hcd.c !dwc2_hcd_is_pipe_in(&urb->pipe_info)) urb 2642 drivers/usb/dwc2/hcd.c urb->actual_length = urb->length; urb 2645 drivers/usb/dwc2/hcd.c chan->xfer_dma = urb->dma + urb->actual_length; urb 2647 drivers/usb/dwc2/hcd.c chan->xfer_buf = (u8 *)urb->buf + urb->actual_length; urb 2649 drivers/usb/dwc2/hcd.c chan->xfer_len = urb->length - urb->actual_length; urb 2654 drivers/usb/dwc2/hcd.c dwc2_hc_init_split(hsotg, chan, qtd, urb); urb 3803 drivers/usb/dwc2/hcd.c struct dwc2_hcd_urb *urb; urb 3805 drivers/usb/dwc2/hcd.c urb = kzalloc(struct_size(urb, iso_descs, iso_desc_count), mem_flags); urb 3806 drivers/usb/dwc2/hcd.c if (urb) urb 3807 drivers/usb/dwc2/hcd.c urb->packet_count = iso_desc_count; urb 3808 drivers/usb/dwc2/hcd.c return urb; urb 3812 drivers/usb/dwc2/hcd.c struct dwc2_hcd_urb *urb, u8 dev_addr, urb 3822 drivers/usb/dwc2/hcd.c urb->pipe_info.dev_addr = dev_addr; urb 3823 drivers/usb/dwc2/hcd.c urb->pipe_info.ep_num = ep_num; urb 3824 drivers/usb/dwc2/hcd.c urb->pipe_info.pipe_type = ep_type; urb 3825 drivers/usb/dwc2/hcd.c urb->pipe_info.pipe_dir = ep_dir; urb 3826 drivers/usb/dwc2/hcd.c urb->pipe_info.maxp = maxp; urb 3827 drivers/usb/dwc2/hcd.c urb->pipe_info.maxp_mult = maxp_mult; urb 3838 drivers/usb/dwc2/hcd.c struct dwc2_hcd_urb *urb; urb 3906 drivers/usb/dwc2/hcd.c urb = qtd->urb; urb 3909 drivers/usb/dwc2/hcd.c qtd, urb); urb 3910 drivers/usb/dwc2/hcd.c if (urb) { urb 3913 drivers/usb/dwc2/hcd.c dwc2_hcd_get_dev_addr(&urb->pipe_info), urb 3914 drivers/usb/dwc2/hcd.c dwc2_hcd_get_ep_num(&urb->pipe_info), urb 3915 drivers/usb/dwc2/hcd.c dwc2_hcd_is_pipe_in(&urb->pipe_info) ? urb 3919 drivers/usb/dwc2/hcd.c dwc2_hcd_get_maxp(&urb->pipe_info), urb 3920 drivers/usb/dwc2/hcd.c dwc2_hcd_get_maxp_mult(&urb->pipe_info)); urb 3923 drivers/usb/dwc2/hcd.c urb->buf); urb 3926 drivers/usb/dwc2/hcd.c (unsigned long)urb->dma); urb 3929 drivers/usb/dwc2/hcd.c urb->length); urb 3931 drivers/usb/dwc2/hcd.c urb->actual_length); urb 3995 drivers/usb/dwc2/hcd.c struct urb *urb = context; urb 3998 drivers/usb/dwc2/hcd.c if (urb->dev->tt) { urb 3999 drivers/usb/dwc2/hcd.c *ttport = urb->dev->ttport; urb 4001 drivers/usb/dwc2/hcd.c dwc_tt = urb->dev->tt->hcpriv; urb 4011 drivers/usb/dwc2/hcd.c if (urb->dev->tt->multi) urb 4012 drivers/usb/dwc2/hcd.c bitmap_size *= urb->dev->tt->hub->maxchild; urb 4019 drivers/usb/dwc2/hcd.c dwc_tt->usb_tt = urb->dev->tt; urb 4057 drivers/usb/dwc2/hcd.c struct urb *urb = context; urb 4059 drivers/usb/dwc2/hcd.c return urb->dev->speed; urb 4063 drivers/usb/dwc2/hcd.c struct urb *urb) urb 4067 drivers/usb/dwc2/hcd.c if (urb->interval) urb 4068 drivers/usb/dwc2/hcd.c bus->bandwidth_allocated += bw / urb->interval; urb 4069 drivers/usb/dwc2/hcd.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) urb 4076 drivers/usb/dwc2/hcd.c struct urb *urb) urb 4080 drivers/usb/dwc2/hcd.c if (urb->interval) urb 4081 drivers/usb/dwc2/hcd.c bus->bandwidth_allocated -= bw / urb->interval; urb 4082 drivers/usb/dwc2/hcd.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) urb 4097 drivers/usb/dwc2/hcd.c struct urb *urb; urb 4105 drivers/usb/dwc2/hcd.c if (!qtd->urb) { urb 4110 drivers/usb/dwc2/hcd.c urb = qtd->urb->priv; urb 4111 drivers/usb/dwc2/hcd.c if (!urb) { urb 4116 drivers/usb/dwc2/hcd.c urb->actual_length = dwc2_hcd_urb_get_actual_length(qtd->urb); urb 4118 drivers/usb/dwc2/hcd.c if (dbg_urb(urb)) urb 4121 drivers/usb/dwc2/hcd.c __func__, urb, usb_pipedevice(urb->pipe), urb 4122 drivers/usb/dwc2/hcd.c usb_pipeendpoint(urb->pipe), urb 4123 drivers/usb/dwc2/hcd.c usb_pipein(urb->pipe) ? "IN" : "OUT", status, urb 4124 drivers/usb/dwc2/hcd.c urb->actual_length); urb 4126 drivers/usb/dwc2/hcd.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 4127 drivers/usb/dwc2/hcd.c urb->error_count = dwc2_hcd_urb_get_error_count(qtd->urb); urb 4128 drivers/usb/dwc2/hcd.c for (i = 0; i < urb->number_of_packets; ++i) { urb 4129 drivers/usb/dwc2/hcd.c urb->iso_frame_desc[i].actual_length = urb 4131 drivers/usb/dwc2/hcd.c qtd->urb, i); urb 4132 drivers/usb/dwc2/hcd.c urb->iso_frame_desc[i].status = urb 4133 drivers/usb/dwc2/hcd.c dwc2_hcd_urb_get_iso_desc_status(qtd->urb, i); urb 4137 drivers/usb/dwc2/hcd.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS && dbg_perio()) { urb 4138 drivers/usb/dwc2/hcd.c for (i = 0; i < urb->number_of_packets; i++) urb 4140 drivers/usb/dwc2/hcd.c i, urb->iso_frame_desc[i].status); urb 4143 drivers/usb/dwc2/hcd.c urb->status = status; urb 4145 drivers/usb/dwc2/hcd.c if ((urb->transfer_flags & URB_SHORT_NOT_OK) && urb 4146 drivers/usb/dwc2/hcd.c urb->actual_length < urb->transfer_buffer_length) urb 4147 drivers/usb/dwc2/hcd.c urb->status = -EREMOTEIO; urb 4150 drivers/usb/dwc2/hcd.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS || urb 4151 drivers/usb/dwc2/hcd.c usb_pipetype(urb->pipe) == PIPE_INTERRUPT) { urb 4152 drivers/usb/dwc2/hcd.c struct usb_host_endpoint *ep = urb->ep; urb 4157 drivers/usb/dwc2/hcd.c urb); urb 4160 drivers/usb/dwc2/hcd.c usb_hcd_unlink_urb_from_ep(dwc2_hsotg_to_hcd(hsotg), urb); urb 4161 drivers/usb/dwc2/hcd.c urb->hcpriv = NULL; urb 4162 drivers/usb/dwc2/hcd.c kfree(qtd->urb); urb 4163 drivers/usb/dwc2/hcd.c qtd->urb = NULL; urb 4165 drivers/usb/dwc2/hcd.c usb_hcd_giveback_urb(dwc2_hsotg_to_hcd(hsotg), urb, status); urb 4470 drivers/usb/dwc2/hcd.c static void dwc2_dump_urb_info(struct usb_hcd *hcd, struct urb *urb, urb 4478 drivers/usb/dwc2/hcd.c dev_vdbg(hsotg->dev, "%s, urb %p\n", fn_name, urb); urb 4480 drivers/usb/dwc2/hcd.c usb_pipedevice(urb->pipe)); urb 4482 drivers/usb/dwc2/hcd.c usb_pipeendpoint(urb->pipe), urb 4483 drivers/usb/dwc2/hcd.c usb_pipein(urb->pipe) ? "IN" : "OUT"); urb 4485 drivers/usb/dwc2/hcd.c switch (usb_pipetype(urb->pipe)) { urb 4501 drivers/usb/dwc2/hcd.c usb_urb_dir_in(urb) ? "IN" : "OUT", usb_pipein(urb->pipe) ? urb 4504 drivers/usb/dwc2/hcd.c switch (urb->dev->speed) { urb 4521 drivers/usb/dwc2/hcd.c usb_endpoint_maxp(&urb->ep->desc), urb 4522 drivers/usb/dwc2/hcd.c usb_endpoint_maxp_mult(&urb->ep->desc)); urb 4525 drivers/usb/dwc2/hcd.c urb->transfer_buffer_length); urb 4527 drivers/usb/dwc2/hcd.c urb->transfer_buffer, (unsigned long)urb->transfer_dma); urb 4529 drivers/usb/dwc2/hcd.c urb->setup_packet, (unsigned long)urb->setup_dma); urb 4530 drivers/usb/dwc2/hcd.c dev_vdbg(hsotg->dev, " Interval: %d\n", urb->interval); urb 4532 drivers/usb/dwc2/hcd.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 4535 drivers/usb/dwc2/hcd.c for (i = 0; i < urb->number_of_packets; i++) { urb 4538 drivers/usb/dwc2/hcd.c urb->iso_frame_desc[i].offset, urb 4539 drivers/usb/dwc2/hcd.c urb->iso_frame_desc[i].length); urb 4550 drivers/usb/dwc2/hcd.c static int _dwc2_hcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, urb 4554 drivers/usb/dwc2/hcd.c struct usb_host_endpoint *ep = urb->ep; urb 4567 drivers/usb/dwc2/hcd.c if (dbg_urb(urb)) { urb 4569 drivers/usb/dwc2/hcd.c dwc2_dump_urb_info(hcd, urb, "urb_enqueue"); urb 4575 drivers/usb/dwc2/hcd.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS || urb 4576 drivers/usb/dwc2/hcd.c usb_pipetype(urb->pipe) == PIPE_INTERRUPT) { urb 4583 drivers/usb/dwc2/hcd.c switch (usb_pipetype(urb->pipe)) { urb 4598 drivers/usb/dwc2/hcd.c dwc2_urb = dwc2_hcd_urb_alloc(hsotg, urb->number_of_packets, urb 4603 drivers/usb/dwc2/hcd.c dwc2_hcd_urb_set_pipeinfo(hsotg, dwc2_urb, usb_pipedevice(urb->pipe), urb 4604 drivers/usb/dwc2/hcd.c usb_pipeendpoint(urb->pipe), ep_type, urb 4605 drivers/usb/dwc2/hcd.c usb_pipein(urb->pipe), urb 4609 drivers/usb/dwc2/hcd.c buf = urb->transfer_buffer; urb 4612 drivers/usb/dwc2/hcd.c if (!buf && (urb->transfer_dma & 3)) { urb 4621 drivers/usb/dwc2/hcd.c if (!(urb->transfer_flags & URB_NO_INTERRUPT)) urb 4623 drivers/usb/dwc2/hcd.c if (urb->transfer_flags & URB_ZERO_PACKET) urb 4626 drivers/usb/dwc2/hcd.c dwc2_urb->priv = urb; urb 4628 drivers/usb/dwc2/hcd.c dwc2_urb->dma = urb->transfer_dma; urb 4629 drivers/usb/dwc2/hcd.c dwc2_urb->length = urb->transfer_buffer_length; urb 4630 drivers/usb/dwc2/hcd.c dwc2_urb->setup_packet = urb->setup_packet; urb 4631 drivers/usb/dwc2/hcd.c dwc2_urb->setup_dma = urb->setup_dma; urb 4633 drivers/usb/dwc2/hcd.c dwc2_urb->interval = urb->interval; urb 4636 drivers/usb/dwc2/hcd.c for (i = 0; i < urb->number_of_packets; ++i) urb 4638 drivers/usb/dwc2/hcd.c urb->iso_frame_desc[i].offset, urb 4639 drivers/usb/dwc2/hcd.c urb->iso_frame_desc[i].length); urb 4641 drivers/usb/dwc2/hcd.c urb->hcpriv = dwc2_urb; urb 4661 drivers/usb/dwc2/hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 4672 drivers/usb/dwc2/hcd.c urb); urb 4681 drivers/usb/dwc2/hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 4686 drivers/usb/dwc2/hcd.c urb->hcpriv = NULL; urb 4709 drivers/usb/dwc2/hcd.c static int _dwc2_hcd_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, urb 4717 drivers/usb/dwc2/hcd.c dwc2_dump_urb_info(hcd, urb, "urb_dequeue"); urb 4721 drivers/usb/dwc2/hcd.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 4725 drivers/usb/dwc2/hcd.c if (!urb->hcpriv) { urb 4730 drivers/usb/dwc2/hcd.c rc = dwc2_hcd_urb_dequeue(hsotg, urb->hcpriv); urb 4732 drivers/usb/dwc2/hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 4734 drivers/usb/dwc2/hcd.c kfree(urb->hcpriv); urb 4735 drivers/usb/dwc2/hcd.c urb->hcpriv = NULL; urb 4739 drivers/usb/dwc2/hcd.c usb_hcd_giveback_urb(hcd, urb, status); urb 4743 drivers/usb/dwc2/hcd.c dev_dbg(hsotg->dev, " urb->status = %d\n", urb->status); urb 446 drivers/usb/dwc2/hcd.h struct dwc2_hcd_urb *urb; urb 566 drivers/usb/dwc2/hcd.h struct dwc2_hcd_urb *urb, urb 574 drivers/usb/dwc2/hcd.h void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb); urb 606 drivers/usb/dwc2/hcd.h static inline bool dbg_urb(struct urb *urb) { return true; } urb 621 drivers/usb/dwc2/hcd.h static inline bool dbg_urb(struct urb *urb) urb 623 drivers/usb/dwc2/hcd.h return usb_pipetype(urb->pipe) == PIPE_BULK || urb 624 drivers/usb/dwc2/hcd.h usb_pipetype(urb->pipe) == PIPE_CONTROL; urb 550 drivers/usb/dwc2/hcd_ddma.c frame_desc = &qtd->urb->iso_descs[qtd->isoc_frame_index_last]; urb 557 drivers/usb/dwc2/hcd_ddma.c dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); urb 569 drivers/usb/dwc2/hcd_ddma.c if (qtd->isoc_frame_index_last == qtd->urb->packet_count) urb 625 drivers/usb/dwc2/hcd_ddma.c qtd->urb->packet_count) urb 630 drivers/usb/dwc2/hcd_ddma.c qtd->urb->packet_count) { urb 763 drivers/usb/dwc2/hcd_ddma.c chan->xfer_dma = qtd->urb->dma + urb 764 drivers/usb/dwc2/hcd_ddma.c qtd->urb->actual_length; urb 765 drivers/usb/dwc2/hcd_ddma.c chan->xfer_len = qtd->urb->length - urb 766 drivers/usb/dwc2/hcd_ddma.c qtd->urb->actual_length; urb 902 drivers/usb/dwc2/hcd_ddma.c if (!qtd->urb) urb 912 drivers/usb/dwc2/hcd_ddma.c frame_desc = &qtd->urb->iso_descs[qtd->isoc_frame_index_last]; urb 913 drivers/usb/dwc2/hcd_ddma.c dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); urb 924 drivers/usb/dwc2/hcd_ddma.c qtd->urb->error_count++; urb 933 drivers/usb/dwc2/hcd_ddma.c if (++qtd->isoc_frame_index == qtd->urb->packet_count) { urb 996 drivers/usb/dwc2/hcd_ddma.c if (qtd->urb) { urb 997 drivers/usb/dwc2/hcd_ddma.c for (idx = 0; idx < qtd->urb->packet_count; urb 999 drivers/usb/dwc2/hcd_ddma.c frame_desc = &qtd->urb->iso_descs[idx]; urb 1074 drivers/usb/dwc2/hcd_ddma.c struct dwc2_hcd_urb *urb = qtd->urb; urb 1081 drivers/usb/dwc2/hcd_ddma.c dev_vdbg(hsotg->dev, "remain=%d dwc2_urb=%p\n", remain, urb); urb 1085 drivers/usb/dwc2/hcd_ddma.c urb->status = -EIO; urb 1093 drivers/usb/dwc2/hcd_ddma.c urb->status = -EPIPE; urb 1097 drivers/usb/dwc2/hcd_ddma.c urb->status = -EOVERFLOW; urb 1101 drivers/usb/dwc2/hcd_ddma.c urb->status = -EPROTO; urb 1121 drivers/usb/dwc2/hcd_ddma.c urb->actual_length += n_bytes - remain; urb 1122 drivers/usb/dwc2/hcd_ddma.c if (remain || urb->actual_length >= urb->length) { urb 1131 drivers/usb/dwc2/hcd_ddma.c urb->status = 0; urb 1137 drivers/usb/dwc2/hcd_ddma.c urb->actual_length += n_bytes - remain; urb 1138 drivers/usb/dwc2/hcd_ddma.c dev_vdbg(hsotg->dev, "length=%d actual=%d\n", urb->length, urb 1139 drivers/usb/dwc2/hcd_ddma.c urb->actual_length); urb 1140 drivers/usb/dwc2/hcd_ddma.c if (remain || urb->actual_length >= urb->length) { urb 1141 drivers/usb/dwc2/hcd_ddma.c urb->status = 0; urb 1157 drivers/usb/dwc2/hcd_ddma.c struct dwc2_hcd_urb *urb = qtd->urb; urb 1164 drivers/usb/dwc2/hcd_ddma.c if (!urb) urb 1177 drivers/usb/dwc2/hcd_ddma.c qtd, urb, desc_num, dma_desc, n_bytes); urb 1181 drivers/usb/dwc2/hcd_ddma.c if (failed || (*xfer_done && urb->status != -EINPROGRESS)) { urb 1182 drivers/usb/dwc2/hcd_ddma.c dwc2_host_complete(hsotg, qtd, urb->status); urb 1192 drivers/usb/dwc2/hcd_ddma.c if (urb->length > 0) urb 102 drivers/usb/dwc2/hcd_intr.c struct urb *usb_urb; urb 110 drivers/usb/dwc2/hcd_intr.c if (!qtd->urb) urb 113 drivers/usb/dwc2/hcd_intr.c usb_urb = qtd->urb->priv; urb 126 drivers/usb/dwc2/hcd_intr.c if (qtd->urb->status != -EPIPE && qtd->urb->status != -EREMOTEIO) { urb 492 drivers/usb/dwc2/hcd_intr.c struct dwc2_hcd_urb *urb, urb 502 drivers/usb/dwc2/hcd_intr.c if (urb->actual_length + xfer_length > urb->length) { urb 504 drivers/usb/dwc2/hcd_intr.c xfer_length = urb->length - urb->actual_length; urb 508 drivers/usb/dwc2/hcd_intr.c urb->actual_length, xfer_length); urb 509 drivers/usb/dwc2/hcd_intr.c urb->actual_length += xfer_length; urb 512 drivers/usb/dwc2/hcd_intr.c (urb->flags & URB_SEND_ZERO_PACKET) && urb 513 drivers/usb/dwc2/hcd_intr.c urb->actual_length >= urb->length && urb 514 drivers/usb/dwc2/hcd_intr.c !(urb->length % chan->max_packet)) { urb 516 drivers/usb/dwc2/hcd_intr.c } else if (short_read || urb->actual_length >= urb->length) { urb 518 drivers/usb/dwc2/hcd_intr.c urb->status = 0; urb 527 drivers/usb/dwc2/hcd_intr.c dev_vdbg(hsotg->dev, " urb->transfer_buffer_length %d\n", urb->length); urb 528 drivers/usb/dwc2/hcd_intr.c dev_vdbg(hsotg->dev, " urb->actual_length %d\n", urb->actual_length); urb 590 drivers/usb/dwc2/hcd_intr.c struct dwc2_hcd_urb *urb = qtd->urb; urb 592 drivers/usb/dwc2/hcd_intr.c if (!urb) urb 595 drivers/usb/dwc2/hcd_intr.c frame_desc = &urb->iso_descs[qtd->isoc_frame_index]; urb 604 drivers/usb/dwc2/hcd_intr.c urb->error_count++; urb 612 drivers/usb/dwc2/hcd_intr.c urb->error_count++; urb 617 drivers/usb/dwc2/hcd_intr.c urb->error_count++; urb 637 drivers/usb/dwc2/hcd_intr.c if (++qtd->isoc_frame_index == urb->packet_count) { urb 939 drivers/usb/dwc2/hcd_intr.c if (!qtd->urb) urb 942 drivers/usb/dwc2/hcd_intr.c frame_desc = &qtd->urb->iso_descs[qtd->isoc_frame_index]; urb 956 drivers/usb/dwc2/hcd_intr.c memcpy(qtd->urb->buf + (chan->xfer_dma - qtd->urb->dma), urb 972 drivers/usb/dwc2/hcd_intr.c if (qtd->isoc_frame_index == qtd->urb->packet_count) { urb 992 drivers/usb/dwc2/hcd_intr.c struct dwc2_hcd_urb *urb = qtd->urb; urb 1002 drivers/usb/dwc2/hcd_intr.c if (!urb) urb 1005 drivers/usb/dwc2/hcd_intr.c pipe_type = dwc2_hcd_get_pipe_type(&urb->pipe_info); urb 1033 drivers/usb/dwc2/hcd_intr.c if (urb->length > 0) urb 1043 drivers/usb/dwc2/hcd_intr.c chnum, urb, qtd); urb 1056 drivers/usb/dwc2/hcd_intr.c if (urb->status == -EINPROGRESS) urb 1057 drivers/usb/dwc2/hcd_intr.c urb->status = 0; urb 1058 drivers/usb/dwc2/hcd_intr.c dwc2_host_complete(hsotg, qtd, urb->status); urb 1068 drivers/usb/dwc2/hcd_intr.c urb_xfer_done = dwc2_update_urb_state(hsotg, chan, chnum, urb, urb 1071 drivers/usb/dwc2/hcd_intr.c dwc2_host_complete(hsotg, qtd, urb->status); urb 1083 drivers/usb/dwc2/hcd_intr.c urb_xfer_done = dwc2_update_urb_state(hsotg, chan, chnum, urb, urb 1091 drivers/usb/dwc2/hcd_intr.c dwc2_host_complete(hsotg, qtd, urb->status); urb 1125 drivers/usb/dwc2/hcd_intr.c struct dwc2_hcd_urb *urb = qtd->urb; urb 1137 drivers/usb/dwc2/hcd_intr.c if (!urb) urb 1140 drivers/usb/dwc2/hcd_intr.c pipe_type = dwc2_hcd_get_pipe_type(&urb->pipe_info); urb 1173 drivers/usb/dwc2/hcd_intr.c struct dwc2_hcd_urb *urb, urb 1181 drivers/usb/dwc2/hcd_intr.c if (urb->actual_length + xfer_length > urb->length) { urb 1183 drivers/usb/dwc2/hcd_intr.c xfer_length = urb->length - urb->actual_length; urb 1186 drivers/usb/dwc2/hcd_intr.c urb->actual_length += xfer_length; urb 1199 drivers/usb/dwc2/hcd_intr.c urb->actual_length); urb 1201 drivers/usb/dwc2/hcd_intr.c urb->length); urb 1217 drivers/usb/dwc2/hcd_intr.c if (!qtd->urb) { urb 1257 drivers/usb/dwc2/hcd_intr.c switch (dwc2_hcd_get_pipe_type(&qtd->urb->pipe_info)) { urb 1279 drivers/usb/dwc2/hcd_intr.c dwc2_update_urb_state_abn(hsotg, chan, chnum, qtd->urb, urb 1348 drivers/usb/dwc2/hcd_intr.c frame_desc = &qtd->urb->iso_descs[ urb 1410 drivers/usb/dwc2/hcd_intr.c if (qtd->urb && urb 1411 drivers/usb/dwc2/hcd_intr.c qtd->isoc_frame_index == qtd->urb->packet_count) { urb 1498 drivers/usb/dwc2/hcd_intr.c dwc2_update_urb_state_abn(hsotg, chan, chnum, qtd->urb, qtd, urb 1554 drivers/usb/dwc2/hcd_intr.c struct dwc2_hcd_urb *urb = qtd->urb; urb 1564 drivers/usb/dwc2/hcd_intr.c if (!urb) urb 1578 drivers/usb/dwc2/hcd_intr.c dwc2_hcd_get_dev_addr(&urb->pipe_info)); urb 1580 drivers/usb/dwc2/hcd_intr.c dwc2_hcd_get_ep_num(&urb->pipe_info), urb 1581 drivers/usb/dwc2/hcd_intr.c dwc2_hcd_is_pipe_in(&urb->pipe_info) ? "IN" : "OUT"); urb 1583 drivers/usb/dwc2/hcd_intr.c switch (dwc2_hcd_get_pipe_type(&urb->pipe_info)) { urb 1621 drivers/usb/dwc2/hcd_intr.c dwc2_hcd_get_maxp(&urb->pipe_info), urb 1622 drivers/usb/dwc2/hcd_intr.c dwc2_hcd_get_maxp_mult(&urb->pipe_info)); urb 1623 drivers/usb/dwc2/hcd_intr.c dev_err(hsotg->dev, " Data buffer length: %d\n", urb->length); urb 1625 drivers/usb/dwc2/hcd_intr.c urb->buf, (unsigned long)urb->dma); urb 1627 drivers/usb/dwc2/hcd_intr.c urb->setup_packet, (unsigned long)urb->setup_dma); urb 1628 drivers/usb/dwc2/hcd_intr.c dev_err(hsotg->dev, " Interval: %d\n", urb->interval); urb 1669 drivers/usb/dwc2/hcd_intr.c switch (dwc2_hcd_get_pipe_type(&qtd->urb->pipe_info)) { urb 1674 drivers/usb/dwc2/hcd_intr.c dwc2_update_urb_state_abn(hsotg, chan, chnum, qtd->urb, urb 1724 drivers/usb/dwc2/hcd_intr.c switch (dwc2_hcd_get_pipe_type(&qtd->urb->pipe_info)) { urb 1978 drivers/usb/dwc2/hcd_intr.c dwc2_update_urb_state_abn(hsotg, chan, chnum, qtd->urb, urb 1509 drivers/usb/dwc2/hcd_queue.c struct dwc2_hcd_urb *urb, gfp_t mem_flags) urb 1511 drivers/usb/dwc2/hcd_queue.c int dev_speed = dwc2_host_get_speed(hsotg, urb->priv); urb 1512 drivers/usb/dwc2/hcd_queue.c u8 ep_type = dwc2_hcd_get_pipe_type(&urb->pipe_info); urb 1513 drivers/usb/dwc2/hcd_queue.c bool ep_is_in = !!dwc2_hcd_is_pipe_in(&urb->pipe_info); urb 1520 drivers/usb/dwc2/hcd_queue.c int maxp = dwc2_hcd_get_maxp(&urb->pipe_info); urb 1521 drivers/usb/dwc2/hcd_queue.c int maxp_mult = dwc2_hcd_get_maxp_mult(&urb->pipe_info); urb 1545 drivers/usb/dwc2/hcd_queue.c struct dwc2_tt *dwc_tt = dwc2_host_get_tt_info(hsotg, urb->priv, urb 1561 drivers/usb/dwc2/hcd_queue.c qh->device_interval = urb->interval; urb 1562 drivers/usb/dwc2/hcd_queue.c qh->host_interval = urb->interval * (do_split ? 8 : 1); urb 1620 drivers/usb/dwc2/hcd_queue.c dwc2_hcd_get_dev_addr(&urb->pipe_info), urb 1621 drivers/usb/dwc2/hcd_queue.c dwc2_hcd_get_ep_num(&urb->pipe_info), urb 1646 drivers/usb/dwc2/hcd_queue.c struct dwc2_hcd_urb *urb, urb 1651 drivers/usb/dwc2/hcd_queue.c if (!urb->priv) urb 1659 drivers/usb/dwc2/hcd_queue.c dwc2_qh_init(hsotg, qh, urb, mem_flags); urb 2041 drivers/usb/dwc2/hcd_queue.c void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) urb 2043 drivers/usb/dwc2/hcd_queue.c qtd->urb = urb; urb 2044 drivers/usb/dwc2/hcd_queue.c if (dwc2_hcd_get_pipe_type(&urb->pipe_info) == urb 2062 drivers/usb/dwc2/hcd_queue.c urb->qtd = qtd; urb 227 drivers/usb/gadget/udc/dummy_hcd.c struct urb *urb; urb 1165 drivers/usb/gadget/udc/dummy_hcd.c static int dummy_ep_stream_en(struct dummy_hcd *dum_hcd, struct urb *urb) urb 1167 drivers/usb/gadget/udc/dummy_hcd.c const struct usb_endpoint_descriptor *desc = &urb->ep->desc; urb 1215 drivers/usb/gadget/udc/dummy_hcd.c static int dummy_validate_stream(struct dummy_hcd *dum_hcd, struct urb *urb) urb 1220 drivers/usb/gadget/udc/dummy_hcd.c enabled = dummy_ep_stream_en(dum_hcd, urb); urb 1221 drivers/usb/gadget/udc/dummy_hcd.c if (!urb->stream_id) { urb 1230 drivers/usb/gadget/udc/dummy_hcd.c usb_pipeendpoint(urb->pipe)); urb 1231 drivers/usb/gadget/udc/dummy_hcd.c if (urb->stream_id > max_streams) { urb 1233 drivers/usb/gadget/udc/dummy_hcd.c urb->stream_id); urb 1242 drivers/usb/gadget/udc/dummy_hcd.c struct urb *urb, urb 1253 drivers/usb/gadget/udc/dummy_hcd.c urbp->urb = urb; urb 1259 drivers/usb/gadget/udc/dummy_hcd.c rc = dummy_validate_stream(dum_hcd, urb); urb 1265 drivers/usb/gadget/udc/dummy_hcd.c rc = usb_hcd_link_urb_to_ep(hcd, urb); urb 1272 drivers/usb/gadget/udc/dummy_hcd.c dum_hcd->udev = urb->dev; urb 1274 drivers/usb/gadget/udc/dummy_hcd.c } else if (unlikely(dum_hcd->udev != urb->dev)) urb 1278 drivers/usb/gadget/udc/dummy_hcd.c urb->hcpriv = urbp; urb 1281 drivers/usb/gadget/udc/dummy_hcd.c if (usb_pipetype(urb->pipe) == PIPE_CONTROL) urb 1282 drivers/usb/gadget/udc/dummy_hcd.c urb->error_count = 1; /* mark as a new urb */ urb 1293 drivers/usb/gadget/udc/dummy_hcd.c static int dummy_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 1304 drivers/usb/gadget/udc/dummy_hcd.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 1313 drivers/usb/gadget/udc/dummy_hcd.c static int dummy_perform_transfer(struct urb *urb, struct dummy_request *req, urb 1317 drivers/usb/gadget/udc/dummy_hcd.c struct urbp *urbp = urb->hcpriv; urb 1324 drivers/usb/gadget/udc/dummy_hcd.c to_host = usb_urb_dir_in(urb); urb 1327 drivers/usb/gadget/udc/dummy_hcd.c if (!urb->num_sgs) { urb 1328 drivers/usb/gadget/udc/dummy_hcd.c ubuf = urb->transfer_buffer + urb->actual_length; urb 1344 drivers/usb/gadget/udc/dummy_hcd.c sg_miter_start(miter, urb->sg, urb->num_sgs, flags); urb 1380 drivers/usb/gadget/udc/dummy_hcd.c static int transfer(struct dummy_hcd *dum_hcd, struct urb *urb, urb 1394 drivers/usb/gadget/udc/dummy_hcd.c if (dummy_ep_stream_en(dum_hcd, urb)) { urb 1395 drivers/usb/gadget/udc/dummy_hcd.c if ((urb->stream_id != req->req.stream_id)) urb 1406 drivers/usb/gadget/udc/dummy_hcd.c host_len = urb->transfer_buffer_length - urb->actual_length; urb 1412 drivers/usb/gadget/udc/dummy_hcd.c to_host = usb_urb_dir_in(urb); urb 1433 drivers/usb/gadget/udc/dummy_hcd.c len = dummy_perform_transfer(urb, req, len); urb 1441 drivers/usb/gadget/udc/dummy_hcd.c urb->actual_length += len; urb 1482 drivers/usb/gadget/udc/dummy_hcd.c if (urb->transfer_buffer_length == urb->actual_length) { urb 1483 drivers/usb/gadget/udc/dummy_hcd.c if (urb->transfer_flags & URB_ZERO_PACKET && urb 1593 drivers/usb/gadget/udc/dummy_hcd.c static int handle_control_request(struct dummy_hcd *dum_hcd, struct urb *urb, urb 1729 drivers/usb/gadget/udc/dummy_hcd.c buf = (char *)urb->transfer_buffer; urb 1730 drivers/usb/gadget/udc/dummy_hcd.c if (urb->transfer_buffer_length > 0) { urb 1744 drivers/usb/gadget/udc/dummy_hcd.c if (urb->transfer_buffer_length > 1) urb 1746 drivers/usb/gadget/udc/dummy_hcd.c urb->actual_length = min_t(u32, 2, urb 1747 drivers/usb/gadget/udc/dummy_hcd.c urb->transfer_buffer_length); urb 1811 drivers/usb/gadget/udc/dummy_hcd.c struct urb *urb; urb 1821 drivers/usb/gadget/udc/dummy_hcd.c urb = urbp->urb; urb 1822 drivers/usb/gadget/udc/dummy_hcd.c if (urb->unlinked) urb 1832 drivers/usb/gadget/udc/dummy_hcd.c address = usb_pipeendpoint (urb->pipe); urb 1833 drivers/usb/gadget/udc/dummy_hcd.c if (usb_urb_dir_in(urb)) urb 1840 drivers/usb/gadget/udc/dummy_hcd.c urb); urb 1848 drivers/usb/gadget/udc/dummy_hcd.c if (ep == &dum->ep[0] && urb->error_count) { urb 1850 drivers/usb/gadget/udc/dummy_hcd.c urb->error_count = 0; urb 1855 drivers/usb/gadget/udc/dummy_hcd.c ep->ep.name, urb); urb 1866 drivers/usb/gadget/udc/dummy_hcd.c setup = *(struct usb_ctrlrequest *) urb->setup_packet; urb 1889 drivers/usb/gadget/udc/dummy_hcd.c value = handle_control_request(dum_hcd, urb, &setup, urb 1917 drivers/usb/gadget/udc/dummy_hcd.c urb->actual_length = 0; urb 1925 drivers/usb/gadget/udc/dummy_hcd.c switch (usb_pipetype(urb->pipe)) { urb 1950 drivers/usb/gadget/udc/dummy_hcd.c total -= transfer(dum_hcd, urb, ep, limit, &status); urb 1964 drivers/usb/gadget/udc/dummy_hcd.c usb_hcd_unlink_urb_from_ep(dummy_hcd_to_hcd(dum_hcd), urb); urb 1966 drivers/usb/gadget/udc/dummy_hcd.c usb_hcd_giveback_urb(dummy_hcd_to_hcd(dum_hcd), urb, status); urb 2363 drivers/usb/gadget/udc/dummy_hcd.c static inline ssize_t show_urb(char *buf, size_t size, struct urb *urb) urb 2365 drivers/usb/gadget/udc/dummy_hcd.c int ep = usb_pipeendpoint(urb->pipe); urb 2369 drivers/usb/gadget/udc/dummy_hcd.c urb, urb 2371 drivers/usb/gadget/udc/dummy_hcd.c switch (urb->dev->speed) { urb 2388 drivers/usb/gadget/udc/dummy_hcd.c ep, ep ? (usb_urb_dir_in(urb) ? "in" : "out") : "", urb 2390 drivers/usb/gadget/udc/dummy_hcd.c switch (usb_pipetype(urb->pipe)) { \ urb 2404 drivers/usb/gadget/udc/dummy_hcd.c urb->actual_length, urb->transfer_buffer_length); urb 2420 drivers/usb/gadget/udc/dummy_hcd.c temp = show_urb(buf, PAGE_SIZE - size, urbp->urb); urb 110 drivers/usb/host/ehci-dbg.c itd->urb); urb 141 drivers/usb/host/ehci-dbg.c sitd->urb); urb 452 drivers/usb/host/ehci-dbg.c td->urb, urb 854 drivers/usb/host/ehci-hcd.c struct urb *urb, urb 862 drivers/usb/host/ehci-hcd.c switch (usb_pipetype (urb->pipe)) { urb 867 drivers/usb/host/ehci-hcd.c if (urb->transfer_buffer_length > (16 * 1024)) urb 872 drivers/usb/host/ehci-hcd.c if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) urb 874 drivers/usb/host/ehci-hcd.c return submit_async(ehci, urb, &qtd_list, mem_flags); urb 877 drivers/usb/host/ehci-hcd.c if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) urb 879 drivers/usb/host/ehci-hcd.c return intr_submit(ehci, urb, &qtd_list, mem_flags); urb 882 drivers/usb/host/ehci-hcd.c if (urb->dev->speed == USB_SPEED_HIGH) urb 883 drivers/usb/host/ehci-hcd.c return itd_submit (ehci, urb, mem_flags); urb 885 drivers/usb/host/ehci-hcd.c return sitd_submit (ehci, urb, mem_flags); urb 893 drivers/usb/host/ehci-hcd.c static int ehci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 901 drivers/usb/host/ehci-hcd.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 905 drivers/usb/host/ehci-hcd.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 912 drivers/usb/host/ehci-hcd.c qh = (struct ehci_qh *) urb->hcpriv; urb 916 drivers/usb/host/ehci-hcd.c if (usb_pipetype(urb->pipe) == PIPE_INTERRUPT) urb 732 drivers/usb/host/ehci-hub.c static void usb_ehset_completion(struct urb *urb) urb 734 drivers/usb/host/ehci-hub.c struct completion *done = urb->context; urb 740 drivers/usb/host/ehci-hub.c struct urb *urb, urb 750 drivers/usb/host/ehci-hub.c static struct urb *request_single_step_set_feature_urb( urb 756 drivers/usb/host/ehci-hub.c struct urb *urb; urb 760 drivers/usb/host/ehci-hub.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 761 drivers/usb/host/ehci-hub.c if (!urb) urb 764 drivers/usb/host/ehci-hub.c urb->pipe = usb_rcvctrlpipe(udev, 0); urb 765 drivers/usb/host/ehci-hub.c ep = (usb_pipein(urb->pipe) ? udev->ep_in : udev->ep_out) urb 766 drivers/usb/host/ehci-hub.c [usb_pipeendpoint(urb->pipe)]; urb 768 drivers/usb/host/ehci-hub.c usb_free_urb(urb); urb 772 drivers/usb/host/ehci-hub.c urb->ep = ep; urb 773 drivers/usb/host/ehci-hub.c urb->dev = udev; urb 774 drivers/usb/host/ehci-hub.c urb->setup_packet = (void *)dr; urb 775 drivers/usb/host/ehci-hub.c urb->transfer_buffer = buf; urb 776 drivers/usb/host/ehci-hub.c urb->transfer_buffer_length = USB_DT_DEVICE_SIZE; urb 777 drivers/usb/host/ehci-hub.c urb->complete = usb_ehset_completion; urb 778 drivers/usb/host/ehci-hub.c urb->status = -EINPROGRESS; urb 779 drivers/usb/host/ehci-hub.c urb->actual_length = 0; urb 780 drivers/usb/host/ehci-hub.c urb->transfer_flags = URB_DIR_IN; urb 781 drivers/usb/host/ehci-hub.c usb_get_urb(urb); urb 782 drivers/usb/host/ehci-hub.c atomic_inc(&urb->use_count); urb 783 drivers/usb/host/ehci-hub.c atomic_inc(&urb->dev->urbnum); urb 784 drivers/usb/host/ehci-hub.c urb->setup_dma = dma_map_single( urb 786 drivers/usb/host/ehci-hub.c urb->setup_packet, urb 789 drivers/usb/host/ehci-hub.c urb->transfer_dma = dma_map_single( urb 791 drivers/usb/host/ehci-hub.c urb->transfer_buffer, urb 792 drivers/usb/host/ehci-hub.c urb->transfer_buffer_length, urb 794 drivers/usb/host/ehci-hub.c urb->context = done; urb 795 drivers/usb/host/ehci-hub.c return urb; urb 802 drivers/usb/host/ehci-hub.c struct urb *urb; urb 830 drivers/usb/host/ehci-hub.c urb = request_single_step_set_feature_urb(udev, dr, buf, &done); urb 831 drivers/usb/host/ehci-hub.c if (!urb) urb 835 drivers/usb/host/ehci-hub.c retval = submit_single_step_set_feature(hcd, urb, 1); urb 839 drivers/usb/host/ehci-hub.c usb_kill_urb(urb); urb 847 drivers/usb/host/ehci-hub.c urb->status = -EINPROGRESS; urb 848 drivers/usb/host/ehci-hub.c usb_get_urb(urb); urb 849 drivers/usb/host/ehci-hub.c atomic_inc(&urb->use_count); urb 850 drivers/usb/host/ehci-hub.c atomic_inc(&urb->dev->urbnum); urb 851 drivers/usb/host/ehci-hub.c retval = submit_single_step_set_feature(hcd, urb, 0); urb 854 drivers/usb/host/ehci-hub.c usb_kill_urb(urb); urb 859 drivers/usb/host/ehci-hub.c usb_free_urb(urb); urb 156 drivers/usb/host/ehci-q.c struct urb *urb, u32 token) urb 165 drivers/usb/host/ehci-q.c if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { urb 167 drivers/usb/host/ehci-q.c struct usb_device *tt = urb->dev->tt->hub; urb 170 drivers/usb/host/ehci-q.c urb->dev->ttport, urb->dev->devnum, urb 171 drivers/usb/host/ehci-q.c usb_pipeendpoint(urb->pipe), token); urb 174 drivers/usb/host/ehci-q.c || urb->dev->tt->hub != urb 176 drivers/usb/host/ehci-q.c if (usb_hub_clear_tt_buffer(urb) == 0) urb 189 drivers/usb/host/ehci-q.c struct urb *urb, urb 198 drivers/usb/host/ehci-q.c urb->actual_length += length - QTD_LENGTH (token); urb 201 drivers/usb/host/ehci-q.c if (unlikely(urb->unlinked)) urb 238 drivers/usb/host/ehci-q.c urb->dev->devpath, urb 239 drivers/usb/host/ehci-q.c usb_pipeendpoint(urb->pipe), urb 240 drivers/usb/host/ehci-q.c usb_pipein(urb->pipe) ? "in" : "out"); urb 251 drivers/usb/host/ehci-q.c ehci_urb_done(struct ehci_hcd *ehci, struct urb *urb, int status) urb 253 drivers/usb/host/ehci-q.c if (usb_pipetype(urb->pipe) == PIPE_INTERRUPT) { urb 258 drivers/usb/host/ehci-q.c if (unlikely(urb->unlinked)) { urb 270 drivers/usb/host/ehci-q.c __func__, urb->dev->devpath, urb, urb 271 drivers/usb/host/ehci-q.c usb_pipeendpoint (urb->pipe), urb 272 drivers/usb/host/ehci-q.c usb_pipein (urb->pipe) ? "in" : "out", urb 274 drivers/usb/host/ehci-q.c urb->actual_length, urb->transfer_buffer_length); urb 277 drivers/usb/host/ehci-q.c usb_hcd_unlink_urb_from_ep(ehci_to_hcd(ehci), urb); urb 278 drivers/usb/host/ehci-q.c usb_hcd_giveback_urb(ehci_to_hcd(ehci), urb, status); urb 324 drivers/usb/host/ehci-q.c struct urb *urb; urb 328 drivers/usb/host/ehci-q.c urb = qtd->urb; urb 332 drivers/usb/host/ehci-q.c if (likely (last->urb != urb)) { urb 333 drivers/usb/host/ehci-q.c ehci_urb_done(ehci, last->urb, last_status); urb 356 drivers/usb/host/ehci-q.c urb, urb 357 drivers/usb/host/ehci-q.c usb_endpoint_num(&urb->ep->desc), urb 358 drivers/usb/host/ehci-q.c usb_endpoint_dir_in(&urb->ep->desc) ? "in" : "out", urb 359 drivers/usb/host/ehci-q.c urb->transfer_buffer_length, urb 374 drivers/usb/host/ehci-q.c !urb->unlinked) { urb 431 drivers/usb/host/ehci-q.c else if (last_status == -EINPROGRESS && !urb->unlinked) urb 453 drivers/usb/host/ehci-q.c ehci_clear_tt_buffer(ehci, qh, urb, token); urb 465 drivers/usb/host/ehci-q.c last_status = qtd_copy_status(ehci, urb, urb 487 drivers/usb/host/ehci-q.c ehci_clear_tt_buffer(ehci, qh, urb, urb 511 drivers/usb/host/ehci-q.c ehci_urb_done(ehci, last->urb, last_status); urb 557 drivers/usb/host/ehci-q.c struct urb *urb, urb 577 drivers/usb/host/ehci-q.c struct urb *urb, urb 596 drivers/usb/host/ehci-q.c qtd->urb = urb; urb 602 drivers/usb/host/ehci-q.c len = urb->transfer_buffer_length; urb 603 drivers/usb/host/ehci-q.c is_input = usb_pipein (urb->pipe); urb 604 drivers/usb/host/ehci-q.c if (usb_pipecontrol (urb->pipe)) { urb 606 drivers/usb/host/ehci-q.c qtd_fill(ehci, qtd, urb->setup_dma, urb 616 drivers/usb/host/ehci-q.c qtd->urb = urb; urb 628 drivers/usb/host/ehci-q.c i = urb->num_mapped_sgs; urb 630 drivers/usb/host/ehci-q.c sg = urb->sg; urb 639 drivers/usb/host/ehci-q.c buf = urb->transfer_dma; urb 647 drivers/usb/host/ehci-q.c maxpacket = usb_maxpacket(urb->dev, urb->pipe, !is_input); urb 687 drivers/usb/host/ehci-q.c qtd->urb = urb; urb 697 drivers/usb/host/ehci-q.c if (likely ((urb->transfer_flags & URB_SHORT_NOT_OK) == 0 urb 698 drivers/usb/host/ehci-q.c || usb_pipecontrol (urb->pipe))) urb 706 drivers/usb/host/ehci-q.c if (likely (urb->transfer_buffer_length != 0)) { urb 709 drivers/usb/host/ehci-q.c if (usb_pipecontrol (urb->pipe)) { urb 713 drivers/usb/host/ehci-q.c } else if (usb_pipeout(urb->pipe) urb 714 drivers/usb/host/ehci-q.c && (urb->transfer_flags & URB_ZERO_PACKET) urb 715 drivers/usb/host/ehci-q.c && !(urb->transfer_buffer_length % maxpacket)) { urb 723 drivers/usb/host/ehci-q.c qtd->urb = urb; urb 733 drivers/usb/host/ehci-q.c if (likely (!(urb->transfer_flags & URB_NO_INTERRUPT))) urb 738 drivers/usb/host/ehci-q.c qtd_list_free (ehci, urb, head); urb 762 drivers/usb/host/ehci-q.c struct urb *urb, urb 771 drivers/usb/host/ehci-q.c struct usb_tt *tt = urb->dev->tt; urb 780 drivers/usb/host/ehci-q.c info1 |= usb_pipeendpoint (urb->pipe) << 8; urb 781 drivers/usb/host/ehci-q.c info1 |= usb_pipedevice (urb->pipe) << 0; urb 783 drivers/usb/host/ehci-q.c is_input = usb_pipein (urb->pipe); urb 784 drivers/usb/host/ehci-q.c type = usb_pipetype (urb->pipe); urb 785 drivers/usb/host/ehci-q.c ep = usb_pipe_endpoint (urb->dev, urb->pipe); urb 812 drivers/usb/host/ehci-q.c if (urb->dev->speed == USB_SPEED_HIGH) { urb 816 drivers/usb/host/ehci-q.c if (urb->interval > 1 && urb->interval < 8) { urb 821 drivers/usb/host/ehci-q.c urb->interval = 1; urb 822 drivers/usb/host/ehci-q.c } else if (urb->interval > ehci->periodic_size << 3) { urb 823 drivers/usb/host/ehci-q.c urb->interval = ehci->periodic_size << 3; urb 825 drivers/usb/host/ehci-q.c qh->ps.period = urb->interval >> 3; urb 829 drivers/usb/host/ehci-q.c 1 << (urb->ep->desc.bInterval - 1)); urb 832 drivers/usb/host/ehci-q.c qh->ps.bw_uperiod = min_t(unsigned, tmp, urb->interval); urb 838 drivers/usb/host/ehci-q.c qh->gap_uf = 1 + usb_calc_bus_time (urb->dev->speed, urb 852 drivers/usb/host/ehci-q.c usb_calc_bus_time (urb->dev->speed, urb 854 drivers/usb/host/ehci-q.c if (urb->interval > ehci->periodic_size) urb 855 drivers/usb/host/ehci-q.c urb->interval = ehci->periodic_size; urb 856 drivers/usb/host/ehci-q.c qh->ps.period = urb->interval; urb 860 drivers/usb/host/ehci-q.c urb->ep->desc.bInterval); urb 864 drivers/usb/host/ehci-q.c qh->ps.bw_period = min_t(unsigned, tmp, urb->interval); urb 870 drivers/usb/host/ehci-q.c qh->ps.udev = urb->dev; urb 871 drivers/usb/host/ehci-q.c qh->ps.ep = urb->ep; urb 874 drivers/usb/host/ehci-q.c switch (urb->dev->speed) { urb 895 drivers/usb/host/ehci-q.c info2 |= (urb->dev->ttport-1) << 23; urb 897 drivers/usb/host/ehci-q.c info2 |= urb->dev->ttport << 23; urb 932 drivers/usb/host/ehci-q.c ehci_dbg(ehci, "bogus dev %p speed %d\n", urb->dev, urb 933 drivers/usb/host/ehci-q.c urb->dev->speed); urb 947 drivers/usb/host/ehci-q.c usb_settoggle (urb->dev, usb_pipeendpoint (urb->pipe), !is_input, 1); urb 1022 drivers/usb/host/ehci-q.c struct urb *urb, urb 1034 drivers/usb/host/ehci-q.c qh = qh_make (ehci, urb, GFP_ATOMIC); urb 1050 drivers/usb/host/ehci-q.c if (usb_pipedevice (urb->pipe) == 0) urb 1093 drivers/usb/host/ehci-q.c urb->hcpriv = qh; urb 1104 drivers/usb/host/ehci-q.c struct urb *urb, urb 1113 drivers/usb/host/ehci-q.c epnum = urb->ep->desc.bEndpointAddress; urb 1121 drivers/usb/host/ehci-q.c __func__, urb->dev->devpath, urb, urb 1123 drivers/usb/host/ehci-q.c urb->transfer_buffer_length, urb 1124 drivers/usb/host/ehci-q.c qtd, urb->ep->hcpriv); urb 1133 drivers/usb/host/ehci-q.c rc = usb_hcd_link_urb_to_ep(ehci_to_hcd(ehci), urb); urb 1137 drivers/usb/host/ehci-q.c qh = qh_append_tds(ehci, urb, qtd_list, epnum, &urb->ep->hcpriv); urb 1139 drivers/usb/host/ehci-q.c usb_hcd_unlink_urb_from_ep(ehci_to_hcd(ehci), urb); urb 1152 drivers/usb/host/ehci-q.c qtd_list_free (ehci, urb, qtd_list); urb 1170 drivers/usb/host/ehci-q.c struct urb *urb, urb 1190 drivers/usb/host/ehci-q.c qtd->urb = urb; urb 1195 drivers/usb/host/ehci-q.c len = urb->transfer_buffer_length; urb 1203 drivers/usb/host/ehci-q.c qtd_fill(ehci, qtd, urb->setup_dma, urb 1207 drivers/usb/host/ehci-q.c submit_async(ehci, urb, &qtd_list, GFP_ATOMIC); urb 1216 drivers/usb/host/ehci-q.c buf = urb->transfer_dma; urb 1220 drivers/usb/host/ehci-q.c maxpacket = usb_maxpacket(urb->dev, urb->pipe, 0); urb 1238 drivers/usb/host/ehci-q.c qtd->urb = urb; urb 1245 drivers/usb/host/ehci-q.c submit_async(ehci, urb, &qtd_list, GFP_KERNEL); urb 1250 drivers/usb/host/ehci-q.c qtd_list_free(ehci, urb, head); urb 471 drivers/usb/host/ehci-sched.c if (same_tt(dev, here.sitd->urb->dev)) { urb 919 drivers/usb/host/ehci-sched.c struct urb *urb, urb 930 drivers/usb/host/ehci-sched.c epnum = urb->ep->desc.bEndpointAddress; urb 938 drivers/usb/host/ehci-sched.c status = usb_hcd_link_urb_to_ep(ehci_to_hcd(ehci), urb); urb 944 drivers/usb/host/ehci-sched.c qh = qh_append_tds(ehci, urb, &empty, epnum, &urb->ep->hcpriv); urb 956 drivers/usb/host/ehci-sched.c qh = qh_append_tds(ehci, urb, qtd_list, epnum, &urb->ep->hcpriv); urb 973 drivers/usb/host/ehci-sched.c usb_hcd_unlink_urb_from_ep(ehci_to_hcd(ehci), urb); urb 977 drivers/usb/host/ehci-sched.c qtd_list_free(ehci, urb, qtd_list); urb 1033 drivers/usb/host/ehci-sched.c struct urb *urb urb 1038 drivers/usb/host/ehci-sched.c struct usb_device *dev = urb->dev; urb 1048 drivers/usb/host/ehci-sched.c epnum = usb_pipeendpoint(urb->pipe); urb 1049 drivers/usb/host/ehci-sched.c is_input = usb_pipein(urb->pipe) ? USB_DIR_IN : 0; urb 1050 drivers/usb/host/ehci-sched.c maxp = usb_endpoint_maxp(&urb->ep->desc); urb 1055 drivers/usb/host/ehci-sched.c unsigned multi = usb_endpoint_maxp_mult(&urb->ep->desc); urb 1073 drivers/usb/host/ehci-sched.c 1 << (urb->ep->desc.bInterval - 1)); urb 1076 drivers/usb/host/ehci-sched.c stream->ps.bw_uperiod = min_t(unsigned, tmp, urb->interval); urb 1078 drivers/usb/host/ehci-sched.c stream->uperiod = urb->interval; urb 1079 drivers/usb/host/ehci-sched.c stream->ps.period = urb->interval >> 3; urb 1116 drivers/usb/host/ehci-sched.c 1 << (urb->ep->desc.bInterval - 1)); urb 1119 drivers/usb/host/ehci-sched.c stream->ps.bw_period = min_t(unsigned, tmp, urb->interval); urb 1122 drivers/usb/host/ehci-sched.c stream->ps.period = urb->interval; urb 1123 drivers/usb/host/ehci-sched.c stream->uperiod = urb->interval << 3; urb 1132 drivers/usb/host/ehci-sched.c stream->ps.ep = urb->ep; urb 1139 drivers/usb/host/ehci-sched.c iso_stream_find(struct ehci_hcd *ehci, struct urb *urb) urb 1146 drivers/usb/host/ehci-sched.c epnum = usb_pipeendpoint (urb->pipe); urb 1147 drivers/usb/host/ehci-sched.c if (usb_pipein(urb->pipe)) urb 1148 drivers/usb/host/ehci-sched.c ep = urb->dev->ep_in[epnum]; urb 1150 drivers/usb/host/ehci-sched.c ep = urb->dev->ep_out[epnum]; urb 1159 drivers/usb/host/ehci-sched.c iso_stream_init(ehci, stream, urb); urb 1165 drivers/usb/host/ehci-sched.c urb->dev->devpath, epnum, urb 1166 drivers/usb/host/ehci-sched.c usb_pipein(urb->pipe) ? "in" : "out"); urb 1197 drivers/usb/host/ehci-sched.c struct urb *urb urb 1201 drivers/usb/host/ehci-sched.c dma_addr_t dma = urb->transfer_dma; urb 1204 drivers/usb/host/ehci-sched.c iso_sched->span = urb->number_of_packets * stream->uperiod; urb 1209 drivers/usb/host/ehci-sched.c for (i = 0; i < urb->number_of_packets; i++) { urb 1215 drivers/usb/host/ehci-sched.c length = urb->iso_frame_desc[i].length; urb 1216 drivers/usb/host/ehci-sched.c buf = dma + urb->iso_frame_desc[i].offset; urb 1220 drivers/usb/host/ehci-sched.c if (unlikely(((i + 1) == urb->number_of_packets)) urb 1221 drivers/usb/host/ehci-sched.c && !(urb->transfer_flags & URB_NO_INTERRUPT)) urb 1251 drivers/usb/host/ehci-sched.c struct urb *urb, urb 1262 drivers/usb/host/ehci-sched.c sched = iso_sched_alloc(urb->number_of_packets, mem_flags); urb 1266 drivers/usb/host/ehci-sched.c itd_sched_init(ehci, sched, stream, urb); urb 1268 drivers/usb/host/ehci-sched.c if (urb->interval < 8) urb 1271 drivers/usb/host/ehci-sched.c num_itds = urb->number_of_packets; urb 1309 drivers/usb/host/ehci-sched.c urb->hcpriv = sched; urb 1310 drivers/usb/host/ehci-sched.c urb->error_count = 0; urb 1482 drivers/usb/host/ehci-sched.c struct urb *urb, urb 1490 drivers/usb/host/ehci-sched.c struct ehci_iso_sched *sched = urb->hcpriv; urb 1501 drivers/usb/host/ehci-sched.c ehci_to_hcd(ehci), urb->ep))) { urb 1540 drivers/usb/host/ehci-sched.c ehci_dbg(ehci, "iso sched full %p", urb); urb 1595 drivers/usb/host/ehci-sched.c urb, stream->next_uframe, base, period, mod); urb 1605 drivers/usb/host/ehci-sched.c (urb->transfer_flags & URB_ISO_ASAP))) urb 1614 drivers/usb/host/ehci-sched.c if (urb->transfer_flags & URB_ISO_ASAP) urb 1624 drivers/usb/host/ehci-sched.c urb, start + base, span - period, now2 + base, urb 1638 drivers/usb/host/ehci-sched.c urb->error_count = skip / period; urb 1640 drivers/usb/host/ehci-sched.c sched->first_packet = urb->error_count; urb 1651 drivers/usb/host/ehci-sched.c urb, start, span - period, mod + wrap); urb 1660 drivers/usb/host/ehci-sched.c urb->start_frame = start & (mod - 1); urb 1662 drivers/usb/host/ehci-sched.c urb->start_frame >>= 3; urb 1667 drivers/usb/host/ehci-sched.c urb->hcpriv = NULL; urb 1752 drivers/usb/host/ehci-sched.c struct urb *urb, urb 1759 drivers/usb/host/ehci-sched.c struct ehci_iso_sched *iso_sched = urb->hcpriv; urb 1777 drivers/usb/host/ehci-sched.c packet < urb->number_of_packets;) { urb 1788 drivers/usb/host/ehci-sched.c itd->urb = urb; urb 1803 drivers/usb/host/ehci-sched.c || packet == urb->number_of_packets) { urb 1812 drivers/usb/host/ehci-sched.c urb->hcpriv = stream; urb 1832 drivers/usb/host/ehci-sched.c struct urb *urb = itd->urb; urb 1845 drivers/usb/host/ehci-sched.c desc = &urb->iso_frame_desc[urb_index]; urb 1852 drivers/usb/host/ehci-sched.c urb->error_count++; urb 1854 drivers/usb/host/ehci-sched.c desc->status = usb_pipein(urb->pipe) urb 1865 drivers/usb/host/ehci-sched.c urb->actual_length += desc->actual_length; urb 1870 drivers/usb/host/ehci-sched.c urb->actual_length += desc->actual_length; urb 1873 drivers/usb/host/ehci-sched.c urb->error_count++; urb 1878 drivers/usb/host/ehci-sched.c if (likely((urb_index + 1) != urb->number_of_packets)) urb 1888 drivers/usb/host/ehci-sched.c ehci_urb_done(ehci, urb, 0); urb 1890 drivers/usb/host/ehci-sched.c urb = NULL; urb 1906 drivers/usb/host/ehci-sched.c itd->urb = NULL; urb 1923 drivers/usb/host/ehci-sched.c static int itd_submit(struct ehci_hcd *ehci, struct urb *urb, urb 1931 drivers/usb/host/ehci-sched.c stream = iso_stream_find(ehci, urb); urb 1936 drivers/usb/host/ehci-sched.c if (unlikely(urb->interval != stream->uperiod)) { urb 1938 drivers/usb/host/ehci-sched.c stream->uperiod, urb->interval); urb 1945 drivers/usb/host/ehci-sched.c __func__, urb->dev->devpath, urb, urb 1946 drivers/usb/host/ehci-sched.c usb_pipeendpoint(urb->pipe), urb 1947 drivers/usb/host/ehci-sched.c usb_pipein(urb->pipe) ? "in" : "out", urb 1948 drivers/usb/host/ehci-sched.c urb->transfer_buffer_length, urb 1949 drivers/usb/host/ehci-sched.c urb->number_of_packets, urb->interval, urb 1954 drivers/usb/host/ehci-sched.c status = itd_urb_transaction(stream, ehci, urb, mem_flags); urb 1966 drivers/usb/host/ehci-sched.c status = usb_hcd_link_urb_to_ep(ehci_to_hcd(ehci), urb); urb 1969 drivers/usb/host/ehci-sched.c status = iso_stream_schedule(ehci, urb, stream); urb 1971 drivers/usb/host/ehci-sched.c itd_link_urb(ehci, urb, ehci->periodic_size << 3, stream); urb 1974 drivers/usb/host/ehci-sched.c ehci_urb_done(ehci, urb, 0); urb 1976 drivers/usb/host/ehci-sched.c usb_hcd_unlink_urb_from_ep(ehci_to_hcd(ehci), urb); urb 1996 drivers/usb/host/ehci-sched.c struct urb *urb urb 2000 drivers/usb/host/ehci-sched.c dma_addr_t dma = urb->transfer_dma; urb 2003 drivers/usb/host/ehci-sched.c iso_sched->span = urb->number_of_packets * stream->ps.period; urb 2008 drivers/usb/host/ehci-sched.c for (i = 0; i < urb->number_of_packets; i++) { urb 2014 drivers/usb/host/ehci-sched.c length = urb->iso_frame_desc[i].length & 0x03ff; urb 2015 drivers/usb/host/ehci-sched.c buf = dma + urb->iso_frame_desc[i].offset; urb 2018 drivers/usb/host/ehci-sched.c if (((i + 1) == urb->number_of_packets) urb 2019 drivers/usb/host/ehci-sched.c && !(urb->transfer_flags & URB_NO_INTERRUPT)) urb 2044 drivers/usb/host/ehci-sched.c struct urb *urb, urb 2054 drivers/usb/host/ehci-sched.c iso_sched = iso_sched_alloc(urb->number_of_packets, mem_flags); urb 2058 drivers/usb/host/ehci-sched.c sitd_sched_init(ehci, iso_sched, stream, urb); urb 2062 drivers/usb/host/ehci-sched.c for (i = 0; i < urb->number_of_packets; i++) { urb 2100 drivers/usb/host/ehci-sched.c urb->hcpriv = iso_sched; urb 2101 drivers/usb/host/ehci-sched.c urb->error_count = 0; urb 2153 drivers/usb/host/ehci-sched.c struct urb *urb, urb 2160 drivers/usb/host/ehci-sched.c struct ehci_iso_sched *sched = urb->hcpriv; urb 2179 drivers/usb/host/ehci-sched.c packet < urb->number_of_packets; urb 2191 drivers/usb/host/ehci-sched.c sitd->urb = urb; urb 2203 drivers/usb/host/ehci-sched.c urb->hcpriv = stream; urb 2226 drivers/usb/host/ehci-sched.c struct urb *urb = sitd->urb; urb 2234 drivers/usb/host/ehci-sched.c desc = &urb->iso_frame_desc[urb_index]; urb 2239 drivers/usb/host/ehci-sched.c urb->error_count++; urb 2241 drivers/usb/host/ehci-sched.c desc->status = usb_pipein(urb->pipe) urb 2250 drivers/usb/host/ehci-sched.c urb->error_count++; urb 2254 drivers/usb/host/ehci-sched.c urb->actual_length += desc->actual_length; urb 2258 drivers/usb/host/ehci-sched.c if ((urb_index + 1) != urb->number_of_packets) urb 2268 drivers/usb/host/ehci-sched.c ehci_urb_done(ehci, urb, 0); urb 2270 drivers/usb/host/ehci-sched.c urb = NULL; urb 2286 drivers/usb/host/ehci-sched.c sitd->urb = NULL; urb 2302 drivers/usb/host/ehci-sched.c static int sitd_submit(struct ehci_hcd *ehci, struct urb *urb, urb 2310 drivers/usb/host/ehci-sched.c stream = iso_stream_find(ehci, urb); urb 2315 drivers/usb/host/ehci-sched.c if (urb->interval != stream->ps.period) { urb 2317 drivers/usb/host/ehci-sched.c stream->ps.period, urb->interval); urb 2324 drivers/usb/host/ehci-sched.c urb, urb->dev->devpath, urb 2325 drivers/usb/host/ehci-sched.c usb_pipeendpoint(urb->pipe), urb 2326 drivers/usb/host/ehci-sched.c usb_pipein(urb->pipe) ? "in" : "out", urb 2327 drivers/usb/host/ehci-sched.c urb->transfer_buffer_length); urb 2331 drivers/usb/host/ehci-sched.c status = sitd_urb_transaction(stream, ehci, urb, mem_flags); urb 2343 drivers/usb/host/ehci-sched.c status = usb_hcd_link_urb_to_ep(ehci_to_hcd(ehci), urb); urb 2346 drivers/usb/host/ehci-sched.c status = iso_stream_schedule(ehci, urb, stream); urb 2348 drivers/usb/host/ehci-sched.c sitd_link_urb(ehci, urb, ehci->periodic_size << 3, stream); urb 2351 drivers/usb/host/ehci-sched.c ehci_urb_done(ehci, urb, 0); urb 2353 drivers/usb/host/ehci-sched.c usb_hcd_unlink_urb_from_ep(ehci_to_hcd(ehci), urb); urb 290 drivers/usb/host/ehci-tegra.c static void free_dma_aligned_buffer(struct urb *urb) urb 295 drivers/usb/host/ehci-tegra.c if (!(urb->transfer_flags & URB_ALIGNED_TEMP_BUFFER)) urb 298 drivers/usb/host/ehci-tegra.c temp = container_of(urb->transfer_buffer, urb 301 drivers/usb/host/ehci-tegra.c if (usb_urb_dir_in(urb)) { urb 302 drivers/usb/host/ehci-tegra.c if (usb_pipeisoc(urb->pipe)) urb 303 drivers/usb/host/ehci-tegra.c length = urb->transfer_buffer_length; urb 305 drivers/usb/host/ehci-tegra.c length = urb->actual_length; urb 309 drivers/usb/host/ehci-tegra.c urb->transfer_buffer = temp->old_xfer_buffer; urb 312 drivers/usb/host/ehci-tegra.c urb->transfer_flags &= ~URB_ALIGNED_TEMP_BUFFER; urb 315 drivers/usb/host/ehci-tegra.c static int alloc_dma_aligned_buffer(struct urb *urb, gfp_t mem_flags) urb 320 drivers/usb/host/ehci-tegra.c if (urb->num_sgs || urb->sg || urb 321 drivers/usb/host/ehci-tegra.c urb->transfer_buffer_length == 0 || urb 322 drivers/usb/host/ehci-tegra.c !((uintptr_t)urb->transfer_buffer & (TEGRA_USB_DMA_ALIGN - 1))) urb 326 drivers/usb/host/ehci-tegra.c kmalloc_size = urb->transfer_buffer_length + urb 336 drivers/usb/host/ehci-tegra.c temp->old_xfer_buffer = urb->transfer_buffer; urb 337 drivers/usb/host/ehci-tegra.c if (usb_urb_dir_out(urb)) urb 338 drivers/usb/host/ehci-tegra.c memcpy(temp->data, urb->transfer_buffer, urb 339 drivers/usb/host/ehci-tegra.c urb->transfer_buffer_length); urb 340 drivers/usb/host/ehci-tegra.c urb->transfer_buffer = temp->data; urb 342 drivers/usb/host/ehci-tegra.c urb->transfer_flags |= URB_ALIGNED_TEMP_BUFFER; urb 347 drivers/usb/host/ehci-tegra.c static int tegra_ehci_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, urb 352 drivers/usb/host/ehci-tegra.c ret = alloc_dma_aligned_buffer(urb, mem_flags); urb 356 drivers/usb/host/ehci-tegra.c ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); urb 358 drivers/usb/host/ehci-tegra.c free_dma_aligned_buffer(urb); urb 363 drivers/usb/host/ehci-tegra.c static void tegra_ehci_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) urb 365 drivers/usb/host/ehci-tegra.c usb_hcd_unmap_urb_for_dma(hcd, urb); urb 366 drivers/usb/host/ehci-tegra.c free_dma_aligned_buffer(urb); urb 316 drivers/usb/host/ehci.h struct urb *urb; /* qtd's urb */ urb 528 drivers/usb/host/ehci.h struct urb *urb; urb 574 drivers/usb/host/ehci.h struct urb *urb; urb 384 drivers/usb/host/fhci-hcd.c static int fhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, urb 388 drivers/usb/host/fhci-hcd.c u32 pipe = urb->pipe; urb 401 drivers/usb/host/fhci-hcd.c size += urb->transfer_buffer_length / 4096; urb 403 drivers/usb/host/fhci-hcd.c if ((urb->transfer_buffer_length % 4096) != 0) urb 408 drivers/usb/host/fhci-hcd.c else if ((urb->transfer_flags & URB_ZERO_PACKET) != 0 urb 409 drivers/usb/host/fhci-hcd.c && (urb->transfer_buffer_length urb 410 drivers/usb/host/fhci-hcd.c % usb_maxpacket(urb->dev, pipe, urb 415 drivers/usb/host/fhci-hcd.c size = urb->number_of_packets; urb 418 drivers/usb/host/fhci-hcd.c for (i = 0; i < urb->number_of_packets; i++) { urb 419 drivers/usb/host/fhci-hcd.c urb->iso_frame_desc[i].actual_length = 0; urb 420 drivers/usb/host/fhci-hcd.c urb->iso_frame_desc[i].status = (u32) (-EXDEV); urb 441 drivers/usb/host/fhci-hcd.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 448 drivers/usb/host/fhci-hcd.c urb->status = -EINPROGRESS; urb 449 drivers/usb/host/fhci-hcd.c urb->actual_length = 0; urb 450 drivers/usb/host/fhci-hcd.c urb->error_count = 0; urb 451 drivers/usb/host/fhci-hcd.c urb->hcpriv = urb_priv; urb 453 drivers/usb/host/fhci-hcd.c fhci_queue_urb(fhci, urb); urb 464 drivers/usb/host/fhci-hcd.c static int fhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 471 drivers/usb/host/fhci-hcd.c if (!urb || !urb->dev || !urb->dev->bus) urb 476 drivers/usb/host/fhci-hcd.c ret = usb_hcd_check_unlink_urb(hcd, urb, status); urb 487 drivers/usb/host/fhci-hcd.c urb_priv = urb->hcpriv; urb 497 drivers/usb/host/fhci-hcd.c fhci_urb_complete_free(fhci, urb); urb 519 drivers/usb/host/fhci-hcd.c fhci_urb_complete_free(fhci, td->urb); urb 85 drivers/usb/host/fhci-mem.c struct td *fhci_td_fill(struct fhci_hcd *fhci, struct urb *urb, urb 95 drivers/usb/host/fhci-mem.c td->urb = urb; urb 161 drivers/usb/host/fhci-q.c static void free_urb_priv(struct fhci_hcd *fhci, struct urb *urb) urb 164 drivers/usb/host/fhci-q.c struct urb_priv *urb_priv = urb->hcpriv; urb 180 drivers/usb/host/fhci-q.c urb->hcpriv = NULL; urb 189 drivers/usb/host/fhci-q.c void fhci_urb_complete_free(struct fhci_hcd *fhci, struct urb *urb) urb 191 drivers/usb/host/fhci-q.c free_urb_priv(fhci, urb); urb 193 drivers/usb/host/fhci-q.c if (urb->status == -EINPROGRESS) { urb 194 drivers/usb/host/fhci-q.c if (urb->actual_length != urb->transfer_buffer_length && urb 195 drivers/usb/host/fhci-q.c urb->transfer_flags & URB_SHORT_NOT_OK) urb 196 drivers/usb/host/fhci-q.c urb->status = -EREMOTEIO; urb 198 drivers/usb/host/fhci-q.c urb->status = 0; urb 201 drivers/usb/host/fhci-q.c usb_hcd_unlink_urb_from_ep(fhci_to_hcd(fhci), urb); urb 205 drivers/usb/host/fhci-q.c usb_hcd_giveback_urb(fhci_to_hcd(fhci), urb, urb->status); urb 214 drivers/usb/host/fhci-q.c void fhci_done_td(struct urb *urb, struct td *td) urb 222 drivers/usb/host/fhci-q.c if (!(urb->transfer_flags & URB_SHORT_NOT_OK && urb 226 drivers/usb/host/fhci-q.c if (usb_pipeout(urb->pipe)) urb 227 drivers/usb/host/fhci-q.c len = urb->iso_frame_desc[td->iso_index].length; urb 231 drivers/usb/host/fhci-q.c urb->actual_length += len; urb 232 drivers/usb/host/fhci-q.c urb->iso_frame_desc[td->iso_index].actual_length = len; urb 233 drivers/usb/host/fhci-q.c urb->iso_frame_desc[td->iso_index].status = urb 243 drivers/usb/host/fhci-q.c urb->error_count = 3; urb 248 drivers/usb/host/fhci-q.c if (!(urb->transfer_flags & URB_SHORT_NOT_OK) && urb 254 drivers/usb/host/fhci-q.c if (urb->status == -EINPROGRESS) urb 255 drivers/usb/host/fhci-q.c urb->status = status_to_error(cc); urb 260 drivers/usb/host/fhci-q.c urb->actual_length += td->actual_len; urb 268 drivers/usb/host/fhci-q.c struct urb *urb = td->urb; urb 269 drivers/usb/host/fhci-q.c struct urb_priv *urb_priv = urb->hcpriv; urb 275 drivers/usb/host/fhci-q.c fhci_done_td(urb, td); urb 279 drivers/usb/host/fhci-q.c fhci_urb_complete_free(fhci, urb); urb 633 drivers/usb/host/fhci-sched.c struct urb *urb; urb 645 drivers/usb/host/fhci-sched.c urb = td->urb; urb 646 drivers/usb/host/fhci-sched.c urb_priv = urb->hcpriv; urb 650 drivers/usb/host/fhci-sched.c fhci_done_td(urb, td); urb 660 drivers/usb/host/fhci-sched.c fhci_urb_complete_free(fhci, urb); urb 697 drivers/usb/host/fhci-sched.c void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb) urb 699 drivers/usb/host/fhci-sched.c struct ed *ed = urb->ep->hcpriv; urb 700 drivers/usb/host/fhci-sched.c struct urb_priv *urb_priv = urb->hcpriv; urb 701 drivers/usb/host/fhci-sched.c u32 data_len = urb->transfer_buffer_length; urb 710 drivers/usb/host/fhci-sched.c ed->dev_addr = usb_pipedevice(urb->pipe); urb 711 drivers/usb/host/fhci-sched.c ed->ep_addr = usb_pipeendpoint(urb->pipe); urb 712 drivers/usb/host/fhci-sched.c switch (usb_pipetype(urb->pipe)) { urb 728 drivers/usb/host/fhci-sched.c ed->speed = (urb->dev->speed == USB_SPEED_LOW) ? urb 730 drivers/usb/host/fhci-sched.c ed->max_pkt_size = usb_endpoint_maxp(&urb->ep->desc); urb 731 drivers/usb/host/fhci-sched.c urb->ep->hcpriv = ed; urb 739 drivers/usb/host/fhci-sched.c urb->start_frame = ed->td_head ? ed->next_iso : urb 741 drivers/usb/host/fhci-sched.c ed->next_iso = (urb->start_frame + urb->interval * urb 742 drivers/usb/host/fhci-sched.c urb->number_of_packets) & 0x07ff; urb 749 drivers/usb/host/fhci-sched.c if (usb_gettoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 750 drivers/usb/host/fhci-sched.c usb_pipeout(urb->pipe))) urb 754 drivers/usb/host/fhci-sched.c usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 755 drivers/usb/host/fhci-sched.c usb_pipeout(urb->pipe), 1); urb 761 drivers/usb/host/fhci-sched.c data = urb->transfer_buffer; urb 767 drivers/usb/host/fhci-sched.c if (urb->transfer_flags & URB_ZERO_PACKET && urb 768 drivers/usb/host/fhci-sched.c urb->transfer_buffer_length > 0 && urb 769 drivers/usb/host/fhci-sched.c ((urb->transfer_buffer_length % urb 770 drivers/usb/host/fhci-sched.c usb_endpoint_maxp(&urb->ep->desc)) == 0)) urb 773 drivers/usb/host/fhci-sched.c td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, urb 774 drivers/usb/host/fhci-sched.c usb_pipeout(urb->pipe) ? FHCI_TA_OUT : urb 784 drivers/usb/host/fhci-sched.c td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, urb 785 drivers/usb/host/fhci-sched.c usb_pipeout(urb->pipe) ? FHCI_TA_OUT : FHCI_TA_IN, urb 790 drivers/usb/host/fhci-sched.c if (urb->transfer_flags & URB_ZERO_PACKET && urb 792 drivers/usb/host/fhci-sched.c td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, urb 793 drivers/usb/host/fhci-sched.c usb_pipeout(urb->pipe) ? FHCI_TA_OUT : urb 800 drivers/usb/host/fhci-sched.c urb->start_frame = get_frame_num(fhci) + 1; urb 801 drivers/usb/host/fhci-sched.c td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, urb 802 drivers/usb/host/fhci-sched.c usb_pipeout(urb->pipe) ? FHCI_TA_OUT : FHCI_TA_IN, urb 804 drivers/usb/host/fhci-sched.c urb->interval, urb->start_frame, true); urb 807 drivers/usb/host/fhci-sched.c ed->dev_addr = usb_pipedevice(urb->pipe); urb 808 drivers/usb/host/fhci-sched.c ed->max_pkt_size = usb_endpoint_maxp(&urb->ep->desc); urb 811 drivers/usb/host/fhci-sched.c td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, FHCI_TA_SETUP, urb 812 drivers/usb/host/fhci-sched.c USB_TD_TOGGLE_DATA0, urb->setup_packet, 8, 0, 0, true); urb 816 drivers/usb/host/fhci-sched.c td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, urb 817 drivers/usb/host/fhci-sched.c usb_pipeout(urb->pipe) ? FHCI_TA_OUT : urb 825 drivers/usb/host/fhci-sched.c td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, urb 826 drivers/usb/host/fhci-sched.c (usb_pipeout(urb->pipe) ? FHCI_TA_IN : urb 830 drivers/usb/host/fhci-sched.c td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, urb 837 drivers/usb/host/fhci-sched.c for (cnt = 0; cnt < urb->number_of_packets; cnt++) { urb 838 drivers/usb/host/fhci-sched.c u16 frame = urb->start_frame; urb 845 drivers/usb/host/fhci-sched.c frame += cnt * urb->interval; urb 847 drivers/usb/host/fhci-sched.c td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, urb 848 drivers/usb/host/fhci-sched.c usb_pipeout(urb->pipe) ? FHCI_TA_OUT : urb 851 drivers/usb/host/fhci-sched.c data + urb->iso_frame_desc[cnt].offset, urb 852 drivers/usb/host/fhci-sched.c urb->iso_frame_desc[cnt].length, urb 853 drivers/usb/host/fhci-sched.c urb->interval, frame, true); urb 865 drivers/usb/host/fhci-sched.c urb->pipe &= ~0x1f; urb 866 drivers/usb/host/fhci-sched.c urb->pipe |= urb_state & 0x1f; urb 350 drivers/usb/host/fhci.h struct urb *urb; /* a handle to the corresponding URB */ urb 517 drivers/usb/host/fhci.h struct td *fhci_td_fill(struct fhci_hcd *fhci, struct urb *urb, urb 558 drivers/usb/host/fhci.h void fhci_queue_urb(struct fhci_hcd *fhci, struct urb *urb); urb 564 drivers/usb/host/fhci.h void fhci_urb_complete_free(struct fhci_hcd *fhci, struct urb *urb); urb 571 drivers/usb/host/fhci.h void fhci_done_td(struct urb *urb, struct td *td); urb 147 drivers/usb/host/fotg210-hcd.c itd->urb); urb 426 drivers/usb/host/fotg210-hcd.c td->urb); urb 2112 drivers/usb/host/fotg210-hcd.c struct fotg210_qh *qh, struct urb *urb, u32 token) urb 2121 drivers/usb/host/fotg210-hcd.c if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { urb 2122 drivers/usb/host/fotg210-hcd.c struct usb_device *tt = urb->dev->tt->hub; urb 2126 drivers/usb/host/fotg210-hcd.c urb->dev->ttport, urb->dev->devnum, urb 2127 drivers/usb/host/fotg210-hcd.c usb_pipeendpoint(urb->pipe), token); urb 2129 drivers/usb/host/fotg210-hcd.c if (urb->dev->tt->hub != urb 2131 drivers/usb/host/fotg210-hcd.c if (usb_hub_clear_tt_buffer(urb) == 0) urb 2137 drivers/usb/host/fotg210-hcd.c static int qtd_copy_status(struct fotg210_hcd *fotg210, struct urb *urb, urb 2144 drivers/usb/host/fotg210-hcd.c urb->actual_length += length - QTD_LENGTH(token); urb 2147 drivers/usb/host/fotg210-hcd.c if (unlikely(urb->unlinked)) urb 2177 drivers/usb/host/fotg210-hcd.c urb->dev->devpath, urb 2178 drivers/usb/host/fotg210-hcd.c usb_pipeendpoint(urb->pipe), urb 2179 drivers/usb/host/fotg210-hcd.c usb_pipein(urb->pipe) ? "in" : "out"); urb 2187 drivers/usb/host/fotg210-hcd.c usb_pipedevice(urb->pipe), urb 2188 drivers/usb/host/fotg210-hcd.c usb_pipeendpoint(urb->pipe), urb 2189 drivers/usb/host/fotg210-hcd.c usb_pipein(urb->pipe) ? "in" : "out", urb 2196 drivers/usb/host/fotg210-hcd.c static void fotg210_urb_done(struct fotg210_hcd *fotg210, struct urb *urb, urb 2201 drivers/usb/host/fotg210-hcd.c if (likely(urb->hcpriv != NULL)) { urb 2202 drivers/usb/host/fotg210-hcd.c struct fotg210_qh *qh = (struct fotg210_qh *) urb->hcpriv; urb 2212 drivers/usb/host/fotg210-hcd.c if (unlikely(urb->unlinked)) { urb 2224 drivers/usb/host/fotg210-hcd.c __func__, urb->dev->devpath, urb, urb 2225 drivers/usb/host/fotg210-hcd.c usb_pipeendpoint(urb->pipe), urb 2226 drivers/usb/host/fotg210-hcd.c usb_pipein(urb->pipe) ? "in" : "out", urb 2228 drivers/usb/host/fotg210-hcd.c urb->actual_length, urb->transfer_buffer_length); urb 2232 drivers/usb/host/fotg210-hcd.c usb_hcd_unlink_urb_from_ep(fotg210_to_hcd(fotg210), urb); urb 2234 drivers/usb/host/fotg210-hcd.c usb_hcd_giveback_urb(fotg210_to_hcd(fotg210), urb, status); urb 2283 drivers/usb/host/fotg210-hcd.c struct urb *urb; urb 2286 drivers/usb/host/fotg210-hcd.c urb = qtd->urb; urb 2290 drivers/usb/host/fotg210-hcd.c if (likely(last->urb != urb)) { urb 2291 drivers/usb/host/fotg210-hcd.c fotg210_urb_done(fotg210, last->urb, urb 2316 drivers/usb/host/fotg210-hcd.c urb, usb_endpoint_num(&urb->ep->desc), urb 2317 drivers/usb/host/fotg210-hcd.c usb_endpoint_dir_in(&urb->ep->desc) urb 2319 drivers/usb/host/fotg210-hcd.c urb->transfer_buffer_length, qtd, qh); urb 2332 drivers/usb/host/fotg210-hcd.c !urb->unlinked) { urb 2387 drivers/usb/host/fotg210-hcd.c else if (last_status == -EINPROGRESS && !urb->unlinked) urb 2400 drivers/usb/host/fotg210-hcd.c fotg210_clear_tt_buffer(fotg210, qh, urb, urb 2413 drivers/usb/host/fotg210-hcd.c last_status = qtd_copy_status(fotg210, urb, urb 2436 drivers/usb/host/fotg210-hcd.c urb, token); urb 2459 drivers/usb/host/fotg210-hcd.c fotg210_urb_done(fotg210, last->urb, last_status); urb 2522 drivers/usb/host/fotg210-hcd.c static void qtd_list_free(struct fotg210_hcd *fotg210, struct urb *urb, urb 2536 drivers/usb/host/fotg210-hcd.c struct urb *urb, struct list_head *head, gfp_t flags) urb 2553 drivers/usb/host/fotg210-hcd.c qtd->urb = urb; urb 2559 drivers/usb/host/fotg210-hcd.c len = urb->transfer_buffer_length; urb 2560 drivers/usb/host/fotg210-hcd.c is_input = usb_pipein(urb->pipe); urb 2561 drivers/usb/host/fotg210-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 2563 drivers/usb/host/fotg210-hcd.c qtd_fill(fotg210, qtd, urb->setup_dma, urb 2573 drivers/usb/host/fotg210-hcd.c qtd->urb = urb; urb 2585 drivers/usb/host/fotg210-hcd.c i = urb->num_mapped_sgs; urb 2587 drivers/usb/host/fotg210-hcd.c sg = urb->sg; urb 2596 drivers/usb/host/fotg210-hcd.c buf = urb->transfer_dma; urb 2604 drivers/usb/host/fotg210-hcd.c maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input)); urb 2644 drivers/usb/host/fotg210-hcd.c qtd->urb = urb; urb 2654 drivers/usb/host/fotg210-hcd.c if (likely((urb->transfer_flags & URB_SHORT_NOT_OK) == 0 || urb 2655 drivers/usb/host/fotg210-hcd.c usb_pipecontrol(urb->pipe))) urb 2663 drivers/usb/host/fotg210-hcd.c if (likely(urb->transfer_buffer_length != 0)) { urb 2666 drivers/usb/host/fotg210-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 2670 drivers/usb/host/fotg210-hcd.c } else if (usb_pipeout(urb->pipe) urb 2671 drivers/usb/host/fotg210-hcd.c && (urb->transfer_flags & URB_ZERO_PACKET) urb 2672 drivers/usb/host/fotg210-hcd.c && !(urb->transfer_buffer_length % maxpacket)) { urb 2680 drivers/usb/host/fotg210-hcd.c qtd->urb = urb; urb 2690 drivers/usb/host/fotg210-hcd.c if (likely(!(urb->transfer_flags & URB_NO_INTERRUPT))) urb 2695 drivers/usb/host/fotg210-hcd.c qtd_list_free(fotg210, urb, head); urb 2714 drivers/usb/host/fotg210-hcd.c static struct fotg210_qh *qh_make(struct fotg210_hcd *fotg210, struct urb *urb, urb 2721 drivers/usb/host/fotg210-hcd.c struct usb_tt *tt = urb->dev->tt; urb 2730 drivers/usb/host/fotg210-hcd.c info1 |= usb_pipeendpoint(urb->pipe) << 8; urb 2731 drivers/usb/host/fotg210-hcd.c info1 |= usb_pipedevice(urb->pipe) << 0; urb 2733 drivers/usb/host/fotg210-hcd.c is_input = usb_pipein(urb->pipe); urb 2734 drivers/usb/host/fotg210-hcd.c type = usb_pipetype(urb->pipe); urb 2735 drivers/usb/host/fotg210-hcd.c maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); urb 2760 drivers/usb/host/fotg210-hcd.c if (urb->dev->speed == USB_SPEED_HIGH) { urb 2764 drivers/usb/host/fotg210-hcd.c qh->period = urb->interval >> 3; urb 2765 drivers/usb/host/fotg210-hcd.c if (qh->period == 0 && urb->interval != 1) { urb 2770 drivers/usb/host/fotg210-hcd.c urb->interval = 1; urb 2773 drivers/usb/host/fotg210-hcd.c urb->interval = qh->period << 3; urb 2779 drivers/usb/host/fotg210-hcd.c qh->gap_uf = 1 + usb_calc_bus_time(urb->dev->speed, urb 2793 drivers/usb/host/fotg210-hcd.c usb_calc_bus_time(urb->dev->speed, urb 2795 drivers/usb/host/fotg210-hcd.c qh->period = urb->interval; urb 2798 drivers/usb/host/fotg210-hcd.c urb->interval = qh->period; urb 2804 drivers/usb/host/fotg210-hcd.c qh->dev = urb->dev; urb 2807 drivers/usb/host/fotg210-hcd.c switch (urb->dev->speed) { urb 2828 drivers/usb/host/fotg210-hcd.c info2 |= (urb->dev->ttport-1) << 23; urb 2830 drivers/usb/host/fotg210-hcd.c info2 |= urb->dev->ttport << 23; urb 2865 drivers/usb/host/fotg210-hcd.c fotg210_dbg(fotg210, "bogus dev %p speed %d\n", urb->dev, urb 2866 drivers/usb/host/fotg210-hcd.c urb->dev->speed); urb 2880 drivers/usb/host/fotg210-hcd.c usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), !is_input, 1); urb 2948 drivers/usb/host/fotg210-hcd.c struct urb *urb, struct list_head *qtd_list, urb 2957 drivers/usb/host/fotg210-hcd.c qh = qh_make(fotg210, urb, GFP_ATOMIC); urb 2972 drivers/usb/host/fotg210-hcd.c if (usb_pipedevice(urb->pipe) == 0) urb 3015 drivers/usb/host/fotg210-hcd.c urb->hcpriv = qh; urb 3021 drivers/usb/host/fotg210-hcd.c static int submit_async(struct fotg210_hcd *fotg210, struct urb *urb, urb 3029 drivers/usb/host/fotg210-hcd.c epnum = urb->ep->desc.bEndpointAddress; urb 3038 drivers/usb/host/fotg210-hcd.c __func__, urb->dev->devpath, urb, urb 3041 drivers/usb/host/fotg210-hcd.c urb->transfer_buffer_length, urb 3042 drivers/usb/host/fotg210-hcd.c qtd, urb->ep->hcpriv); urb 3051 drivers/usb/host/fotg210-hcd.c rc = usb_hcd_link_urb_to_ep(fotg210_to_hcd(fotg210), urb); urb 3055 drivers/usb/host/fotg210-hcd.c qh = qh_append_tds(fotg210, urb, qtd_list, epnum, &urb->ep->hcpriv); urb 3057 drivers/usb/host/fotg210-hcd.c usb_hcd_unlink_urb_from_ep(fotg210_to_hcd(fotg210), urb); urb 3070 drivers/usb/host/fotg210-hcd.c qtd_list_free(fotg210, urb, qtd_list); urb 3825 drivers/usb/host/fotg210-hcd.c static int intr_submit(struct fotg210_hcd *fotg210, struct urb *urb, urb 3835 drivers/usb/host/fotg210-hcd.c epnum = urb->ep->desc.bEndpointAddress; urb 3843 drivers/usb/host/fotg210-hcd.c status = usb_hcd_link_urb_to_ep(fotg210_to_hcd(fotg210), urb); urb 3849 drivers/usb/host/fotg210-hcd.c qh = qh_append_tds(fotg210, urb, &empty, epnum, &urb->ep->hcpriv); urb 3861 drivers/usb/host/fotg210-hcd.c qh = qh_append_tds(fotg210, urb, qtd_list, epnum, &urb->ep->hcpriv); urb 3869 drivers/usb/host/fotg210-hcd.c usb_hcd_unlink_urb_from_ep(fotg210_to_hcd(fotg210), urb); urb 3873 drivers/usb/host/fotg210-hcd.c qtd_list_free(fotg210, urb, qtd_list); urb 3976 drivers/usb/host/fotg210-hcd.c struct urb *urb) urb 3983 drivers/usb/host/fotg210-hcd.c epnum = usb_pipeendpoint(urb->pipe); urb 3984 drivers/usb/host/fotg210-hcd.c if (usb_pipein(urb->pipe)) urb 3985 drivers/usb/host/fotg210-hcd.c ep = urb->dev->ep_in[epnum]; urb 3987 drivers/usb/host/fotg210-hcd.c ep = urb->dev->ep_out[epnum]; urb 3997 drivers/usb/host/fotg210-hcd.c iso_stream_init(fotg210, stream, urb->dev, urb->pipe, urb 3998 drivers/usb/host/fotg210-hcd.c urb->interval); urb 4004 drivers/usb/host/fotg210-hcd.c urb->dev->devpath, epnum, urb 4005 drivers/usb/host/fotg210-hcd.c usb_pipein(urb->pipe) ? "in" : "out"); urb 4031 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_stream *stream, struct urb *urb) urb 4034 drivers/usb/host/fotg210-hcd.c dma_addr_t dma = urb->transfer_dma; urb 4037 drivers/usb/host/fotg210-hcd.c iso_sched->span = urb->number_of_packets * stream->interval; urb 4042 drivers/usb/host/fotg210-hcd.c for (i = 0; i < urb->number_of_packets; i++) { urb 4048 drivers/usb/host/fotg210-hcd.c length = urb->iso_frame_desc[i].length; urb 4049 drivers/usb/host/fotg210-hcd.c buf = dma + urb->iso_frame_desc[i].offset; urb 4053 drivers/usb/host/fotg210-hcd.c if (unlikely(((i + 1) == urb->number_of_packets)) urb 4054 drivers/usb/host/fotg210-hcd.c && !(urb->transfer_flags & URB_NO_INTERRUPT)) urb 4078 drivers/usb/host/fotg210-hcd.c struct fotg210_hcd *fotg210, struct urb *urb, gfp_t mem_flags) urb 4087 drivers/usb/host/fotg210-hcd.c sched = iso_sched_alloc(urb->number_of_packets, mem_flags); urb 4091 drivers/usb/host/fotg210-hcd.c itd_sched_init(fotg210, sched, stream, urb); urb 4093 drivers/usb/host/fotg210-hcd.c if (urb->interval < 8) urb 4096 drivers/usb/host/fotg210-hcd.c num_itds = urb->number_of_packets; urb 4132 drivers/usb/host/fotg210-hcd.c urb->hcpriv = sched; urb 4133 drivers/usb/host/fotg210-hcd.c urb->error_count = 0; urb 4165 drivers/usb/host/fotg210-hcd.c static int iso_stream_schedule(struct fotg210_hcd *fotg210, struct urb *urb, urb 4171 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_sched *sched = urb->hcpriv; urb 4173 drivers/usb/host/fotg210-hcd.c period = urb->interval; urb 4177 drivers/usb/host/fotg210-hcd.c fotg210_dbg(fotg210, "iso request %p too long\n", urb); urb 4214 drivers/usb/host/fotg210-hcd.c urb, start - now - period, period, urb 4252 drivers/usb/host/fotg210-hcd.c urb, now, now + mod); urb 4262 drivers/usb/host/fotg210-hcd.c urb, start - now, span - period, urb 4271 drivers/usb/host/fotg210-hcd.c urb->start_frame = stream->next_uframe; urb 4273 drivers/usb/host/fotg210-hcd.c urb->start_frame >>= 3; urb 4282 drivers/usb/host/fotg210-hcd.c urb->hcpriv = NULL; urb 4355 drivers/usb/host/fotg210-hcd.c static void itd_link_urb(struct fotg210_hcd *fotg210, struct urb *urb, urb 4360 drivers/usb/host/fotg210-hcd.c struct fotg210_iso_sched *iso_sched = urb->hcpriv; urb 4370 drivers/usb/host/fotg210-hcd.c urb->dev->devpath, stream->bEndpointAddress & 0x0f, urb 4372 drivers/usb/host/fotg210-hcd.c urb->interval, urb 4377 drivers/usb/host/fotg210-hcd.c for (packet = 0, itd = NULL; packet < urb->number_of_packets;) { urb 4387 drivers/usb/host/fotg210-hcd.c itd->urb = urb; urb 4402 drivers/usb/host/fotg210-hcd.c || packet == urb->number_of_packets) { urb 4412 drivers/usb/host/fotg210-hcd.c urb->hcpriv = NULL; urb 4433 drivers/usb/host/fotg210-hcd.c struct urb *urb = itd->urb; urb 4447 drivers/usb/host/fotg210-hcd.c desc = &urb->iso_frame_desc[urb_index]; urb 4454 drivers/usb/host/fotg210-hcd.c urb->error_count++; urb 4456 drivers/usb/host/fotg210-hcd.c desc->status = usb_pipein(urb->pipe) urb 4467 drivers/usb/host/fotg210-hcd.c fotg210_itdlen(urb, desc, t); urb 4468 drivers/usb/host/fotg210-hcd.c urb->actual_length += desc->actual_length; urb 4472 drivers/usb/host/fotg210-hcd.c desc->actual_length = fotg210_itdlen(urb, desc, t); urb 4473 drivers/usb/host/fotg210-hcd.c urb->actual_length += desc->actual_length; urb 4481 drivers/usb/host/fotg210-hcd.c if (likely((urb_index + 1) != urb->number_of_packets)) urb 4490 drivers/usb/host/fotg210-hcd.c dev = urb->dev; urb 4491 drivers/usb/host/fotg210-hcd.c fotg210_urb_done(fotg210, urb, 0); urb 4493 drivers/usb/host/fotg210-hcd.c urb = NULL; urb 4508 drivers/usb/host/fotg210-hcd.c itd->urb = NULL; urb 4523 drivers/usb/host/fotg210-hcd.c static int itd_submit(struct fotg210_hcd *fotg210, struct urb *urb, urb 4531 drivers/usb/host/fotg210-hcd.c stream = iso_stream_find(fotg210, urb); urb 4536 drivers/usb/host/fotg210-hcd.c if (unlikely(urb->interval != stream->interval && urb 4540 drivers/usb/host/fotg210-hcd.c stream->interval, urb->interval); urb 4547 drivers/usb/host/fotg210-hcd.c __func__, urb->dev->devpath, urb, urb 4548 drivers/usb/host/fotg210-hcd.c usb_pipeendpoint(urb->pipe), urb 4549 drivers/usb/host/fotg210-hcd.c usb_pipein(urb->pipe) ? "in" : "out", urb 4550 drivers/usb/host/fotg210-hcd.c urb->transfer_buffer_length, urb 4551 drivers/usb/host/fotg210-hcd.c urb->number_of_packets, urb->interval, urb 4556 drivers/usb/host/fotg210-hcd.c status = itd_urb_transaction(stream, fotg210, urb, mem_flags); urb 4568 drivers/usb/host/fotg210-hcd.c status = usb_hcd_link_urb_to_ep(fotg210_to_hcd(fotg210), urb); urb 4571 drivers/usb/host/fotg210-hcd.c status = iso_stream_schedule(fotg210, urb, stream); urb 4573 drivers/usb/host/fotg210-hcd.c itd_link_urb(fotg210, urb, fotg210->periodic_size << 3, stream); urb 4575 drivers/usb/host/fotg210-hcd.c usb_hcd_unlink_urb_from_ep(fotg210_to_hcd(fotg210), urb); urb 5267 drivers/usb/host/fotg210-hcd.c static int fotg210_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, urb 5275 drivers/usb/host/fotg210-hcd.c switch (usb_pipetype(urb->pipe)) { urb 5280 drivers/usb/host/fotg210-hcd.c if (urb->transfer_buffer_length > (16 * 1024)) urb 5285 drivers/usb/host/fotg210-hcd.c if (!qh_urb_transaction(fotg210, urb, &qtd_list, mem_flags)) urb 5287 drivers/usb/host/fotg210-hcd.c return submit_async(fotg210, urb, &qtd_list, mem_flags); urb 5290 drivers/usb/host/fotg210-hcd.c if (!qh_urb_transaction(fotg210, urb, &qtd_list, mem_flags)) urb 5292 drivers/usb/host/fotg210-hcd.c return intr_submit(fotg210, urb, &qtd_list, mem_flags); urb 5295 drivers/usb/host/fotg210-hcd.c return itd_submit(fotg210, urb, mem_flags); urb 5303 drivers/usb/host/fotg210-hcd.c static int fotg210_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 5311 drivers/usb/host/fotg210-hcd.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 5315 drivers/usb/host/fotg210-hcd.c switch (usb_pipetype(urb->pipe)) { urb 5319 drivers/usb/host/fotg210-hcd.c qh = (struct fotg210_qh *) urb->hcpriv; urb 5339 drivers/usb/host/fotg210-hcd.c qh = (struct fotg210_qh *) urb->hcpriv; urb 349 drivers/usb/host/fotg210.h struct urb *urb; /* qtd's urb */ urb 563 drivers/usb/host/fotg210.h struct urb *urb; urb 689 drivers/usb/host/fotg210.h #define fotg210_itdlen(urb, desc, t) ({ \ urb 690 drivers/usb/host/fotg210.h usb_pipein((urb)->pipe) ? \ urb 16 drivers/usb/host/imx21-dbg.c static inline void debug_urb_submitted(struct imx21 *imx21, struct urb *urb) {} urb 17 drivers/usb/host/imx21-dbg.c static inline void debug_urb_completed(struct imx21 *imx21, struct urb *urb, urb 19 drivers/usb/host/imx21-dbg.c static inline void debug_urb_unlinked(struct imx21 *imx21, struct urb *urb) {} urb 21 drivers/usb/host/imx21-dbg.c struct urb *urb) {} urb 23 drivers/usb/host/imx21-dbg.c struct urb *urb) {} urb 58 drivers/usb/host/imx21-dbg.c struct urb *urb) urb 60 drivers/usb/host/imx21-dbg.c return usb_pipeisoc(urb->pipe) ? urb 64 drivers/usb/host/imx21-dbg.c static void debug_urb_submitted(struct imx21 *imx21, struct urb *urb) urb 66 drivers/usb/host/imx21-dbg.c stats_for_urb(imx21, urb)->submitted++; urb 69 drivers/usb/host/imx21-dbg.c static void debug_urb_completed(struct imx21 *imx21, struct urb *urb, int st) urb 72 drivers/usb/host/imx21-dbg.c stats_for_urb(imx21, urb)->completed_failed++; urb 74 drivers/usb/host/imx21-dbg.c stats_for_urb(imx21, urb)->completed_ok++; urb 77 drivers/usb/host/imx21-dbg.c static void debug_urb_unlinked(struct imx21 *imx21, struct urb *urb) urb 79 drivers/usb/host/imx21-dbg.c stats_for_urb(imx21, urb)->unlinked++; urb 82 drivers/usb/host/imx21-dbg.c static void debug_urb_queued_for_etd(struct imx21 *imx21, struct urb *urb) urb 84 drivers/usb/host/imx21-dbg.c stats_for_urb(imx21, urb)->queue_etd++; urb 87 drivers/usb/host/imx21-dbg.c static void debug_urb_queued_for_dmem(struct imx21 *imx21, struct urb *urb) urb 89 drivers/usb/host/imx21-dbg.c stats_for_urb(imx21, urb)->queue_dmem++; urb 209 drivers/usb/host/imx21-dbg.c if (etd->urb) urb 286 drivers/usb/host/imx21-dbg.c if (etd->urb) { urb 287 drivers/usb/host/imx21-dbg.c urb_priv = etd->urb->hcpriv; urb 306 drivers/usb/host/imx21-dbg.c etd->urb != NULL, urb 309 drivers/usb/host/imx21-dbg.c etd->urb); urb 141 drivers/usb/host/imx21-hcd.c static void schedule_nonisoc_etd(struct imx21 *imx21, struct urb *urb); urb 188 drivers/usb/host/imx21-hcd.c etd->urb = NULL; urb 215 drivers/usb/host/imx21-hcd.c int etd_num, struct urb *urb, u8 dir, u16 maxpacket) urb 218 drivers/usb/host/imx21-hcd.c ((u32) usb_pipedevice(urb->pipe)) << DW0_ADDRESS | urb 219 drivers/usb/host/imx21-hcd.c ((u32) usb_pipeendpoint(urb->pipe) << DW0_ENDPNT) | urb 221 drivers/usb/host/imx21-hcd.c ((u32) ((urb->dev->speed == USB_SPEED_LOW) ? urb 223 drivers/usb/host/imx21-hcd.c ((u32) fmt_urb_to_etd[usb_pipetype(urb->pipe)] << DW0_FORMAT) | urb 395 drivers/usb/host/imx21-hcd.c struct urb_priv *urb_priv = etd->urb->hcpriv; urb 503 drivers/usb/host/imx21-hcd.c &ep_priv->ep->urb_list, struct urb, urb_list)); urb 507 drivers/usb/host/imx21-hcd.c static void urb_done(struct usb_hcd *hcd, struct urb *urb, int status) urb 512 drivers/usb/host/imx21-hcd.c struct ep_priv *ep_priv = urb->ep->hcpriv; urb 513 drivers/usb/host/imx21-hcd.c struct urb_priv *urb_priv = urb->hcpriv; urb 515 drivers/usb/host/imx21-hcd.c debug_urb_completed(imx21, urb, status); urb 516 drivers/usb/host/imx21-hcd.c dev_vdbg(imx21->dev, "urb %p done %d\n", urb, status); urb 519 drivers/usb/host/imx21-hcd.c kfree(urb->hcpriv); urb 520 drivers/usb/host/imx21-hcd.c urb->hcpriv = NULL; urb 521 drivers/usb/host/imx21-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 523 drivers/usb/host/imx21-hcd.c usb_hcd_giveback_urb(hcd, urb, status); urb 534 drivers/usb/host/imx21-hcd.c urb_done(imx21->hcd, etd->urb, status); urb 535 drivers/usb/host/imx21-hcd.c etd->urb = NULL; urb 538 drivers/usb/host/imx21-hcd.c struct urb *urb = list_first_entry( urb 539 drivers/usb/host/imx21-hcd.c &ep->urb_list, struct urb, urb_list); urb 541 drivers/usb/host/imx21-hcd.c dev_vdbg(imx21->dev, "next URB %p\n", urb); urb 542 drivers/usb/host/imx21-hcd.c schedule_nonisoc_etd(imx21, urb); urb 574 drivers/usb/host/imx21-hcd.c if (etd->urb) urb 579 drivers/usb/host/imx21-hcd.c urb_priv = td->urb->hcpriv; urb 586 drivers/usb/host/imx21-hcd.c td->urb->iso_frame_desc[ urb 588 drivers/usb/host/imx21-hcd.c td->urb->iso_frame_desc[td->isoc_index].status = -EXDEV; urb 590 drivers/usb/host/imx21-hcd.c urb_done(hcd, td->urb, urb_priv->isoc_status); urb 597 drivers/usb/host/imx21-hcd.c etd->urb = td->urb; urb 604 drivers/usb/host/imx21-hcd.c dir = usb_pipeout(td->urb->pipe) ? TD_DIR_OUT : TD_DIR_IN; urb 605 drivers/usb/host/imx21-hcd.c setup_etd_dword0(imx21, etd_num, td->urb, dir, etd->dmem_size); urb 623 drivers/usb/host/imx21-hcd.c struct urb *urb = etd->urb; urb 624 drivers/usb/host/imx21-hcd.c struct urb_priv *urb_priv = urb->hcpriv; urb 628 drivers/usb/host/imx21-hcd.c unsigned int pipe = urb->pipe; urb 655 drivers/usb/host/imx21-hcd.c bytes_xfrd, td->len, urb, etd_num, isoc_index); urb 666 drivers/usb/host/imx21-hcd.c urb->actual_length += bytes_xfrd; urb 667 drivers/usb/host/imx21-hcd.c urb->iso_frame_desc[isoc_index].actual_length = bytes_xfrd; urb 668 drivers/usb/host/imx21-hcd.c urb->iso_frame_desc[isoc_index].status = cc_to_error[cc]; urb 671 drivers/usb/host/imx21-hcd.c etd->urb = NULL; urb 675 drivers/usb/host/imx21-hcd.c urb_done(hcd, urb, urb_priv->isoc_status); urb 728 drivers/usb/host/imx21-hcd.c struct urb *urb, gfp_t mem_flags) urb 744 drivers/usb/host/imx21-hcd.c urb_priv->isoc_td = kcalloc(urb->number_of_packets, sizeof(struct td), urb 767 drivers/usb/host/imx21-hcd.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 771 drivers/usb/host/imx21-hcd.c urb->status = -EINPROGRESS; urb 772 drivers/usb/host/imx21-hcd.c urb->actual_length = 0; urb 773 drivers/usb/host/imx21-hcd.c urb->error_count = 0; urb 774 drivers/usb/host/imx21-hcd.c urb->hcpriv = urb_priv; urb 778 drivers/usb/host/imx21-hcd.c maxpacket = usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe)); urb 805 drivers/usb/host/imx21-hcd.c urb->start_frame = wrap_frame(cur_frame + 5); urb 807 drivers/usb/host/imx21-hcd.c urb->start_frame = wrap_frame(list_entry(ep_priv->td_list.prev, urb 808 drivers/usb/host/imx21-hcd.c struct td, list)->frame + urb->interval); urb 810 drivers/usb/host/imx21-hcd.c if (frame_after(cur_frame, urb->start_frame)) { urb 813 drivers/usb/host/imx21-hcd.c urb->start_frame, cur_frame, urb 814 drivers/usb/host/imx21-hcd.c (urb->transfer_flags & URB_ISO_ASAP) != 0); urb 816 drivers/usb/host/imx21-hcd.c cur_frame - urb->start_frame), urb 817 drivers/usb/host/imx21-hcd.c urb->interval); urb 820 drivers/usb/host/imx21-hcd.c if ((urb->transfer_flags & URB_ISO_ASAP) || urb 821 drivers/usb/host/imx21-hcd.c i >= urb->number_of_packets) { urb 822 drivers/usb/host/imx21-hcd.c urb->start_frame = wrap_frame(urb->start_frame urb 823 drivers/usb/host/imx21-hcd.c + i * urb->interval); urb 830 drivers/usb/host/imx21-hcd.c urb_priv->isoc_remaining = urb->number_of_packets - i; urb 832 drivers/usb/host/imx21-hcd.c for (; i < urb->number_of_packets; i++, td++) { urb 833 drivers/usb/host/imx21-hcd.c unsigned int offset = urb->iso_frame_desc[i].offset; urb 835 drivers/usb/host/imx21-hcd.c td->urb = urb; urb 836 drivers/usb/host/imx21-hcd.c td->len = urb->iso_frame_desc[i].length; urb 838 drivers/usb/host/imx21-hcd.c td->frame = wrap_frame(urb->start_frame + urb->interval * i); urb 839 drivers/usb/host/imx21-hcd.c td->dma_handle = urb->transfer_dma + offset; urb 840 drivers/usb/host/imx21-hcd.c td->cpu_buffer = urb->transfer_buffer + offset; urb 845 drivers/usb/host/imx21-hcd.c urb->number_of_packets, urb->start_frame, td->frame); urb 847 drivers/usb/host/imx21-hcd.c debug_urb_submitted(imx21, urb); urb 854 drivers/usb/host/imx21-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 868 drivers/usb/host/imx21-hcd.c struct urb *urb, struct ep_priv *ep_priv) urb 870 drivers/usb/host/imx21-hcd.c struct urb_priv *urb_priv = urb->hcpriv; urb 877 drivers/usb/host/imx21-hcd.c if (etd_num != -1 && imx21->etd[etd_num].urb == urb) { urb 887 drivers/usb/host/imx21-hcd.c if (td->urb == urb) { urb 898 drivers/usb/host/imx21-hcd.c static void schedule_nonisoc_etd(struct imx21 *imx21, struct urb *urb) urb 900 drivers/usb/host/imx21-hcd.c unsigned int pipe = urb->pipe; urb 901 drivers/usb/host/imx21-hcd.c struct urb_priv *urb_priv = urb->hcpriv; urb 923 drivers/usb/host/imx21-hcd.c maxpacket = usb_maxpacket(urb->dev, pipe, usb_pipeout(pipe)); urb 930 drivers/usb/host/imx21-hcd.c if (unsuitable_for_dma(urb->setup_dma)) urb 932 drivers/usb/host/imx21-hcd.c urb); urb 933 drivers/usb/host/imx21-hcd.c etd->dma_handle = urb->setup_dma; urb 934 drivers/usb/host/imx21-hcd.c etd->cpu_buffer = urb->setup_packet; urb 947 drivers/usb/host/imx21-hcd.c if (unsuitable_for_dma(urb->transfer_dma)) urb 948 drivers/usb/host/imx21-hcd.c usb_hcd_unmap_urb_for_dma(imx21->hcd, urb); urb 950 drivers/usb/host/imx21-hcd.c etd->dma_handle = urb->transfer_dma; urb 951 drivers/usb/host/imx21-hcd.c etd->cpu_buffer = urb->transfer_buffer; urb 955 drivers/usb/host/imx21-hcd.c count = urb->transfer_buffer_length; urb 961 drivers/usb/host/imx21-hcd.c urb->dev, urb 962 drivers/usb/host/imx21-hcd.c usb_pipeendpoint(urb->pipe), urb 963 drivers/usb/host/imx21-hcd.c usb_pipeout(urb->pipe))) urb 970 drivers/usb/host/imx21-hcd.c etd->urb = urb; urb 975 drivers/usb/host/imx21-hcd.c interval = urb->interval; urb 980 drivers/usb/host/imx21-hcd.c setup_etd_dword0(imx21, etd_num, urb, dir, maxpacket); urb 1012 drivers/usb/host/imx21-hcd.c debug_urb_queued_for_dmem(imx21, urb); urb 1034 drivers/usb/host/imx21-hcd.c struct urb *urb = etd->urb; urb 1036 drivers/usb/host/imx21-hcd.c struct urb_priv *urb_priv = urb->hcpriv; urb 1049 drivers/usb/host/imx21-hcd.c usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 1050 drivers/usb/host/imx21-hcd.c usb_pipeout(urb->pipe), urb 1072 drivers/usb/host/imx21-hcd.c urb->error_count = 0; urb 1073 drivers/usb/host/imx21-hcd.c if (!(urb->transfer_flags & URB_SHORT_NOT_OK) urb 1082 drivers/usb/host/imx21-hcd.c switch (usb_pipetype(urb->pipe)) { urb 1086 drivers/usb/host/imx21-hcd.c if (urb->transfer_buffer_length > 0) urb 1092 drivers/usb/host/imx21-hcd.c urb->actual_length += bytes_xfrd; urb 1107 drivers/usb/host/imx21-hcd.c urb->actual_length += bytes_xfrd; urb 1109 drivers/usb/host/imx21-hcd.c && (urb->transfer_flags & URB_ZERO_PACKET) urb 1110 drivers/usb/host/imx21-hcd.c && urb->transfer_buffer_length > 0 urb 1111 drivers/usb/host/imx21-hcd.c && ((urb->transfer_buffer_length % urb 1112 drivers/usb/host/imx21-hcd.c usb_maxpacket(urb->dev, urb->pipe, urb 1113 drivers/usb/host/imx21-hcd.c usb_pipeout(urb->pipe))) == 0)) { urb 1122 drivers/usb/host/imx21-hcd.c urb->actual_length += bytes_xfrd; urb 1131 drivers/usb/host/imx21-hcd.c schedule_nonisoc_etd(imx21, urb); urb 1152 drivers/usb/host/imx21-hcd.c struct urb *urb, gfp_t mem_flags) urb 1155 drivers/usb/host/imx21-hcd.c struct usb_host_endpoint *ep = urb->ep; urb 1165 drivers/usb/host/imx21-hcd.c urb, ep, urb 1166 drivers/usb/host/imx21-hcd.c urb->transfer_buffer_length, urb 1167 drivers/usb/host/imx21-hcd.c urb->transfer_buffer, &urb->transfer_dma, urb 1168 drivers/usb/host/imx21-hcd.c urb->setup_packet, &urb->setup_dma); urb 1170 drivers/usb/host/imx21-hcd.c if (usb_pipeisoc(urb->pipe)) urb 1171 drivers/usb/host/imx21-hcd.c return imx21_hc_urb_enqueue_isoc(hcd, ep, urb, mem_flags); urb 1190 drivers/usb/host/imx21-hcd.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 1194 drivers/usb/host/imx21-hcd.c urb->status = -EINPROGRESS; urb 1195 drivers/usb/host/imx21-hcd.c urb->actual_length = 0; urb 1196 drivers/usb/host/imx21-hcd.c urb->error_count = 0; urb 1197 drivers/usb/host/imx21-hcd.c urb->hcpriv = urb_priv; urb 1200 drivers/usb/host/imx21-hcd.c switch (usb_pipetype(urb->pipe)) { urb 1209 drivers/usb/host/imx21-hcd.c debug_urb_submitted(imx21, urb); urb 1215 drivers/usb/host/imx21-hcd.c debug_urb_queued_for_etd(imx21, urb); urb 1222 drivers/usb/host/imx21-hcd.c debug_urb_queued_for_etd(imx21, urb); urb 1231 drivers/usb/host/imx21-hcd.c if (etd->urb == NULL) { urb 1233 drivers/usb/host/imx21-hcd.c schedule_nonisoc_etd(imx21, urb); urb 1247 drivers/usb/host/imx21-hcd.c static int imx21_hc_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, urb 1254 drivers/usb/host/imx21-hcd.c struct urb_priv *urb_priv = urb->hcpriv; urb 1258 drivers/usb/host/imx21-hcd.c urb, usb_pipeisoc(urb->pipe), status); urb 1262 drivers/usb/host/imx21-hcd.c ret = usb_hcd_check_unlink_urb(hcd, urb, status); urb 1268 drivers/usb/host/imx21-hcd.c debug_urb_unlinked(imx21, urb); urb 1270 drivers/usb/host/imx21-hcd.c if (usb_pipeisoc(urb->pipe)) { urb 1271 drivers/usb/host/imx21-hcd.c dequeue_isoc_urb(imx21, urb, ep_priv); urb 1280 drivers/usb/host/imx21-hcd.c etd->urb = NULL; urb 1286 drivers/usb/host/imx21-hcd.c urb_done(hcd, urb, status); urb 1372 drivers/usb/host/imx21-hcd.c if (etd->ep == NULL || etd->urb == NULL) { urb 1376 drivers/usb/host/imx21-hcd.c etd_num, etd->ep, etd->urb); urb 1381 drivers/usb/host/imx21-hcd.c if (usb_pipeisoc(etd->urb->pipe)) urb 318 drivers/usb/host/imx21-hcd.h struct urb *urb; urb 339 drivers/usb/host/imx21-hcd.h struct urb *urb; urb 351 drivers/usb/host/imx21-hcd.h struct urb *urb; urb 234 drivers/usb/host/isp116x-hcd.c struct urb *urb; urb 242 drivers/usb/host/isp116x-hcd.c urb = container_of(ep->hep->urb_list.next, urb 243 drivers/usb/host/isp116x-hcd.c struct urb, urb_list); urb 246 drivers/usb/host/isp116x-hcd.c ep->data = (unsigned char *)urb->transfer_buffer urb 247 drivers/usb/host/isp116x-hcd.c + urb->actual_length; urb 251 drivers/usb/host/isp116x-hcd.c toggle = usb_gettoggle(urb->dev, ep->epnum, 0); urb 255 drivers/usb/host/isp116x-hcd.c toggle = usb_gettoggle(urb->dev, ep->epnum, 1); urb 260 drivers/usb/host/isp116x-hcd.c ep->data = urb->setup_packet; urb 265 drivers/usb/host/isp116x-hcd.c dir = (urb->transfer_buffer_length urb 266 drivers/usb/host/isp116x-hcd.c && usb_pipein(urb->pipe)) urb 277 drivers/usb/host/isp116x-hcd.c | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) urb 280 drivers/usb/host/isp116x-hcd.c ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe)); urb 295 drivers/usb/host/isp116x-hcd.c struct urb *urb, int status) urb 302 drivers/usb/host/isp116x-hcd.c if (usb_pipecontrol(urb->pipe)) urb 305 drivers/usb/host/isp116x-hcd.c urb_dbg(urb, "Finish"); urb 307 drivers/usb/host/isp116x-hcd.c usb_hcd_unlink_urb_from_ep(isp116x_to_hcd(isp116x), urb); urb 309 drivers/usb/host/isp116x-hcd.c usb_hcd_giveback_urb(isp116x_to_hcd(isp116x), urb, status); urb 351 drivers/usb/host/isp116x-hcd.c struct urb *urb; urb 360 drivers/usb/host/isp116x-hcd.c urb = urb 361 drivers/usb/host/isp116x-hcd.c container_of(ep->hep->urb_list.next, struct urb, urb_list); urb 362 drivers/usb/host/isp116x-hcd.c udev = urb->dev; urb 374 drivers/usb/host/isp116x-hcd.c if (!(urb->transfer_flags & URB_SHORT_NOT_OK) || urb 375 drivers/usb/host/isp116x-hcd.c usb_pipecontrol(urb->pipe)) { urb 384 drivers/usb/host/isp116x-hcd.c urb->actual_length += PTD_GET_COUNT(ptd); urb 401 drivers/usb/host/isp116x-hcd.c if (usb_pipeint(urb->pipe) && !PTD_GET_LEN(ptd)) { urb 424 drivers/usb/host/isp116x-hcd.c urb->actual_length += PTD_GET_COUNT(ptd); urb 428 drivers/usb/host/isp116x-hcd.c if (urb->transfer_buffer_length != urb->actual_length) { urb 432 drivers/usb/host/isp116x-hcd.c if (urb->transfer_flags & URB_ZERO_PACKET urb 440 drivers/usb/host/isp116x-hcd.c if (usb_pipecontrol(urb->pipe)) urb 449 drivers/usb/host/isp116x-hcd.c if (urb->transfer_buffer_length == urb->actual_length) urb 451 drivers/usb/host/isp116x-hcd.c else if (usb_pipeout(urb->pipe)) { urb 471 drivers/usb/host/isp116x-hcd.c if (status != -EINPROGRESS || urb->unlinked) urb 472 drivers/usb/host/isp116x-hcd.c finish_request(isp116x, ep, urb, status); urb 483 drivers/usb/host/isp116x-hcd.c struct urb *urb; urb 518 drivers/usb/host/isp116x-hcd.c urb = container_of(ep->hep->urb_list.next, urb 519 drivers/usb/host/isp116x-hcd.c struct urb, urb_list); urb 520 drivers/usb/host/isp116x-hcd.c speed = urb->dev->speed; urb 540 drivers/usb/host/isp116x-hcd.c (urb->transfer_buffer_length - urb 541 drivers/usb/host/isp116x-hcd.c urb->actual_length)) { urb 546 drivers/usb/host/isp116x-hcd.c len = urb->transfer_buffer_length - urb 547 drivers/usb/host/isp116x-hcd.c urb->actual_length; urb 682 drivers/usb/host/isp116x-hcd.c struct urb *urb, urb 686 drivers/usb/host/isp116x-hcd.c struct usb_device *udev = urb->dev; urb 687 drivers/usb/host/isp116x-hcd.c unsigned int pipe = urb->pipe; urb 691 drivers/usb/host/isp116x-hcd.c struct usb_host_endpoint *hep = urb->ep; urb 697 drivers/usb/host/isp116x-hcd.c urb_dbg(urb, "Enqueue"); urb 701 drivers/usb/host/isp116x-hcd.c urb_dbg(urb, "Refused to enqueue"); urb 717 drivers/usb/host/isp116x-hcd.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 729 drivers/usb/host/isp116x-hcd.c ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); urb 740 drivers/usb/host/isp116x-hcd.c if (urb->interval) { urb 751 drivers/usb/host/isp116x-hcd.c if (urb->interval < 2) urb 752 drivers/usb/host/isp116x-hcd.c urb->interval = 2; urb 753 drivers/usb/host/isp116x-hcd.c if (urb->interval > 2 * PERIODIC_SIZE) urb 754 drivers/usb/host/isp116x-hcd.c urb->interval = 2 * PERIODIC_SIZE; urb 755 drivers/usb/host/isp116x-hcd.c ep->period = urb->interval >> 1; urb 776 drivers/usb/host/isp116x-hcd.c urb->interval = ep->period; urb 778 drivers/usb/host/isp116x-hcd.c urb->transfer_buffer_length); urb 789 drivers/usb/host/isp116x-hcd.c urb->start_frame = (isp116x->fmindex & (PERIODIC_SIZE - 1)) urb 823 drivers/usb/host/isp116x-hcd.c urb->hcpriv = hep; urb 828 drivers/usb/host/isp116x-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 837 drivers/usb/host/isp116x-hcd.c static int isp116x_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, urb 847 drivers/usb/host/isp116x-hcd.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 851 drivers/usb/host/isp116x-hcd.c hep = urb->hcpriv; urb 856 drivers/usb/host/isp116x-hcd.c if (ep->hep->urb_list.next == &urb->urb_list) urb 862 drivers/usb/host/isp116x-hcd.c urb); urb 863 drivers/usb/host/isp116x-hcd.c urb = NULL; urb 867 drivers/usb/host/isp116x-hcd.c if (urb) urb 868 drivers/usb/host/isp116x-hcd.c finish_request(isp116x, ep, urb, status); urb 516 drivers/usb/host/isp116x.h #define URB_NOTSHORT(urb) ({ (urb)->transfer_flags & URB_SHORT_NOT_OK ? \ urb 520 drivers/usb/host/isp116x.h static void urb_dbg(struct urb *urb, char *msg) urb 524 drivers/usb/host/isp116x.h if (!urb) { urb 528 drivers/usb/host/isp116x.h pipe = urb->pipe; urb 532 drivers/usb/host/isp116x.h urb->transfer_buffer_length, urb->actual_length, URB_NOTSHORT(urb)); urb 537 drivers/usb/host/isp116x.h #define urb_dbg(urb,msg) do{}while(0) urb 260 drivers/usb/host/isp1362-hcd.c static void prepare_ptd(struct isp1362_hcd *isp1362_hcd, struct urb *urb, urb 268 drivers/usb/host/isp1362-hcd.c size_t buf_len = urb->transfer_buffer_length - urb->actual_length; urb 274 drivers/usb/host/isp1362-hcd.c ep->data = (unsigned char *)urb->transfer_buffer + urb->actual_length; urb 278 drivers/usb/host/isp1362-hcd.c toggle = usb_gettoggle(urb->dev, ep->epnum, 0); urb 280 drivers/usb/host/isp1362-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 282 drivers/usb/host/isp1362-hcd.c } else if (usb_pipeisoc(urb->pipe)) { urb 283 drivers/usb/host/isp1362-hcd.c len = min_t(size_t, urb->iso_frame_desc[fno].length, MAX_XFER_SIZE); urb 284 drivers/usb/host/isp1362-hcd.c ep->data = urb->transfer_buffer + urb->iso_frame_desc[fno].offset; urb 291 drivers/usb/host/isp1362-hcd.c toggle = usb_gettoggle(urb->dev, ep->epnum, 1); urb 293 drivers/usb/host/isp1362-hcd.c if (usb_pipecontrol(urb->pipe)) urb 295 drivers/usb/host/isp1362-hcd.c else if (usb_pipeisoc(urb->pipe)) urb 296 drivers/usb/host/isp1362-hcd.c len = min_t(size_t, urb->iso_frame_desc[0].length, MAX_XFER_SIZE); urb 301 drivers/usb/host/isp1362-hcd.c urb->transfer_flags & URB_ZERO_PACKET); urb 310 drivers/usb/host/isp1362-hcd.c ep->data = urb->setup_packet; urb 315 drivers/usb/host/isp1362-hcd.c dir = (urb->transfer_buffer_length && usb_pipein(urb->pipe)) ? urb 330 drivers/usb/host/isp1362-hcd.c ptd->mps = PTD_MPS(ep->maxpacket) | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) | urb 333 drivers/usb/host/isp1362-hcd.c ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe)); urb 335 drivers/usb/host/isp1362-hcd.c if (usb_pipeint(urb->pipe)) { urb 339 drivers/usb/host/isp1362-hcd.c if (usb_pipeisoc(urb->pipe)) urb 446 drivers/usb/host/isp1362-hcd.c struct urb *urb, int status) urb 450 drivers/usb/host/isp1362-hcd.c urb->hcpriv = NULL; urb 453 drivers/usb/host/isp1362-hcd.c if (usb_pipecontrol(urb->pipe)) urb 457 drivers/usb/host/isp1362-hcd.c ep->num_req, usb_pipedevice(urb->pipe), urb 458 drivers/usb/host/isp1362-hcd.c usb_pipeendpoint(urb->pipe), urb 459 drivers/usb/host/isp1362-hcd.c !usb_pipein(urb->pipe) ? "out" : "in", urb 460 drivers/usb/host/isp1362-hcd.c usb_pipecontrol(urb->pipe) ? "ctrl" : urb 461 drivers/usb/host/isp1362-hcd.c usb_pipeint(urb->pipe) ? "int" : urb 462 drivers/usb/host/isp1362-hcd.c usb_pipebulk(urb->pipe) ? "bulk" : urb 464 drivers/usb/host/isp1362-hcd.c urb->actual_length, urb->transfer_buffer_length, urb 465 drivers/usb/host/isp1362-hcd.c !(urb->transfer_flags & URB_SHORT_NOT_OK) ? urb 466 drivers/usb/host/isp1362-hcd.c "short_ok" : "", urb->status); urb 469 drivers/usb/host/isp1362-hcd.c usb_hcd_unlink_urb_from_ep(isp1362_hcd_to_hcd(isp1362_hcd), urb); urb 471 drivers/usb/host/isp1362-hcd.c usb_hcd_giveback_urb(isp1362_hcd_to_hcd(isp1362_hcd), urb, status); urb 501 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); urb 511 drivers/usb/host/isp1362-hcd.c udev = urb->dev; urb 520 drivers/usb/host/isp1362-hcd.c short_ok = !(urb->transfer_flags & URB_SHORT_NOT_OK); urb 521 drivers/usb/host/isp1362-hcd.c len = urb->transfer_buffer_length - urb->actual_length; urb 539 drivers/usb/host/isp1362-hcd.c usb_pipein(urb->pipe) ? "IN" : "OUT", ep->nextpid, urb 545 drivers/usb/host/isp1362-hcd.c urb->actual_length += PTD_GET_COUNT(ptd); urb 546 drivers/usb/host/isp1362-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 548 drivers/usb/host/isp1362-hcd.c BUG_ON(urb->actual_length > urb->transfer_buffer_length); urb 550 drivers/usb/host/isp1362-hcd.c if (urb->status == -EINPROGRESS) urb 551 drivers/usb/host/isp1362-hcd.c urb->status = cc_to_error[PTD_DATAUNDERRUN]; urb 577 drivers/usb/host/isp1362-hcd.c urb->actual_length += ep->length; urb 578 drivers/usb/host/isp1362-hcd.c BUG_ON(urb->actual_length > urb->transfer_buffer_length); urb 580 drivers/usb/host/isp1362-hcd.c if (urb->actual_length == urb->transfer_buffer_length) { urb 583 drivers/usb/host/isp1362-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 586 drivers/usb/host/isp1362-hcd.c usb_pipein(urb->pipe) ? "IN" : "OUT"); urb 590 drivers/usb/host/isp1362-hcd.c !(urb->transfer_flags & URB_ZERO_PACKET)) { urb 593 drivers/usb/host/isp1362-hcd.c __func__, ep->num_req, usb_pipein(urb->pipe) ? "IN" : "OUT", urb 594 drivers/usb/host/isp1362-hcd.c urbstat, len, ep->maxpacket, urb->actual_length); urb 602 drivers/usb/host/isp1362-hcd.c urb->actual_length += len; urb 603 drivers/usb/host/isp1362-hcd.c BUG_ON(urb->actual_length > urb->transfer_buffer_length); urb 606 drivers/usb/host/isp1362-hcd.c if ((urb->transfer_buffer_length == urb->actual_length) || urb 610 drivers/usb/host/isp1362-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 613 drivers/usb/host/isp1362-hcd.c usb_pipein(urb->pipe) ? "IN" : "OUT"); urb 618 drivers/usb/host/isp1362-hcd.c __func__, ep->num_req, usb_pipein(urb->pipe) ? "IN" : "OUT", urb 619 drivers/usb/host/isp1362-hcd.c urbstat, len, ep->maxpacket, urb->actual_length); urb 624 drivers/usb/host/isp1362-hcd.c if (urb->transfer_buffer_length == urb->actual_length) { urb 626 drivers/usb/host/isp1362-hcd.c } else if (usb_pipeout(urb->pipe)) { urb 648 drivers/usb/host/isp1362-hcd.c ep, ep->num_req, urb, urbstat); urb 649 drivers/usb/host/isp1362-hcd.c finish_request(isp1362_hcd, ep, urb, urbstat); urb 670 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); urb 674 drivers/usb/host/isp1362-hcd.c finish_request(isp1362_hcd, ep, urb, -ESHUTDOWN); urb 713 drivers/usb/host/isp1362-hcd.c static int submit_req(struct isp1362_hcd *isp1362_hcd, struct urb *urb, urb 718 drivers/usb/host/isp1362-hcd.c prepare_ptd(isp1362_hcd, urb, ep, epq, 0); urb 755 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); urb 766 drivers/usb/host/isp1362-hcd.c ret = submit_req(isp1362_hcd, urb, ep, epq); urb 807 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); urb 818 drivers/usb/host/isp1362-hcd.c ret = submit_req(isp1362_hcd, urb, ep, epq); urb 878 drivers/usb/host/isp1362-hcd.c struct urb *urb = get_urb(ep); urb 879 drivers/usb/host/isp1362-hcd.c s16 diff = fno - (u16)urb->start_frame; urb 883 drivers/usb/host/isp1362-hcd.c if (diff > urb->number_of_packets) { urb 885 drivers/usb/host/isp1362-hcd.c finish_request(isp1362_hcd, ep, urb, -EOVERFLOW); urb 895 drivers/usb/host/isp1362-hcd.c prepare_ptd(isp1362_hcd, urb, ep, epq, fno); urb 1217 drivers/usb/host/isp1362-hcd.c struct urb *urb, urb 1221 drivers/usb/host/isp1362-hcd.c struct usb_device *udev = urb->dev; urb 1222 drivers/usb/host/isp1362-hcd.c unsigned int pipe = urb->pipe; urb 1226 drivers/usb/host/isp1362-hcd.c struct usb_host_endpoint *hep = urb->ep; urb 1231 drivers/usb/host/isp1362-hcd.c DBG(3, "%s: urb %p\n", __func__, urb); urb 1245 drivers/usb/host/isp1362-hcd.c urb->transfer_buffer_length, urb 1246 drivers/usb/host/isp1362-hcd.c (urb->transfer_flags & URB_ZERO_PACKET) ? "ZERO_PACKET " : "", urb 1247 drivers/usb/host/isp1362-hcd.c !(urb->transfer_flags & URB_SHORT_NOT_OK) ? urb 1267 drivers/usb/host/isp1362-hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 1282 drivers/usb/host/isp1362-hcd.c ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); urb 1297 drivers/usb/host/isp1362-hcd.c if (urb->interval > PERIODIC_SIZE) urb 1298 drivers/usb/host/isp1362-hcd.c urb->interval = PERIODIC_SIZE; urb 1299 drivers/usb/host/isp1362-hcd.c ep->interval = urb->interval; urb 1322 drivers/usb/host/isp1362-hcd.c urb->interval = ep->interval; urb 1351 drivers/usb/host/isp1362-hcd.c urb->start_frame = frame; urb 1368 drivers/usb/host/isp1362-hcd.c urb->hcpriv = hep; urb 1369 drivers/usb/host/isp1362-hcd.c ALIGNSTAT(isp1362_hcd, urb->transfer_buffer); urb 1387 drivers/usb/host/isp1362-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 1393 drivers/usb/host/isp1362-hcd.c DBG(0, "%s: urb %p failed with %d\n", __func__, urb, retval); urb 1397 drivers/usb/host/isp1362-hcd.c static int isp1362_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 1405 drivers/usb/host/isp1362-hcd.c DBG(3, "%s: urb %p\n", __func__, urb); urb 1408 drivers/usb/host/isp1362-hcd.c retval = usb_hcd_check_unlink_urb(hcd, urb, status); urb 1412 drivers/usb/host/isp1362-hcd.c hep = urb->hcpriv; urb 1422 drivers/usb/host/isp1362-hcd.c if (ep->hep->urb_list.next == &urb->urb_list) { urb 1425 drivers/usb/host/isp1362-hcd.c urb, ep, ep->num_req, ep->ptd_index, ep->ptd_offset); urb 1428 drivers/usb/host/isp1362-hcd.c urb = NULL; urb 1431 drivers/usb/host/isp1362-hcd.c if (urb) { urb 1434 drivers/usb/host/isp1362-hcd.c finish_request(isp1362_hcd, ep, urb, status); urb 1436 drivers/usb/host/isp1362-hcd.c DBG(1, "%s: urb %p active; wait4irq\n", __func__, urb); urb 1438 drivers/usb/host/isp1362-hcd.c pr_warn("%s: No EP in URB %p\n", __func__, urb); urb 2096 drivers/usb/host/isp1362-hcd.c struct urb *urb; urb 2119 drivers/usb/host/isp1362-hcd.c list_for_each_entry(urb, &ep->hep->urb_list, urb_list) { urb 2120 drivers/usb/host/isp1362-hcd.c seq_printf(s, " urb%p, %d/%d\n", urb, urb 2121 drivers/usb/host/isp1362-hcd.c urb->actual_length, urb 2122 drivers/usb/host/isp1362-hcd.c urb->transfer_buffer_length); urb 578 drivers/usb/host/isp1362.h container_of(ep->hep->urb_list.next, struct urb, urb_list); \ urb 154 drivers/usb/host/max3421-hcd.c struct urb *curr_urb; urb 540 drivers/usb/host/max3421-hcd.c max3421_ctrl_setup(struct usb_hcd *hcd, struct urb *urb) urb 542 drivers/usb/host/max3421-hcd.c spi_wr_buf(hcd, MAX3421_REG_SUDFIFO, urb->setup_packet, 8); urb 547 drivers/usb/host/max3421-hcd.c max3421_transfer_in(struct usb_hcd *hcd, struct urb *urb) urb 550 drivers/usb/host/max3421-hcd.c int epnum = usb_pipeendpoint(urb->pipe); urb 558 drivers/usb/host/max3421-hcd.c max3421_transfer_out(struct usb_hcd *hcd, struct urb *urb, int fast_retransmit) urb 562 drivers/usb/host/max3421-hcd.c int epnum = usb_pipeendpoint(urb->pipe); urb 566 drivers/usb/host/max3421-hcd.c src = urb->transfer_buffer + urb->actual_length; urb 578 drivers/usb/host/max3421-hcd.c max_packet = usb_maxpacket(urb->dev, urb->pipe, 1); urb 591 drivers/usb/host/max3421-hcd.c max3421_hcd->curr_len = min((urb->transfer_buffer_length - urb 592 drivers/usb/host/max3421-hcd.c urb->actual_length), max_packet); urb 607 drivers/usb/host/max3421-hcd.c struct urb *urb = max3421_hcd->curr_urb; urb 611 drivers/usb/host/max3421-hcd.c if (!urb) urb 614 drivers/usb/host/max3421-hcd.c max3421_ep = urb->ep->hcpriv; urb 618 drivers/usb/host/max3421-hcd.c cmd = max3421_ctrl_setup(hcd, urb); urb 622 drivers/usb/host/max3421-hcd.c if (usb_urb_dir_in(urb)) urb 623 drivers/usb/host/max3421-hcd.c cmd = max3421_transfer_in(hcd, urb); urb 625 drivers/usb/host/max3421-hcd.c cmd = max3421_transfer_out(hcd, urb, fast_retransmit); urb 633 drivers/usb/host/max3421-hcd.c if (usb_urb_dir_in(urb)) urb 668 drivers/usb/host/max3421-hcd.c struct urb *urb, *curr_urb = NULL; urb 681 drivers/usb/host/max3421-hcd.c urb = NULL; urb 704 drivers/usb/host/max3421-hcd.c urb = list_first_entry(&ep->urb_list, struct urb, urb 706 drivers/usb/host/max3421-hcd.c if (urb->unlinked) { urb 708 drivers/usb/host/max3421-hcd.c __func__, urb, urb->unlinked); urb 709 drivers/usb/host/max3421-hcd.c max3421_hcd->curr_urb = urb; urb 744 drivers/usb/host/max3421-hcd.c < urb->interval) urb 756 drivers/usb/host/max3421-hcd.c curr_urb = urb; urb 765 drivers/usb/host/max3421-hcd.c urb = max3421_hcd->curr_urb = curr_urb; urb 766 drivers/usb/host/max3421-hcd.c epnum = usb_endpoint_num(&urb->ep->desc); urb 777 drivers/usb/host/max3421-hcd.c usb_settoggle(urb->dev, epnum, 0, 1); urb 778 drivers/usb/host/max3421-hcd.c usb_settoggle(urb->dev, epnum, 1, 1); urb 788 drivers/usb/host/max3421-hcd.c max3421_set_address(hcd, urb->dev, epnum, force_toggles); urb 789 drivers/usb/host/max3421-hcd.c max3421_set_speed(hcd, urb->dev); urb 806 drivers/usb/host/max3421-hcd.c struct urb *urb, *next; urb 813 drivers/usb/host/max3421-hcd.c list_for_each_entry_safe(urb, next, &ep->urb_list, urb_list) { urb 814 drivers/usb/host/max3421-hcd.c if (urb->unlinked) { urb 817 drivers/usb/host/max3421-hcd.c __func__, urb, urb->unlinked); urb 818 drivers/usb/host/max3421-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 821 drivers/usb/host/max3421-hcd.c usb_hcd_giveback_urb(hcd, urb, 0); urb 837 drivers/usb/host/max3421-hcd.c struct urb *urb = max3421_hcd->curr_urb; urb 840 drivers/usb/host/max3421-hcd.c max3421_ep = urb->ep->hcpriv; urb 852 drivers/usb/host/max3421-hcd.c struct urb *urb = max3421_hcd->curr_urb; urb 860 drivers/usb/host/max3421-hcd.c if (urb->actual_length >= urb->transfer_buffer_length) urb 863 drivers/usb/host/max3421-hcd.c remaining = urb->transfer_buffer_length - urb->actual_length; urb 868 drivers/usb/host/max3421-hcd.c void *dst = urb->transfer_buffer + urb->actual_length; urb 871 drivers/usb/host/max3421-hcd.c urb->actual_length += transfer_size; urb 885 drivers/usb/host/max3421-hcd.c struct urb *urb = max3421_hcd->curr_urb; urb 886 drivers/usb/host/max3421-hcd.c struct max3421_ep *max3421_ep = urb->ep->hcpriv; urb 896 drivers/usb/host/max3421-hcd.c usb_urb_dir_out(urb)); urb 918 drivers/usb/host/max3421-hcd.c if (usb_urb_dir_in(urb)) urb 972 drivers/usb/host/max3421-hcd.c max3421_transfer_in_done(struct usb_hcd *hcd, struct urb *urb) urb 978 drivers/usb/host/max3421-hcd.c if (urb->actual_length >= urb->transfer_buffer_length) urb 985 drivers/usb/host/max3421-hcd.c max_packet = usb_maxpacket(urb->dev, urb->pipe, 0); urb 998 drivers/usb/host/max3421-hcd.c if (urb->transfer_flags & URB_SHORT_NOT_OK) { urb 1016 drivers/usb/host/max3421-hcd.c max3421_transfer_out_done(struct usb_hcd *hcd, struct urb *urb) urb 1020 drivers/usb/host/max3421-hcd.c urb->actual_length += max3421_hcd->curr_len; urb 1021 drivers/usb/host/max3421-hcd.c if (urb->actual_length < urb->transfer_buffer_length) urb 1023 drivers/usb/host/max3421-hcd.c if (urb->transfer_flags & URB_ZERO_PACKET) { urb 1031 drivers/usb/host/max3421-hcd.c u32 max_packet = usb_maxpacket(urb->dev, urb->pipe, 1); urb 1046 drivers/usb/host/max3421-hcd.c struct urb *urb = max3421_hcd->curr_urb; urb 1061 drivers/usb/host/max3421-hcd.c max3421_ep = urb->ep->hcpriv; urb 1073 drivers/usb/host/max3421-hcd.c if (urb->transfer_buffer_length > 0) urb 1080 drivers/usb/host/max3421-hcd.c if (usb_urb_dir_in(urb)) urb 1081 drivers/usb/host/max3421-hcd.c urb_done = max3421_transfer_in_done(hcd, urb); urb 1083 drivers/usb/host/max3421-hcd.c urb_done = max3421_transfer_out_done(hcd, urb); urb 1084 drivers/usb/host/max3421-hcd.c if (urb_done > 0 && usb_pipetype(urb->pipe) == PIPE_CONTROL) { urb 1190 drivers/usb/host/max3421-hcd.c struct urb *urb; urb 1200 drivers/usb/host/max3421-hcd.c list_for_each_entry(urb, &ep->urb_list, urb_list) { urb 1201 drivers/usb/host/max3421-hcd.c ret = snprintf(dp, end - dp, " %p(%d.%s %d/%d)", urb, urb 1202 drivers/usb/host/max3421-hcd.c usb_pipetype(urb->pipe), urb 1203 drivers/usb/host/max3421-hcd.c usb_urb_dir_in(urb) ? "IN" : "OUT", urb 1204 drivers/usb/host/max3421-hcd.c urb->actual_length, urb 1205 drivers/usb/host/max3421-hcd.c urb->transfer_buffer_length); urb 1374 drivers/usb/host/max3421-hcd.c struct urb *urb; urb 1381 drivers/usb/host/max3421-hcd.c urb = max3421_hcd->curr_urb; urb 1382 drivers/usb/host/max3421-hcd.c if (urb) { urb 1385 drivers/usb/host/max3421-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 1389 drivers/usb/host/max3421-hcd.c usb_hcd_giveback_urb(hcd, urb, status); urb 1523 drivers/usb/host/max3421-hcd.c max3421_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) urb 1531 drivers/usb/host/max3421-hcd.c switch (usb_pipetype(urb->pipe)) { urb 1534 drivers/usb/host/max3421-hcd.c if (urb->interval < 0) { urb 1537 drivers/usb/host/max3421-hcd.c __func__, urb->interval); urb 1546 drivers/usb/host/max3421-hcd.c max3421_ep = urb->ep->hcpriv; urb 1554 drivers/usb/host/max3421-hcd.c max3421_ep->ep = urb->ep; urb 1556 drivers/usb/host/max3421-hcd.c urb->ep->hcpriv = max3421_ep; urb 1561 drivers/usb/host/max3421-hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 1574 drivers/usb/host/max3421-hcd.c max3421_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 1586 drivers/usb/host/max3421-hcd.c retval = usb_hcd_check_unlink_urb(hcd, urb, status); urb 263 drivers/usb/host/ohci-dbg.c td->urb, td->index, urb 451 drivers/usb/host/ohci-dbg.c TD_CC_GET (info), td->urb, info); urb 117 drivers/usb/host/ohci-hcd.c static int number_of_tds(struct urb *urb) urb 122 drivers/usb/host/ohci-hcd.c len = urb->transfer_buffer_length; urb 123 drivers/usb/host/ohci-hcd.c i = urb->num_mapped_sgs; urb 127 drivers/usb/host/ohci-hcd.c sg = urb->sg; urb 149 drivers/usb/host/ohci-hcd.c struct urb *urb, urb 155 drivers/usb/host/ohci-hcd.c unsigned int pipe = urb->pipe; urb 161 drivers/usb/host/ohci-hcd.c ed = ed_get(ohci, urb->ep, urb->dev, pipe, urb->interval); urb 169 drivers/usb/host/ohci-hcd.c if (urb->transfer_buffer_length > 4096) urb 178 drivers/usb/host/ohci-hcd.c size += number_of_tds(urb); urb 182 drivers/usb/host/ohci-hcd.c else if ((urb->transfer_flags & URB_ZERO_PACKET) != 0 urb 183 drivers/usb/host/ohci-hcd.c && (urb->transfer_buffer_length urb 184 drivers/usb/host/ohci-hcd.c % usb_maxpacket (urb->dev, pipe, urb 189 drivers/usb/host/ohci-hcd.c size = urb->number_of_packets; urb 223 drivers/usb/host/ohci-hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 231 drivers/usb/host/ohci-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 252 drivers/usb/host/ohci-hcd.c urb->start_frame = frame; urb 264 drivers/usb/host/ohci-hcd.c if (urb->transfer_flags & URB_ISO_ASAP) { urb 286 drivers/usb/host/ohci-hcd.c urb, frame, length, urb 291 drivers/usb/host/ohci-hcd.c urb->start_frame = frame; urb 299 drivers/usb/host/ohci-hcd.c urb->hcpriv = urb_priv; urb 300 drivers/usb/host/ohci-hcd.c td_submit_urb (ohci, urb); urb 315 drivers/usb/host/ohci-hcd.c static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 323 drivers/usb/host/ohci-hcd.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 330 drivers/usb/host/ohci-hcd.c urb_priv = urb->hcpriv; urb 1042 drivers/usb/host/ohci-hcd.c struct urb *urb = priv->td[0]->urb; urb 1062 drivers/usb/host/ohci-hcd.c if (!urb->unlinked) urb 1063 drivers/usb/host/ohci-hcd.c urb->unlinked = -ESHUTDOWN; urb 41 drivers/usb/host/ohci-q.c finish_urb(struct ohci_hcd *ohci, struct urb *urb, int status) urb 46 drivers/usb/host/ohci-q.c struct usb_host_endpoint *ep = urb->ep; urb 52 drivers/usb/host/ohci-q.c urb_free_priv (ohci, urb->hcpriv); urb 53 drivers/usb/host/ohci-q.c urb->hcpriv = NULL; urb 57 drivers/usb/host/ohci-q.c switch (usb_pipetype (urb->pipe)) { urb 73 drivers/usb/host/ohci-q.c usb_hcd_unlink_urb_from_ep(ohci_to_hcd(ohci), urb); urb 75 drivers/usb/host/ohci-q.c usb_hcd_giveback_urb(ohci_to_hcd(ohci), urb, status); urb 92 drivers/usb/host/ohci-q.c urb = list_first_entry(&ep->urb_list, struct urb, urb_list); urb 93 drivers/usb/host/ohci-q.c urb_priv = urb->hcpriv; urb 518 drivers/usb/host/ohci-q.c struct urb *urb, int index) urb 521 drivers/usb/host/ohci-q.c struct urb_priv *urb_priv = urb->hcpriv; urb 539 drivers/usb/host/ohci-q.c || (urb->transfer_flags & URB_NO_INTERRUPT)) urb 552 drivers/usb/host/ohci-q.c td->urb = urb; urb 593 drivers/usb/host/ohci-q.c struct urb *urb urb 595 drivers/usb/host/ohci-q.c struct urb_priv *urb_priv = urb->hcpriv; urb 598 drivers/usb/host/ohci-q.c int data_len = urb->transfer_buffer_length; urb 601 drivers/usb/host/ohci-q.c int is_out = usb_pipeout (urb->pipe); urb 610 drivers/usb/host/ohci-q.c if (!usb_gettoggle (urb->dev, usb_pipeendpoint (urb->pipe), is_out)) { urb 611 drivers/usb/host/ohci-q.c usb_settoggle (urb->dev, usb_pipeendpoint (urb->pipe), urb 618 drivers/usb/host/ohci-q.c i = urb->num_mapped_sgs; urb 620 drivers/usb/host/ohci-q.c sg = urb->sg; urb 631 drivers/usb/host/ohci-q.c data = urb->transfer_dma; urb 661 drivers/usb/host/ohci-q.c if (!(urb->transfer_flags & URB_SHORT_NOT_OK)) urb 664 drivers/usb/host/ohci-q.c td_fill(ohci, info, data, n, urb, cnt); urb 679 drivers/usb/host/ohci-q.c if ((urb->transfer_flags & URB_ZERO_PACKET) urb 681 drivers/usb/host/ohci-q.c td_fill (ohci, info, 0, 0, urb, cnt); urb 696 drivers/usb/host/ohci-q.c td_fill (ohci, info, urb->setup_dma, 8, urb, cnt++); urb 701 drivers/usb/host/ohci-q.c td_fill (ohci, info, data, data_len, urb, cnt++); urb 706 drivers/usb/host/ohci-q.c td_fill (ohci, info, data, 0, urb, cnt++); urb 717 drivers/usb/host/ohci-q.c for (cnt = urb_priv->td_cnt; cnt < urb->number_of_packets; urb 719 drivers/usb/host/ohci-q.c int frame = urb->start_frame; urb 724 drivers/usb/host/ohci-q.c frame += cnt * urb->interval; urb 727 drivers/usb/host/ohci-q.c data + urb->iso_frame_desc [cnt].offset, urb 728 drivers/usb/host/ohci-q.c urb->iso_frame_desc [cnt].length, urb, cnt); urb 756 drivers/usb/host/ohci-q.c static int td_done(struct ohci_hcd *ohci, struct urb *urb, struct td *td) urb 777 drivers/usb/host/ohci-q.c if (usb_pipeout (urb->pipe)) urb 778 drivers/usb/host/ohci-q.c dlen = urb->iso_frame_desc [td->index].length; urb 785 drivers/usb/host/ohci-q.c urb->actual_length += dlen; urb 786 drivers/usb/host/ohci-q.c urb->iso_frame_desc [td->index].actual_length = dlen; urb 787 drivers/usb/host/ohci-q.c urb->iso_frame_desc [td->index].status = cc_to_error [cc]; urb 792 drivers/usb/host/ohci-q.c urb, td, 1 + td->index, dlen, cc); urb 799 drivers/usb/host/ohci-q.c int type = usb_pipetype (urb->pipe); urb 806 drivers/usb/host/ohci-q.c && !(urb->transfer_flags & URB_SHORT_NOT_OK)) urb 814 drivers/usb/host/ohci-q.c urb->actual_length += tdBE - td->data_dma + 1; urb 816 drivers/usb/host/ohci-q.c urb->actual_length += urb 824 drivers/usb/host/ohci-q.c urb, td, 1 + td->index, cc, urb 825 drivers/usb/host/ohci-q.c urb->actual_length, urb 826 drivers/usb/host/ohci-q.c urb->transfer_buffer_length); urb 835 drivers/usb/host/ohci-q.c struct urb *urb = td->urb; urb 836 drivers/usb/host/ohci-q.c urb_priv_t *urb_priv = urb->hcpriv; urb 858 drivers/usb/host/ohci-q.c if (next->urb != urb) urb 880 drivers/usb/host/ohci-q.c if ((urb->transfer_flags & URB_SHORT_NOT_OK) == 0) urb 884 drivers/usb/host/ohci-q.c if (usb_pipecontrol (urb->pipe)) urb 890 drivers/usb/host/ohci-q.c urb, urb->dev->devpath, urb 891 drivers/usb/host/ohci-q.c usb_pipeendpoint (urb->pipe), urb 892 drivers/usb/host/ohci-q.c usb_pipein (urb->pipe) ? "in" : "out", urb 1039 drivers/usb/host/ohci-q.c struct urb *urb; urb 1045 drivers/usb/host/ohci-q.c urb = td->urb; urb 1046 drivers/usb/host/ohci-q.c urb_priv = td->urb->hcpriv; urb 1048 drivers/usb/host/ohci-q.c if (!urb->unlinked) { urb 1069 drivers/usb/host/ohci-q.c td_done (ohci, urb, td); urb 1075 drivers/usb/host/ohci-q.c finish_urb(ohci, urb, 0); urb 1152 drivers/usb/host/ohci-q.c struct urb *urb = td->urb; urb 1153 drivers/usb/host/ohci-q.c urb_priv_t *urb_priv = urb->hcpriv; urb 1158 drivers/usb/host/ohci-q.c status = td_done(ohci, urb, td); urb 1163 drivers/usb/host/ohci-q.c finish_urb(ohci, urb, status); urb 134 drivers/usb/host/ohci.h struct urb *urb; urb 257 drivers/usb/host/oxu210hp-hcd.c struct urb *urb; /* qtd's urb */ urb 397 drivers/usb/host/oxu210hp-hcd.c struct urb urb; urb 398 drivers/usb/host/oxu210hp-hcd.c struct urb *main; urb 1297 drivers/usb/host/oxu210hp-hcd.c static void qtd_copy_status(struct oxu_hcd *oxu, struct urb *urb, urb 1302 drivers/usb/host/oxu210hp-hcd.c urb->actual_length += length - QTD_LENGTH(token); urb 1305 drivers/usb/host/oxu210hp-hcd.c if (unlikely(urb->status != -EINPROGRESS)) urb 1310 drivers/usb/host/oxu210hp-hcd.c urb->status = -EREMOTEIO; urb 1316 drivers/usb/host/oxu210hp-hcd.c urb->status = -EOVERFLOW; urb 1319 drivers/usb/host/oxu210hp-hcd.c urb->status = -EPROTO; urb 1321 drivers/usb/host/oxu210hp-hcd.c urb->status = (QTD_PID(token) == 1) /* IN ? */ urb 1327 drivers/usb/host/oxu210hp-hcd.c urb->status = -EPIPE; urb 1330 drivers/usb/host/oxu210hp-hcd.c urb->dev->devpath, urb 1331 drivers/usb/host/oxu210hp-hcd.c usb_pipeendpoint(urb->pipe), urb 1332 drivers/usb/host/oxu210hp-hcd.c usb_pipein(urb->pipe) ? "in" : "out"); urb 1333 drivers/usb/host/oxu210hp-hcd.c urb->status = -EPROTO; urb 1337 drivers/usb/host/oxu210hp-hcd.c urb->status = -EPIPE; urb 1339 drivers/usb/host/oxu210hp-hcd.c urb->status = -EPROTO; urb 1342 drivers/usb/host/oxu210hp-hcd.c usb_pipedevice(urb->pipe), urb 1343 drivers/usb/host/oxu210hp-hcd.c usb_pipeendpoint(urb->pipe), urb 1344 drivers/usb/host/oxu210hp-hcd.c usb_pipein(urb->pipe) ? "in" : "out", urb 1345 drivers/usb/host/oxu210hp-hcd.c token, urb->status); urb 1349 drivers/usb/host/oxu210hp-hcd.c static void ehci_urb_done(struct oxu_hcd *oxu, struct urb *urb) urb 1353 drivers/usb/host/oxu210hp-hcd.c if (likely(urb->hcpriv != NULL)) { urb 1354 drivers/usb/host/oxu210hp-hcd.c struct ehci_qh *qh = (struct ehci_qh *) urb->hcpriv; urb 1365 drivers/usb/host/oxu210hp-hcd.c urb->hcpriv = NULL; urb 1366 drivers/usb/host/oxu210hp-hcd.c switch (urb->status) { urb 1368 drivers/usb/host/oxu210hp-hcd.c urb->status = 0; urb 1372 drivers/usb/host/oxu210hp-hcd.c if (!(urb->transfer_flags & URB_SHORT_NOT_OK)) urb 1373 drivers/usb/host/oxu210hp-hcd.c urb->status = 0; urb 1382 drivers/usb/host/oxu210hp-hcd.c __func__, urb->dev->devpath, urb, urb 1383 drivers/usb/host/oxu210hp-hcd.c usb_pipeendpoint(urb->pipe), urb 1384 drivers/usb/host/oxu210hp-hcd.c usb_pipein(urb->pipe) ? "in" : "out", urb 1385 drivers/usb/host/oxu210hp-hcd.c urb->status, urb 1386 drivers/usb/host/oxu210hp-hcd.c urb->actual_length, urb->transfer_buffer_length); urb 1391 drivers/usb/host/oxu210hp-hcd.c usb_hcd_giveback_urb(oxu_to_hcd(oxu), urb, urb->status); urb 1436 drivers/usb/host/oxu210hp-hcd.c struct urb *urb; urb 1439 drivers/usb/host/oxu210hp-hcd.c urb = qtd->urb; urb 1443 drivers/usb/host/oxu210hp-hcd.c if (likely(last->urb != urb)) { urb 1444 drivers/usb/host/oxu210hp-hcd.c if (last->urb->complete == NULL) { urb 1445 drivers/usb/host/oxu210hp-hcd.c murb = (struct oxu_murb *) last->urb; urb 1446 drivers/usb/host/oxu210hp-hcd.c last->urb = murb->main; urb 1448 drivers/usb/host/oxu210hp-hcd.c ehci_urb_done(oxu, last->urb); urb 1453 drivers/usb/host/oxu210hp-hcd.c ehci_urb_done(oxu, last->urb); urb 1493 drivers/usb/host/oxu210hp-hcd.c urb->status = -ESHUTDOWN; urb 1499 drivers/usb/host/oxu210hp-hcd.c if (likely(urb->status == -EINPROGRESS)) urb 1527 drivers/usb/host/oxu210hp-hcd.c qtd_copy_status(oxu, urb->complete ? urb 1528 drivers/usb/host/oxu210hp-hcd.c urb : ((struct oxu_murb *) urb)->main, urb 1530 drivers/usb/host/oxu210hp-hcd.c if ((usb_pipein(qtd->urb->pipe)) && urb 1533 drivers/usb/host/oxu210hp-hcd.c do_status = (urb->status == -EREMOTEIO) urb 1534 drivers/usb/host/oxu210hp-hcd.c && usb_pipecontrol(urb->pipe); urb 1547 drivers/usb/host/oxu210hp-hcd.c if (last->urb->complete == NULL) { urb 1548 drivers/usb/host/oxu210hp-hcd.c murb = (struct oxu_murb *) last->urb; urb 1549 drivers/usb/host/oxu210hp-hcd.c last->urb = murb->main; urb 1551 drivers/usb/host/oxu210hp-hcd.c ehci_urb_done(oxu, last->urb); urb 1556 drivers/usb/host/oxu210hp-hcd.c ehci_urb_done(oxu, last->urb); urb 1601 drivers/usb/host/oxu210hp-hcd.c struct urb *urb, struct list_head *head) urb 1614 drivers/usb/host/oxu210hp-hcd.c struct urb *urb, urb 1633 drivers/usb/host/oxu210hp-hcd.c qtd->urb = urb; urb 1639 drivers/usb/host/oxu210hp-hcd.c len = urb->transfer_buffer_length; urb 1640 drivers/usb/host/oxu210hp-hcd.c is_input = usb_pipein(urb->pipe); urb 1641 drivers/usb/host/oxu210hp-hcd.c if (!urb->transfer_buffer && urb->transfer_buffer_length && is_input) urb 1642 drivers/usb/host/oxu210hp-hcd.c urb->transfer_buffer = phys_to_virt(urb->transfer_dma); urb 1644 drivers/usb/host/oxu210hp-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 1652 drivers/usb/host/oxu210hp-hcd.c memcpy(qtd->buffer, qtd->urb->setup_packet, urb 1661 drivers/usb/host/oxu210hp-hcd.c qtd->urb = urb; urb 1679 drivers/usb/host/oxu210hp-hcd.c transfer_buf = urb->transfer_buffer; urb 1682 drivers/usb/host/oxu210hp-hcd.c memcpy(qtd->buffer, qtd->urb->transfer_buffer, len); urb 1688 drivers/usb/host/oxu210hp-hcd.c maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input)); urb 1722 drivers/usb/host/oxu210hp-hcd.c qtd->urb = urb; urb 1730 drivers/usb/host/oxu210hp-hcd.c if (likely((urb->transfer_flags & URB_SHORT_NOT_OK) == 0 urb 1731 drivers/usb/host/oxu210hp-hcd.c || usb_pipecontrol(urb->pipe))) urb 1738 drivers/usb/host/oxu210hp-hcd.c if (likely(urb->transfer_buffer_length != 0)) { urb 1741 drivers/usb/host/oxu210hp-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 1745 drivers/usb/host/oxu210hp-hcd.c } else if (usb_pipebulk(urb->pipe) urb 1746 drivers/usb/host/oxu210hp-hcd.c && (urb->transfer_flags & URB_ZERO_PACKET) urb 1747 drivers/usb/host/oxu210hp-hcd.c && !(urb->transfer_buffer_length % maxpacket)) { urb 1755 drivers/usb/host/oxu210hp-hcd.c qtd->urb = urb; urb 1769 drivers/usb/host/oxu210hp-hcd.c qtd_list_free(oxu, urb, head); urb 1781 drivers/usb/host/oxu210hp-hcd.c struct urb *urb, gfp_t flags) urb 1794 drivers/usb/host/oxu210hp-hcd.c info1 |= usb_pipeendpoint(urb->pipe) << 8; urb 1795 drivers/usb/host/oxu210hp-hcd.c info1 |= usb_pipedevice(urb->pipe) << 0; urb 1797 drivers/usb/host/oxu210hp-hcd.c is_input = usb_pipein(urb->pipe); urb 1798 drivers/usb/host/oxu210hp-hcd.c type = usb_pipetype(urb->pipe); urb 1799 drivers/usb/host/oxu210hp-hcd.c maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); urb 1815 drivers/usb/host/oxu210hp-hcd.c if (urb->dev->speed == USB_SPEED_HIGH) { urb 1819 drivers/usb/host/oxu210hp-hcd.c qh->period = urb->interval >> 3; urb 1820 drivers/usb/host/oxu210hp-hcd.c if (qh->period == 0 && urb->interval != 1) { urb 1826 drivers/usb/host/oxu210hp-hcd.c urb->interval); urb 1830 drivers/usb/host/oxu210hp-hcd.c struct usb_tt *tt = urb->dev->tt; urb 1834 drivers/usb/host/oxu210hp-hcd.c qh->gap_uf = 1 + usb_calc_bus_time(urb->dev->speed, urb 1848 drivers/usb/host/oxu210hp-hcd.c usb_calc_bus_time(urb->dev->speed, urb 1850 drivers/usb/host/oxu210hp-hcd.c qh->period = urb->interval; urb 1855 drivers/usb/host/oxu210hp-hcd.c qh->dev = urb->dev; urb 1858 drivers/usb/host/oxu210hp-hcd.c switch (urb->dev->speed) { urb 1874 drivers/usb/host/oxu210hp-hcd.c info2 |= urb->dev->ttport << 23; urb 1897 drivers/usb/host/oxu210hp-hcd.c oxu_dbg(oxu, "bogus dev %p speed %d\n", urb->dev, urb->dev->speed); urb 1909 drivers/usb/host/oxu210hp-hcd.c usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), !is_input, 1); urb 1963 drivers/usb/host/oxu210hp-hcd.c struct urb *urb, struct list_head *qtd_list, urb 1971 drivers/usb/host/oxu210hp-hcd.c qh = qh_make(oxu, urb, GFP_ATOMIC); urb 1987 drivers/usb/host/oxu210hp-hcd.c if (usb_pipedevice(urb->pipe) == 0) urb 2031 drivers/usb/host/oxu210hp-hcd.c urb->hcpriv = qh_get(qh); urb 2037 drivers/usb/host/oxu210hp-hcd.c static int submit_async(struct oxu_hcd *oxu, struct urb *urb, urb 2047 drivers/usb/host/oxu210hp-hcd.c epnum = urb->ep->desc.bEndpointAddress; urb 2051 drivers/usb/host/oxu210hp-hcd.c __func__, urb->dev->devpath, urb, urb 2053 drivers/usb/host/oxu210hp-hcd.c urb->transfer_buffer_length, urb 2054 drivers/usb/host/oxu210hp-hcd.c qtd, urb->ep->hcpriv); urb 2063 drivers/usb/host/oxu210hp-hcd.c qh = qh_append_tds(oxu, urb, qtd_list, epnum, &urb->ep->hcpriv); urb 2077 drivers/usb/host/oxu210hp-hcd.c qtd_list_free(oxu, urb, qtd_list); urb 2612 drivers/usb/host/oxu210hp-hcd.c static int intr_submit(struct oxu_hcd *oxu, struct urb *urb, urb 2622 drivers/usb/host/oxu210hp-hcd.c epnum = urb->ep->desc.bEndpointAddress; urb 2633 drivers/usb/host/oxu210hp-hcd.c qh = qh_append_tds(oxu, urb, &empty, epnum, &urb->ep->hcpriv); urb 2645 drivers/usb/host/oxu210hp-hcd.c qh = qh_append_tds(oxu, urb, qtd_list, epnum, &urb->ep->hcpriv); urb 2654 drivers/usb/host/oxu210hp-hcd.c qtd_list_free(oxu, urb, qtd_list); urb 2659 drivers/usb/host/oxu210hp-hcd.c static inline int itd_submit(struct oxu_hcd *oxu, struct urb *urb, urb 2666 drivers/usb/host/oxu210hp-hcd.c static inline int sitd_submit(struct oxu_hcd *oxu, struct urb *urb, urb 3230 drivers/usb/host/oxu210hp-hcd.c static int __oxu_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, urb 3238 drivers/usb/host/oxu210hp-hcd.c switch (usb_pipetype(urb->pipe)) { urb 3242 drivers/usb/host/oxu210hp-hcd.c if (!qh_urb_transaction(oxu, urb, &qtd_list, mem_flags)) urb 3244 drivers/usb/host/oxu210hp-hcd.c return submit_async(oxu, urb, &qtd_list, mem_flags); urb 3247 drivers/usb/host/oxu210hp-hcd.c if (!qh_urb_transaction(oxu, urb, &qtd_list, mem_flags)) urb 3249 drivers/usb/host/oxu210hp-hcd.c return intr_submit(oxu, urb, &qtd_list, mem_flags); urb 3252 drivers/usb/host/oxu210hp-hcd.c if (urb->dev->speed == USB_SPEED_HIGH) urb 3253 drivers/usb/host/oxu210hp-hcd.c return itd_submit(oxu, urb, mem_flags); urb 3255 drivers/usb/host/oxu210hp-hcd.c return sitd_submit(oxu, urb, mem_flags); urb 3262 drivers/usb/host/oxu210hp-hcd.c static int oxu_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, urb 3268 drivers/usb/host/oxu210hp-hcd.c struct urb *murb; urb 3272 drivers/usb/host/oxu210hp-hcd.c if (!usb_pipebulk(urb->pipe)) urb 3273 drivers/usb/host/oxu210hp-hcd.c return __oxu_urb_enqueue(hcd, urb, mem_flags); urb 3276 drivers/usb/host/oxu210hp-hcd.c transfer_buffer = urb->transfer_buffer; urb 3278 drivers/usb/host/oxu210hp-hcd.c num = urb->transfer_buffer_length / 4096; urb 3279 drivers/usb/host/oxu210hp-hcd.c rem = urb->transfer_buffer_length % 4096; urb 3285 drivers/usb/host/oxu210hp-hcd.c return __oxu_urb_enqueue(hcd, urb, mem_flags); urb 3293 drivers/usb/host/oxu210hp-hcd.c murb = (struct urb *) oxu_murb_alloc(oxu); urb 3299 drivers/usb/host/oxu210hp-hcd.c memcpy(murb, urb, sizeof(struct urb)); urb 3307 drivers/usb/host/oxu210hp-hcd.c ((struct oxu_murb *) murb)->main = urb; urb 3324 drivers/usb/host/oxu210hp-hcd.c murb = (struct urb *) oxu_murb_alloc(oxu); urb 3330 drivers/usb/host/oxu210hp-hcd.c memcpy(murb, urb, sizeof(struct urb)); urb 3338 drivers/usb/host/oxu210hp-hcd.c ((struct oxu_murb *) murb)->main = urb; urb 3353 drivers/usb/host/oxu210hp-hcd.c static int oxu_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 3360 drivers/usb/host/oxu210hp-hcd.c switch (usb_pipetype(urb->pipe)) { urb 3364 drivers/usb/host/oxu210hp-hcd.c qh = (struct ehci_qh *) urb->hcpriv; urb 3371 drivers/usb/host/oxu210hp-hcd.c qh = (struct ehci_qh *) urb->hcpriv; urb 326 drivers/usb/host/r8a66597-hcd.c get_urb_to_r8a66597_dev(struct r8a66597 *r8a66597, struct urb *urb) urb 328 drivers/usb/host/r8a66597-hcd.c if (usb_pipedevice(urb->pipe) == 0) urb 331 drivers/usb/host/r8a66597-hcd.c return dev_get_drvdata(&urb->dev->dev); urb 335 drivers/usb/host/r8a66597-hcd.c struct urb *urb, u8 addr) urb 338 drivers/usb/host/r8a66597-hcd.c int usb_address = urb->setup_packet[2]; /* urb->pipe is address 0 */ urb 344 drivers/usb/host/r8a66597-hcd.c dev_set_drvdata(&urb->dev->dev, dev); urb 345 drivers/usb/host/r8a66597-hcd.c dev->udev = urb->dev; urb 354 drivers/usb/host/r8a66597-hcd.c get_port_number(r8a66597, urb->dev->devpath, urb 356 drivers/usb/host/r8a66597-hcd.c if (!is_child_device(urb->dev->devpath)) urb 360 drivers/usb/host/r8a66597-hcd.c get_r8a66597_usb_speed(urb->dev->speed), urb 361 drivers/usb/host/r8a66597-hcd.c get_parent_r8a66597_address(r8a66597, urb->dev), urb 368 drivers/usb/host/r8a66597-hcd.c static u8 alloc_usb_address(struct r8a66597 *r8a66597, struct urb *urb) urb 373 drivers/usb/host/r8a66597-hcd.c if (is_hub_limit(urb->dev->devpath)) { urb 374 drivers/usb/host/r8a66597-hcd.c dev_err(&urb->dev->dev, "External hub limit reached.\n"); urb 378 drivers/usb/host/r8a66597-hcd.c dev = get_urb_to_r8a66597_dev(r8a66597, urb); urb 386 drivers/usb/host/r8a66597-hcd.c dev_dbg(&urb->dev->dev, "alloc_address: r8a66597_addr=%d\n", addr); urb 389 drivers/usb/host/r8a66597-hcd.c if (make_r8a66597_device(r8a66597, urb, addr) < 0) urb 395 drivers/usb/host/r8a66597-hcd.c dev_err(&urb->dev->dev, urb 533 drivers/usb/host/r8a66597-hcd.c static u16 r8a66597_get_pipenum(struct urb *urb, struct usb_host_endpoint *hep) urb 537 drivers/usb/host/r8a66597-hcd.c if (usb_pipeendpoint(urb->pipe) == 0) urb 543 drivers/usb/host/r8a66597-hcd.c static u16 get_urb_to_r8a66597_addr(struct r8a66597 *r8a66597, struct urb *urb) urb 545 drivers/usb/host/r8a66597-hcd.c struct r8a66597_device *dev = get_urb_to_r8a66597_dev(r8a66597, urb); urb 547 drivers/usb/host/r8a66597-hcd.c return (usb_pipedevice(urb->pipe) == 0) ? 0 : dev->address; urb 562 drivers/usb/host/r8a66597-hcd.c struct urb *urb, int set) urb 564 drivers/usb/host/r8a66597-hcd.c struct r8a66597_device *dev = get_urb_to_r8a66597_dev(r8a66597, urb); urb 565 drivers/usb/host/r8a66597-hcd.c unsigned char endpoint = usb_pipeendpoint(urb->pipe); urb 566 drivers/usb/host/r8a66597-hcd.c unsigned short *toggle = get_toggle_pointer(dev, urb->pipe); urb 580 drivers/usb/host/r8a66597-hcd.c struct urb *urb) urb 583 drivers/usb/host/r8a66597-hcd.c pipe_toggle_set(r8a66597, pipe, urb, 1); urb 585 drivers/usb/host/r8a66597-hcd.c pipe_toggle_set(r8a66597, pipe, urb, 0); urb 591 drivers/usb/host/r8a66597-hcd.c struct urb *urb) urb 593 drivers/usb/host/r8a66597-hcd.c struct r8a66597_device *dev = get_urb_to_r8a66597_dev(r8a66597, urb); urb 594 drivers/usb/host/r8a66597-hcd.c unsigned char endpoint = usb_pipeendpoint(urb->pipe); urb 595 drivers/usb/host/r8a66597-hcd.c unsigned short *toggle = get_toggle_pointer(dev, urb->pipe); urb 633 drivers/usb/host/r8a66597-hcd.c struct urb *urb = td->urb; urb 640 drivers/usb/host/r8a66597-hcd.c if (!usb_gettoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 641 drivers/usb/host/r8a66597-hcd.c usb_pipeout(urb->pipe)) && urb 642 drivers/usb/host/r8a66597-hcd.c !usb_pipecontrol(urb->pipe)) { urb 644 drivers/usb/host/r8a66597-hcd.c pipe_toggle_set(r8a66597, td->pipe, urb, 0); urb 646 drivers/usb/host/r8a66597-hcd.c usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 647 drivers/usb/host/r8a66597-hcd.c usb_pipeout(urb->pipe), 1); urb 649 drivers/usb/host/r8a66597-hcd.c pipe_toggle_restore(r8a66597, td->pipe, urb); urb 758 drivers/usb/host/r8a66597-hcd.c struct urb *urb) urb 775 drivers/usb/host/r8a66597-hcd.c "DMA FIFO\n", usb_pipedevice(urb->pipe), urb 797 drivers/usb/host/r8a66597-hcd.c static void enable_r8a66597_pipe(struct r8a66597 *r8a66597, struct urb *urb, urb 801 drivers/usb/host/r8a66597-hcd.c struct r8a66597_device *dev = get_urb_to_r8a66597_dev(r8a66597, urb); urb 811 drivers/usb/host/r8a66597-hcd.c enable_r8a66597_pipe_dma(r8a66597, dev, pipe, urb); urb 814 drivers/usb/host/r8a66597-hcd.c static void r8a66597_urb_done(struct r8a66597 *r8a66597, struct urb *urb, urb 819 drivers/usb/host/r8a66597-hcd.c if (usb_pipein(urb->pipe) && usb_pipetype(urb->pipe) != PIPE_CONTROL) { urb 822 drivers/usb/host/r8a66597-hcd.c for (ptr = urb->transfer_buffer; urb 823 drivers/usb/host/r8a66597-hcd.c ptr < urb->transfer_buffer + urb->transfer_buffer_length; urb 828 drivers/usb/host/r8a66597-hcd.c usb_hcd_unlink_urb_from_ep(r8a66597_to_hcd(r8a66597), urb); urb 830 drivers/usb/host/r8a66597-hcd.c usb_hcd_giveback_urb(r8a66597_to_hcd(r8a66597), urb, status); urb 838 drivers/usb/host/r8a66597-hcd.c struct urb *urb; urb 848 drivers/usb/host/r8a66597-hcd.c urb = td->urb; urb 852 drivers/usb/host/r8a66597-hcd.c if (urb) urb 853 drivers/usb/host/r8a66597-hcd.c r8a66597_urb_done(r8a66597, urb, -ENODEV); urb 889 drivers/usb/host/r8a66597-hcd.c static u16 get_interval(struct urb *urb, __u8 interval) urb 894 drivers/usb/host/r8a66597-hcd.c if (urb->dev->speed == USB_SPEED_HIGH) { urb 915 drivers/usb/host/r8a66597-hcd.c static unsigned long get_timer_interval(struct urb *urb, __u8 interval) urb 920 drivers/usb/host/r8a66597-hcd.c if (usb_pipeisoc(urb->pipe)) urb 923 drivers/usb/host/r8a66597-hcd.c if (get_r8a66597_usb_speed(urb->dev->speed) == HSMODE) { urb 935 drivers/usb/host/r8a66597-hcd.c static void init_pipe_info(struct r8a66597 *r8a66597, struct urb *urb, urb 942 drivers/usb/host/r8a66597-hcd.c info.address = get_urb_to_r8a66597_addr(r8a66597, urb); urb 952 drivers/usb/host/r8a66597-hcd.c info.interval = get_interval(urb, ep->bInterval); urb 953 drivers/usb/host/r8a66597-hcd.c info.timer_interval = get_timer_interval(urb, ep->bInterval); urb 960 drivers/usb/host/r8a66597-hcd.c enable_r8a66597_pipe(r8a66597, urb, hep, &info); urb 963 drivers/usb/host/r8a66597-hcd.c static void init_pipe_config(struct r8a66597 *r8a66597, struct urb *urb) urb 967 drivers/usb/host/r8a66597-hcd.c dev = get_urb_to_r8a66597_dev(r8a66597, urb); urb 971 drivers/usb/host/r8a66597-hcd.c static void pipe_irq_enable(struct r8a66597 *r8a66597, struct urb *urb, urb 974 drivers/usb/host/r8a66597-hcd.c if (pipenum == 0 && usb_pipeout(urb->pipe)) urb 979 drivers/usb/host/r8a66597-hcd.c if (!usb_pipeisoc(urb->pipe)) urb 1070 drivers/usb/host/r8a66597-hcd.c __le16 *p = (__le16 *)td->urb->setup_packet; urb 1088 drivers/usb/host/r8a66597-hcd.c struct urb *urb = td->urb; urb 1090 drivers/usb/host/r8a66597-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 1094 drivers/usb/host/r8a66597-hcd.c if (urb->actual_length == 0) { urb 1100 drivers/usb/host/r8a66597-hcd.c pipe_irq_enable(r8a66597, urb, td->pipenum); urb 1102 drivers/usb/host/r8a66597-hcd.c if (urb->actual_length == 0) { urb 1113 drivers/usb/host/r8a66597-hcd.c (urb->transfer_buffer_length, urb 1121 drivers/usb/host/r8a66597-hcd.c pipe_irq_enable(r8a66597, urb, td->pipenum); urb 1131 drivers/usb/host/r8a66597-hcd.c struct urb *urb = td->urb; urb 1133 drivers/usb/host/r8a66597-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 1138 drivers/usb/host/r8a66597-hcd.c if (urb->actual_length == 0) { urb 1143 drivers/usb/host/r8a66597-hcd.c if (urb->actual_length == 0) urb 1153 drivers/usb/host/r8a66597-hcd.c pipe_irq_enable(r8a66597, urb, td->pipenum); urb 1163 drivers/usb/host/r8a66597-hcd.c struct urb *urb = td->urb; urb 1168 drivers/usb/host/r8a66597-hcd.c if (urb->setup_packet[0] & USB_ENDPOINT_DIR_MASK) { urb 1202 drivers/usb/host/r8a66597-hcd.c if (is_set_address(td->urb->setup_packet)) { urb 1204 drivers/usb/host/r8a66597-hcd.c td->urb->setup_packet[2] = alloc_usb_address(r8a66597, urb 1205 drivers/usb/host/r8a66597-hcd.c td->urb); urb 1206 drivers/usb/host/r8a66597-hcd.c if (td->urb->setup_packet[2] == 0) urb 1228 drivers/usb/host/r8a66597-hcd.c static int check_transfer_finish(struct r8a66597_td *td, struct urb *urb) urb 1230 drivers/usb/host/r8a66597-hcd.c if (usb_pipeisoc(urb->pipe)) { urb 1231 drivers/usb/host/r8a66597-hcd.c if (urb->number_of_packets == td->iso_cnt) urb 1236 drivers/usb/host/r8a66597-hcd.c if ((urb->transfer_buffer_length <= urb->actual_length) || urb 1251 drivers/usb/host/r8a66597-hcd.c !usb_pipecontrol(td->urb->pipe) && usb_pipein(td->urb->pipe)) { urb 1253 drivers/usb/host/r8a66597-hcd.c switch (usb_pipetype(td->urb->pipe)) { urb 1270 drivers/usb/host/r8a66597-hcd.c u16 pipenum, struct urb *urb, int status) urb 1279 drivers/usb/host/r8a66597-hcd.c if (td->set_address && (status != 0 || urb->unlinked)) urb 1280 drivers/usb/host/r8a66597-hcd.c r8a66597->address_map &= ~(1 << urb->setup_packet[2]); urb 1282 drivers/usb/host/r8a66597-hcd.c pipe_toggle_save(r8a66597, td->pipe, urb); urb 1290 drivers/usb/host/r8a66597-hcd.c if (likely(urb)) { urb 1291 drivers/usb/host/r8a66597-hcd.c if (usb_pipeisoc(urb->pipe)) urb 1292 drivers/usb/host/r8a66597-hcd.c urb->start_frame = r8a66597_get_frame(hcd); urb 1294 drivers/usb/host/r8a66597-hcd.c r8a66597_urb_done(r8a66597, urb, status); urb 1313 drivers/usb/host/r8a66597-hcd.c struct urb *urb; urb 1319 drivers/usb/host/r8a66597-hcd.c urb = td->urb; urb 1327 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, td->urb, -EPIPE); urb 1333 drivers/usb/host/r8a66597-hcd.c if (usb_pipeisoc(urb->pipe)) { urb 1334 drivers/usb/host/r8a66597-hcd.c buf = (u16 *)(urb->transfer_buffer + urb 1335 drivers/usb/host/r8a66597-hcd.c urb->iso_frame_desc[td->iso_cnt].offset); urb 1336 drivers/usb/host/r8a66597-hcd.c urb_len = urb->iso_frame_desc[td->iso_cnt].length; urb 1338 drivers/usb/host/r8a66597-hcd.c buf = (void *)urb->transfer_buffer + urb->actual_length; urb 1339 drivers/usb/host/r8a66597-hcd.c urb_len = urb->transfer_buffer_length - urb->actual_length; urb 1351 drivers/usb/host/r8a66597-hcd.c urb->actual_length += size; urb 1357 drivers/usb/host/r8a66597-hcd.c if (usb_pipeisoc(urb->pipe)) { urb 1358 drivers/usb/host/r8a66597-hcd.c urb->iso_frame_desc[td->iso_cnt].actual_length = size; urb 1359 drivers/usb/host/r8a66597-hcd.c urb->iso_frame_desc[td->iso_cnt].status = status; urb 1365 drivers/usb/host/r8a66597-hcd.c if (finish || check_transfer_finish(td, urb)) { urb 1372 drivers/usb/host/r8a66597-hcd.c if (urb->transfer_buffer) { urb 1381 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, urb, status); urb 1390 drivers/usb/host/r8a66597-hcd.c struct urb *urb; urb 1394 drivers/usb/host/r8a66597-hcd.c urb = td->urb; urb 1402 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, urb, -EPIPE); urb 1408 drivers/usb/host/r8a66597-hcd.c if (usb_pipeisoc(urb->pipe)) { urb 1409 drivers/usb/host/r8a66597-hcd.c buf = (u16 *)(urb->transfer_buffer + urb 1410 drivers/usb/host/r8a66597-hcd.c urb->iso_frame_desc[td->iso_cnt].offset); urb 1412 drivers/usb/host/r8a66597-hcd.c (int)urb->iso_frame_desc[td->iso_cnt].length); urb 1414 drivers/usb/host/r8a66597-hcd.c buf = (u16 *)(urb->transfer_buffer + urb->actual_length); urb 1416 drivers/usb/host/r8a66597-hcd.c urb->transfer_buffer_length - urb->actual_length); urb 1422 drivers/usb/host/r8a66597-hcd.c if (urb->transfer_buffer) { urb 1424 drivers/usb/host/r8a66597-hcd.c if (!usb_pipebulk(urb->pipe) || td->maxpacket != size) urb 1429 drivers/usb/host/r8a66597-hcd.c urb->actual_length += size; urb 1430 drivers/usb/host/r8a66597-hcd.c if (usb_pipeisoc(urb->pipe)) { urb 1431 drivers/usb/host/r8a66597-hcd.c urb->iso_frame_desc[td->iso_cnt].actual_length = size; urb 1432 drivers/usb/host/r8a66597-hcd.c urb->iso_frame_desc[td->iso_cnt].status = 0; urb 1437 drivers/usb/host/r8a66597-hcd.c if (check_transfer_finish(td, urb)) { urb 1440 drivers/usb/host/r8a66597-hcd.c if (!usb_pipeisoc(urb->pipe)) urb 1443 drivers/usb/host/r8a66597-hcd.c pipe_irq_enable(r8a66597, urb, pipenum); urb 1450 drivers/usb/host/r8a66597-hcd.c struct urb *urb; urb 1455 drivers/usb/host/r8a66597-hcd.c urb = td->urb; urb 1460 drivers/usb/host/r8a66597-hcd.c if (check_transfer_finish(td, urb)) urb 1464 drivers/usb/host/r8a66597-hcd.c if (urb->transfer_buffer_length == urb->actual_length) urb 1466 drivers/usb/host/r8a66597-hcd.c else if (usb_pipeout(urb->pipe)) urb 1476 drivers/usb/host/r8a66597-hcd.c if (finish || status != 0 || urb->unlinked) urb 1477 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, 0, urb, status); urb 1562 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, td->urb, urb 1597 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, td->urb, status); urb 1769 drivers/usb/host/r8a66597-hcd.c if (td->urb->actual_length) { urb 1815 drivers/usb/host/r8a66597-hcd.c static int check_pipe_config(struct r8a66597 *r8a66597, struct urb *urb) urb 1817 drivers/usb/host/r8a66597-hcd.c struct r8a66597_device *dev = get_urb_to_r8a66597_dev(r8a66597, urb); urb 1820 drivers/usb/host/r8a66597-hcd.c (urb->dev->state == USB_STATE_CONFIGURED)) urb 1841 drivers/usb/host/r8a66597-hcd.c static void set_address_zero(struct r8a66597 *r8a66597, struct urb *urb) urb 1843 drivers/usb/host/r8a66597-hcd.c unsigned int usb_address = usb_pipedevice(urb->pipe); urb 1847 drivers/usb/host/r8a66597-hcd.c get_port_number(r8a66597, urb->dev->devpath, urb 1850 drivers/usb/host/r8a66597-hcd.c get_r8a66597_usb_speed(urb->dev->speed), urb 1851 drivers/usb/host/r8a66597-hcd.c get_parent_r8a66597_address(r8a66597, urb->dev), urb 1857 drivers/usb/host/r8a66597-hcd.c struct urb *urb, urb 1867 drivers/usb/host/r8a66597-hcd.c pipenum = r8a66597_get_pipenum(urb, hep); urb 1870 drivers/usb/host/r8a66597-hcd.c td->urb = urb; urb 1871 drivers/usb/host/r8a66597-hcd.c td->address = get_urb_to_r8a66597_addr(r8a66597, urb); urb 1872 drivers/usb/host/r8a66597-hcd.c td->maxpacket = usb_maxpacket(urb->dev, urb->pipe, urb 1873 drivers/usb/host/r8a66597-hcd.c !usb_pipein(urb->pipe)); urb 1874 drivers/usb/host/r8a66597-hcd.c if (usb_pipecontrol(urb->pipe)) urb 1876 drivers/usb/host/r8a66597-hcd.c else if (usb_pipein(urb->pipe)) urb 1886 drivers/usb/host/r8a66597-hcd.c struct urb *urb, urb 1889 drivers/usb/host/r8a66597-hcd.c struct usb_host_endpoint *hep = urb->ep; urb 1896 drivers/usb/host/r8a66597-hcd.c if (!get_urb_to_r8a66597_dev(r8a66597, urb)) { urb 1901 drivers/usb/host/r8a66597-hcd.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 1913 drivers/usb/host/r8a66597-hcd.c if (usb_pipeendpoint(urb->pipe)) urb 1914 drivers/usb/host/r8a66597-hcd.c init_pipe_info(r8a66597, urb, hep, &hep->desc); urb 1917 drivers/usb/host/r8a66597-hcd.c if (unlikely(check_pipe_config(r8a66597, urb))) urb 1918 drivers/usb/host/r8a66597-hcd.c init_pipe_config(r8a66597, urb); urb 1920 drivers/usb/host/r8a66597-hcd.c set_address_zero(r8a66597, urb); urb 1921 drivers/usb/host/r8a66597-hcd.c td = r8a66597_make_td(r8a66597, urb, hep); urb 1929 drivers/usb/host/r8a66597-hcd.c urb->hcpriv = td; urb 1949 drivers/usb/host/r8a66597-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 1955 drivers/usb/host/r8a66597-hcd.c static int r8a66597_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, urb 1964 drivers/usb/host/r8a66597-hcd.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 1968 drivers/usb/host/r8a66597-hcd.c if (urb->hcpriv) { urb 1969 drivers/usb/host/r8a66597-hcd.c td = urb->hcpriv; urb 1973 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, td->pipenum, urb, status); urb 1988 drivers/usb/host/r8a66597-hcd.c struct urb *urb = NULL; urb 2009 drivers/usb/host/r8a66597-hcd.c urb = td->urb; urb 2010 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, urb, -ESHUTDOWN); urb 57 drivers/usb/host/r8a66597.h struct urb *urb; urb 151 drivers/usb/host/r8a66597.h static inline struct urb *r8a66597_get_urb(struct r8a66597 *r8a66597, urb 157 drivers/usb/host/r8a66597.h return (td ? td->urb : NULL); urb 137 drivers/usb/host/sl811-hcd.c struct urb *urb, urb 149 drivers/usb/host/sl811-hcd.c sl811_write_buf(sl811, addr, urb->setup_packet, len); urb 155 drivers/usb/host/sl811-hcd.c writeb(usb_pipedevice(urb->pipe), data_reg); urb 168 drivers/usb/host/sl811-hcd.c struct urb *urb, urb 176 drivers/usb/host/sl811-hcd.c do_out = urb->transfer_buffer_length && usb_pipein(urb->pipe); urb 183 drivers/usb/host/sl811-hcd.c writeb(usb_pipedevice(urb->pipe), data_reg); urb 202 drivers/usb/host/sl811-hcd.c struct urb *urb, urb 215 drivers/usb/host/sl811-hcd.c && usb_gettoggle(urb->dev, ep->epnum, 0)) urb 223 drivers/usb/host/sl811-hcd.c writeb(usb_pipedevice(urb->pipe), data_reg); urb 227 drivers/usb/host/sl811-hcd.c urb->transfer_buffer_length - urb->actual_length); urb 229 drivers/usb/host/sl811-hcd.c !!usb_gettoggle(urb->dev, ep->epnum, 0), ep, len); urb 238 drivers/usb/host/sl811-hcd.c struct urb *urb, urb 248 drivers/usb/host/sl811-hcd.c buf = urb->transfer_buffer + urb->actual_length; urb 252 drivers/usb/host/sl811-hcd.c urb->transfer_buffer_length - urb->actual_length); urb 255 drivers/usb/host/sl811-hcd.c && usb_gettoggle(urb->dev, ep->epnum, 1)) urb 266 drivers/usb/host/sl811-hcd.c writeb(usb_pipedevice(urb->pipe), data_reg); urb 272 drivers/usb/host/sl811-hcd.c !!usb_gettoggle(urb->dev, ep->epnum, 1), ep, len); urb 305 drivers/usb/host/sl811-hcd.c struct urb *urb; urb 344 drivers/usb/host/sl811-hcd.c urb = container_of(ep->hep->urb_list.next, struct urb, urb_list); urb 352 drivers/usb/host/sl811-hcd.c if (urb->dev->speed == USB_SPEED_LOW) { urb 381 drivers/usb/host/sl811-hcd.c in_packet(sl811, ep, urb, bank, control); urb 384 drivers/usb/host/sl811-hcd.c out_packet(sl811, ep, urb, bank, control); urb 387 drivers/usb/host/sl811-hcd.c setup_packet(sl811, ep, urb, bank, control); urb 390 drivers/usb/host/sl811-hcd.c status_packet(sl811, ep, urb, bank, control); urb 423 drivers/usb/host/sl811-hcd.c struct urb *urb, urb 429 drivers/usb/host/sl811-hcd.c if (usb_pipecontrol(urb->pipe)) urb 432 drivers/usb/host/sl811-hcd.c usb_hcd_unlink_urb_from_ep(sl811_to_hcd(sl811), urb); urb 434 drivers/usb/host/sl811-hcd.c usb_hcd_giveback_urb(sl811_to_hcd(sl811), urb, status); urb 478 drivers/usb/host/sl811-hcd.c struct urb *urb; urb 486 drivers/usb/host/sl811-hcd.c urb = container_of(ep->hep->urb_list.next, struct urb, urb_list); urb 497 drivers/usb/host/sl811-hcd.c struct usb_device *udev = urb->dev; urb 507 drivers/usb/host/sl811-hcd.c urb->actual_length += ep->length; urb 509 drivers/usb/host/sl811-hcd.c if (urb->actual_length urb 510 drivers/usb/host/sl811-hcd.c == urb->transfer_buffer_length) { urb 511 drivers/usb/host/sl811-hcd.c if (usb_pipecontrol(urb->pipe)) urb 518 drivers/usb/host/sl811-hcd.c || !(urb->transfer_flags urb 525 drivers/usb/host/sl811-hcd.c buf = urb->transfer_buffer + urb->actual_length; urb 533 drivers/usb/host/sl811-hcd.c urb->actual_length += len; urb 539 drivers/usb/host/sl811-hcd.c urb->actual_length == urb 540 drivers/usb/host/sl811-hcd.c urb->transfer_buffer_length)) { urb 541 drivers/usb/host/sl811-hcd.c if (usb_pipecontrol(urb->pipe)) urb 549 drivers/usb/host/sl811-hcd.c if (urb->transfer_buffer_length == urb->actual_length) urb 551 drivers/usb/host/sl811-hcd.c else if (usb_pipeout(urb->pipe)) { urb 584 drivers/usb/host/sl811-hcd.c if (urbstat != -EINPROGRESS || urb->unlinked) urb 585 drivers/usb/host/sl811-hcd.c finish_request(sl811, ep, urb, urbstat); urb 701 drivers/usb/host/sl811-hcd.c struct urb, urb_list), urb 711 drivers/usb/host/sl811-hcd.c struct urb, urb_list), urb 792 drivers/usb/host/sl811-hcd.c struct urb *urb, urb 796 drivers/usb/host/sl811-hcd.c struct usb_device *udev = urb->dev; urb 797 drivers/usb/host/sl811-hcd.c unsigned int pipe = urb->pipe; urb 805 drivers/usb/host/sl811-hcd.c struct usb_host_endpoint *hep = urb->ep; urb 828 drivers/usb/host/sl811-hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 845 drivers/usb/host/sl811-hcd.c ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); urb 874 drivers/usb/host/sl811-hcd.c if (urb->interval > PERIODIC_SIZE) urb 875 drivers/usb/host/sl811-hcd.c urb->interval = PERIODIC_SIZE; urb 876 drivers/usb/host/sl811-hcd.c ep->period = urb->interval; urb 900 drivers/usb/host/sl811-hcd.c urb->interval = ep->period; urb 907 drivers/usb/host/sl811-hcd.c urb->start_frame = (sl811->frame & (PERIODIC_SIZE - 1)) urb 917 drivers/usb/host/sl811-hcd.c urb->start_frame = (sl811->frame & (PERIODIC_SIZE - 1)) urb 947 drivers/usb/host/sl811-hcd.c urb->hcpriv = hep; urb 952 drivers/usb/host/sl811-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 958 drivers/usb/host/sl811-hcd.c static int sl811h_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 967 drivers/usb/host/sl811-hcd.c retval = usb_hcd_check_unlink_urb(hcd, urb, status); urb 971 drivers/usb/host/sl811-hcd.c hep = urb->hcpriv; urb 977 drivers/usb/host/sl811-hcd.c if (ep->hep->urb_list.next != &urb->urb_list) { urb 994 drivers/usb/host/sl811-hcd.c urb = NULL; urb 1009 drivers/usb/host/sl811-hcd.c urb = NULL; urb 1015 drivers/usb/host/sl811-hcd.c if (urb) urb 1016 drivers/usb/host/sl811-hcd.c finish_request(sl811, ep, urb, 0); urb 1019 drivers/usb/host/sl811-hcd.c "dequeue, urb %p active %s; wait4irq\n", urb, urb 1436 drivers/usb/host/sl811-hcd.c struct urb *urb; urb 1452 drivers/usb/host/sl811-hcd.c list_for_each_entry (urb, &ep->hep->urb_list, urb_list) { urb 1453 drivers/usb/host/sl811-hcd.c seq_printf(s, " urb%p, %d/%d\n", urb, urb 1454 drivers/usb/host/sl811-hcd.c urb->actual_length, urb 1455 drivers/usb/host/sl811-hcd.c urb->transfer_buffer_length); urb 137 drivers/usb/host/u132-hcd.c struct urb *urb; urb 166 drivers/usb/host/u132-hcd.c struct urb *urb_list[ENDP_QUEUE_SIZE]; urb 508 drivers/usb/host/u132-hcd.c struct urb *urb, int status) urb 513 drivers/usb/host/u132-hcd.c urb->error_count = 0; urb 515 drivers/usb/host/u132-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 526 drivers/usb/host/u132-hcd.c urbq->urb; urb 538 drivers/usb/host/u132-hcd.c usb_hcd_giveback_urb(hcd, urb, status); urb 542 drivers/usb/host/u132-hcd.c struct urb *urb, int status) urb 548 drivers/usb/host/u132-hcd.c struct urb *urb, int status) urb 552 drivers/usb/host/u132-hcd.c urb->error_count = 0; urb 554 drivers/usb/host/u132-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 565 drivers/usb/host/u132-hcd.c urbq->urb; urb 570 drivers/usb/host/u132-hcd.c usb_hcd_giveback_urb(hcd, urb, status); urb 574 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, urb 575 drivers/usb/host/u132-hcd.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 580 drivers/usb/host/u132-hcd.c urb, address, endp->usb_endp, toggle_bits, callback); urb 584 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, urb 585 drivers/usb/host/u132-hcd.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 590 drivers/usb/host/u132-hcd.c urb, address, endp->usb_endp, toggle_bits, callback); urb 594 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, urb 595 drivers/usb/host/u132-hcd.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 600 drivers/usb/host/u132-hcd.c endp, urb, address, endp->usb_endp, toggle_bits, callback); urb 604 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb, u8 address, u8 toggle_bits, urb 605 drivers/usb/host/u132-hcd.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 610 drivers/usb/host/u132-hcd.c endp, urb, address, endp->usb_endp, toggle_bits, callback); urb 618 drivers/usb/host/u132-hcd.c static void u132_hcd_interrupt_recv(void *data, struct urb *urb, u8 *buf, urb 631 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 636 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 640 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 642 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 644 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 646 drivers/usb/host/u132-hcd.c u8 *u = urb->transfer_buffer + urb->actual_length; urb 653 drivers/usb/host/u132-hcd.c urb->actual_length += len; urb 655 drivers/usb/host/u132-hcd.c (urb->transfer_buffer_length > urb->actual_length)) { urb 659 drivers/usb/host/u132-hcd.c if (urb->actual_length > 0) { urb 662 drivers/usb/host/u132-hcd.c retval = edset_single(u132, ring, endp, urb, urb 666 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, urb 672 drivers/usb/host/u132-hcd.c msecs_to_jiffies(urb->interval); urb 680 drivers/usb/host/u132-hcd.c ((urb->transfer_flags & URB_SHORT_NOT_OK) == 0)) { urb 685 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 701 drivers/usb/host/u132-hcd.c "g back INTERRUPT %s\n", urb, urb 705 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, urb 711 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 713 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 718 drivers/usb/host/u132-hcd.c static void u132_hcd_bulk_output_sent(void *data, struct urb *urb, u8 *buf, urb 730 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 735 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 739 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 741 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 743 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 745 drivers/usb/host/u132-hcd.c urb->actual_length += len; urb 747 drivers/usb/host/u132-hcd.c if (urb->transfer_buffer_length > urb->actual_length) { urb 750 drivers/usb/host/u132-hcd.c retval = edset_output(u132, ring, endp, urb, address, urb 753 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 757 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 762 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 764 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 769 drivers/usb/host/u132-hcd.c static void u132_hcd_bulk_input_recv(void *data, struct urb *urb, u8 *buf, urb 782 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 787 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 791 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 793 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 795 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 797 drivers/usb/host/u132-hcd.c u8 *u = urb->transfer_buffer + urb->actual_length; urb 804 drivers/usb/host/u132-hcd.c urb->actual_length += len; urb 806 drivers/usb/host/u132-hcd.c (urb->transfer_buffer_length > urb->actual_length)) { urb 813 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, urb 817 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 824 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, urb 828 drivers/usb/host/u132-hcd.c ((urb->transfer_flags & URB_SHORT_NOT_OK) == 0)) { urb 833 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 840 drivers/usb/host/u132-hcd.c ") giving back BULK IN %s\n", urb, urb 843 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 849 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, urb 856 drivers/usb/host/u132-hcd.c "ULK IN code=%d %s\n", urb, condition_code, urb 859 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, urb 865 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 867 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 872 drivers/usb/host/u132-hcd.c static void u132_hcd_configure_empty_sent(void *data, struct urb *urb, u8 *buf, urb 883 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 888 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 892 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 894 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 896 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 898 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 902 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 904 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 909 drivers/usb/host/u132-hcd.c static void u132_hcd_configure_input_recv(void *data, struct urb *urb, u8 *buf, urb 921 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 926 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 930 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 932 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 934 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 936 drivers/usb/host/u132-hcd.c u8 *u = urb->transfer_buffer; urb 943 drivers/usb/host/u132-hcd.c urb->actual_length = len; urb 945 drivers/usb/host/u132-hcd.c TD_DATAUNDERRUN) && ((urb->transfer_flags & urb 950 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, urb 954 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 959 drivers/usb/host/u132-hcd.c "NPUT STALL urb %p\n", urb); urb 960 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, urb 967 drivers/usb/host/u132-hcd.c urb); urb 968 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, urb 974 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 976 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 981 drivers/usb/host/u132-hcd.c static void u132_hcd_configure_empty_recv(void *data, struct urb *urb, u8 *buf, urb 992 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 997 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 1001 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 1003 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 1005 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 1007 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1011 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 1013 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1018 drivers/usb/host/u132-hcd.c static void u132_hcd_configure_setup_sent(void *data, struct urb *urb, u8 *buf, urb 1030 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 1035 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 1039 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 1041 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 1043 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 1044 drivers/usb/host/u132-hcd.c if (usb_pipein(urb->pipe)) { urb 1049 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, urb 1053 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 1060 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, urb 1064 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 1069 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 1071 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1076 drivers/usb/host/u132-hcd.c static void u132_hcd_enumeration_empty_recv(void *data, struct urb *urb, urb 1089 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 1094 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 1098 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 1100 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 1102 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 1106 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1110 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 1112 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1117 drivers/usb/host/u132-hcd.c static void u132_hcd_enumeration_address_sent(void *data, struct urb *urb, urb 1128 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 1133 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 1137 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 1139 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 1141 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 1146 drivers/usb/host/u132-hcd.c ring->number, endp, urb, 0, endp->usb_endp, 0, urb 1149 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 1153 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 1155 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1160 drivers/usb/host/u132-hcd.c static void u132_hcd_initial_empty_sent(void *data, struct urb *urb, u8 *buf, urb 1171 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 1176 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 1180 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 1182 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 1184 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 1186 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1190 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 1192 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1197 drivers/usb/host/u132-hcd.c static void u132_hcd_initial_input_recv(void *data, struct urb *urb, u8 *buf, urb 1209 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 1214 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 1218 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 1220 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 1222 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 1225 drivers/usb/host/u132-hcd.c u8 *u = urb->transfer_buffer; urb 1232 drivers/usb/host/u132-hcd.c urb->actual_length = len; urb 1235 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, endp->usb_endp, 0x3, urb 1238 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 1242 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 1244 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1249 drivers/usb/host/u132-hcd.c static void u132_hcd_initial_setup_sent(void *data, struct urb *urb, u8 *buf, urb 1261 drivers/usb/host/u132-hcd.c u132_hcd_forget_urb(u132, endp, urb, -ENODEV); urb 1266 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -EINTR); urb 1270 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 1272 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, -ENODEV); urb 1274 drivers/usb/host/u132-hcd.c } else if (!urb->unlinked) { urb 1279 drivers/usb/host/u132-hcd.c ring->number, endp, urb, address, endp->usb_endp, 0, urb 1282 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 1286 drivers/usb/host/u132-hcd.c "unlinked=%d\n", urb, urb->unlinked); urb 1288 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, 0); urb 1391 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ENDP_QUEUE_MASK & urb 1397 drivers/usb/host/u132-hcd.c retval = edset_single(u132, ring, endp, urb, address, urb 1400 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 1411 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ENDP_QUEUE_MASK & urb 1417 drivers/usb/host/u132-hcd.c retval = edset_setup(u132, ring, endp, urb, address, urb 1420 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 1424 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ENDP_QUEUE_MASK & urb 1430 drivers/usb/host/u132-hcd.c retval = edset_setup(u132, ring, endp, urb, 0, 0x2, urb 1433 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 1437 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ENDP_QUEUE_MASK & urb 1444 drivers/usb/host/u132-hcd.c retval = edset_setup(u132, ring, endp, urb, address, urb 1447 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, retval); urb 1459 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ urb 1465 drivers/usb/host/u132-hcd.c retval = edset_input(u132, ring, endp, urb, urb 1470 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, urb 1482 drivers/usb/host/u132-hcd.c struct urb *urb = endp->urb_list[ urb 1488 drivers/usb/host/u132-hcd.c retval = edset_output(u132, ring, endp, urb, urb 1493 drivers/usb/host/u132-hcd.c u132_hcd_giveback_urb(u132, endp, urb, urb 1851 drivers/usb/host/u132-hcd.c struct u132_udev *udev, struct urb *urb, urb 1866 drivers/usb/host/u132-hcd.c rc = usb_hcd_link_urb_to_ep(u132_to_hcd(u132), urb); urb 1874 drivers/usb/host/u132-hcd.c urb->ep->hcpriv = u132->endp[endp_number - 1] = endp; urb 1891 drivers/usb/host/u132-hcd.c endp->hep = urb->ep; urb 1892 drivers/usb/host/u132-hcd.c endp->pipetype = usb_pipetype(urb->pipe); urb 1894 drivers/usb/host/u132-hcd.c if (usb_pipein(urb->pipe)) { urb 1909 drivers/usb/host/u132-hcd.c urb->hcpriv = u132; urb 1911 drivers/usb/host/u132-hcd.c endp->jiffies = jiffies + msecs_to_jiffies(urb->interval); urb 1918 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; urb 1920 drivers/usb/host/u132-hcd.c u132_endp_queue_work(u132, endp, msecs_to_jiffies(urb->interval)); urb 1925 drivers/usb/host/u132-hcd.c struct u132_udev *udev, struct urb *urb, urb 1929 drivers/usb/host/u132-hcd.c urb->hcpriv = u132; urb 1931 drivers/usb/host/u132-hcd.c endp->jiffies = jiffies + msecs_to_jiffies(urb->interval); urb 1933 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; urb 1942 drivers/usb/host/u132-hcd.c urbq->urb = urb; urb 1949 drivers/usb/host/u132-hcd.c struct u132_udev *udev, struct urb *urb, urb 1965 drivers/usb/host/u132-hcd.c rc = usb_hcd_link_urb_to_ep(u132_to_hcd(u132), urb); urb 1973 drivers/usb/host/u132-hcd.c urb->ep->hcpriv = u132->endp[endp_number - 1] = endp; urb 1982 drivers/usb/host/u132-hcd.c endp->hep = urb->ep; urb 1983 drivers/usb/host/u132-hcd.c endp->pipetype = usb_pipetype(urb->pipe); urb 1985 drivers/usb/host/u132-hcd.c if (usb_pipein(urb->pipe)) { urb 2010 drivers/usb/host/u132-hcd.c urb->hcpriv = u132; urb 2017 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; urb 2024 drivers/usb/host/u132-hcd.c struct urb *urb, urb 2028 drivers/usb/host/u132-hcd.c urb->hcpriv = u132; urb 2030 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; urb 2039 drivers/usb/host/u132-hcd.c urbq->urb = urb; urb 2046 drivers/usb/host/u132-hcd.c struct urb *urb, urb 2061 drivers/usb/host/u132-hcd.c rc = usb_hcd_link_urb_to_ep(u132_to_hcd(u132), urb); urb 2069 drivers/usb/host/u132-hcd.c urb->ep->hcpriv = u132->endp[endp_number - 1] = endp; urb 2086 drivers/usb/host/u132-hcd.c endp->hep = urb->ep; urb 2097 drivers/usb/host/u132-hcd.c endp->pipetype = usb_pipetype(urb->pipe); urb 2102 drivers/usb/host/u132-hcd.c urb->hcpriv = u132; urb 2106 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; urb 2118 drivers/usb/host/u132-hcd.c endp->pipetype = usb_pipetype(urb->pipe); urb 2123 drivers/usb/host/u132-hcd.c urb->hcpriv = u132; urb 2127 drivers/usb/host/u132-hcd.c endp->urb_list[ENDP_QUEUE_MASK & endp->queue_last++] = urb; urb 2135 drivers/usb/host/u132-hcd.c struct urb *urb, urb 2140 drivers/usb/host/u132-hcd.c if (usb_pipein(urb->pipe)) { urb 2141 drivers/usb/host/u132-hcd.c urb->hcpriv = u132; urb 2144 drivers/usb/host/u132-hcd.c endp->queue_last++] = urb; urb 2155 drivers/usb/host/u132-hcd.c urbq->urb = urb; urb 2180 drivers/usb/host/u132-hcd.c ((u8 *) (urb->setup_packet))[2] = urb 2191 drivers/usb/host/u132-hcd.c urb->hcpriv = u132; urb 2194 drivers/usb/host/u132-hcd.c endp->queue_last++] = urb; urb 2205 drivers/usb/host/u132-hcd.c urbq->urb = urb; urb 2213 drivers/usb/host/u132-hcd.c urb->hcpriv = u132; urb 2218 drivers/usb/host/u132-hcd.c urb; urb 2227 drivers/usb/host/u132-hcd.c urbq->urb = urb; urb 2234 drivers/usb/host/u132-hcd.c static int u132_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, urb 2250 drivers/usb/host/u132-hcd.c "urb=%p\n", urb); urb 2253 drivers/usb/host/u132-hcd.c u8 usb_addr = usb_pipedevice(urb->pipe); urb 2254 drivers/usb/host/u132-hcd.c u8 usb_endp = usb_pipeendpoint(urb->pipe); urb 2255 drivers/usb/host/u132-hcd.c struct usb_device *usb_dev = urb->dev; urb 2256 drivers/usb/host/u132-hcd.c if (usb_pipetype(urb->pipe) == PIPE_INTERRUPT) { urb 2259 drivers/usb/host/u132-hcd.c struct u132_endp *endp = urb->ep->hcpriv; urb 2260 drivers/usb/host/u132-hcd.c urb->actual_length = 0; urb 2266 drivers/usb/host/u132-hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 2269 drivers/usb/host/u132-hcd.c u132, udev, urb, urb 2275 drivers/usb/host/u132-hcd.c hcd, urb); urb 2283 drivers/usb/host/u132-hcd.c msecs_to_jiffies(urb->interval)) urb 2291 drivers/usb/host/u132-hcd.c urb, usb_dev, usb_addr, urb 2294 drivers/usb/host/u132-hcd.c } else if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 2298 drivers/usb/host/u132-hcd.c } else if (usb_pipetype(urb->pipe) == PIPE_BULK) { urb 2301 drivers/usb/host/u132-hcd.c struct u132_endp *endp = urb->ep->hcpriv; urb 2302 drivers/usb/host/u132-hcd.c urb->actual_length = 0; urb 2308 drivers/usb/host/u132-hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 2311 drivers/usb/host/u132-hcd.c u132, udev, urb, urb 2317 drivers/usb/host/u132-hcd.c hcd, urb); urb 2331 drivers/usb/host/u132-hcd.c udev, urb, usb_dev, usb_addr, urb 2334 drivers/usb/host/u132-hcd.c struct u132_endp *endp = urb->ep->hcpriv; urb 2336 drivers/usb/host/u132-hcd.c u8 *b = urb->setup_packet; urb 2357 drivers/usb/host/u132-hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 2360 drivers/usb/host/u132-hcd.c u132, urb, usb_dev, urb 2365 drivers/usb/host/u132-hcd.c hcd, urb); urb 2379 drivers/usb/host/u132-hcd.c urb, usb_dev, usb_addr, usb_endp, urb 2386 drivers/usb/host/u132-hcd.c struct u132_endp *endp, struct urb *urb) urb 2391 drivers/usb/host/u132-hcd.c if (urbq->urb == urb) { urb 2395 drivers/usb/host/u132-hcd.c urb->error_count = 0; urb 2396 drivers/usb/host/u132-hcd.c usb_hcd_giveback_urb(hcd, urb, 0); urb 2403 drivers/usb/host/u132-hcd.c "\n", urb, endp->endp_number, endp, endp->ring->number, urb 2411 drivers/usb/host/u132-hcd.c struct urb *urb, int status) urb 2417 drivers/usb/host/u132-hcd.c rc = usb_hcd_check_unlink_urb(u132_to_hcd(u132), urb, status); urb 2424 drivers/usb/host/u132-hcd.c "=%p ring[%d] %c%c usb_endp=%d usb_addr=%d\n", urb, urb 2431 drivers/usb/host/u132-hcd.c if (urb == endp->urb_list[ENDP_QUEUE_MASK & endp->queue_next]) { urb 2440 drivers/usb/host/u132-hcd.c u132_hcd_abandon_urb(u132, endp, urb, status); urb 2447 drivers/usb/host/u132-hcd.c struct urb **urb_slot = NULL; urb 2449 drivers/usb/host/u132-hcd.c if (urb == endp->urb_list[ENDP_QUEUE_MASK & urb 2466 drivers/usb/host/u132-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 2476 drivers/usb/host/u132-hcd.c *urb_slot = urbq->urb; urb 2481 drivers/usb/host/u132-hcd.c urb->error_count = 0; urb 2482 drivers/usb/host/u132-hcd.c usb_hcd_giveback_urb(hcd, urb, status); urb 2487 drivers/usb/host/u132-hcd.c "=%d size=%d next=%04X last=%04X\n", urb, urb 2498 drivers/usb/host/u132-hcd.c usb_hcd_unlink_urb_from_ep(u132_to_hcd(u132), urb); urb 2500 drivers/usb/host/u132-hcd.c urb); urb 2507 drivers/usb/host/u132-hcd.c static int u132_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 2515 drivers/usb/host/u132-hcd.c u8 usb_addr = usb_pipedevice(urb->pipe); urb 2516 drivers/usb/host/u132-hcd.c u8 usb_endp = usb_pipeendpoint(urb->pipe); urb 2519 drivers/usb/host/u132-hcd.c if (usb_pipein(urb->pipe)) { urb 2522 drivers/usb/host/u132-hcd.c return u132_endp_urb_dequeue(u132, endp, urb, status); urb 2526 drivers/usb/host/u132-hcd.c return u132_endp_urb_dequeue(u132, endp, urb, status); urb 110 drivers/usb/host/uhci-debug.c out += sprintf(out, "urb [%p] ", urbp->urb); urb 112 drivers/usb/host/uhci-debug.c out += sprintf(out, "Dev=%d ", usb_pipedevice(urbp->urb->pipe)); urb 113 drivers/usb/host/uhci-debug.c out += sprintf(out, "EP=%x(%s) ", usb_pipeendpoint(urbp->urb->pipe), urb 114 drivers/usb/host/uhci-debug.c (usb_pipein(urbp->urb->pipe) ? "IN" : "OUT")); urb 118 drivers/usb/host/uhci-debug.c switch (usb_pipetype(urbp->urb->pipe)) { urb 127 drivers/usb/host/uhci-debug.c out += sprintf(out, " Actlen=%d%s", urbp->urb->actual_length, urb 131 drivers/usb/host/uhci-debug.c if (urbp->urb->unlinked) urb 132 drivers/usb/host/uhci-debug.c out += sprintf(out, " Unlinked=%d", urbp->urb->unlinked); urb 486 drivers/usb/host/uhci-hcd.h struct urb *urb; urb 72 drivers/usb/host/uhci-q.c static void uhci_add_fsbr(struct uhci_hcd *uhci, struct urb *urb) urb 74 drivers/usb/host/uhci-q.c struct urb_priv *urbp = urb->hcpriv; urb 236 drivers/usb/host/uhci-q.c static void uhci_unlink_isochronous_tds(struct uhci_hcd *uhci, struct urb *urb) urb 238 drivers/usb/host/uhci-q.c struct urb_priv *urbp = (struct urb_priv *) urb->hcpriv; urb 315 drivers/usb/host/uhci-q.c struct urb *urb) urb 317 drivers/usb/host/uhci-q.c struct urb_priv *urbp = urb->hcpriv; urb 415 drivers/usb/host/uhci-q.c pipe = list_entry(qh->queue.next, struct urb_priv, node)->urb->pipe; urb 723 drivers/usb/host/uhci-q.c struct urb *urb) urb 731 drivers/usb/host/uhci-q.c urbp->urb = urb; urb 732 drivers/usb/host/uhci-q.c urb->hcpriv = urbp; urb 747 drivers/usb/host/uhci-q.c urbp->urb); urb 789 drivers/usb/host/uhci-q.c static int uhci_submit_control(struct uhci_hcd *uhci, struct urb *urb, urb 795 drivers/usb/host/uhci-q.c int len = urb->transfer_buffer_length; urb 796 drivers/usb/host/uhci-q.c dma_addr_t data = urb->transfer_dma; urb 798 drivers/usb/host/uhci-q.c struct urb_priv *urbp = urb->hcpriv; urb 802 drivers/usb/host/uhci-q.c destination = (urb->pipe & PIPE_DEVEP_MASK) | USB_PID_SETUP; urb 806 drivers/usb/host/uhci-q.c if (urb->dev->speed == USB_SPEED_LOW) urb 815 drivers/usb/host/uhci-q.c urb->setup_dma); urb 826 drivers/usb/host/uhci-q.c if (usb_pipeout(urb->pipe) || len == 0) urb 895 drivers/usb/host/uhci-q.c if (urb->dev->speed == USB_SPEED_LOW || urb 896 drivers/usb/host/uhci-q.c urb->dev->state != USB_STATE_CONFIGURED) urb 900 drivers/usb/host/uhci-q.c uhci_add_fsbr(uhci, urb); urb 915 drivers/usb/host/uhci-q.c static int uhci_submit_common(struct uhci_hcd *uhci, struct urb *urb, urb 921 drivers/usb/host/uhci-q.c int len = urb->transfer_buffer_length; urb 925 drivers/usb/host/uhci-q.c struct urb_priv *urbp = urb->hcpriv; urb 934 drivers/usb/host/uhci-q.c destination = (urb->pipe & PIPE_DEVEP_MASK) | usb_packetid(urb->pipe); urb 935 drivers/usb/host/uhci-q.c toggle = usb_gettoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 936 drivers/usb/host/uhci-q.c usb_pipeout(urb->pipe)); urb 940 drivers/usb/host/uhci-q.c if (urb->dev->speed == USB_SPEED_LOW) urb 942 drivers/usb/host/uhci-q.c if (usb_pipein(urb->pipe)) urb 945 drivers/usb/host/uhci-q.c i = urb->num_mapped_sgs; urb 947 drivers/usb/host/uhci-q.c sg = urb->sg; urb 956 drivers/usb/host/uhci-q.c data = urb->transfer_dma; urb 969 drivers/usb/host/uhci-q.c if (!(urb->transfer_flags & URB_SHORT_NOT_OK)) urb 1007 drivers/usb/host/uhci-q.c if ((urb->transfer_flags & URB_ZERO_PACKET) && urb 1008 drivers/usb/host/uhci-q.c usb_pipeout(urb->pipe) && len == 0 && urb 1009 drivers/usb/host/uhci-q.c urb->transfer_buffer_length > 0) { urb 1046 drivers/usb/host/uhci-q.c usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 1047 drivers/usb/host/uhci-q.c usb_pipeout(urb->pipe), toggle); urb 1056 drivers/usb/host/uhci-q.c static int uhci_submit_bulk(struct uhci_hcd *uhci, struct urb *urb, urb 1062 drivers/usb/host/uhci-q.c if (urb->dev->speed == USB_SPEED_LOW) urb 1067 drivers/usb/host/uhci-q.c ret = uhci_submit_common(uhci, urb, qh); urb 1069 drivers/usb/host/uhci-q.c uhci_add_fsbr(uhci, urb); urb 1073 drivers/usb/host/uhci-q.c static int uhci_submit_interrupt(struct uhci_hcd *uhci, struct urb *urb, urb 1088 drivers/usb/host/uhci-q.c if ((1 << exponent) <= urb->interval) urb 1107 drivers/usb/host/uhci-q.c } else if (qh->period > urb->interval) urb 1110 drivers/usb/host/uhci-q.c ret = uhci_submit_common(uhci, urb, qh); urb 1112 drivers/usb/host/uhci-q.c urb->interval = qh->period; urb 1170 drivers/usb/host/uhci-q.c static int uhci_result_common(struct uhci_hcd *uhci, struct urb *urb) urb 1172 drivers/usb/host/uhci-q.c struct urb_priv *urbp = urb->hcpriv; urb 1188 drivers/usb/host/uhci-q.c urb->actual_length += len; urb 1195 drivers/usb/host/uhci-q.c dev_dbg(&urb->dev->dev, urb 1218 drivers/usb/host/uhci-q.c else if (urb->transfer_flags & URB_SHORT_NOT_OK) urb 1254 drivers/usb/host/uhci-q.c static int uhci_submit_isochronous(struct uhci_hcd *uhci, struct urb *urb, urb 1261 drivers/usb/host/uhci-q.c struct urb_priv *urbp = (struct urb_priv *) urb->hcpriv; urb 1264 drivers/usb/host/uhci-q.c if (urb->interval >= UHCI_NUMFRAMES || urb 1265 drivers/usb/host/uhci-q.c urb->number_of_packets >= UHCI_NUMFRAMES) urb 1272 drivers/usb/host/uhci-q.c qh->period = urb->interval; urb 1285 drivers/usb/host/uhci-q.c } else if (qh->period != urb->interval) { urb 1295 drivers/usb/host/uhci-q.c struct urb *lurb; urb 1298 drivers/usb/host/uhci-q.c struct urb_priv, node)->urb; urb 1308 drivers/usb/host/uhci-q.c if (urb->transfer_flags & URB_ISO_ASAP) urb 1317 drivers/usb/host/uhci-q.c frame + (urb->number_of_packets - 1) * urb 1320 drivers/usb/host/uhci-q.c urb, frame, urb 1321 drivers/usb/host/uhci-q.c (urb->number_of_packets - 1) * urb 1329 drivers/usb/host/uhci-q.c frame + urb->number_of_packets * urb->interval)) urb 1331 drivers/usb/host/uhci-q.c urb->start_frame = frame; urb 1334 drivers/usb/host/uhci-q.c destination = (urb->pipe & PIPE_DEVEP_MASK) | usb_packetid(urb->pipe); urb 1336 drivers/usb/host/uhci-q.c for (i = 0; i < urb->number_of_packets; i++) { urb 1343 drivers/usb/host/uhci-q.c uhci_explen(urb->iso_frame_desc[i].length), urb 1344 drivers/usb/host/uhci-q.c urb->transfer_dma + urb 1345 drivers/usb/host/uhci-q.c urb->iso_frame_desc[i].offset); urb 1352 drivers/usb/host/uhci-q.c frame = urb->start_frame; urb 1359 drivers/usb/host/uhci-q.c qh->iso_packet_desc = &urb->iso_frame_desc[0]; urb 1360 drivers/usb/host/uhci-q.c qh->iso_frame = urb->start_frame; urb 1369 drivers/usb/host/uhci-q.c static int uhci_result_isochronous(struct uhci_hcd *uhci, struct urb *urb) urb 1372 drivers/usb/host/uhci-q.c struct urb_priv *urbp = urb->hcpriv; urb 1390 drivers/usb/host/uhci-q.c usb_pipeout(urb->pipe)); urb 1393 drivers/usb/host/uhci-q.c urb->actual_length += actlength; urb 1398 drivers/usb/host/uhci-q.c urb->error_count++; urb 1409 drivers/usb/host/uhci-q.c struct urb *urb, gfp_t mem_flags) urb 1419 drivers/usb/host/uhci-q.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 1424 drivers/usb/host/uhci-q.c urbp = uhci_alloc_urb_priv(uhci, urb); urb 1428 drivers/usb/host/uhci-q.c if (urb->ep->hcpriv) urb 1429 drivers/usb/host/uhci-q.c qh = urb->ep->hcpriv; urb 1431 drivers/usb/host/uhci-q.c qh = uhci_alloc_qh(uhci, urb->dev, urb->ep); urb 1439 drivers/usb/host/uhci-q.c ret = uhci_submit_control(uhci, urb, qh); urb 1442 drivers/usb/host/uhci-q.c ret = uhci_submit_bulk(uhci, urb, qh); urb 1445 drivers/usb/host/uhci-q.c ret = uhci_submit_interrupt(uhci, urb, qh); urb 1448 drivers/usb/host/uhci-q.c urb->error_count = 0; urb 1449 drivers/usb/host/uhci-q.c ret = uhci_submit_isochronous(uhci, urb, qh); urb 1475 drivers/usb/host/uhci-q.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 1481 drivers/usb/host/uhci-q.c static int uhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 1489 drivers/usb/host/uhci-q.c rc = usb_hcd_check_unlink_urb(hcd, urb, status); urb 1493 drivers/usb/host/uhci-q.c qh = ((struct urb_priv *) urb->hcpriv)->qh; urb 1497 drivers/usb/host/uhci-q.c uhci_unlink_isochronous_tds(uhci, urb); urb 1502 drivers/usb/host/uhci-q.c if (uhci_frame_before_eq(urb->start_frame, uhci->frame_number)) urb 1517 drivers/usb/host/uhci-q.c struct urb *urb, int status) urb 1521 drivers/usb/host/uhci-q.c struct urb_priv *urbp = (struct urb_priv *) urb->hcpriv; urb 1528 drivers/usb/host/uhci-q.c urb->actual_length -= min_t(u32, 8, urb->actual_length); urb 1536 drivers/usb/host/uhci-q.c struct urb *nurb = list_entry(urbp->node.next, urb 1537 drivers/usb/host/uhci-q.c struct urb_priv, node)->urb; urb 1547 drivers/usb/host/uhci-q.c usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), urb 1548 drivers/usb/host/uhci-q.c usb_pipeout(urb->pipe), qh->initial_toggle); urb 1553 drivers/usb/host/uhci-q.c usb_hcd_unlink_urb_from_ep(uhci_to_hcd(uhci), urb); urb 1556 drivers/usb/host/uhci-q.c usb_hcd_giveback_urb(uhci_to_hcd(uhci), urb, status); urb 1578 drivers/usb/host/uhci-q.c struct urb *urb; urb 1583 drivers/usb/host/uhci-q.c urb = urbp->urb; urb 1586 drivers/usb/host/uhci-q.c status = uhci_result_isochronous(uhci, urb); urb 1588 drivers/usb/host/uhci-q.c status = uhci_result_common(uhci, urb); urb 1594 drivers/usb/host/uhci-q.c if (urb->unlinked) { urb 1601 drivers/usb/host/uhci-q.c uhci_giveback_urb(uhci, qh, urb, status); urb 1616 drivers/usb/host/uhci-q.c urb = urbp->urb; urb 1617 drivers/usb/host/uhci-q.c if (urb->unlinked) { urb 1622 drivers/usb/host/uhci-q.c if (!uhci_cleanup_queue(uhci, qh, urb)) { urb 1626 drivers/usb/host/uhci-q.c uhci_giveback_urb(uhci, qh, urb, 0); urb 108 drivers/usb/host/xhci-ring.c struct urb_priv *urb_priv = td->urb->hcpriv; urb 113 drivers/usb/host/xhci-ring.c static void inc_td_cnt(struct urb *urb) urb 115 drivers/usb/host/xhci-ring.c struct urb_priv *urb_priv = urb->hcpriv; urb 659 drivers/usb/host/xhci-ring.c struct urb *urb = cur_td->urb; urb 660 drivers/usb/host/xhci-ring.c struct urb_priv *urb_priv = urb->hcpriv; urb 661 drivers/usb/host/xhci-ring.c struct usb_hcd *hcd = bus_to_hcd(urb->dev->bus); urb 663 drivers/usb/host/xhci-ring.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 671 drivers/usb/host/xhci-ring.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 673 drivers/usb/host/xhci-ring.c trace_xhci_urb_giveback(urb); urb 674 drivers/usb/host/xhci-ring.c usb_hcd_giveback_urb(hcd, urb, status); urb 683 drivers/usb/host/xhci-ring.c struct urb *urb = td->urb; urb 686 drivers/usb/host/xhci-ring.c if (!ring || !seg || !urb) urb 689 drivers/usb/host/xhci-ring.c if (usb_urb_dir_out(urb)) { urb 698 drivers/usb/host/xhci-ring.c len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf, urb 765 drivers/usb/host/xhci-ring.c ep_ring = xhci_urb_to_transfer_ring(xhci, cur_td->urb); urb 780 drivers/usb/host/xhci-ring.c cur_td->urb, urb 781 drivers/usb/host/xhci-ring.c cur_td->urb->stream_id); urb 789 drivers/usb/host/xhci-ring.c cur_td->urb->stream_id); urb 795 drivers/usb/host/xhci-ring.c cur_td->urb->stream_id, urb 837 drivers/usb/host/xhci-ring.c ep_ring = xhci_urb_to_transfer_ring(xhci, cur_td->urb); urb 839 drivers/usb/host/xhci-ring.c inc_td_cnt(cur_td->urb); urb 866 drivers/usb/host/xhci-ring.c inc_td_cnt(cur_td->urb); urb 909 drivers/usb/host/xhci-ring.c inc_td_cnt(cur_td->urb); urb 1834 drivers/usb/host/xhci-ring.c if (td->urb->dev->tt && !usb_pipeint(td->urb->pipe) && urb 1835 drivers/usb/host/xhci-ring.c (td->urb->dev->tt->hub != xhci_to_hcd(xhci)->self.root_hub) && urb 1838 drivers/usb/host/xhci-ring.c td->urb->ep->hcpriv = td->urb->dev; urb 1839 drivers/usb/host/xhci-ring.c if (usb_hub_clear_tt_buffer(td->urb)) urb 1918 drivers/usb/host/xhci-ring.c struct urb *urb = NULL; urb 1921 drivers/usb/host/xhci-ring.c urb = td->urb; urb 1931 drivers/usb/host/xhci-ring.c if (urb->actual_length > urb->transfer_buffer_length) { urb 1933 drivers/usb/host/xhci-ring.c urb->transfer_buffer_length, urb->actual_length); urb 1934 drivers/usb/host/xhci-ring.c urb->actual_length = 0; urb 1942 drivers/usb/host/xhci-ring.c inc_td_cnt(urb); urb 1945 drivers/usb/host/xhci-ring.c if ((urb->actual_length != urb->transfer_buffer_length && urb 1946 drivers/usb/host/xhci-ring.c (urb->transfer_flags & URB_SHORT_NOT_OK)) || urb 1947 drivers/usb/host/xhci-ring.c (*status != 0 && !usb_endpoint_xfer_isoc(&urb->ep->desc))) urb 1949 drivers/usb/host/xhci-ring.c urb, urb->actual_length, urb 1950 drivers/usb/host/xhci-ring.c urb->transfer_buffer_length, *status); urb 1953 drivers/usb/host/xhci-ring.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) urb 2051 drivers/usb/host/xhci-ring.c requested = td->urb->transfer_buffer_length; urb 2069 drivers/usb/host/xhci-ring.c td->urb->actual_length = remaining; urb 2076 drivers/usb/host/xhci-ring.c td->urb->actual_length = 0; urb 2080 drivers/usb/host/xhci-ring.c td->urb->actual_length = requested - remaining; urb 2083 drivers/usb/host/xhci-ring.c td->urb->actual_length = requested; urb 2102 drivers/usb/host/xhci-ring.c td->urb->actual_length = requested - remaining; urb 2104 drivers/usb/host/xhci-ring.c td->urb->actual_length = 0; urb 2119 drivers/usb/host/xhci-ring.c td->urb->actual_length = requested - remaining; urb 2126 drivers/usb/host/xhci-ring.c td->urb->actual_length = requested; urb 2150 drivers/usb/host/xhci-ring.c urb_priv = td->urb->hcpriv; urb 2152 drivers/usb/host/xhci-ring.c frame = &td->urb->iso_frame_desc[idx]; urb 2156 drivers/usb/host/xhci-ring.c short_framestatus = td->urb->transfer_flags & URB_SHORT_NOT_OK ? urb 2214 drivers/usb/host/xhci-ring.c td->urb->actual_length += frame->actual_length; urb 2229 drivers/usb/host/xhci-ring.c urb_priv = td->urb->hcpriv; urb 2231 drivers/usb/host/xhci-ring.c frame = &td->urb->iso_frame_desc[idx]; urb 2268 drivers/usb/host/xhci-ring.c requested = td->urb->transfer_buffer_length; urb 2277 drivers/usb/host/xhci-ring.c td->urb->ep->desc.bEndpointAddress, urb 2284 drivers/usb/host/xhci-ring.c td->urb->ep->desc.bEndpointAddress, urb 2289 drivers/usb/host/xhci-ring.c td->urb->actual_length = remaining; urb 2310 drivers/usb/host/xhci-ring.c td->urb->actual_length = requested - remaining; urb 2312 drivers/usb/host/xhci-ring.c td->urb->actual_length = urb 2319 drivers/usb/host/xhci-ring.c td->urb->actual_length = 0; urb 2599 drivers/usb/host/xhci-ring.c !usb_endpoint_xfer_isoc(&td->urb->ep->desc)) { urb 2661 drivers/usb/host/xhci-ring.c if (usb_endpoint_xfer_control(&td->urb->ep->desc)) urb 2663 drivers/usb/host/xhci-ring.c else if (usb_endpoint_xfer_isoc(&td->urb->ep->desc)) urb 3015 drivers/usb/host/xhci-ring.c struct urb *urb, urb 3037 drivers/usb/host/xhci-ring.c urb_priv = urb->hcpriv; urb 3044 drivers/usb/host/xhci-ring.c ret = usb_hcd_link_urb_to_ep(bus_to_hcd(urb->dev->bus), urb); urb 3049 drivers/usb/host/xhci-ring.c td->urb = urb; urb 3070 drivers/usb/host/xhci-ring.c static inline unsigned int count_trbs_needed(struct urb *urb) urb 3072 drivers/usb/host/xhci-ring.c return count_trbs(urb->transfer_dma, urb->transfer_buffer_length); urb 3075 drivers/usb/host/xhci-ring.c static unsigned int count_sg_trbs_needed(struct urb *urb) urb 3080 drivers/usb/host/xhci-ring.c full_len = urb->transfer_buffer_length; urb 3082 drivers/usb/host/xhci-ring.c for_each_sg(urb->sg, sg, urb->num_mapped_sgs, i) { urb 3094 drivers/usb/host/xhci-ring.c static unsigned int count_isoc_trbs_needed(struct urb *urb, int i) urb 3098 drivers/usb/host/xhci-ring.c addr = (u64) (urb->transfer_dma + urb->iso_frame_desc[i].offset); urb 3099 drivers/usb/host/xhci-ring.c len = urb->iso_frame_desc[i].length; urb 3104 drivers/usb/host/xhci-ring.c static void check_trb_math(struct urb *urb, int running_total) urb 3106 drivers/usb/host/xhci-ring.c if (unlikely(running_total != urb->transfer_buffer_length)) urb 3107 drivers/usb/host/xhci-ring.c dev_err(&urb->dev->dev, "%s - ep %#x - Miscalculated tx length, " urb 3110 drivers/usb/host/xhci-ring.c urb->ep->desc.bEndpointAddress, urb 3112 drivers/usb/host/xhci-ring.c urb->transfer_buffer_length, urb 3113 drivers/usb/host/xhci-ring.c urb->transfer_buffer_length); urb 3132 drivers/usb/host/xhci-ring.c static void check_interval(struct xhci_hcd *xhci, struct urb *urb, urb 3139 drivers/usb/host/xhci-ring.c ep_interval = urb->interval; urb 3142 drivers/usb/host/xhci-ring.c if (urb->dev->speed == USB_SPEED_LOW || urb 3143 drivers/usb/host/xhci-ring.c urb->dev->speed == USB_SPEED_FULL) urb 3150 drivers/usb/host/xhci-ring.c dev_dbg_ratelimited(&urb->dev->dev, urb 3154 drivers/usb/host/xhci-ring.c urb->interval = xhci_interval; urb 3156 drivers/usb/host/xhci-ring.c if (urb->dev->speed == USB_SPEED_LOW || urb 3157 drivers/usb/host/xhci-ring.c urb->dev->speed == USB_SPEED_FULL) urb 3158 drivers/usb/host/xhci-ring.c urb->interval /= 8; urb 3169 drivers/usb/host/xhci-ring.c struct urb *urb, int slot_id, unsigned int ep_index) urb 3174 drivers/usb/host/xhci-ring.c check_interval(xhci, urb, ep_ctx); urb 3176 drivers/usb/host/xhci-ring.c return xhci_queue_bulk_tx(xhci, mem_flags, urb, slot_id, ep_index); urb 3201 drivers/usb/host/xhci-ring.c struct urb *urb, bool more_trbs_coming) urb 3218 drivers/usb/host/xhci-ring.c maxp = usb_endpoint_maxp(&urb->ep->desc); urb 3226 drivers/usb/host/xhci-ring.c static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len, urb 3235 drivers/usb/host/xhci-ring.c max_pkt = usb_endpoint_maxp(&urb->ep->desc); urb 3259 drivers/usb/host/xhci-ring.c if (new_buff_len > (urb->transfer_buffer_length - enqd_len)) urb 3260 drivers/usb/host/xhci-ring.c new_buff_len = (urb->transfer_buffer_length - enqd_len); urb 3263 drivers/usb/host/xhci-ring.c if (usb_urb_dir_out(urb)) { urb 3264 drivers/usb/host/xhci-ring.c len = sg_pcopy_to_buffer(urb->sg, urb->num_sgs, urb 3293 drivers/usb/host/xhci-ring.c struct urb *urb, int slot_id, unsigned int ep_index) urb 3310 drivers/usb/host/xhci-ring.c ring = xhci_urb_to_transfer_ring(xhci, urb); urb 3314 drivers/usb/host/xhci-ring.c full_len = urb->transfer_buffer_length; urb 3316 drivers/usb/host/xhci-ring.c if (urb->num_sgs) { urb 3317 drivers/usb/host/xhci-ring.c num_sgs = urb->num_mapped_sgs; urb 3318 drivers/usb/host/xhci-ring.c sg = urb->sg; urb 3321 drivers/usb/host/xhci-ring.c num_trbs = count_sg_trbs_needed(urb); urb 3323 drivers/usb/host/xhci-ring.c num_trbs = count_trbs_needed(urb); urb 3324 drivers/usb/host/xhci-ring.c addr = (u64) urb->transfer_dma; urb 3328 drivers/usb/host/xhci-ring.c ep_index, urb->stream_id, urb 3329 drivers/usb/host/xhci-ring.c num_trbs, urb, 0, mem_flags); urb 3333 drivers/usb/host/xhci-ring.c urb_priv = urb->hcpriv; urb 3336 drivers/usb/host/xhci-ring.c if (urb->transfer_flags & URB_ZERO_PACKET && urb_priv->num_tds > 1) urb 3376 drivers/usb/host/xhci-ring.c if (xhci_align_td(xhci, urb, enqd_len, urb 3391 drivers/usb/host/xhci-ring.c if (xhci_urb_suitable_for_idt(urb)) { urb 3392 drivers/usb/host/xhci-ring.c memcpy(&send_addr, urb->transfer_buffer, urb 3400 drivers/usb/host/xhci-ring.c if (usb_urb_dir_in(urb)) urb 3405 drivers/usb/host/xhci-ring.c full_len, urb, more_trbs_coming); urb 3437 drivers/usb/host/xhci-ring.c ep_index, urb->stream_id, urb 3438 drivers/usb/host/xhci-ring.c 1, urb, 1, mem_flags); urb 3444 drivers/usb/host/xhci-ring.c check_trb_math(urb, enqd_len); urb 3445 drivers/usb/host/xhci-ring.c giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, urb 3452 drivers/usb/host/xhci-ring.c struct urb *urb, int slot_id, unsigned int ep_index) urb 3464 drivers/usb/host/xhci-ring.c ep_ring = xhci_urb_to_transfer_ring(xhci, urb); urb 3472 drivers/usb/host/xhci-ring.c if (!urb->setup_packet) urb 3482 drivers/usb/host/xhci-ring.c if (urb->transfer_buffer_length > 0) urb 3485 drivers/usb/host/xhci-ring.c ep_index, urb->stream_id, urb 3486 drivers/usb/host/xhci-ring.c num_trbs, urb, 0, mem_flags); urb 3490 drivers/usb/host/xhci-ring.c urb_priv = urb->hcpriv; urb 3503 drivers/usb/host/xhci-ring.c setup = (struct usb_ctrlrequest *) urb->setup_packet; urb 3511 drivers/usb/host/xhci-ring.c if (urb->transfer_buffer_length > 0) { urb 3528 drivers/usb/host/xhci-ring.c if (usb_urb_dir_in(urb)) urb 3533 drivers/usb/host/xhci-ring.c if (urb->transfer_buffer_length > 0) { urb 3537 drivers/usb/host/xhci-ring.c if (xhci_urb_suitable_for_idt(urb)) { urb 3538 drivers/usb/host/xhci-ring.c memcpy(&addr, urb->transfer_buffer, urb 3539 drivers/usb/host/xhci-ring.c urb->transfer_buffer_length); urb 3543 drivers/usb/host/xhci-ring.c addr = (u64) urb->transfer_dma; urb 3547 drivers/usb/host/xhci-ring.c urb->transfer_buffer_length, urb 3548 drivers/usb/host/xhci-ring.c urb->transfer_buffer_length, urb 3549 drivers/usb/host/xhci-ring.c urb, 1); urb 3550 drivers/usb/host/xhci-ring.c length_field = TRB_LEN(urb->transfer_buffer_length) | urb 3567 drivers/usb/host/xhci-ring.c if (urb->transfer_buffer_length > 0 && setup->bRequestType & USB_DIR_IN) urb 3592 drivers/usb/host/xhci-ring.c struct urb *urb, unsigned int total_packet_count) urb 3596 drivers/usb/host/xhci-ring.c if (xhci->hci_version < 0x100 || urb->dev->speed < USB_SPEED_SUPER) urb 3599 drivers/usb/host/xhci-ring.c max_burst = urb->ep->ss_ep_comp.bMaxBurst; urb 3612 drivers/usb/host/xhci-ring.c struct urb *urb, unsigned int total_packet_count) urb 3620 drivers/usb/host/xhci-ring.c if (urb->dev->speed >= USB_SPEED_SUPER) { urb 3622 drivers/usb/host/xhci-ring.c max_burst = urb->ep->ss_ep_comp.bMaxBurst; urb 3644 drivers/usb/host/xhci-ring.c struct urb *urb, int index) urb 3649 drivers/usb/host/xhci-ring.c if (urb->dev->speed == USB_SPEED_LOW || urb 3650 drivers/usb/host/xhci-ring.c urb->dev->speed == USB_SPEED_FULL) urb 3651 drivers/usb/host/xhci-ring.c start_frame = urb->start_frame + index * urb->interval; urb 3653 drivers/usb/host/xhci-ring.c start_frame = (urb->start_frame + index * urb->interval) >> 3; urb 3707 drivers/usb/host/xhci-ring.c if (urb->dev->speed == USB_SPEED_LOW || urb 3708 drivers/usb/host/xhci-ring.c urb->dev->speed == USB_SPEED_FULL) urb 3709 drivers/usb/host/xhci-ring.c urb->start_frame = start_frame; urb 3711 drivers/usb/host/xhci-ring.c urb->start_frame = start_frame << 3; urb 3729 drivers/usb/host/xhci-ring.c struct urb *urb, int slot_id, unsigned int ep_index) urb 3749 drivers/usb/host/xhci-ring.c num_tds = urb->number_of_packets; urb 3754 drivers/usb/host/xhci-ring.c start_addr = (u64) urb->transfer_dma; urb 3758 drivers/usb/host/xhci-ring.c urb_priv = urb->hcpriv; urb 3767 drivers/usb/host/xhci-ring.c addr = start_addr + urb->iso_frame_desc[i].offset; urb 3768 drivers/usb/host/xhci-ring.c td_len = urb->iso_frame_desc[i].length; urb 3770 drivers/usb/host/xhci-ring.c max_pkt = usb_endpoint_maxp(&urb->ep->desc); urb 3776 drivers/usb/host/xhci-ring.c burst_count = xhci_get_burst_count(xhci, urb, total_pkt_count); urb 3778 drivers/usb/host/xhci-ring.c urb, total_pkt_count); urb 3780 drivers/usb/host/xhci-ring.c trbs_per_td = count_isoc_trbs_needed(urb, i); urb 3783 drivers/usb/host/xhci-ring.c urb->stream_id, trbs_per_td, urb, i, mem_flags); urb 3793 drivers/usb/host/xhci-ring.c if (!(urb->transfer_flags & URB_ISO_ASAP) && urb 3795 drivers/usb/host/xhci-ring.c frame_id = xhci_get_isoc_frame_id(xhci, urb, i); urb 3823 drivers/usb/host/xhci-ring.c if (usb_urb_dir_in(urb)) urb 3848 drivers/usb/host/xhci-ring.c urb, more_trbs_coming); urb 3881 drivers/usb/host/xhci-ring.c xep->next_frame_id = urb->start_frame + num_tds * urb->interval; urb 3889 drivers/usb/host/xhci-ring.c giveback_first_trb(xhci, slot_id, ep_index, urb->stream_id, urb 3912 drivers/usb/host/xhci-ring.c usb_hcd_unlink_urb_from_ep(bus_to_hcd(urb->dev->bus), urb); urb 3924 drivers/usb/host/xhci-ring.c struct urb *urb, int slot_id, unsigned int ep_index) urb 3941 drivers/usb/host/xhci-ring.c num_tds = urb->number_of_packets; urb 3943 drivers/usb/host/xhci-ring.c num_trbs += count_isoc_trbs_needed(urb, i); urb 3957 drivers/usb/host/xhci-ring.c check_interval(xhci, urb, ep_ctx); urb 3962 drivers/usb/host/xhci-ring.c urb->start_frame = xep->next_frame_id; urb 3983 drivers/usb/host/xhci-ring.c if (urb->dev->speed == USB_SPEED_LOW || urb 3984 drivers/usb/host/xhci-ring.c urb->dev->speed == USB_SPEED_FULL) { urb 3985 drivers/usb/host/xhci-ring.c start_frame = roundup(start_frame, urb->interval << 3); urb 3986 drivers/usb/host/xhci-ring.c urb->start_frame = start_frame >> 3; urb 3988 drivers/usb/host/xhci-ring.c start_frame = roundup(start_frame, urb->interval); urb 3989 drivers/usb/host/xhci-ring.c urb->start_frame = start_frame; urb 3995 drivers/usb/host/xhci-ring.c return xhci_queue_isoc_tx(xhci, mem_flags, urb, slot_id, ep_index); urb 258 drivers/usb/host/xhci-trace.h TP_PROTO(struct urb *urb), urb 259 drivers/usb/host/xhci-trace.h TP_ARGS(urb), urb 261 drivers/usb/host/xhci-trace.h __field(void *, urb) urb 276 drivers/usb/host/xhci-trace.h __entry->urb = urb; urb 277 drivers/usb/host/xhci-trace.h __entry->pipe = urb->pipe; urb 278 drivers/usb/host/xhci-trace.h __entry->stream = urb->stream_id; urb 279 drivers/usb/host/xhci-trace.h __entry->status = urb->status; urb 280 drivers/usb/host/xhci-trace.h __entry->flags = urb->transfer_flags; urb 281 drivers/usb/host/xhci-trace.h __entry->num_mapped_sgs = urb->num_mapped_sgs; urb 282 drivers/usb/host/xhci-trace.h __entry->num_sgs = urb->num_sgs; urb 283 drivers/usb/host/xhci-trace.h __entry->length = urb->transfer_buffer_length; urb 284 drivers/usb/host/xhci-trace.h __entry->actual = urb->actual_length; urb 285 drivers/usb/host/xhci-trace.h __entry->epnum = usb_endpoint_num(&urb->ep->desc); urb 286 drivers/usb/host/xhci-trace.h __entry->dir_in = usb_endpoint_dir_in(&urb->ep->desc); urb 287 drivers/usb/host/xhci-trace.h __entry->type = usb_endpoint_type(&urb->ep->desc); urb 288 drivers/usb/host/xhci-trace.h __entry->slot_id = urb->dev->slot_id; urb 297 drivers/usb/host/xhci-trace.h __entry->urb, __entry->pipe, __entry->slot_id, urb 304 drivers/usb/host/xhci-trace.h TP_PROTO(struct urb *urb), urb 305 drivers/usb/host/xhci-trace.h TP_ARGS(urb) urb 309 drivers/usb/host/xhci-trace.h TP_PROTO(struct urb *urb), urb 310 drivers/usb/host/xhci-trace.h TP_ARGS(urb) urb 314 drivers/usb/host/xhci-trace.h TP_PROTO(struct urb *urb), urb 315 drivers/usb/host/xhci-trace.h TP_ARGS(urb) urb 1265 drivers/usb/host/xhci.c static int xhci_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, urb 1268 drivers/usb/host/xhci.c if (xhci_urb_suitable_for_idt(urb)) urb 1271 drivers/usb/host/xhci.c return usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); urb 1385 drivers/usb/host/xhci.c unsigned int ep_index, struct urb *urb) urb 1398 drivers/usb/host/xhci.c max_packet_size = usb_endpoint_maxp(&urb->dev->ep0.desc); urb 1439 drivers/usb/host/xhci.c ret = xhci_configure_endpoint(xhci, urb->dev, command, urb 1457 drivers/usb/host/xhci.c static int xhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) urb 1467 drivers/usb/host/xhci.c if (!urb || xhci_check_args(hcd, urb->dev, urb->ep, urb 1471 drivers/usb/host/xhci.c slot_id = urb->dev->slot_id; urb 1472 drivers/usb/host/xhci.c ep_index = xhci_get_endpoint_index(&urb->ep->desc); urb 1485 drivers/usb/host/xhci.c if (usb_endpoint_xfer_isoc(&urb->ep->desc)) urb 1486 drivers/usb/host/xhci.c num_tds = urb->number_of_packets; urb 1487 drivers/usb/host/xhci.c else if (usb_endpoint_is_bulk_out(&urb->ep->desc) && urb 1488 drivers/usb/host/xhci.c urb->transfer_buffer_length > 0 && urb 1489 drivers/usb/host/xhci.c urb->transfer_flags & URB_ZERO_PACKET && urb 1490 drivers/usb/host/xhci.c !(urb->transfer_buffer_length % usb_endpoint_maxp(&urb->ep->desc))) urb 1501 drivers/usb/host/xhci.c urb->hcpriv = urb_priv; urb 1503 drivers/usb/host/xhci.c trace_xhci_urb_enqueue(urb); urb 1505 drivers/usb/host/xhci.c if (usb_endpoint_xfer_control(&urb->ep->desc)) { urb 1509 drivers/usb/host/xhci.c if (urb->dev->speed == USB_SPEED_FULL) { urb 1511 drivers/usb/host/xhci.c ep_index, urb); urb 1514 drivers/usb/host/xhci.c urb->hcpriv = NULL; urb 1524 drivers/usb/host/xhci.c urb->ep->desc.bEndpointAddress, urb); urb 1540 drivers/usb/host/xhci.c switch (usb_endpoint_type(&urb->ep->desc)) { urb 1543 drivers/usb/host/xhci.c ret = xhci_queue_ctrl_tx(xhci, GFP_ATOMIC, urb, urb 1547 drivers/usb/host/xhci.c ret = xhci_queue_bulk_tx(xhci, GFP_ATOMIC, urb, urb 1551 drivers/usb/host/xhci.c ret = xhci_queue_intr_tx(xhci, GFP_ATOMIC, urb, urb 1555 drivers/usb/host/xhci.c ret = xhci_queue_isoc_tx_prepare(xhci, GFP_ATOMIC, urb, urb 1562 drivers/usb/host/xhci.c urb->hcpriv = NULL; urb 1599 drivers/usb/host/xhci.c static int xhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 1616 drivers/usb/host/xhci.c trace_xhci_urb_dequeue(urb); urb 1619 drivers/usb/host/xhci.c ret = usb_hcd_check_unlink_urb(hcd, urb, status); urb 1624 drivers/usb/host/xhci.c vdev = xhci->devs[urb->dev->slot_id]; urb 1625 drivers/usb/host/xhci.c urb_priv = urb->hcpriv; urb 1629 drivers/usb/host/xhci.c ep_index = xhci_get_endpoint_index(&urb->ep->desc); urb 1631 drivers/usb/host/xhci.c ep_ring = xhci_urb_to_transfer_ring(xhci, urb); urb 1677 drivers/usb/host/xhci.c urb, urb->dev->devpath, urb 1678 drivers/usb/host/xhci.c urb->ep->desc.bEndpointAddress, urb 1701 drivers/usb/host/xhci.c xhci_queue_stop_endpoint(xhci, command, urb->dev->slot_id, urb 1712 drivers/usb/host/xhci.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 1714 drivers/usb/host/xhci.c usb_hcd_giveback_urb(hcd, urb, -ESHUTDOWN); urb 1537 drivers/usb/host/xhci.h struct urb *urb; urb 2094 drivers/usb/host/xhci.h int xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, urb 2096 drivers/usb/host/xhci.h int xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, urb 2098 drivers/usb/host/xhci.h int xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, urb 2101 drivers/usb/host/xhci.h struct urb *urb, int slot_id, unsigned int ep_index); urb 2172 drivers/usb/host/xhci.h struct urb *urb) urb 2174 drivers/usb/host/xhci.h return xhci_triad_to_transfer_ring(xhci, urb->dev->slot_id, urb 2175 drivers/usb/host/xhci.h xhci_get_endpoint_index(&urb->ep->desc), urb 2176 drivers/usb/host/xhci.h urb->stream_id); urb 2184 drivers/usb/host/xhci.h static inline bool xhci_urb_suitable_for_idt(struct urb *urb) urb 2186 drivers/usb/host/xhci.h if (!usb_endpoint_xfer_isoc(&urb->ep->desc) && usb_urb_dir_out(urb) && urb 2187 drivers/usb/host/xhci.h usb_endpoint_maxp(&urb->ep->desc) >= TRB_IDT_MAX_SIZE && urb 2188 drivers/usb/host/xhci.h urb->transfer_buffer_length <= TRB_IDT_MAX_SIZE && urb 2189 drivers/usb/host/xhci.h !(urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP) && urb 2190 drivers/usb/host/xhci.h !urb->num_sgs) urb 131 drivers/usb/image/mdc800.c struct urb * irq_urb; urb 140 drivers/usb/image/mdc800.c struct urb * write_urb; urb 146 drivers/usb/image/mdc800.c struct urb * download_urb; urb 269 drivers/usb/image/mdc800.c static void mdc800_usb_irq (struct urb *urb) urb 272 drivers/usb/image/mdc800.c unsigned char* b=urb->transfer_buffer; urb 273 drivers/usb/image/mdc800.c struct mdc800_data* mdc800=urb->context; urb 275 drivers/usb/image/mdc800.c int status = urb->status; urb 363 drivers/usb/image/mdc800.c static void mdc800_usb_write_notify (struct urb *urb) urb 365 drivers/usb/image/mdc800.c struct mdc800_data* mdc800=urb->context; urb 366 drivers/usb/image/mdc800.c int status = urb->status; urb 381 drivers/usb/image/mdc800.c static void mdc800_usb_download_notify (struct urb *urb) urb 383 drivers/usb/image/mdc800.c struct mdc800_data* mdc800=urb->context; urb 384 drivers/usb/image/mdc800.c int status = urb->status; urb 388 drivers/usb/image/mdc800.c memcpy (mdc800->out, urb->transfer_buffer, 64); urb 318 drivers/usb/image/microtek.c usb_kill_urb( desc->urb ); urb 363 drivers/usb/image/microtek.c static void mts_transfer_cleanup( struct urb *transfer ); urb 364 drivers/usb/image/microtek.c static void mts_do_sg(struct urb * transfer); urb 367 drivers/usb/image/microtek.c void mts_int_submit_urb (struct urb* transfer, urb 398 drivers/usb/image/microtek.c static void mts_transfer_cleanup( struct urb *transfer ) urb 407 drivers/usb/image/microtek.c static void mts_transfer_done( struct urb *transfer ) urb 418 drivers/usb/image/microtek.c static void mts_get_status( struct urb *transfer ) urb 431 drivers/usb/image/microtek.c static void mts_data_done( struct urb* transfer ) urb 448 drivers/usb/image/microtek.c static void mts_command_done( struct urb *transfer ) urb 489 drivers/usb/image/microtek.c static void mts_do_sg (struct urb* transfer) urb 591 drivers/usb/image/microtek.c usb_fill_bulk_urb(desc->urb, urb 605 drivers/usb/image/microtek.c res=usb_submit_urb(desc->urb, GFP_ATOMIC); urb 734 drivers/usb/image/microtek.c new_desc->urb = usb_alloc_urb(0, GFP_KERNEL); urb 735 drivers/usb/image/microtek.c if (!new_desc->urb) urb 782 drivers/usb/image/microtek.c usb_free_urb(new_desc->urb); urb 795 drivers/usb/image/microtek.c usb_kill_urb(desc->urb); urb 799 drivers/usb/image/microtek.c usb_free_urb(desc->urb); urb 44 drivers/usb/image/microtek.h struct urb *urb; urb 127 drivers/usb/isp1760/isp1760-hcd.c struct urb *urb; urb 157 drivers/usb/isp1760/isp1760-hcd.c struct urb *urb; urb 517 drivers/usb/isp1760/isp1760-hcd.c struct urb *urb; urb 522 drivers/usb/isp1760/isp1760-hcd.c urb = qtd->urb; urb 524 drivers/usb/isp1760/isp1760-hcd.c return (qtd->urb != urb); urb 546 drivers/usb/isp1760/isp1760-hcd.c maxpacket = usb_maxpacket(qtd->urb->dev, qtd->urb->pipe, urb 547 drivers/usb/isp1760/isp1760-hcd.c usb_pipeout(qtd->urb->pipe)); urb 555 drivers/usb/isp1760/isp1760-hcd.c ptd->dw0 |= TO_DW0_ENDPOINT(usb_pipeendpoint(qtd->urb->pipe)); urb 558 drivers/usb/isp1760/isp1760-hcd.c ptd->dw1 = usb_pipeendpoint(qtd->urb->pipe) >> 1; urb 559 drivers/usb/isp1760/isp1760-hcd.c ptd->dw1 |= TO_DW1_DEVICE_ADDR(usb_pipedevice(qtd->urb->pipe)); urb 562 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipebulk(qtd->urb->pipe)) urb 564 drivers/usb/isp1760/isp1760-hcd.c else if (usb_pipeint(qtd->urb->pipe)) urb 567 drivers/usb/isp1760/isp1760-hcd.c if (qtd->urb->dev->speed != USB_SPEED_HIGH) { urb 571 drivers/usb/isp1760/isp1760-hcd.c if (qtd->urb->dev->speed == USB_SPEED_LOW) urb 574 drivers/usb/isp1760/isp1760-hcd.c ptd->dw1 |= TO_DW1_PORT_NUM(qtd->urb->dev->ttport); urb 575 drivers/usb/isp1760/isp1760-hcd.c ptd->dw1 |= TO_DW1_HUB_NUM(qtd->urb->dev->tt->hub->devnum); urb 578 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipeint(qtd->urb->pipe) && urb 579 drivers/usb/isp1760/isp1760-hcd.c (qtd->urb->dev->speed == USB_SPEED_LOW)) urb 586 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipecontrol(qtd->urb->pipe) || urb 587 drivers/usb/isp1760/isp1760-hcd.c usb_pipebulk(qtd->urb->pipe)) urb 598 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipecontrol(qtd->urb->pipe)) { urb 599 drivers/usb/isp1760/isp1760-hcd.c if (qtd->data_buffer == qtd->urb->setup_packet) urb 625 drivers/usb/isp1760/isp1760-hcd.c if (qtd->urb->dev->speed == USB_SPEED_HIGH) { urb 627 drivers/usb/isp1760/isp1760-hcd.c period = qtd->urb->interval >> 3; urb 629 drivers/usb/isp1760/isp1760-hcd.c if (qtd->urb->interval > 4) urb 632 drivers/usb/isp1760/isp1760-hcd.c else if (qtd->urb->interval > 2) urb 634 drivers/usb/isp1760/isp1760-hcd.c else if (qtd->urb->interval > 1) urb 640 drivers/usb/isp1760/isp1760-hcd.c period = qtd->urb->interval; urb 669 drivers/usb/isp1760/isp1760-hcd.c static void isp1760_urb_done(struct usb_hcd *hcd, struct urb *urb) urb 675 drivers/usb/isp1760/isp1760-hcd.c if (!urb->unlinked) { urb 676 drivers/usb/isp1760/isp1760-hcd.c if (urb->status == -EINPROGRESS) urb 677 drivers/usb/isp1760/isp1760-hcd.c urb->status = 0; urb 680 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipein(urb->pipe) && usb_pipetype(urb->pipe) != PIPE_CONTROL) { urb 682 drivers/usb/isp1760/isp1760-hcd.c for (ptr = urb->transfer_buffer; urb 683 drivers/usb/isp1760/isp1760-hcd.c ptr < urb->transfer_buffer + urb->transfer_buffer_length; urb 689 drivers/usb/isp1760/isp1760-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 691 drivers/usb/isp1760/isp1760-hcd.c usb_hcd_giveback_urb(hcd, urb, urb->status); urb 695 drivers/usb/isp1760/isp1760-hcd.c static struct isp1760_qtd *qtd_alloc(gfp_t flags, struct urb *urb, urb 705 drivers/usb/isp1760/isp1760-hcd.c qtd->urb = urb; urb 764 drivers/usb/isp1760/isp1760-hcd.c return (usb_pipebulk(qtd->urb->pipe) && urb 793 drivers/usb/isp1760/isp1760-hcd.c qtd->urb->actual_length += urb 802 drivers/usb/isp1760/isp1760-hcd.c if (qtd->urb->transfer_flags & URB_SHORT_NOT_OK) urb 803 drivers/usb/isp1760/isp1760-hcd.c qtd->urb->status = -EREMOTEIO; urb 814 drivers/usb/isp1760/isp1760-hcd.c (qtd->urb->status == -EINPROGRESS)) urb 815 drivers/usb/isp1760/isp1760-hcd.c qtd->urb->status = -EPIPE; urb 821 drivers/usb/isp1760/isp1760-hcd.c urb_listitem->urb = qtd->urb; urb 851 drivers/usb/isp1760/isp1760-hcd.c qtd_list)->urb->pipe)) { urb 893 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipeint(qtd->urb->pipe)) urb 940 drivers/usb/isp1760/isp1760-hcd.c isp1760_urb_done(hcd, urb_listitem->urb); urb 980 drivers/usb/isp1760/isp1760-hcd.c struct urb *urb) urb 993 drivers/usb/isp1760/isp1760-hcd.c urb->status = -EPROTO; /* Default unknown error */ urb 1001 drivers/usb/isp1760/isp1760-hcd.c urb->status = -ECOMM; /* Could not write data */ urb 1007 drivers/usb/isp1760/isp1760-hcd.c urb->status = -EPROTO; /* timeout, bad CRC, PID urb 1014 drivers/usb/isp1760/isp1760-hcd.c urb->status = -EOVERFLOW; urb 1027 drivers/usb/isp1760/isp1760-hcd.c struct urb *urb) urb 1032 drivers/usb/isp1760/isp1760-hcd.c urb->status = -EOVERFLOW; urb 1034 drivers/usb/isp1760/isp1760-hcd.c urb->status = -EPIPE; /* Stall */ urb 1036 drivers/usb/isp1760/isp1760-hcd.c urb->status = -EPROTO; /* XactErr */ urb 1038 drivers/usb/isp1760/isp1760-hcd.c urb->status = -EPROTO; /* Unknown */ urb 1103 drivers/usb/isp1760/isp1760-hcd.c slots[slot].qtd->urb); urb 1118 drivers/usb/isp1760/isp1760-hcd.c slots[slot].qtd->urb); urb 1131 drivers/usb/isp1760/isp1760-hcd.c if ((usb_pipeint(qtd->urb->pipe)) && urb 1132 drivers/usb/isp1760/isp1760-hcd.c (qtd->urb->dev->speed != USB_SPEED_HIGH)) urb 1165 drivers/usb/isp1760/isp1760-hcd.c if ((qtd->urb->dev->speed != USB_SPEED_HIGH) && urb 1166 drivers/usb/isp1760/isp1760-hcd.c (qtd->urb->status != -EPIPE) && urb 1167 drivers/usb/isp1760/isp1760-hcd.c (qtd->urb->status != -EREMOTEIO)) { urb 1169 drivers/usb/isp1760/isp1760-hcd.c if (usb_hub_clear_tt_buffer(qtd->urb)) urb 1393 drivers/usb/isp1760/isp1760-hcd.c struct urb *urb, struct list_head *head, gfp_t flags) urb 1404 drivers/usb/isp1760/isp1760-hcd.c if (!urb->transfer_buffer && urb->transfer_buffer_length) { urb 1408 drivers/usb/isp1760/isp1760-hcd.c (long unsigned)urb->transfer_dma, urb 1409 drivers/usb/isp1760/isp1760-hcd.c urb->transfer_buffer_length); urb 1413 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipein(urb->pipe)) urb 1418 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 1419 drivers/usb/isp1760/isp1760-hcd.c qtd = qtd_alloc(flags, urb, SETUP_PID); urb 1422 drivers/usb/isp1760/isp1760-hcd.c qtd_fill(qtd, urb->setup_packet, sizeof(struct usb_ctrlrequest)); urb 1426 drivers/usb/isp1760/isp1760-hcd.c if (urb->transfer_buffer_length == 0) urb 1430 drivers/usb/isp1760/isp1760-hcd.c maxpacketsize = max_packet(usb_maxpacket(urb->dev, urb->pipe, urb 1431 drivers/usb/isp1760/isp1760-hcd.c usb_pipeout(urb->pipe))); urb 1438 drivers/usb/isp1760/isp1760-hcd.c buf = urb->transfer_buffer; urb 1439 drivers/usb/isp1760/isp1760-hcd.c len = urb->transfer_buffer_length; urb 1444 drivers/usb/isp1760/isp1760-hcd.c qtd = qtd_alloc(flags, urb, packet_type); urb 1461 drivers/usb/isp1760/isp1760-hcd.c if (urb->transfer_buffer_length != 0) { urb 1464 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipecontrol(urb->pipe)) { urb 1470 drivers/usb/isp1760/isp1760-hcd.c } else if (usb_pipebulk(urb->pipe) urb 1471 drivers/usb/isp1760/isp1760-hcd.c && (urb->transfer_flags & URB_ZERO_PACKET) urb 1472 drivers/usb/isp1760/isp1760-hcd.c && !(urb->transfer_buffer_length % urb 1477 drivers/usb/isp1760/isp1760-hcd.c qtd = qtd_alloc(flags, urb, packet_type); urb 1493 drivers/usb/isp1760/isp1760-hcd.c static int isp1760_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, urb 1504 drivers/usb/isp1760/isp1760-hcd.c switch (usb_pipetype(urb->pipe)) { urb 1512 drivers/usb/isp1760/isp1760-hcd.c if (urb->interval < 0) urb 1528 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipein(urb->pipe)) urb 1529 drivers/usb/isp1760/isp1760-hcd.c urb->actual_length = 0; urb 1531 drivers/usb/isp1760/isp1760-hcd.c packetize_urb(hcd, urb, &new_qtds, mem_flags); urb 1543 drivers/usb/isp1760/isp1760-hcd.c retval = usb_hcd_link_urb_to_ep(hcd, urb); urb 1549 drivers/usb/isp1760/isp1760-hcd.c qh = urb->ep->hcpriv; urb 1564 drivers/usb/isp1760/isp1760-hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 1569 drivers/usb/isp1760/isp1760-hcd.c urb->ep->hcpriv = qh; urb 1580 drivers/usb/isp1760/isp1760-hcd.c static void kill_transfer(struct usb_hcd *hcd, struct urb *urb, urb 1590 drivers/usb/isp1760/isp1760-hcd.c if (usb_pipecontrol(urb->pipe) || usb_pipebulk(urb->pipe)) { urb 1614 drivers/usb/isp1760/isp1760-hcd.c struct urb *urb; urb 1617 drivers/usb/isp1760/isp1760-hcd.c urb = qtd->urb; urb 1620 drivers/usb/isp1760/isp1760-hcd.c if (qtd->urb != urb) urb 1630 drivers/usb/isp1760/isp1760-hcd.c kill_transfer(hcd, urb, qh); urb 1634 drivers/usb/isp1760/isp1760-hcd.c if ((urb->dev->speed != USB_SPEED_HIGH) && urb_was_running) { urb 1636 drivers/usb/isp1760/isp1760-hcd.c if (usb_hub_clear_tt_buffer(urb)) urb 1642 drivers/usb/isp1760/isp1760-hcd.c static int isp1760_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, urb 1652 drivers/usb/isp1760/isp1760-hcd.c retval = usb_hcd_check_unlink_urb(hcd, urb, status); urb 1656 drivers/usb/isp1760/isp1760-hcd.c qh = urb->ep->hcpriv; urb 1663 drivers/usb/isp1760/isp1760-hcd.c if (qtd->urb == urb) { urb 1669 drivers/usb/isp1760/isp1760-hcd.c urb->status = status; urb 92 drivers/usb/misc/adutux.c struct urb *interrupt_in_urb; urb 97 drivers/usb/misc/adutux.c struct urb *interrupt_out_urb; urb 156 drivers/usb/misc/adutux.c static void adu_interrupt_in_callback(struct urb *urb) urb 158 drivers/usb/misc/adutux.c struct adu_device *dev = urb->context; urb 159 drivers/usb/misc/adutux.c int status = urb->status; urb 163 drivers/usb/misc/adutux.c urb->actual_length, urb->transfer_buffer); urb 177 drivers/usb/misc/adutux.c if (urb->actual_length > 0 && dev->interrupt_in_buffer[0] != 0x00) { urb 180 drivers/usb/misc/adutux.c (urb->actual_length)) { urb 183 drivers/usb/misc/adutux.c dev->interrupt_in_buffer, urb->actual_length); urb 185 drivers/usb/misc/adutux.c dev->read_buffer_length += urb->actual_length; urb 187 drivers/usb/misc/adutux.c urb->actual_length); urb 201 drivers/usb/misc/adutux.c static void adu_interrupt_out_callback(struct urb *urb) urb 203 drivers/usb/misc/adutux.c struct adu_device *dev = urb->context; urb 204 drivers/usb/misc/adutux.c int status = urb->status; urb 208 drivers/usb/misc/adutux.c urb->actual_length, urb->transfer_buffer); urb 65 drivers/usb/misc/appledisplay.c struct urb *urb; /* usb request block */ urb 77 drivers/usb/misc/appledisplay.c static void appledisplay_complete(struct urb *urb) urb 79 drivers/usb/misc/appledisplay.c struct appledisplay *pdata = urb->context; urb 81 drivers/usb/misc/appledisplay.c int status = urb->status; urb 91 drivers/usb/misc/appledisplay.c ACD_URB_BUFFER_LEN, pdata->urb->actual_length); urb 119 drivers/usb/misc/appledisplay.c retval = usb_submit_urb(pdata->urb, GFP_ATOMIC); urb 242 drivers/usb/misc/appledisplay.c pdata->urb = usb_alloc_urb(0, GFP_KERNEL); urb 243 drivers/usb/misc/appledisplay.c if (!pdata->urb) { urb 250 drivers/usb/misc/appledisplay.c GFP_KERNEL, &pdata->urb->transfer_dma); urb 258 drivers/usb/misc/appledisplay.c usb_fill_int_urb(pdata->urb, udev, urb 262 drivers/usb/misc/appledisplay.c pdata->urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urb 263 drivers/usb/misc/appledisplay.c if (usb_submit_urb(pdata->urb, GFP_KERNEL)) { urb 305 drivers/usb/misc/appledisplay.c if (pdata->urb) { urb 306 drivers/usb/misc/appledisplay.c usb_kill_urb(pdata->urb); urb 310 drivers/usb/misc/appledisplay.c pdata->urbdata, pdata->urb->transfer_dma); urb 311 drivers/usb/misc/appledisplay.c usb_free_urb(pdata->urb); urb 327 drivers/usb/misc/appledisplay.c usb_kill_urb(pdata->urb); urb 331 drivers/usb/misc/appledisplay.c pdata->urbdata, pdata->urb->transfer_dma); urb 332 drivers/usb/misc/appledisplay.c usb_free_urb(pdata->urb); urb 71 drivers/usb/misc/chaoskey.c static void chaos_read_callback(struct urb *urb); urb 90 drivers/usb/misc/chaoskey.c struct urb *urb; /* for performing IO */ urb 98 drivers/usb/misc/chaoskey.c usb_free_urb(dev->urb); urb 156 drivers/usb/misc/chaoskey.c dev->urb = usb_alloc_urb(0, GFP_KERNEL); urb 158 drivers/usb/misc/chaoskey.c if (!dev->urb) urb 161 drivers/usb/misc/chaoskey.c usb_fill_bulk_urb(dev->urb, urb 240 drivers/usb/misc/chaoskey.c usb_poison_urb(dev->urb); urb 315 drivers/usb/misc/chaoskey.c static void chaos_read_callback(struct urb *urb) urb 317 drivers/usb/misc/chaoskey.c struct chaoskey *dev = urb->context; urb 318 drivers/usb/misc/chaoskey.c int status = urb->status; urb 323 drivers/usb/misc/chaoskey.c dev->valid = urb->actual_length; urb 368 drivers/usb/misc/chaoskey.c result = usb_submit_urb(dev->urb, GFP_KERNEL); urb 388 drivers/usb/misc/chaoskey.c usb_kill_urb(dev->urb); urb 394 drivers/usb/misc/chaoskey.c usb_kill_urb(dev->urb); urb 127 drivers/usb/misc/ftdi-elan.c struct urb *urb; urb 138 drivers/usb/misc/ftdi-elan.c void (*callback)(void *endp, struct urb *urb, u8 *buf, int len, urb 716 drivers/usb/misc/ftdi-elan.c static void ftdi_elan_write_bulk_callback(struct urb *urb) urb 718 drivers/usb/misc/ftdi-elan.c struct usb_ftdi *ftdi = urb->context; urb 719 drivers/usb/misc/ftdi-elan.c int status = urb->status; urb 724 drivers/usb/misc/ftdi-elan.c "urb=%p write bulk status received: %d\n", urb, status); urb 726 drivers/usb/misc/ftdi-elan.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 727 drivers/usb/misc/ftdi-elan.c urb->transfer_buffer, urb->transfer_dma); urb 775 drivers/usb/misc/ftdi-elan.c struct urb *urb; urb 780 drivers/usb/misc/ftdi-elan.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 781 drivers/usb/misc/ftdi-elan.c if (!urb) urb 784 drivers/usb/misc/ftdi-elan.c &urb->transfer_dma); urb 788 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 793 drivers/usb/misc/ftdi-elan.c usb_fill_bulk_urb(urb, ftdi->udev, usb_sndbulkpipe(ftdi->udev, urb 796 drivers/usb/misc/ftdi-elan.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 811 drivers/usb/misc/ftdi-elan.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 814 drivers/usb/misc/ftdi-elan.c retval, urb, command_size, total_size); urb 815 drivers/usb/misc/ftdi-elan.c usb_free_coherent(ftdi->udev, total_size, buf, urb->transfer_dma); urb 816 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 819 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); /* release our reference to this urb, urb 829 drivers/usb/misc/ftdi-elan.c struct urb *urb = target->urb; urb 838 drivers/usb/misc/ftdi-elan.c void (*callback) (void *, struct urb *, u8 *, int, int, int, int, int, urb 842 drivers/usb/misc/ftdi-elan.c (*callback) (target->endp, urb, buffer, length, toggle_bits, urb 1083 drivers/usb/misc/ftdi-elan.c struct urb *urb; urb 1093 drivers/usb/misc/ftdi-elan.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1094 drivers/usb/misc/ftdi-elan.c if (!urb) { urb 1099 drivers/usb/misc/ftdi-elan.c &urb->transfer_dma); urb 1108 drivers/usb/misc/ftdi-elan.c usb_fill_bulk_urb(urb, ftdi->udev, usb_sndbulkpipe(ftdi->udev, urb 1111 drivers/usb/misc/ftdi-elan.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1112 drivers/usb/misc/ftdi-elan.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 1118 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 1123 drivers/usb/misc/ftdi-elan.c usb_free_coherent(ftdi->udev, count, buf, urb->transfer_dma); urb 1125 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 1427 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1428 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1449 drivers/usb/misc/ftdi-elan.c command->width = usb_maxpacket(urb->dev, urb->pipe, urb 1450 drivers/usb/misc/ftdi-elan.c usb_pipeout(urb->pipe)); urb 1453 drivers/usb/misc/ftdi-elan.c command->buffer = urb->setup_packet; urb 1456 drivers/usb/misc/ftdi-elan.c target->urb = urb; urb 1471 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1472 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1477 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_setup(ftdi, ed_number, endp, urb, address, urb 1484 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1485 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1502 drivers/usb/misc/ftdi-elan.c u32 remaining_length = urb->transfer_buffer_length - urb 1503 drivers/usb/misc/ftdi-elan.c urb->actual_length; urb 1514 drivers/usb/misc/ftdi-elan.c command->width = usb_maxpacket(urb->dev, urb->pipe, urb 1515 drivers/usb/misc/ftdi-elan.c usb_pipeout(urb->pipe)); urb 1521 drivers/usb/misc/ftdi-elan.c target->urb = urb; urb 1536 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1537 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1542 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_input(ftdi, ed_number, endp, urb, address, urb 1549 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1550 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1571 drivers/usb/misc/ftdi-elan.c command->width = usb_maxpacket(urb->dev, urb->pipe, urb 1572 drivers/usb/misc/ftdi-elan.c usb_pipeout(urb->pipe)); urb 1578 drivers/usb/misc/ftdi-elan.c target->urb = urb; urb 1593 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1594 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1599 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_empty(ftdi, ed_number, endp, urb, address, urb 1606 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1607 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1634 drivers/usb/misc/ftdi-elan.c command->width = usb_maxpacket(urb->dev, urb->pipe, urb 1635 drivers/usb/misc/ftdi-elan.c usb_pipeout(urb->pipe)); urb 1637 drivers/usb/misc/ftdi-elan.c urb->transfer_buffer_length - urb 1638 drivers/usb/misc/ftdi-elan.c urb->actual_length); urb 1640 drivers/usb/misc/ftdi-elan.c command->buffer = urb->transfer_buffer + urb 1641 drivers/usb/misc/ftdi-elan.c urb->actual_length; urb 1657 drivers/usb/misc/ftdi-elan.c target->urb = urb; urb 1672 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1673 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1678 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_output(ftdi, ed_number, endp, urb, address, urb 1685 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1686 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1700 drivers/usb/misc/ftdi-elan.c u32 remaining_length = urb->transfer_buffer_length - urb 1701 drivers/usb/misc/ftdi-elan.c urb->actual_length; urb 1715 drivers/usb/misc/ftdi-elan.c command->width = usb_maxpacket(urb->dev, urb->pipe, urb 1716 drivers/usb/misc/ftdi-elan.c usb_pipeout(urb->pipe)); urb 1722 drivers/usb/misc/ftdi-elan.c target->urb = urb; urb 1737 drivers/usb/misc/ftdi-elan.c void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 1738 drivers/usb/misc/ftdi-elan.c void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 1743 drivers/usb/misc/ftdi-elan.c return ftdi_elan_edset_single(ftdi, ed_number, endp, urb, address, urb 1885 drivers/usb/misc/ftdi-elan.c struct urb *urb; urb 1889 drivers/usb/misc/ftdi-elan.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1890 drivers/usb/misc/ftdi-elan.c if (!urb) urb 1892 drivers/usb/misc/ftdi-elan.c buf = usb_alloc_coherent(ftdi->udev, I, GFP_KERNEL, &urb->transfer_dma); urb 1895 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 1900 drivers/usb/misc/ftdi-elan.c usb_fill_bulk_urb(urb, ftdi->udev, usb_sndbulkpipe(ftdi->udev, urb 1903 drivers/usb/misc/ftdi-elan.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1904 drivers/usb/misc/ftdi-elan.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 1907 drivers/usb/misc/ftdi-elan.c usb_free_coherent(ftdi->udev, i, buf, urb->transfer_dma); urb 1908 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 1911 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 1923 drivers/usb/misc/ftdi-elan.c struct urb *urb; urb 1927 drivers/usb/misc/ftdi-elan.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1928 drivers/usb/misc/ftdi-elan.c if (!urb) urb 1930 drivers/usb/misc/ftdi-elan.c buf = usb_alloc_coherent(ftdi->udev, I, GFP_KERNEL, &urb->transfer_dma); urb 1933 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 1940 drivers/usb/misc/ftdi-elan.c usb_fill_bulk_urb(urb, ftdi->udev, usb_sndbulkpipe(ftdi->udev, urb 1943 drivers/usb/misc/ftdi-elan.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1944 drivers/usb/misc/ftdi-elan.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 1947 drivers/usb/misc/ftdi-elan.c usb_free_coherent(ftdi->udev, i, buf, urb->transfer_dma); urb 1948 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 1951 drivers/usb/misc/ftdi-elan.c usb_free_urb(urb); urb 79 drivers/usb/misc/iowarrior.c struct urb *int_in_urb; /* the urb for reading data */ urb 156 drivers/usb/misc/iowarrior.c static void iowarrior_callback(struct urb *urb) urb 158 drivers/usb/misc/iowarrior.c struct iowarrior *dev = urb->context; urb 163 drivers/usb/misc/iowarrior.c int status = urb->status; urb 189 drivers/usb/misc/iowarrior.c (dev->read_queue + offset, urb->transfer_buffer, urb 207 drivers/usb/misc/iowarrior.c memcpy(dev->read_queue + offset, urb->transfer_buffer, urb 216 drivers/usb/misc/iowarrior.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 226 drivers/usb/misc/iowarrior.c static void iowarrior_write_callback(struct urb *urb) urb 229 drivers/usb/misc/iowarrior.c int status = urb->status; urb 231 drivers/usb/misc/iowarrior.c dev = urb->context; urb 240 drivers/usb/misc/iowarrior.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 241 drivers/usb/misc/iowarrior.c urb->transfer_buffer, urb->transfer_dma); urb 349 drivers/usb/misc/iowarrior.c struct urb *int_out_urb = NULL; urb 169 drivers/usb/misc/ldusb.c struct urb *interrupt_in_urb; urb 179 drivers/usb/misc/ldusb.c struct urb *interrupt_out_urb; urb 219 drivers/usb/misc/ldusb.c static void ld_usb_interrupt_in_callback(struct urb *urb) urb 221 drivers/usb/misc/ldusb.c struct ld_usb *dev = urb->context; urb 224 drivers/usb/misc/ldusb.c int status = urb->status; urb 243 drivers/usb/misc/ldusb.c if (urb->actual_length > 0) { urb 248 drivers/usb/misc/ldusb.c *actual_buffer = urb->actual_length; urb 249 drivers/usb/misc/ldusb.c memcpy(actual_buffer+1, dev->interrupt_in_buffer, urb->actual_length); urb 252 drivers/usb/misc/ldusb.c __func__, urb->actual_length); urb 256 drivers/usb/misc/ldusb.c urb->actual_length); urb 280 drivers/usb/misc/ldusb.c static void ld_usb_interrupt_out_callback(struct urb *urb) urb 282 drivers/usb/misc/ldusb.c struct ld_usb *dev = urb->context; urb 283 drivers/usb/misc/ldusb.c int status = urb->status; urb 207 drivers/usb/misc/legousbtower.c struct urb* interrupt_in_urb; urb 214 drivers/usb/misc/legousbtower.c struct urb* interrupt_out_urb; urb 232 drivers/usb/misc/legousbtower.c static void tower_interrupt_in_callback (struct urb *urb); urb 233 drivers/usb/misc/legousbtower.c static void tower_interrupt_out_callback (struct urb *urb); urb 706 drivers/usb/misc/legousbtower.c static void tower_interrupt_in_callback (struct urb *urb) urb 708 drivers/usb/misc/legousbtower.c struct lego_usb_tower *dev = urb->context; urb 709 drivers/usb/misc/legousbtower.c int status = urb->status; urb 714 drivers/usb/misc/legousbtower.c urb->actual_length, urb->transfer_buffer); urb 729 drivers/usb/misc/legousbtower.c if (urb->actual_length > 0) { urb 731 drivers/usb/misc/legousbtower.c if (dev->read_buffer_length + urb->actual_length < read_buffer_size) { urb 734 drivers/usb/misc/legousbtower.c urb->actual_length); urb 735 drivers/usb/misc/legousbtower.c dev->read_buffer_length += urb->actual_length; urb 738 drivers/usb/misc/legousbtower.c __func__, urb->actual_length); urb 741 drivers/usb/misc/legousbtower.c urb->actual_length); urb 765 drivers/usb/misc/legousbtower.c static void tower_interrupt_out_callback (struct urb *urb) urb 767 drivers/usb/misc/legousbtower.c struct lego_usb_tower *dev = urb->context; urb 768 drivers/usb/misc/legousbtower.c int status = urb->status; urb 771 drivers/usb/misc/legousbtower.c urb->actual_length, urb->transfer_buffer); urb 33 drivers/usb/misc/lvstest.c struct urb *urb; urb 380 drivers/usb/misc/lvstest.c ret = usb_submit_urb(lvs->urb, GFP_KERNEL); urb 385 drivers/usb/misc/lvstest.c static void lvs_rh_irq(struct urb *urb) urb 387 drivers/usb/misc/lvstest.c struct lvs_rh *lvs = urb->context; urb 433 drivers/usb/misc/lvstest.c lvs->urb = usb_alloc_urb(0, GFP_KERNEL); urb 434 drivers/usb/misc/lvstest.c if (!lvs->urb) urb 441 drivers/usb/misc/lvstest.c usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, urb 444 drivers/usb/misc/lvstest.c ret = usb_submit_urb(lvs->urb, GFP_KERNEL); urb 453 drivers/usb/misc/lvstest.c usb_free_urb(lvs->urb); urb 461 drivers/usb/misc/lvstest.c usb_poison_urb(lvs->urb); /* used in scheduled work */ urb 463 drivers/usb/misc/lvstest.c usb_free_urb(lvs->urb); urb 191 drivers/usb/misc/sisusbvga/sisusb.c static void sisusb_bulk_completeout(struct urb *urb) urb 193 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_urb_context *context = urb->context; urb 206 drivers/usb/misc/sisusbvga/sisusb.c *(context->actual_length) += urb->actual_length; urb 217 drivers/usb/misc/sisusbvga/sisusb.c struct urb *urb = sisusb->sisurbout[index]; urb 221 drivers/usb/misc/sisusbvga/sisusb.c urb->transfer_flags = 0; urb 223 drivers/usb/misc/sisusbvga/sisusb.c usb_fill_bulk_urb(urb, sisusb->sisusb_dev, pipe, data, len, urb 227 drivers/usb/misc/sisusbvga/sisusb.c urb->transfer_flags |= tflags; urb 228 drivers/usb/misc/sisusbvga/sisusb.c urb->actual_length = 0; urb 238 drivers/usb/misc/sisusbvga/sisusb.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 247 drivers/usb/misc/sisusbvga/sisusb.c usb_kill_urb(urb); urb 251 drivers/usb/misc/sisusbvga/sisusb.c retval = urb->status; urb 252 drivers/usb/misc/sisusbvga/sisusb.c byteswritten = urb->actual_length; urb 266 drivers/usb/misc/sisusbvga/sisusb.c static void sisusb_bulk_completein(struct urb *urb) urb 268 drivers/usb/misc/sisusbvga/sisusb.c struct sisusb_usb_data *sisusb = urb->context; urb 281 drivers/usb/misc/sisusbvga/sisusb.c struct urb *urb = sisusb->sisurbin; urb 284 drivers/usb/misc/sisusbvga/sisusb.c urb->transfer_flags = 0; urb 286 drivers/usb/misc/sisusbvga/sisusb.c usb_fill_bulk_urb(urb, sisusb->sisusb_dev, pipe, data, len, urb 289 drivers/usb/misc/sisusbvga/sisusb.c urb->transfer_flags |= tflags; urb 290 drivers/usb/misc/sisusbvga/sisusb.c urb->actual_length = 0; urb 293 drivers/usb/misc/sisusbvga/sisusb.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 298 drivers/usb/misc/sisusbvga/sisusb.c usb_kill_urb(urb); urb 302 drivers/usb/misc/sisusbvga/sisusb.c retval = urb->status; urb 303 drivers/usb/misc/sisusbvga/sisusb.c readbytes = urb->actual_length; urb 114 drivers/usb/misc/sisusbvga/sisusb.h struct urb *sisurbout[NUMOBUFS]; urb 115 drivers/usb/misc/sisusbvga/sisusb.h struct urb *sisurbin; urb 68 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 69 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 73 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 74 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 78 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 79 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 83 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 84 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 88 drivers/usb/misc/usb_u132.h void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, urb 89 drivers/usb/misc/usb_u132.h void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, urb 196 drivers/usb/misc/usblcd.c static void lcd_write_bulk_callback(struct urb *urb) urb 199 drivers/usb/misc/usblcd.c int status = urb->status; urb 201 drivers/usb/misc/usblcd.c dev = urb->context; urb 213 drivers/usb/misc/usblcd.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 214 drivers/usb/misc/usblcd.c urb->transfer_buffer, urb->transfer_dma); urb 223 drivers/usb/misc/usblcd.c struct urb *urb = NULL; urb 244 drivers/usb/misc/usblcd.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 245 drivers/usb/misc/usblcd.c if (!urb) { urb 251 drivers/usb/misc/usblcd.c &urb->transfer_dma); urb 263 drivers/usb/misc/usblcd.c usb_fill_bulk_urb(urb, dev->udev, urb 267 drivers/usb/misc/usblcd.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 269 drivers/usb/misc/usblcd.c usb_anchor_urb(urb, &dev->submitted); urb 272 drivers/usb/misc/usblcd.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 282 drivers/usb/misc/usblcd.c usb_free_urb(urb); urb 288 drivers/usb/misc/usblcd.c usb_unanchor_urb(urb); urb 290 drivers/usb/misc/usblcd.c usb_free_coherent(dev->udev, count, buf, urb->transfer_dma); urb 291 drivers/usb/misc/usblcd.c usb_free_urb(urb); urb 21 drivers/usb/misc/usbtest.c static void complicated_callback(struct urb *urb); urb 252 drivers/usb/misc/usbtest.c static void simple_callback(struct urb *urb) urb 254 drivers/usb/misc/usbtest.c complete(urb->context); urb 257 drivers/usb/misc/usbtest.c static struct urb *usbtest_alloc_urb( urb 266 drivers/usb/misc/usbtest.c struct urb *urb; urb 268 drivers/usb/misc/usbtest.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 269 drivers/usb/misc/usbtest.c if (!urb) urb 270 drivers/usb/misc/usbtest.c return urb; urb 273 drivers/usb/misc/usbtest.c usb_fill_int_urb(urb, udev, pipe, NULL, bytes, complete_fn, urb 276 drivers/usb/misc/usbtest.c usb_fill_bulk_urb(urb, udev, pipe, NULL, bytes, complete_fn, urb 279 drivers/usb/misc/usbtest.c urb->interval = (udev->speed == USB_SPEED_HIGH) urb 282 drivers/usb/misc/usbtest.c urb->transfer_flags = transfer_flags; urb 284 drivers/usb/misc/usbtest.c urb->transfer_flags |= URB_SHORT_NOT_OK; urb 287 drivers/usb/misc/usbtest.c return urb; urb 289 drivers/usb/misc/usbtest.c if (urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP) urb 290 drivers/usb/misc/usbtest.c urb->transfer_buffer = usb_alloc_coherent(udev, bytes + offset, urb 291 drivers/usb/misc/usbtest.c GFP_KERNEL, &urb->transfer_dma); urb 293 drivers/usb/misc/usbtest.c urb->transfer_buffer = kmalloc(bytes + offset, GFP_KERNEL); urb 295 drivers/usb/misc/usbtest.c if (!urb->transfer_buffer) { urb 296 drivers/usb/misc/usbtest.c usb_free_urb(urb); urb 303 drivers/usb/misc/usbtest.c memset(urb->transfer_buffer, GUARD_BYTE, offset); urb 304 drivers/usb/misc/usbtest.c urb->transfer_buffer += offset; urb 305 drivers/usb/misc/usbtest.c if (urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP) urb 306 drivers/usb/misc/usbtest.c urb->transfer_dma += offset; urb 311 drivers/usb/misc/usbtest.c memset(urb->transfer_buffer, urb 312 drivers/usb/misc/usbtest.c usb_pipein(urb->pipe) ? GUARD_BYTE : 0, urb 314 drivers/usb/misc/usbtest.c return urb; urb 317 drivers/usb/misc/usbtest.c static struct urb *simple_alloc_urb( urb 327 drivers/usb/misc/usbtest.c static struct urb *complicated_alloc_urb( urb 358 drivers/usb/misc/usbtest.c static void simple_fill_buf(struct urb *urb) urb 361 drivers/usb/misc/usbtest.c u8 *buf = urb->transfer_buffer; urb 362 drivers/usb/misc/usbtest.c unsigned len = urb->transfer_buffer_length; urb 372 drivers/usb/misc/usbtest.c maxpacket = get_maxpacket(urb->dev, urb->pipe); urb 384 drivers/usb/misc/usbtest.c static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb) urb 386 drivers/usb/misc/usbtest.c u8 *buf = urb->transfer_buffer; urb 400 drivers/usb/misc/usbtest.c static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb) urb 404 drivers/usb/misc/usbtest.c u8 *buf = urb->transfer_buffer; urb 405 drivers/usb/misc/usbtest.c unsigned len = urb->actual_length; urb 406 drivers/usb/misc/usbtest.c unsigned maxpacket = get_maxpacket(urb->dev, urb->pipe); urb 408 drivers/usb/misc/usbtest.c int ret = check_guard_bytes(tdev, urb); urb 439 drivers/usb/misc/usbtest.c static void simple_free_urb(struct urb *urb) urb 441 drivers/usb/misc/usbtest.c unsigned long offset = buffer_offset(urb->transfer_buffer); urb 443 drivers/usb/misc/usbtest.c if (urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP) urb 445 drivers/usb/misc/usbtest.c urb->dev, urb 446 drivers/usb/misc/usbtest.c urb->transfer_buffer_length + offset, urb 447 drivers/usb/misc/usbtest.c urb->transfer_buffer - offset, urb 448 drivers/usb/misc/usbtest.c urb->transfer_dma - offset); urb 450 drivers/usb/misc/usbtest.c kfree(urb->transfer_buffer - offset); urb 451 drivers/usb/misc/usbtest.c usb_free_urb(urb); urb 456 drivers/usb/misc/usbtest.c struct urb *urb, urb 463 drivers/usb/misc/usbtest.c struct usb_device *udev = urb->dev; urb 464 drivers/usb/misc/usbtest.c int max = urb->transfer_buffer_length; urb 469 drivers/usb/misc/usbtest.c urb->context = &completion; urb 472 drivers/usb/misc/usbtest.c if (usb_pipeout(urb->pipe)) { urb 473 drivers/usb/misc/usbtest.c simple_fill_buf(urb); urb 474 drivers/usb/misc/usbtest.c urb->transfer_flags |= URB_ZERO_PACKET; urb 476 drivers/usb/misc/usbtest.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 482 drivers/usb/misc/usbtest.c usb_kill_urb(urb); urb 483 drivers/usb/misc/usbtest.c retval = (urb->status == -ENOENT ? urb 484 drivers/usb/misc/usbtest.c -ETIMEDOUT : urb->status); urb 486 drivers/usb/misc/usbtest.c retval = urb->status; urb 489 drivers/usb/misc/usbtest.c urb->dev = udev; urb 490 drivers/usb/misc/usbtest.c if (retval == 0 && usb_pipein(urb->pipe)) urb 491 drivers/usb/misc/usbtest.c retval = simple_check_buf(tdev, urb); urb 494 drivers/usb/misc/usbtest.c int len = urb->transfer_buffer_length; urb 500 drivers/usb/misc/usbtest.c urb->transfer_buffer_length = len; urb 505 drivers/usb/misc/usbtest.c urb->transfer_buffer_length = max; urb 1074 drivers/usb/misc/usbtest.c struct urb **urb; urb 1087 drivers/usb/misc/usbtest.c static void ctrl_complete(struct urb *urb) urb 1089 drivers/usb/misc/usbtest.c struct ctrl_ctx *ctx = urb->context; urb 1092 drivers/usb/misc/usbtest.c int status = urb->status; urb 1095 drivers/usb/misc/usbtest.c reqp = (struct usb_ctrlrequest *)urb->setup_packet; urb 1149 drivers/usb/misc/usbtest.c urb->actual_length, urb 1150 drivers/usb/misc/usbtest.c urb->transfer_buffer_length); urb 1158 drivers/usb/misc/usbtest.c struct urb *u = ctx->urb[ urb 1162 drivers/usb/misc/usbtest.c if (u == urb || !u->dev) urb 1183 drivers/usb/misc/usbtest.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 1188 drivers/usb/misc/usbtest.c urb->dev = NULL; urb 1192 drivers/usb/misc/usbtest.c urb->dev = NULL; urb 1204 drivers/usb/misc/usbtest.c struct urb **urb; urb 1224 drivers/usb/misc/usbtest.c urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); urb 1225 drivers/usb/misc/usbtest.c if (!urb) urb 1230 drivers/usb/misc/usbtest.c struct urb *u; urb 1369 drivers/usb/misc/usbtest.c urb[i] = u = simple_alloc_urb(udev, pipe, len, 0); urb 1386 drivers/usb/misc/usbtest.c context.urb = urb; urb 1389 drivers/usb/misc/usbtest.c context.status = usb_submit_urb(urb[i], GFP_ATOMIC); urb 1408 drivers/usb/misc/usbtest.c if (!urb[i]) urb 1410 drivers/usb/misc/usbtest.c urb[i]->dev = udev; urb 1411 drivers/usb/misc/usbtest.c kfree(urb[i]->setup_packet); urb 1412 drivers/usb/misc/usbtest.c simple_free_urb(urb[i]); urb 1414 drivers/usb/misc/usbtest.c kfree(urb); urb 1422 drivers/usb/misc/usbtest.c static void unlink1_callback(struct urb *urb) urb 1424 drivers/usb/misc/usbtest.c int status = urb->status; urb 1428 drivers/usb/misc/usbtest.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 1430 drivers/usb/misc/usbtest.c urb->status = status; urb 1431 drivers/usb/misc/usbtest.c complete(urb->context); urb 1437 drivers/usb/misc/usbtest.c struct urb *urb; urb 1442 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(testdev_to_usbdev(dev), pipe, size, 0); urb 1443 drivers/usb/misc/usbtest.c if (!urb) urb 1445 drivers/usb/misc/usbtest.c urb->context = &completion; urb 1446 drivers/usb/misc/usbtest.c urb->complete = unlink1_callback; urb 1448 drivers/usb/misc/usbtest.c if (usb_pipeout(urb->pipe)) { urb 1449 drivers/usb/misc/usbtest.c simple_fill_buf(urb); urb 1450 drivers/usb/misc/usbtest.c urb->transfer_flags |= URB_ZERO_PACKET; urb 1459 drivers/usb/misc/usbtest.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 1471 drivers/usb/misc/usbtest.c retval = usb_unlink_urb(urb); urb 1473 drivers/usb/misc/usbtest.c if (retval == 0 && usb_pipein(urb->pipe)) urb 1474 drivers/usb/misc/usbtest.c retval = simple_check_buf(dev, urb); urb 1500 drivers/usb/misc/usbtest.c usb_kill_urb(urb); urb 1503 drivers/usb/misc/usbtest.c retval = urb->status; urb 1504 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 1531 drivers/usb/misc/usbtest.c struct urb **urbs; urb 1534 drivers/usb/misc/usbtest.c static void unlink_queued_callback(struct urb *urb) urb 1536 drivers/usb/misc/usbtest.c int status = urb->status; urb 1537 drivers/usb/misc/usbtest.c struct queued_ctx *ctx = urb->context; urb 1541 drivers/usb/misc/usbtest.c if (urb == ctx->urbs[ctx->num - 4] || urb == ctx->urbs[ctx->num - 2]) { urb 1575 drivers/usb/misc/usbtest.c ctx.urbs = kcalloc(num, sizeof(struct urb *), GFP_KERNEL); urb 1629 drivers/usb/misc/usbtest.c static int verify_not_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) urb 1635 drivers/usb/misc/usbtest.c retval = usb_get_std_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status); urb 1645 drivers/usb/misc/usbtest.c retval = simple_io(tdev, urb, 1, 0, 0, __func__); urb 1651 drivers/usb/misc/usbtest.c static int verify_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) urb 1657 drivers/usb/misc/usbtest.c retval = usb_get_std_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status); urb 1667 drivers/usb/misc/usbtest.c retval = simple_io(tdev, urb, 1, 0, -EPIPE, __func__); urb 1670 drivers/usb/misc/usbtest.c retval = simple_io(tdev, urb, 1, 0, -EPIPE, "verify_still_halted"); urb 1676 drivers/usb/misc/usbtest.c static int test_halt(struct usbtest_dev *tdev, int ep, struct urb *urb) urb 1681 drivers/usb/misc/usbtest.c retval = verify_not_halted(tdev, ep, urb); urb 1686 drivers/usb/misc/usbtest.c retval = usb_control_msg(urb->dev, usb_sndctrlpipe(urb->dev, 0), urb 1694 drivers/usb/misc/usbtest.c retval = verify_halted(tdev, ep, urb); urb 1699 drivers/usb/misc/usbtest.c ret = usb_clear_halt(urb->dev, urb->pipe); urb 1708 drivers/usb/misc/usbtest.c retval = usb_clear_halt(urb->dev, urb->pipe); urb 1713 drivers/usb/misc/usbtest.c retval = verify_not_halted(tdev, ep, urb); urb 1722 drivers/usb/misc/usbtest.c static int test_toggle_sync(struct usbtest_dev *tdev, int ep, struct urb *urb) urb 1727 drivers/usb/misc/usbtest.c retval = usb_clear_halt(urb->dev, urb->pipe); urb 1734 drivers/usb/misc/usbtest.c retval = simple_io(tdev, urb, 1, 0, 0, __func__); urb 1739 drivers/usb/misc/usbtest.c retval = usb_clear_halt(urb->dev, urb->pipe); urb 1746 drivers/usb/misc/usbtest.c retval = simple_io(tdev, urb, 1, 0, 0, __func__); urb 1755 drivers/usb/misc/usbtest.c struct urb *urb; urb 1759 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(udev, 0, 1024, 0); urb 1761 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(udev, 0, 512, 0); urb 1762 drivers/usb/misc/usbtest.c if (urb == NULL) urb 1767 drivers/usb/misc/usbtest.c urb->pipe = dev->in_pipe; urb 1768 drivers/usb/misc/usbtest.c retval = test_halt(dev, ep, urb); urb 1775 drivers/usb/misc/usbtest.c urb->pipe = dev->out_pipe; urb 1776 drivers/usb/misc/usbtest.c retval = test_halt(dev, ep, urb); urb 1779 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 1787 drivers/usb/misc/usbtest.c struct urb *urb; urb 1796 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(udev, 0, 2 * maxp, 0); urb 1797 drivers/usb/misc/usbtest.c if (urb == NULL) urb 1800 drivers/usb/misc/usbtest.c urb->transfer_flags |= URB_ZERO_PACKET; urb 1803 drivers/usb/misc/usbtest.c urb->pipe = dev->out_pipe; urb 1804 drivers/usb/misc/usbtest.c retval = test_toggle_sync(dev, ep, urb); urb 1806 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 1926 drivers/usb/misc/usbtest.c static void complicated_callback(struct urb *urb) urb 1928 drivers/usb/misc/usbtest.c struct transfer_context *ctx = urb->context; urb 1934 drivers/usb/misc/usbtest.c ctx->packet_count += urb->number_of_packets; urb 1935 drivers/usb/misc/usbtest.c if (urb->error_count > 0) urb 1936 drivers/usb/misc/usbtest.c ctx->errors += urb->error_count; urb 1937 drivers/usb/misc/usbtest.c else if (urb->status != 0) urb 1938 drivers/usb/misc/usbtest.c ctx->errors += (ctx->is_iso ? urb->number_of_packets : 1); urb 1939 drivers/usb/misc/usbtest.c else if (urb->actual_length != urb->transfer_buffer_length) urb 1941 drivers/usb/misc/usbtest.c else if (check_guard_bytes(ctx->dev, urb) != 0) urb 1944 drivers/usb/misc/usbtest.c if (urb->status == 0 && ctx->count > (ctx->pending - 1) urb 1946 drivers/usb/misc/usbtest.c int status = usb_submit_urb(urb, GFP_ATOMIC); urb 1974 drivers/usb/misc/usbtest.c static struct urb *iso_alloc_urb( urb 1982 drivers/usb/misc/usbtest.c struct urb *urb; urb 1996 drivers/usb/misc/usbtest.c urb = usb_alloc_urb(packets, GFP_KERNEL); urb 1997 drivers/usb/misc/usbtest.c if (!urb) urb 1998 drivers/usb/misc/usbtest.c return urb; urb 1999 drivers/usb/misc/usbtest.c urb->dev = udev; urb 2000 drivers/usb/misc/usbtest.c urb->pipe = pipe; urb 2002 drivers/usb/misc/usbtest.c urb->number_of_packets = packets; urb 2003 drivers/usb/misc/usbtest.c urb->transfer_buffer_length = bytes; urb 2004 drivers/usb/misc/usbtest.c urb->transfer_buffer = usb_alloc_coherent(udev, bytes + offset, urb 2006 drivers/usb/misc/usbtest.c &urb->transfer_dma); urb 2007 drivers/usb/misc/usbtest.c if (!urb->transfer_buffer) { urb 2008 drivers/usb/misc/usbtest.c usb_free_urb(urb); urb 2012 drivers/usb/misc/usbtest.c memset(urb->transfer_buffer, GUARD_BYTE, offset); urb 2013 drivers/usb/misc/usbtest.c urb->transfer_buffer += offset; urb 2014 drivers/usb/misc/usbtest.c urb->transfer_dma += offset; urb 2018 drivers/usb/misc/usbtest.c memset(urb->transfer_buffer, urb 2019 drivers/usb/misc/usbtest.c usb_pipein(urb->pipe) ? GUARD_BYTE : 0, urb 2024 drivers/usb/misc/usbtest.c urb->iso_frame_desc[i].length = min((unsigned) bytes, maxp); urb 2025 drivers/usb/misc/usbtest.c bytes -= urb->iso_frame_desc[i].length; urb 2027 drivers/usb/misc/usbtest.c urb->iso_frame_desc[i].offset = maxp * i; urb 2030 drivers/usb/misc/usbtest.c urb->complete = complicated_callback; urb 2032 drivers/usb/misc/usbtest.c urb->interval = 1 << (desc->bInterval - 1); urb 2033 drivers/usb/misc/usbtest.c urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; urb 2034 drivers/usb/misc/usbtest.c return urb; urb 2046 drivers/usb/misc/usbtest.c struct urb *urbs[MAX_SGLEN]; urb 2159 drivers/usb/misc/usbtest.c struct urb *urb = usbtest_alloc_urb(testdev_to_usbdev(tdev), urb 2162 drivers/usb/misc/usbtest.c if (!urb) urb 2165 drivers/usb/misc/usbtest.c retval = simple_io(tdev, urb, iterations, 0, 0, label); urb 2166 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 2176 drivers/usb/misc/usbtest.c struct urb *urb; urb 2209 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(udev, dev->out_pipe, param->length, 0); urb 2210 drivers/usb/misc/usbtest.c if (!urb) { urb 2215 drivers/usb/misc/usbtest.c retval = simple_io(dev, urb, param->iterations, 0, 0, "test1"); urb 2216 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 2224 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(udev, dev->in_pipe, param->length, 0); urb 2225 drivers/usb/misc/usbtest.c if (!urb) { urb 2230 drivers/usb/misc/usbtest.c retval = simple_io(dev, urb, param->iterations, 0, 0, "test2"); urb 2231 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 2239 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(udev, dev->out_pipe, param->length, 0); urb 2240 drivers/usb/misc/usbtest.c if (!urb) { urb 2245 drivers/usb/misc/usbtest.c retval = simple_io(dev, urb, param->iterations, param->vary, urb 2247 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 2255 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(udev, dev->in_pipe, param->length, 0); urb 2256 drivers/usb/misc/usbtest.c if (!urb) { urb 2261 drivers/usb/misc/usbtest.c retval = simple_io(dev, urb, param->iterations, param->vary, urb 2263 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 2563 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(udev, dev->out_int_pipe, param->length, urb 2565 drivers/usb/misc/usbtest.c if (!urb) { urb 2570 drivers/usb/misc/usbtest.c retval = simple_io(dev, urb, param->iterations, 0, 0, "test25"); urb 2571 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 2579 drivers/usb/misc/usbtest.c urb = simple_alloc_urb(udev, dev->in_int_pipe, param->length, urb 2581 drivers/usb/misc/usbtest.c if (!urb) { urb 2586 drivers/usb/misc/usbtest.c retval = simple_io(dev, urb, param->iterations, 0, 0, "test26"); urb 2587 drivers/usb/misc/usbtest.c simple_free_urb(urb); urb 61 drivers/usb/misc/uss720.c struct urb *urb; urb 83 drivers/usb/misc/uss720.c if (likely(rq->urb)) urb 84 drivers/usb/misc/uss720.c usb_free_urb(rq->urb); urb 95 drivers/usb/misc/uss720.c static void async_complete(struct urb *urb) urb 100 drivers/usb/misc/uss720.c int status = urb->status; urb 102 drivers/usb/misc/uss720.c rq = urb->context; urb 106 drivers/usb/misc/uss720.c dev_err(&urb->dev->dev, "async_complete: urb error %d\n", urb 144 drivers/usb/misc/uss720.c rq->urb = usb_alloc_urb(0, mem_flags); urb 145 drivers/usb/misc/uss720.c if (!rq->urb) { urb 159 drivers/usb/misc/uss720.c usb_fill_control_urb(rq->urb, usbdev, (requesttype & 0x80) ? usb_rcvctrlpipe(usbdev, 0) : usb_sndctrlpipe(usbdev, 0), urb 167 drivers/usb/misc/uss720.c ret = usb_submit_urb(rq->urb, mem_flags); urb 183 drivers/usb/misc/uss720.c usb_unlink_urb(rq->urb); urb 215 drivers/usb/misc/uss720.c ret = rq->urb->status; urb 55 drivers/usb/misc/yurex.c struct urb *urb; /* URB for interrupt in */ urb 57 drivers/usb/misc/yurex.c struct urb *cntl_urb; /* URB for control msg */ urb 76 drivers/usb/misc/yurex.c static void yurex_control_callback(struct urb *urb) urb 78 drivers/usb/misc/yurex.c struct usb_yurex *dev = urb->context; urb 79 drivers/usb/misc/yurex.c int status = urb->status; urb 82 drivers/usb/misc/yurex.c dev_err(&urb->dev->dev, "%s - control failed: %d\n", urb 104 drivers/usb/misc/yurex.c if (dev->urb) { urb 105 drivers/usb/misc/yurex.c usb_kill_urb(dev->urb); urb 108 drivers/usb/misc/yurex.c dev->int_buffer, dev->urb->transfer_dma); urb 109 drivers/usb/misc/yurex.c usb_free_urb(dev->urb); urb 126 drivers/usb/misc/yurex.c static void yurex_interrupt(struct urb *urb) urb 128 drivers/usb/misc/yurex.c struct usb_yurex *dev = urb->context; urb 130 drivers/usb/misc/yurex.c int status = urb->status; urb 141 drivers/usb/misc/yurex.c __func__, YUREX_BUF_SIZE, dev->urb->actual_length); urb 184 drivers/usb/misc/yurex.c retval = usb_submit_urb(dev->urb, GFP_ATOMIC); urb 258 drivers/usb/misc/yurex.c dev->urb = usb_alloc_urb(0, GFP_KERNEL); urb 259 drivers/usb/misc/yurex.c if (!dev->urb) urb 264 drivers/usb/misc/yurex.c GFP_KERNEL, &dev->urb->transfer_dma); urb 271 drivers/usb/misc/yurex.c usb_fill_int_urb(dev->urb, dev->udev, urb 275 drivers/usb/misc/yurex.c dev->urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 276 drivers/usb/misc/yurex.c if (usb_submit_urb(dev->urb, GFP_KERNEL)) { urb 320 drivers/usb/misc/yurex.c usb_poison_urb(dev->urb); urb 394 drivers/usb/mon/mon_bin.c const struct urb *urb, char ev_type) urb 397 drivers/usb/mon/mon_bin.c if (urb->setup_packet == NULL) urb 399 drivers/usb/mon/mon_bin.c memcpy(setupb, urb->setup_packet, SETUP_LEN); urb 404 drivers/usb/mon/mon_bin.c unsigned int offset, struct urb *urb, unsigned int length, urb 412 drivers/usb/mon/mon_bin.c if (urb->num_sgs == 0) { urb 413 drivers/usb/mon/mon_bin.c if (urb->transfer_buffer == NULL) { urb 417 drivers/usb/mon/mon_bin.c mon_copy_to_buff(rp, offset, urb->transfer_buffer, length); urb 422 drivers/usb/mon/mon_bin.c if (urb->transfer_flags & URB_DMA_SG_COMBINED) { urb 428 drivers/usb/mon/mon_bin.c for_each_sg(urb->sg, sg, urb->num_sgs, i) { urb 448 drivers/usb/mon/mon_bin.c struct urb *urb, unsigned int ndesc) urb 454 drivers/usb/mon/mon_bin.c fp = urb->iso_frame_desc; urb 466 drivers/usb/mon/mon_bin.c unsigned int offset, struct urb *urb, char ev_type, unsigned int ndesc) urb 471 drivers/usb/mon/mon_bin.c fp = urb->iso_frame_desc; urb 485 drivers/usb/mon/mon_bin.c static void mon_bin_event(struct mon_reader_bin *rp, struct urb *urb, urb 488 drivers/usb/mon/mon_bin.c const struct usb_endpoint_descriptor *epd = &urb->ep->desc; urb 508 drivers/usb/mon/mon_bin.c urb->transfer_buffer_length : urb->actual_length; urb 512 drivers/usb/mon/mon_bin.c if (urb->number_of_packets < 0) { urb 514 drivers/usb/mon/mon_bin.c } else if (urb->number_of_packets >= ISODESC_MAX) { urb 517 drivers/usb/mon/mon_bin.c ndesc = urb->number_of_packets; urb 519 drivers/usb/mon/mon_bin.c if (ev_type == 'C' && usb_urb_dir_in(urb)) urb 520 drivers/usb/mon/mon_bin.c length = mon_bin_collate_isodesc(rp, urb, ndesc); urb 527 drivers/usb/mon/mon_bin.c if (length >= urb->transfer_buffer_length) urb 528 drivers/usb/mon/mon_bin.c length = urb->transfer_buffer_length; urb 533 drivers/usb/mon/mon_bin.c if (usb_urb_dir_in(urb)) { urb 570 drivers/usb/mon/mon_bin.c ep->devnum = urb->dev->devnum; urb 571 drivers/usb/mon/mon_bin.c ep->busnum = urb->dev->bus->busnum; urb 572 drivers/usb/mon/mon_bin.c ep->id = (unsigned long) urb; urb 578 drivers/usb/mon/mon_bin.c ep->xfer_flags = urb->transfer_flags; urb 581 drivers/usb/mon/mon_bin.c ep->interval = urb->interval; urb 583 drivers/usb/mon/mon_bin.c ep->interval = urb->interval; urb 584 drivers/usb/mon/mon_bin.c ep->start_frame = urb->start_frame; urb 585 drivers/usb/mon/mon_bin.c ep->s.iso.error_count = urb->error_count; urb 586 drivers/usb/mon/mon_bin.c ep->s.iso.numdesc = urb->number_of_packets; urb 590 drivers/usb/mon/mon_bin.c ep->flag_setup = mon_bin_get_setup(ep->s.setup, urb, ev_type); urb 597 drivers/usb/mon/mon_bin.c mon_bin_get_isodesc(rp, offset, urb, ev_type, ndesc); urb 603 drivers/usb/mon/mon_bin.c length = mon_bin_get_data(rp, offset, urb, length, urb 620 drivers/usb/mon/mon_bin.c static void mon_bin_submit(void *data, struct urb *urb) urb 623 drivers/usb/mon/mon_bin.c mon_bin_event(rp, urb, 'S', -EINPROGRESS); urb 626 drivers/usb/mon/mon_bin.c static void mon_bin_complete(void *data, struct urb *urb, int status) urb 629 drivers/usb/mon/mon_bin.c mon_bin_event(rp, urb, 'C', status); urb 632 drivers/usb/mon/mon_bin.c static void mon_bin_error(void *data, struct urb *urb, int error) urb 655 drivers/usb/mon/mon_bin.c ep->xfer_type = xfer_to_pipe[usb_endpoint_type(&urb->ep->desc)]; urb 656 drivers/usb/mon/mon_bin.c ep->epnum = usb_urb_dir_in(urb) ? USB_DIR_IN : 0; urb 657 drivers/usb/mon/mon_bin.c ep->epnum |= usb_endpoint_num(&urb->ep->desc); urb 658 drivers/usb/mon/mon_bin.c ep->devnum = urb->dev->devnum; urb 659 drivers/usb/mon/mon_bin.c ep->busnum = urb->dev->bus->busnum; urb 660 drivers/usb/mon/mon_bin.c ep->id = (unsigned long) urb; urb 81 drivers/usb/mon/mon_main.c static void mon_bus_submit(struct mon_bus *mbus, struct urb *urb) urb 91 drivers/usb/mon/mon_main.c r->rnf_submit(r->r_data, urb); urb 96 drivers/usb/mon/mon_main.c static void mon_submit(struct usb_bus *ubus, struct urb *urb) urb 102 drivers/usb/mon/mon_main.c mon_bus_submit(mbus, urb); urb 103 drivers/usb/mon/mon_main.c mon_bus_submit(&mon_bus0, urb); urb 108 drivers/usb/mon/mon_main.c static void mon_bus_submit_error(struct mon_bus *mbus, struct urb *urb, int error) urb 118 drivers/usb/mon/mon_main.c r->rnf_error(r->r_data, urb, error); urb 123 drivers/usb/mon/mon_main.c static void mon_submit_error(struct usb_bus *ubus, struct urb *urb, int error) urb 129 drivers/usb/mon/mon_main.c mon_bus_submit_error(mbus, urb, error); urb 130 drivers/usb/mon/mon_main.c mon_bus_submit_error(&mon_bus0, urb, error); urb 135 drivers/usb/mon/mon_main.c static void mon_bus_complete(struct mon_bus *mbus, struct urb *urb, int status) urb 145 drivers/usb/mon/mon_main.c r->rnf_complete(r->r_data, urb, status); urb 150 drivers/usb/mon/mon_main.c static void mon_complete(struct usb_bus *ubus, struct urb *urb, int status) urb 156 drivers/usb/mon/mon_main.c mon_bus_complete(mbus, urb, status); urb 157 drivers/usb/mon/mon_main.c mon_bus_complete(&mon_bus0, urb, status); urb 132 drivers/usb/mon/mon_text.c struct urb *urb, char ev_type, struct mon_bus *mbus) urb 138 drivers/usb/mon/mon_text.c if (urb->setup_packet == NULL) urb 141 drivers/usb/mon/mon_text.c memcpy(ep->setup, urb->setup_packet, SETUP_MAX); urb 145 drivers/usb/mon/mon_text.c static inline char mon_text_get_data(struct mon_event_text *ep, struct urb *urb, urb 163 drivers/usb/mon/mon_text.c if (urb->num_sgs == 0) { urb 164 drivers/usb/mon/mon_text.c src = urb->transfer_buffer; urb 168 drivers/usb/mon/mon_text.c struct scatterlist *sg = urb->sg; urb 193 drivers/usb/mon/mon_text.c static void mon_text_event(struct mon_reader_text *rp, struct urb *urb, urb 211 drivers/usb/mon/mon_text.c ep->id = (unsigned long) urb; urb 212 drivers/usb/mon/mon_text.c ep->busnum = urb->dev->bus->busnum; urb 213 drivers/usb/mon/mon_text.c ep->devnum = urb->dev->devnum; urb 214 drivers/usb/mon/mon_text.c ep->epnum = usb_endpoint_num(&urb->ep->desc); urb 215 drivers/usb/mon/mon_text.c ep->xfertype = usb_endpoint_type(&urb->ep->desc); urb 216 drivers/usb/mon/mon_text.c ep->is_in = usb_urb_dir_in(urb); urb 219 drivers/usb/mon/mon_text.c urb->transfer_buffer_length : urb->actual_length; urb 224 drivers/usb/mon/mon_text.c ep->interval = urb->interval; urb 226 drivers/usb/mon/mon_text.c ep->interval = urb->interval; urb 227 drivers/usb/mon/mon_text.c ep->start_frame = urb->start_frame; urb 228 drivers/usb/mon/mon_text.c ep->error_count = urb->error_count; urb 230 drivers/usb/mon/mon_text.c ep->numdesc = urb->number_of_packets; urb 232 drivers/usb/mon/mon_text.c urb->number_of_packets > 0) { urb 233 drivers/usb/mon/mon_text.c if ((ndesc = urb->number_of_packets) > ISODESC_MAX) urb 235 drivers/usb/mon/mon_text.c fp = urb->iso_frame_desc; urb 247 drivers/usb/mon/mon_text.c ep->length = urb->transfer_buffer_length; urb 250 drivers/usb/mon/mon_text.c ep->setup_flag = mon_text_get_setup(ep, urb, ev_type, rp->r.m_bus); urb 251 drivers/usb/mon/mon_text.c ep->data_flag = mon_text_get_data(ep, urb, ep->length, ev_type, urb 259 drivers/usb/mon/mon_text.c static void mon_text_submit(void *data, struct urb *urb) urb 262 drivers/usb/mon/mon_text.c mon_text_event(rp, urb, 'S', -EINPROGRESS); urb 265 drivers/usb/mon/mon_text.c static void mon_text_complete(void *data, struct urb *urb, int status) urb 268 drivers/usb/mon/mon_text.c mon_text_event(rp, urb, 'C', status); urb 271 drivers/usb/mon/mon_text.c static void mon_text_error(void *data, struct urb *urb, int error) urb 283 drivers/usb/mon/mon_text.c ep->id = (unsigned long) urb; urb 284 drivers/usb/mon/mon_text.c ep->busnum = urb->dev->bus->busnum; urb 285 drivers/usb/mon/mon_text.c ep->devnum = urb->dev->devnum; urb 286 drivers/usb/mon/mon_text.c ep->epnum = usb_endpoint_num(&urb->ep->desc); urb 287 drivers/usb/mon/mon_text.c ep->xfertype = usb_endpoint_type(&urb->ep->desc); urb 288 drivers/usb/mon/mon_text.c ep->is_in = usb_urb_dir_in(urb); urb 48 drivers/usb/mon/usb_mon.h void (*rnf_submit)(void *data, struct urb *urb); urb 49 drivers/usb/mon/usb_mon.h void (*rnf_error)(void *data, struct urb *urb, int error); urb 50 drivers/usb/mon/usb_mon.h void (*rnf_complete)(void *data, struct urb *urb, int status); urb 80 drivers/usb/musb/musb_host.c struct urb *urb, int is_out, urb 200 drivers/usb/musb/musb_host.c struct urb *urb = next_urb(qh); urb 201 drivers/usb/musb/musb_host.c void *buf = urb->transfer_buffer; urb 216 drivers/usb/musb/musb_host.c buf = urb->setup_packet; urb 222 drivers/usb/musb/musb_host.c offset = urb->iso_frame_desc[0].offset; urb 223 drivers/usb/musb/musb_host.c len = urb->iso_frame_desc[0].length; urb 227 drivers/usb/musb/musb_host.c buf = urb->transfer_buffer + urb->actual_length; urb 228 drivers/usb/musb/musb_host.c len = urb->transfer_buffer_length - urb->actual_length; urb 231 drivers/usb/musb/musb_host.c trace_musb_urb_start(musb, urb); urb 235 drivers/usb/musb/musb_host.c musb_ep_program(musb, epnum, urb, !is_in, buf, offset, len); urb 256 drivers/usb/musb/musb_host.c qh->frame = urb->start_frame; urb 277 drivers/usb/musb/musb_host.c static void musb_giveback(struct musb *musb, struct urb *urb, int status) urb 281 drivers/usb/musb/musb_host.c trace_musb_urb_gb(musb, urb); urb 283 drivers/usb/musb/musb_host.c usb_hcd_unlink_urb_from_ep(musb->hcd, urb); urb 285 drivers/usb/musb/musb_host.c usb_hcd_giveback_urb(musb->hcd, urb, status); urb 291 drivers/usb/musb/musb_host.c struct urb *urb) urb 306 drivers/usb/musb/musb_host.c usb_settoggle(urb->dev, qh->epnum, !is_in, csr ? 1 : 0); urb 316 drivers/usb/musb/musb_host.c static void musb_advance_schedule(struct musb *musb, struct urb *urb, urb 324 drivers/usb/musb/musb_host.c status = (urb->status == -EINPROGRESS) ? 0 : urb->status; urb 330 drivers/usb/musb/musb_host.c musb_save_toggle(qh, is_in, urb); urb 333 drivers/usb/musb/musb_host.c if (status == 0 && urb->error_count) urb 339 drivers/usb/musb/musb_host.c musb_giveback(musb, urb, status); urb 425 drivers/usb/musb/musb_host.c musb_host_packet_rx(struct musb *musb, struct urb *urb, u8 epnum, u8 iso_err) urb 436 drivers/usb/musb/musb_host.c int pipe = urb->pipe; urb 437 drivers/usb/musb/musb_host.c void *buffer = urb->transfer_buffer; urb 442 drivers/usb/musb/musb_host.c urb->transfer_buffer, qh->offset, urb 443 drivers/usb/musb/musb_host.c urb->transfer_buffer_length); urb 452 drivers/usb/musb/musb_host.c urb->error_count++; urb 455 drivers/usb/musb/musb_host.c d = urb->iso_frame_desc + qh->iso_idx; urb 461 drivers/usb/musb/musb_host.c urb->error_count++; urb 467 drivers/usb/musb/musb_host.c urb->actual_length += length; urb 473 drivers/usb/musb/musb_host.c done = (++qh->iso_idx >= urb->number_of_packets); urb 477 drivers/usb/musb/musb_host.c length = urb->transfer_buffer_length - qh->offset; urb 479 drivers/usb/musb/musb_host.c if (urb->status == -EINPROGRESS) urb 480 drivers/usb/musb/musb_host.c urb->status = -EOVERFLOW; urb 485 drivers/usb/musb/musb_host.c urb->actual_length += length; urb 489 drivers/usb/musb/musb_host.c done = (urb->actual_length == urb->transfer_buffer_length) urb 491 drivers/usb/musb/musb_host.c || (urb->status != -EINPROGRESS); urb 493 drivers/usb/musb/musb_host.c && (urb->status == -EINPROGRESS) urb 494 drivers/usb/musb/musb_host.c && (urb->transfer_flags & URB_SHORT_NOT_OK) urb 495 drivers/usb/musb/musb_host.c && (urb->actual_length urb 496 drivers/usb/musb/musb_host.c < urb->transfer_buffer_length)) urb 497 drivers/usb/musb/musb_host.c urb->status = -EREMOTEIO; urb 586 drivers/usb/musb/musb_host.c struct urb *urb, u32 offset, urb 626 drivers/usb/musb/musb_host.c struct urb *urb, urb 639 drivers/usb/musb/musb_host.c *mode = (urb->transfer_flags & URB_ZERO_PACKET) ? 1 : 0; urb 644 drivers/usb/musb/musb_host.c struct urb *urb, u32 offset, u32 length) urb 651 drivers/usb/musb/musb_host.c musb_tx_dma_set_mode_mentor(dma, hw_ep, qh, urb, offset, urb 654 drivers/usb/musb/musb_host.c musb_tx_dma_set_mode_cppi_tusb(dma, hw_ep, qh, urb, offset, urb 668 drivers/usb/musb/musb_host.c urb->transfer_dma + offset, length)) { urb 688 drivers/usb/musb/musb_host.c struct urb *urb, int is_out, urb 705 drivers/usb/musb/musb_host.c epnum, urb, urb->dev->speed, urb 776 drivers/usb/musb/musb_host.c if (usb_gettoggle(urb->dev, qh->epnum, 1)) urb 830 drivers/usb/musb/musb_host.c hw_ep, qh, urb, offset, len)) urb 837 drivers/usb/musb/musb_host.c sg_miter_start(&qh->sg_miter, urb->sg, 1, urb 847 drivers/usb/musb/musb_host.c buf = qh->sg_miter.addr + urb->sg->offset + urb 848 drivers/usb/musb/musb_host.c urb->actual_length; urb 869 drivers/usb/musb/musb_host.c if (usb_gettoggle(urb->dev, qh->epnum, 0)) urb 906 drivers/usb/musb/musb_host.c packet_sz, !(urb->transfer_flags & urb 908 drivers/usb/musb/musb_host.c urb->transfer_dma + offset, urb 931 drivers/usb/musb/musb_host.c struct urb *urb; urb 966 drivers/usb/musb/musb_host.c urb = next_urb(cur_qh); urb 970 drivers/usb/musb/musb_host.c urb->actual_length += dma->actual_len; urb 973 drivers/usb/musb/musb_host.c musb_save_toggle(cur_qh, is_in, urb); urb 1004 drivers/usb/musb/musb_host.c static bool musb_h_ep0_continue(struct musb *musb, u16 len, struct urb *urb) urb 1015 drivers/usb/musb/musb_host.c fifo_dest = urb->transfer_buffer + urb->actual_length; urb 1016 drivers/usb/musb/musb_host.c fifo_count = min_t(size_t, len, urb->transfer_buffer_length - urb 1017 drivers/usb/musb/musb_host.c urb->actual_length); urb 1019 drivers/usb/musb/musb_host.c urb->status = -EOVERFLOW; urb 1023 drivers/usb/musb/musb_host.c urb->actual_length += fifo_count; urb 1028 drivers/usb/musb/musb_host.c } else if (urb->actual_length < urb 1029 drivers/usb/musb/musb_host.c urb->transfer_buffer_length) urb 1033 drivers/usb/musb/musb_host.c request = (struct usb_ctrlrequest *) urb->setup_packet; urb 1051 drivers/usb/musb/musb_host.c urb->transfer_buffer_length - urb 1052 drivers/usb/musb/musb_host.c urb->actual_length); urb 1054 drivers/usb/musb/musb_host.c fifo_dest = (u8 *) (urb->transfer_buffer urb 1055 drivers/usb/musb/musb_host.c + urb->actual_length); urb 1062 drivers/usb/musb/musb_host.c urb->actual_length += fifo_count; urb 1082 drivers/usb/musb/musb_host.c struct urb *urb; urb 1093 drivers/usb/musb/musb_host.c urb = next_urb(qh); urb 1102 drivers/usb/musb/musb_host.c csr, qh, len, urb, musb->ep0_stage); urb 1137 drivers/usb/musb/musb_host.c if (urb) urb 1138 drivers/usb/musb/musb_host.c urb->status = status; urb 1157 drivers/usb/musb/musb_host.c if (unlikely(!urb)) { urb 1168 drivers/usb/musb/musb_host.c if (musb_h_ep0_continue(musb, len, urb)) { urb 1174 drivers/usb/musb/musb_host.c if (usb_pipeout(urb->pipe) urb 1175 drivers/usb/musb/musb_host.c || !urb->transfer_buffer_length) urb 1198 drivers/usb/musb/musb_host.c musb_advance_schedule(musb, urb, hw_ep, 1); urb 1231 drivers/usb/musb/musb_host.c struct urb *urb = next_urb(qh); urb 1241 drivers/usb/musb/musb_host.c if (!urb) { urb 1246 drivers/usb/musb/musb_host.c pipe = urb->pipe; urb 1248 drivers/usb/musb/musb_host.c trace_musb_urb_tx(musb, urb); urb 1394 drivers/usb/musb/musb_host.c d = urb->iso_frame_desc + qh->iso_idx; urb 1397 drivers/usb/musb/musb_host.c if (++qh->iso_idx >= urb->number_of_packets) { urb 1404 drivers/usb/musb/musb_host.c } else if (dma && urb->transfer_buffer_length == qh->offset) { urb 1410 drivers/usb/musb/musb_host.c else if (qh->offset == urb->transfer_buffer_length urb 1411 drivers/usb/musb/musb_host.c && !(urb->transfer_flags urb 1416 drivers/usb/musb/musb_host.c length = urb->transfer_buffer_length - offset; urb 1425 drivers/usb/musb/musb_host.c if (urb->status != -EINPROGRESS) { urb 1428 drivers/usb/musb/musb_host.c status = urb->status; urb 1433 drivers/usb/musb/musb_host.c urb->status = status; urb 1434 drivers/usb/musb/musb_host.c urb->actual_length = qh->offset; urb 1435 drivers/usb/musb/musb_host.c musb_advance_schedule(musb, urb, hw_ep, USB_DIR_OUT); urb 1438 drivers/usb/musb/musb_host.c if (musb_tx_dma_program(musb->dma_controller, hw_ep, qh, urb, urb 1459 drivers/usb/musb/musb_host.c usb_hcd_unmap_urb_for_dma(musb->hcd, urb); urb 1465 drivers/usb/musb/musb_host.c if (!urb->transfer_buffer) { urb 1478 drivers/usb/musb/musb_host.c musb_write_fifo(hw_ep, length, urb->transfer_buffer + offset); urb 1493 drivers/usb/musb/musb_host.c struct urb *urb, urb 1502 drivers/usb/musb/musb_host.c buf = (void *)urb->iso_frame_desc[qh->iso_idx].offset + urb 1503 drivers/usb/musb/musb_host.c (u32)urb->transfer_dma; urb 1505 drivers/usb/musb/musb_host.c length = urb->iso_frame_desc[qh->iso_idx].length; urb 1518 drivers/usb/musb/musb_host.c struct urb *urb, urb 1564 drivers/usb/musb/musb_host.c struct urb *urb, urb 1573 drivers/usb/musb/musb_host.c pipe = urb->pipe; urb 1578 drivers/usb/musb/musb_host.c d = urb->iso_frame_desc + qh->iso_idx; urb 1587 drivers/usb/musb/musb_host.c if (++qh->iso_idx >= urb->number_of_packets) { urb 1593 drivers/usb/musb/musb_host.c urb, len); urb 1599 drivers/usb/musb/musb_host.c done = (urb->actual_length + len >= urb 1600 drivers/usb/musb/musb_host.c urb->transfer_buffer_length urb 1634 drivers/usb/musb/musb_host.c struct urb *urb, urb 1646 drivers/usb/musb/musb_host.c pipe = urb->pipe; urb 1652 drivers/usb/musb/musb_host.c d = urb->iso_frame_desc + qh->iso_idx; urb 1656 drivers/usb/musb/musb_host.c urb->error_count++; urb 1661 drivers/usb/musb/musb_host.c urb->error_count++; urb 1670 drivers/usb/musb/musb_host.c buf = urb->transfer_dma + d->offset; urb 1673 drivers/usb/musb/musb_host.c buf = urb->transfer_dma + urb->actual_length; urb 1681 drivers/usb/musb/musb_host.c if ((urb->transfer_flags & URB_SHORT_NOT_OK) urb 1682 drivers/usb/musb/musb_host.c && (urb->transfer_buffer_length - urb->actual_length) urb 1689 drivers/usb/musb/musb_host.c length = urb->transfer_buffer_length; urb 1734 drivers/usb/musb/musb_host.c struct urb *urb, urb 1743 drivers/usb/musb/musb_host.c struct urb *urb, urb 1757 drivers/usb/musb/musb_host.c struct urb *urb; urb 1773 drivers/usb/musb/musb_host.c urb = next_urb(qh); urb 1781 drivers/usb/musb/musb_host.c if (unlikely(!urb)) { urb 1792 drivers/usb/musb/musb_host.c trace_musb_urb_rx(musb, urb); urb 1824 drivers/usb/musb/musb_host.c if (usb_pipebulk(urb->pipe) urb 1907 drivers/usb/musb/musb_host.c done = musb_rx_dma_inventra_cppi41(c, hw_ep, qh, urb, xfer_len); urb 1917 drivers/usb/musb/musb_host.c } else if (urb->status == -EINPROGRESS) { urb 1939 drivers/usb/musb/musb_host.c (unsigned long long) urb->transfer_dma urb 1940 drivers/usb/musb/musb_host.c + urb->actual_length, urb 1942 drivers/usb/musb/musb_host.c urb->transfer_buffer_length); urb 1944 drivers/usb/musb/musb_host.c if (musb_rx_dma_in_inventra_cppi41(c, hw_ep, qh, urb, urb 1955 drivers/usb/musb/musb_host.c usb_hcd_unmap_urb_for_dma(musb->hcd, urb); urb 1961 drivers/usb/musb/musb_host.c if (!urb->transfer_buffer) { urb 1963 drivers/usb/musb/musb_host.c sg_miter_start(&qh->sg_miter, urb->sg, 1, urb 1975 drivers/usb/musb/musb_host.c urb->transfer_buffer = qh->sg_miter.addr; urb 1976 drivers/usb/musb/musb_host.c received_len = urb->actual_length; urb 1978 drivers/usb/musb/musb_host.c done = musb_host_packet_rx(musb, urb, epnum, urb 1981 drivers/usb/musb/musb_host.c received_len = urb->actual_length - urb 1986 drivers/usb/musb/musb_host.c done = musb_host_packet_rx(musb, urb, urb 1994 drivers/usb/musb/musb_host.c urb->actual_length += xfer_len; urb 1999 drivers/usb/musb/musb_host.c urb->transfer_buffer = NULL; urb 2002 drivers/usb/musb/musb_host.c if (urb->status == -EINPROGRESS) urb 2003 drivers/usb/musb/musb_host.c urb->status = status; urb 2004 drivers/usb/musb/musb_host.c musb_advance_schedule(musb, urb, hw_ep, USB_DIR_IN); urb 2025 drivers/usb/musb/musb_host.c struct urb *urb = next_urb(qh); urb 2078 drivers/usb/musb/musb_host.c toggle = usb_gettoggle(urb->dev, qh->epnum, !is_in); urb 2135 drivers/usb/musb/musb_host.c struct urb *urb, urb 2140 drivers/usb/musb/musb_host.c struct usb_host_endpoint *hep = urb->ep; urb 2151 drivers/usb/musb/musb_host.c trace_musb_urb_enq(musb, urb); urb 2154 drivers/usb/musb/musb_host.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 2157 drivers/usb/musb/musb_host.c urb->hcpriv = qh; urb 2180 drivers/usb/musb/musb_host.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 2186 drivers/usb/musb/musb_host.c qh->dev = urb->dev; urb 2202 drivers/usb/musb/musb_host.c ok = (usb_pipein(urb->pipe) && musb->hb_iso_rx) urb 2203 drivers/usb/musb/musb_host.c || (usb_pipeout(urb->pipe) && musb->hb_iso_tx); urb 2218 drivers/usb/musb/musb_host.c qh->addr_reg = (u8) usb_pipedevice(urb->pipe); urb 2222 drivers/usb/musb/musb_host.c switch (urb->dev->speed) { urb 2241 drivers/usb/musb/musb_host.c if (urb->dev->speed <= USB_SPEED_FULL) { urb 2271 drivers/usb/musb/musb_host.c struct usb_device *parent = urb->dev->parent; urb 2277 drivers/usb/musb/musb_host.c if (urb->dev->tt) { urb 2278 drivers/usb/musb/musb_host.c qh->h_port_reg = (u8) urb->dev->ttport; urb 2279 drivers/usb/musb/musb_host.c if (urb->dev->tt->hub) urb 2281 drivers/usb/musb/musb_host.c (u8) urb->dev->tt->hub->devnum; urb 2282 drivers/usb/musb/musb_host.c if (urb->dev->tt->multi) urb 2305 drivers/usb/musb/musb_host.c urb->hcpriv = qh; urb 2315 drivers/usb/musb/musb_host.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 2328 drivers/usb/musb/musb_host.c static int musb_cleanup_urb(struct urb *urb, struct musb_qh *qh) urb 2335 drivers/usb/musb/musb_host.c int is_in = usb_pipein(urb->pipe); urb 2348 drivers/usb/musb/musb_host.c urb, status); urb 2349 drivers/usb/musb/musb_host.c urb->actual_length += dma->actual_len; urb 2379 drivers/usb/musb/musb_host.c musb_advance_schedule(ep->musb, urb, ep, is_in); urb 2383 drivers/usb/musb/musb_host.c static int musb_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 2388 drivers/usb/musb/musb_host.c int is_in = usb_pipein(urb->pipe); urb 2391 drivers/usb/musb/musb_host.c trace_musb_urb_deq(musb, urb); urb 2394 drivers/usb/musb/musb_host.c ret = usb_hcd_check_unlink_urb(hcd, urb, status); urb 2398 drivers/usb/musb/musb_host.c qh = urb->hcpriv; urb 2415 drivers/usb/musb/musb_host.c || urb->urb_list.prev != &qh->hep->urb_list urb 2420 drivers/usb/musb/musb_host.c musb_giveback(musb, urb, 0); urb 2432 drivers/usb/musb/musb_host.c ret = musb_cleanup_urb(urb, qh); urb 2446 drivers/usb/musb/musb_host.c struct urb *urb; urb 2459 drivers/usb/musb/musb_host.c urb = next_urb(qh); urb 2462 drivers/usb/musb/musb_host.c if (!urb->unlinked) urb 2463 drivers/usb/musb/musb_host.c urb->status = -ESHUTDOWN; urb 2466 drivers/usb/musb/musb_host.c musb_cleanup_urb(urb, qh); urb 2472 drivers/usb/musb/musb_host.c urb = next_urb(qh); urb 2473 drivers/usb/musb/musb_host.c urb->status = -ESHUTDOWN; urb 2474 drivers/usb/musb/musb_host.c musb_advance_schedule(musb, urb, qh->hw_ep, is_in); urb 2575 drivers/usb/musb/musb_host.c static void musb_free_temp_buffer(struct urb *urb) urb 2581 drivers/usb/musb/musb_host.c if (!(urb->transfer_flags & URB_ALIGNED_TEMP_BUFFER)) urb 2584 drivers/usb/musb/musb_host.c dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; urb 2586 drivers/usb/musb/musb_host.c temp = container_of(urb->transfer_buffer, struct musb_temp_buffer, urb 2590 drivers/usb/musb/musb_host.c if (usb_pipeisoc(urb->pipe)) urb 2591 drivers/usb/musb/musb_host.c length = urb->transfer_buffer_length; urb 2593 drivers/usb/musb/musb_host.c length = urb->actual_length; urb 2597 drivers/usb/musb/musb_host.c urb->transfer_buffer = temp->old_xfer_buffer; urb 2600 drivers/usb/musb/musb_host.c urb->transfer_flags &= ~URB_ALIGNED_TEMP_BUFFER; urb 2603 drivers/usb/musb/musb_host.c static int musb_alloc_temp_buffer(struct urb *urb, gfp_t mem_flags) urb 2610 drivers/usb/musb/musb_host.c if (urb->num_sgs || urb->sg || urb 2611 drivers/usb/musb/musb_host.c urb->transfer_buffer_length == 0 || urb 2612 drivers/usb/musb/musb_host.c !((uintptr_t)urb->transfer_buffer & (MUSB_USB_DMA_ALIGN - 1))) urb 2615 drivers/usb/musb/musb_host.c dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; urb 2618 drivers/usb/musb/musb_host.c kmalloc_size = urb->transfer_buffer_length + urb 2630 drivers/usb/musb/musb_host.c temp->old_xfer_buffer = urb->transfer_buffer; urb 2632 drivers/usb/musb/musb_host.c memcpy(temp->data, urb->transfer_buffer, urb 2633 drivers/usb/musb/musb_host.c urb->transfer_buffer_length); urb 2634 drivers/usb/musb/musb_host.c urb->transfer_buffer = temp->data; urb 2636 drivers/usb/musb/musb_host.c urb->transfer_flags |= URB_ALIGNED_TEMP_BUFFER; urb 2641 drivers/usb/musb/musb_host.c static int musb_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, urb 2654 drivers/usb/musb/musb_host.c return usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); urb 2656 drivers/usb/musb/musb_host.c ret = musb_alloc_temp_buffer(urb, mem_flags); urb 2660 drivers/usb/musb/musb_host.c ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); urb 2662 drivers/usb/musb/musb_host.c musb_free_temp_buffer(urb); urb 2667 drivers/usb/musb/musb_host.c static void musb_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) urb 2671 drivers/usb/musb/musb_host.c usb_hcd_unmap_urb_for_dma(hcd, urb); urb 2677 drivers/usb/musb/musb_host.c musb_free_temp_buffer(urb); urb 117 drivers/usb/musb/musb_host.h static inline struct urb *next_urb(struct musb_qh *qh) urb 126 drivers/usb/musb/musb_host.h return list_entry(queue->next, struct urb, urb_list); urb 149 drivers/usb/musb/musb_trace.h TP_PROTO(struct musb *musb, struct urb *urb), urb 150 drivers/usb/musb/musb_trace.h TP_ARGS(musb, urb), urb 153 drivers/usb/musb/musb_trace.h __field(struct urb *, urb) urb 162 drivers/usb/musb/musb_trace.h __entry->urb = urb; urb 163 drivers/usb/musb/musb_trace.h __entry->pipe = urb->pipe; urb 164 drivers/usb/musb/musb_trace.h __entry->status = urb->status; urb 165 drivers/usb/musb/musb_trace.h __entry->flag = urb->transfer_flags; urb 166 drivers/usb/musb/musb_trace.h __entry->buf_len = urb->transfer_buffer_length; urb 167 drivers/usb/musb/musb_trace.h __entry->actual_len = urb->actual_length; urb 170 drivers/usb/musb/musb_trace.h __get_str(name), __entry->urb, urb 181 drivers/usb/musb/musb_trace.h TP_PROTO(struct musb *musb, struct urb *urb), urb 182 drivers/usb/musb/musb_trace.h TP_ARGS(musb, urb) urb 186 drivers/usb/musb/musb_trace.h TP_PROTO(struct musb *musb, struct urb *urb), urb 187 drivers/usb/musb/musb_trace.h TP_ARGS(musb, urb) urb 191 drivers/usb/musb/musb_trace.h TP_PROTO(struct musb *musb, struct urb *urb), urb 192 drivers/usb/musb/musb_trace.h TP_ARGS(musb, urb) urb 196 drivers/usb/musb/musb_trace.h TP_PROTO(struct musb *musb, struct urb *urb), urb 197 drivers/usb/musb/musb_trace.h TP_ARGS(musb, urb) urb 201 drivers/usb/musb/musb_trace.h TP_PROTO(struct musb *musb, struct urb *urb), urb 202 drivers/usb/musb/musb_trace.h TP_ARGS(musb, urb) urb 206 drivers/usb/musb/musb_trace.h TP_PROTO(struct musb *musb, struct urb *urb), urb 207 drivers/usb/musb/musb_trace.h TP_ARGS(musb, urb) urb 65 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb; urb 156 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb, urb 166 drivers/usb/renesas_usbhs/mod_host.c ureq->urb = urb; urb 167 drivers/usb/renesas_usbhs/mod_host.c usbhsh_urb_to_ureq(urb) = ureq; urb 175 drivers/usb/renesas_usbhs/mod_host.c usbhsh_urb_to_ureq(ureq->urb) = NULL; urb 176 drivers/usb/renesas_usbhs/mod_host.c ureq->urb = NULL; urb 200 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb, urb 203 drivers/usb/renesas_usbhs/mod_host.c int len = urb->actual_length; urb 204 drivers/usb/renesas_usbhs/mod_host.c int maxp = usb_endpoint_maxp(&urb->ep->desc); urb 208 drivers/usb/renesas_usbhs/mod_host.c if (usb_pipecontrol(urb->pipe)) urb 236 drivers/usb/renesas_usbhs/mod_host.c usb_dotoggle(urb->dev, urb 237 drivers/usb/renesas_usbhs/mod_host.c usb_pipeendpoint(urb->pipe), urb 238 drivers/usb/renesas_usbhs/mod_host.c usb_pipeout(urb->pipe)); urb 242 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb); urb 245 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb) urb 248 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); urb 249 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_device *udev = usbhsh_device_get(hpriv, urb); urb 251 drivers/usb/renesas_usbhs/mod_host.c struct usb_endpoint_descriptor *desc = &urb->ep->desc; urb 254 drivers/usb/renesas_usbhs/mod_host.c int dir_in_req = !!usb_pipein(urb->pipe); urb 366 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb, urb 370 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_device *udev = usbhsh_device_get(hpriv, urb); urb 371 drivers/usb/renesas_usbhs/mod_host.c struct usb_host_endpoint *ep = urb->ep; urb 465 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb) urb 467 drivers/usb/renesas_usbhs/mod_host.c struct usb_device *usbv = usbhsh_urb_to_usbv(urb); urb 475 drivers/usb/renesas_usbhs/mod_host.c if (0 == usb_pipedevice(urb->pipe)) urb 483 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb) urb 490 drivers/usb/renesas_usbhs/mod_host.c struct usb_device *usbv = usbhsh_urb_to_usbv(urb); urb 503 drivers/usb/renesas_usbhs/mod_host.c if (0 != usb_pipedevice(urb->pipe)) { urb 634 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb = ureq->urb; urb 640 drivers/usb/renesas_usbhs/mod_host.c if (!urb) { urb 648 drivers/usb/renesas_usbhs/mod_host.c urb->actual_length = pkt->actual; urb 650 drivers/usb/renesas_usbhs/mod_host.c usbhsh_endpoint_sequence_save(hpriv, urb, pkt); urb 653 drivers/usb/renesas_usbhs/mod_host.c usbhsh_pipe_detach(hpriv, usbhsh_ep_to_uep(urb->ep)); urb 655 drivers/usb/renesas_usbhs/mod_host.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 656 drivers/usb/renesas_usbhs/mod_host.c usb_hcd_giveback_urb(hcd, urb, status); urb 660 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb, urb 664 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); urb 671 drivers/usb/renesas_usbhs/mod_host.c if (usb_pipeisoc(urb->pipe)) { urb 677 drivers/usb/renesas_usbhs/mod_host.c ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); urb 683 drivers/usb/renesas_usbhs/mod_host.c if (usb_pipein(urb->pipe)) urb 688 drivers/usb/renesas_usbhs/mod_host.c buf = (void *)(urb->transfer_buffer + urb->actual_length); urb 689 drivers/usb/renesas_usbhs/mod_host.c len = urb->transfer_buffer_length - urb->actual_length; urb 691 drivers/usb/renesas_usbhs/mod_host.c sequence = usb_gettoggle(urb->dev, urb 692 drivers/usb/renesas_usbhs/mod_host.c usb_pipeendpoint(urb->pipe), urb 693 drivers/usb/renesas_usbhs/mod_host.c usb_pipeout(urb->pipe)); urb 697 drivers/usb/renesas_usbhs/mod_host.c buf, len, (urb->transfer_flags & URB_ZERO_PACKET), urb 736 drivers/usb/renesas_usbhs/mod_host.c static int usbhsh_is_request_address(struct urb *urb) urb 740 drivers/usb/renesas_usbhs/mod_host.c req = (struct usb_ctrlrequest *)urb->setup_packet; urb 750 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb, urb 766 drivers/usb/renesas_usbhs/mod_host.c memcpy(&req, urb->setup_packet, sizeof(struct usb_ctrlrequest)); urb 774 drivers/usb/renesas_usbhs/mod_host.c if (usbhsh_is_request_address(urb)) { urb 775 drivers/usb/renesas_usbhs/mod_host.c struct usb_device *usbv = usbhsh_urb_to_usbv(urb); urb 809 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb, urb 817 drivers/usb/renesas_usbhs/mod_host.c ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); urb 821 drivers/usb/renesas_usbhs/mod_host.c if (usb_pipein(urb->pipe)) urb 828 drivers/usb/renesas_usbhs/mod_host.c urb->transfer_buffer, urb 829 drivers/usb/renesas_usbhs/mod_host.c urb->transfer_buffer_length, urb 830 drivers/usb/renesas_usbhs/mod_host.c (urb->transfer_flags & URB_ZERO_PACKET), urb 840 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb, urb 847 drivers/usb/renesas_usbhs/mod_host.c ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); urb 851 drivers/usb/renesas_usbhs/mod_host.c if (usb_pipein(urb->pipe)) urb 859 drivers/usb/renesas_usbhs/mod_host.c urb->transfer_buffer_length, urb 866 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb, urb 870 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); urb 882 drivers/usb/renesas_usbhs/mod_host.c usbhsh_setup_stage_packet_push(hpriv, urb, pipe); urb 889 drivers/usb/renesas_usbhs/mod_host.c if (urb->transfer_buffer_length) { urb 890 drivers/usb/renesas_usbhs/mod_host.c ret = usbhsh_data_stage_packet_push(hpriv, urb, pipe, mflags); urb 900 drivers/usb/renesas_usbhs/mod_host.c ret = usbhsh_status_stage_packet_push(hpriv, urb, pipe, mflags); urb 922 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb = ureq->urb; urb 925 drivers/usb/renesas_usbhs/mod_host.c if (urb->num_sgs) urb 928 drivers/usb/renesas_usbhs/mod_host.c pkt->dma = urb->transfer_dma; urb 949 drivers/usb/renesas_usbhs/mod_host.c struct urb *urb, urb 955 drivers/usb/renesas_usbhs/mod_host.c struct usb_host_endpoint *ep = urb->ep; urb 957 drivers/usb/renesas_usbhs/mod_host.c int is_dir_in = usb_pipein(urb->pipe); urb 968 drivers/usb/renesas_usbhs/mod_host.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 978 drivers/usb/renesas_usbhs/mod_host.c if (!usbhsh_device_get(hpriv, urb)) { urb 979 drivers/usb/renesas_usbhs/mod_host.c new_udev = usbhsh_device_attach(hpriv, urb); urb 992 drivers/usb/renesas_usbhs/mod_host.c ret = usbhsh_endpoint_attach(hpriv, urb, mem_flags); urb 1003 drivers/usb/renesas_usbhs/mod_host.c ret = usbhsh_pipe_attach(hpriv, urb); urb 1012 drivers/usb/renesas_usbhs/mod_host.c if (usb_pipecontrol(urb->pipe)) urb 1013 drivers/usb/renesas_usbhs/mod_host.c ret = usbhsh_dcp_queue_push(hcd, urb, mem_flags); urb 1015 drivers/usb/renesas_usbhs/mod_host.c ret = usbhsh_queue_push(hcd, urb, mem_flags); urb 1031 drivers/usb/renesas_usbhs/mod_host.c static int usbhsh_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 1034 drivers/usb/renesas_usbhs/mod_host.c struct usbhsh_request *ureq = usbhsh_urb_to_ureq(urb); urb 117 drivers/usb/serial/aircable.c static void aircable_process_read_urb(struct urb *urb) urb 119 drivers/usb/serial/aircable.c struct usb_serial_port *port = urb->context; urb 120 drivers/usb/serial/aircable.c char *data = (char *)urb->transfer_buffer; urb 126 drivers/usb/serial/aircable.c has_headers = (urb->actual_length > 2 && data[0] == RX_HEADER_0); urb 129 drivers/usb/serial/aircable.c for (i = 0; i < urb->actual_length; i += HCI_COMPLETE_FRAME) { urb 130 drivers/usb/serial/aircable.c len = min_t(int, urb->actual_length - i, HCI_COMPLETE_FRAME); urb 527 drivers/usb/serial/ark3116.c static void ark3116_read_int_callback(struct urb *urb) urb 529 drivers/usb/serial/ark3116.c struct usb_serial_port *port = urb->context; urb 530 drivers/usb/serial/ark3116.c int status = urb->status; urb 531 drivers/usb/serial/ark3116.c const __u8 *data = urb->transfer_buffer; urb 548 drivers/usb/serial/ark3116.c if ((urb->actual_length == 4) && (data[0] == 0xe8)) { urb 567 drivers/usb/serial/ark3116.c urb->actual_length, urb 568 drivers/usb/serial/ark3116.c urb->transfer_buffer); urb 572 drivers/usb/serial/ark3116.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 590 drivers/usb/serial/ark3116.c static void ark3116_process_read_urb(struct urb *urb) urb 592 drivers/usb/serial/ark3116.c struct usb_serial_port *port = urb->context; urb 594 drivers/usb/serial/ark3116.c unsigned char *data = urb->transfer_buffer; urb 605 drivers/usb/serial/ark3116.c if (!urb->actual_length) urb 621 drivers/usb/serial/ark3116.c urb->actual_length); urb 44 drivers/usb/serial/belkin_sa.c static void belkin_sa_read_int_callback(struct urb *urb); urb 45 drivers/usb/serial/belkin_sa.c static void belkin_sa_process_read_urb(struct urb *urb); urb 171 drivers/usb/serial/belkin_sa.c static void belkin_sa_read_int_callback(struct urb *urb) urb 173 drivers/usb/serial/belkin_sa.c struct usb_serial_port *port = urb->context; urb 175 drivers/usb/serial/belkin_sa.c unsigned char *data = urb->transfer_buffer; urb 177 drivers/usb/serial/belkin_sa.c int status = urb->status; urb 197 drivers/usb/serial/belkin_sa.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); urb 230 drivers/usb/serial/belkin_sa.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 236 drivers/usb/serial/belkin_sa.c static void belkin_sa_process_read_urb(struct urb *urb) urb 238 drivers/usb/serial/belkin_sa.c struct usb_serial_port *port = urb->context; urb 240 drivers/usb/serial/belkin_sa.c unsigned char *data = urb->transfer_buffer; urb 253 drivers/usb/serial/belkin_sa.c if (!urb->actual_length) urb 273 drivers/usb/serial/belkin_sa.c urb->actual_length); urb 582 drivers/usb/serial/ch341.c static void ch341_read_int_callback(struct urb *urb) urb 584 drivers/usb/serial/ch341.c struct usb_serial_port *port = urb->context; urb 585 drivers/usb/serial/ch341.c unsigned char *data = urb->transfer_buffer; urb 586 drivers/usb/serial/ch341.c unsigned int len = urb->actual_length; urb 589 drivers/usb/serial/ch341.c switch (urb->status) { urb 597 drivers/usb/serial/ch341.c dev_dbg(&urb->dev->dev, "%s - urb shutting down: %d\n", urb 598 drivers/usb/serial/ch341.c __func__, urb->status); urb 601 drivers/usb/serial/ch341.c dev_dbg(&urb->dev->dev, "%s - nonzero urb status: %d\n", urb 602 drivers/usb/serial/ch341.c __func__, urb->status); urb 609 drivers/usb/serial/ch341.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 611 drivers/usb/serial/ch341.c dev_err(&urb->dev->dev, "%s - usb_submit_urb failed: %d\n", urb 57 drivers/usb/serial/cyberjack.c static void cyberjack_read_int_callback(struct urb *urb); urb 58 drivers/usb/serial/cyberjack.c static void cyberjack_read_bulk_callback(struct urb *urb); urb 59 drivers/usb/serial/cyberjack.c static void cyberjack_write_bulk_callback(struct urb *urb); urb 251 drivers/usb/serial/cyberjack.c static void cyberjack_read_int_callback(struct urb *urb) urb 253 drivers/usb/serial/cyberjack.c struct usb_serial_port *port = urb->context; urb 256 drivers/usb/serial/cyberjack.c unsigned char *data = urb->transfer_buffer; urb 257 drivers/usb/serial/cyberjack.c int status = urb->status; urb 265 drivers/usb/serial/cyberjack.c usb_serial_debug_data(dev, __func__, urb->actual_length, data); urb 268 drivers/usb/serial/cyberjack.c if (urb->actual_length == 4 && data[0] == 0x01) { urb 307 drivers/usb/serial/cyberjack.c static void cyberjack_read_bulk_callback(struct urb *urb) urb 309 drivers/usb/serial/cyberjack.c struct usb_serial_port *port = urb->context; urb 312 drivers/usb/serial/cyberjack.c unsigned char *data = urb->transfer_buffer; urb 316 drivers/usb/serial/cyberjack.c int status = urb->status; urb 318 drivers/usb/serial/cyberjack.c usb_serial_debug_data(dev, __func__, urb->actual_length, data); urb 325 drivers/usb/serial/cyberjack.c if (urb->actual_length) { urb 326 drivers/usb/serial/cyberjack.c tty_insert_flip_string(&port->port, data, urb->actual_length); urb 333 drivers/usb/serial/cyberjack.c priv->rdtodo -= urb->actual_length; urb 353 drivers/usb/serial/cyberjack.c static void cyberjack_write_bulk_callback(struct urb *urb) urb 355 drivers/usb/serial/cyberjack.c struct usb_serial_port *port = urb->context; urb 358 drivers/usb/serial/cyberjack.c int status = urb->status; urb 134 drivers/usb/serial/cypress_m8.c static void cypress_read_int_callback(struct urb *urb); urb 135 drivers/usb/serial/cypress_m8.c static void cypress_write_int_callback(struct urb *urb); urb 1025 drivers/usb/serial/cypress_m8.c static void cypress_read_int_callback(struct urb *urb) urb 1027 drivers/usb/serial/cypress_m8.c struct usb_serial_port *port = urb->context; urb 1029 drivers/usb/serial/cypress_m8.c struct device *dev = &urb->dev->dev; urb 1031 drivers/usb/serial/cypress_m8.c unsigned char *data = urb->transfer_buffer; urb 1037 drivers/usb/serial/cypress_m8.c int status = urb->status; urb 1074 drivers/usb/serial/cypress_m8.c result = urb->actual_length; urb 1098 drivers/usb/serial/cypress_m8.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); urb 1177 drivers/usb/serial/cypress_m8.c static void cypress_write_int_callback(struct urb *urb) urb 1179 drivers/usb/serial/cypress_m8.c struct usb_serial_port *port = urb->context; urb 1181 drivers/usb/serial/cypress_m8.c struct device *dev = &urb->dev->dev; urb 1182 drivers/usb/serial/cypress_m8.c int status = urb->status; urb 227 drivers/usb/serial/digi_acceleport.c static void digi_write_bulk_callback(struct urb *urb); urb 239 drivers/usb/serial/digi_acceleport.c static void digi_read_bulk_callback(struct urb *urb); urb 240 drivers/usb/serial/digi_acceleport.c static int digi_read_inb_callback(struct urb *urb); urb 241 drivers/usb/serial/digi_acceleport.c static int digi_read_oob_callback(struct urb *urb); urb 979 drivers/usb/serial/digi_acceleport.c static void digi_write_bulk_callback(struct urb *urb) urb 982 drivers/usb/serial/digi_acceleport.c struct usb_serial_port *port = urb->context; urb 988 drivers/usb/serial/digi_acceleport.c int status = urb->status; urb 1318 drivers/usb/serial/digi_acceleport.c static void digi_read_bulk_callback(struct urb *urb) urb 1320 drivers/usb/serial/digi_acceleport.c struct usb_serial_port *port = urb->context; urb 1324 drivers/usb/serial/digi_acceleport.c int status = urb->status; urb 1352 drivers/usb/serial/digi_acceleport.c if (digi_read_oob_callback(urb) != 0) urb 1355 drivers/usb/serial/digi_acceleport.c if (digi_read_inb_callback(urb) != 0) urb 1360 drivers/usb/serial/digi_acceleport.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 1379 drivers/usb/serial/digi_acceleport.c static int digi_read_inb_callback(struct urb *urb) urb 1381 drivers/usb/serial/digi_acceleport.c struct usb_serial_port *port = urb->context; urb 1383 drivers/usb/serial/digi_acceleport.c unsigned char *buf = urb->transfer_buffer; urb 1392 drivers/usb/serial/digi_acceleport.c if (urb->actual_length < 2) { urb 1400 drivers/usb/serial/digi_acceleport.c if (urb->actual_length != len + 2) { urb 1402 drivers/usb/serial/digi_acceleport.c priv->dp_port_num, opcode, len, urb->actual_length); urb 1469 drivers/usb/serial/digi_acceleport.c static int digi_read_oob_callback(struct urb *urb) urb 1472 drivers/usb/serial/digi_acceleport.c struct usb_serial_port *port = urb->context; urb 1476 drivers/usb/serial/digi_acceleport.c unsigned char *buf = urb->transfer_buffer; urb 1482 drivers/usb/serial/digi_acceleport.c if (urb->actual_length < 4) urb 1486 drivers/usb/serial/digi_acceleport.c for (i = 0; i < urb->actual_length - 3; i += 4) { urb 287 drivers/usb/serial/f81232.c static void f81232_read_int_callback(struct urb *urb) urb 289 drivers/usb/serial/f81232.c struct usb_serial_port *port = urb->context; urb 290 drivers/usb/serial/f81232.c unsigned char *data = urb->transfer_buffer; urb 291 drivers/usb/serial/f81232.c unsigned int actual_length = urb->actual_length; urb 292 drivers/usb/serial/f81232.c int status = urb->status; urb 313 drivers/usb/serial/f81232.c urb->actual_length, urb->transfer_buffer); urb 318 drivers/usb/serial/f81232.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 320 drivers/usb/serial/f81232.c dev_err(&urb->dev->dev, urb 325 drivers/usb/serial/f81232.c static void f81232_process_read_urb(struct urb *urb) urb 327 drivers/usb/serial/f81232.c struct usb_serial_port *port = urb->context; urb 329 drivers/usb/serial/f81232.c unsigned char *data = urb->transfer_buffer; urb 338 drivers/usb/serial/f81232.c if ((urb->actual_length < 2) || (urb->actual_length % 2)) urb 343 drivers/usb/serial/f81232.c for (i = 0; i < urb->actual_length; i += 2) { urb 505 drivers/usb/serial/f81534.c struct urb *urb; urb 523 drivers/usb/serial/f81534.c urb = port->write_urbs[0]; urb 525 drivers/usb/serial/f81534.c urb->transfer_buffer_length = F81534_WRITE_BUFFER_SIZE; urb 527 drivers/usb/serial/f81534.c result = usb_submit_urb(urb, mem_flags); urb 1252 drivers/usb/serial/f81534.c static void f81534_process_read_urb(struct urb *urb) urb 1262 drivers/usb/serial/f81534.c if (!urb->actual_length || urb 1263 drivers/usb/serial/f81534.c urb->actual_length % F81534_RECEIVE_BLOCK_SIZE) { urb 1267 drivers/usb/serial/f81534.c port = urb->context; urb 1269 drivers/usb/serial/f81534.c buf = urb->transfer_buffer; urb 1272 drivers/usb/serial/f81534.c for (i = 0; i < urb->actual_length; i += F81534_RECEIVE_BLOCK_SIZE) { urb 1289 drivers/usb/serial/f81534.c static void f81534_write_usb_callback(struct urb *urb) urb 1291 drivers/usb/serial/f81534.c struct usb_serial_port *port = urb->context; urb 1293 drivers/usb/serial/f81534.c switch (urb->status) { urb 1300 drivers/usb/serial/f81534.c __func__, urb->status); urb 1304 drivers/usb/serial/f81534.c __func__, urb->status); urb 1308 drivers/usb/serial/f81534.c __func__, urb->status); urb 1069 drivers/usb/serial/ftdi_sio.c static void ftdi_process_read_urb(struct urb *urb); urb 2574 drivers/usb/serial/ftdi_sio.c static void ftdi_process_read_urb(struct urb *urb) urb 2576 drivers/usb/serial/ftdi_sio.c struct usb_serial_port *port = urb->context; urb 2578 drivers/usb/serial/ftdi_sio.c char *data = (char *)urb->transfer_buffer; urb 2583 drivers/usb/serial/ftdi_sio.c for (i = 0; i < urb->actual_length; i += priv->max_packet_size) { urb 2584 drivers/usb/serial/ftdi_sio.c len = min_t(int, urb->actual_length - i, priv->max_packet_size); urb 947 drivers/usb/serial/garmin_gps.c static void garmin_write_bulk_callback(struct urb *urb) urb 949 drivers/usb/serial/garmin_gps.c struct usb_serial_port *port = urb->context; urb 955 drivers/usb/serial/garmin_gps.c if (getLayerId(urb->transfer_buffer) == GARMIN_LAYERID_APPL) { urb 959 drivers/usb/serial/garmin_gps.c ((__u8 *)urb->transfer_buffer)[4]); urb 969 drivers/usb/serial/garmin_gps.c kfree(urb->transfer_buffer); urb 980 drivers/usb/serial/garmin_gps.c struct urb *urb; urb 992 drivers/usb/serial/garmin_gps.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 993 drivers/usb/serial/garmin_gps.c if (!urb) { urb 1002 drivers/usb/serial/garmin_gps.c usb_fill_bulk_urb(urb, serial->dev, urb 1008 drivers/usb/serial/garmin_gps.c urb->transfer_flags |= URB_ZERO_PACKET; urb 1023 drivers/usb/serial/garmin_gps.c usb_anchor_urb(urb, &garmin_data_p->write_urbs); urb 1024 drivers/usb/serial/garmin_gps.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 1030 drivers/usb/serial/garmin_gps.c usb_unanchor_urb(urb); urb 1036 drivers/usb/serial/garmin_gps.c usb_free_urb(urb); urb 1160 drivers/usb/serial/garmin_gps.c static void garmin_read_bulk_callback(struct urb *urb) urb 1163 drivers/usb/serial/garmin_gps.c struct usb_serial_port *port = urb->context; urb 1165 drivers/usb/serial/garmin_gps.c unsigned char *data = urb->transfer_buffer; urb 1166 drivers/usb/serial/garmin_gps.c int status = urb->status; urb 1170 drivers/usb/serial/garmin_gps.c dev_dbg(&urb->dev->dev, "%s - nonzero read bulk status received: %d\n", urb 1175 drivers/usb/serial/garmin_gps.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); urb 1177 drivers/usb/serial/garmin_gps.c garmin_read_process(garmin_data_p, data, urb->actual_length, 1); urb 1179 drivers/usb/serial/garmin_gps.c if (urb->actual_length == 0 && urb 1189 drivers/usb/serial/garmin_gps.c } else if (urb->actual_length > 0) { urb 1207 drivers/usb/serial/garmin_gps.c static void garmin_read_int_callback(struct urb *urb) urb 1211 drivers/usb/serial/garmin_gps.c struct usb_serial_port *port = urb->context; urb 1213 drivers/usb/serial/garmin_gps.c unsigned char *data = urb->transfer_buffer; urb 1214 drivers/usb/serial/garmin_gps.c int status = urb->status; urb 1224 drivers/usb/serial/garmin_gps.c dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", urb 1228 drivers/usb/serial/garmin_gps.c dev_dbg(&urb->dev->dev, "%s - nonzero urb status received: %d\n", urb 1233 drivers/usb/serial/garmin_gps.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, urb 1234 drivers/usb/serial/garmin_gps.c urb->transfer_buffer); urb 1236 drivers/usb/serial/garmin_gps.c if (urb->actual_length == sizeof(GARMIN_BULK_IN_AVAIL_REPLY) && urb 1263 drivers/usb/serial/garmin_gps.c } else if (urb->actual_length == (4+sizeof(GARMIN_START_SESSION_REPLY)) urb 1279 drivers/usb/serial/garmin_gps.c garmin_read_process(garmin_data_p, data, urb->actual_length, 0); urb 1281 drivers/usb/serial/garmin_gps.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 1283 drivers/usb/serial/garmin_gps.c dev_err(&urb->dev->dev, urb 157 drivers/usb/serial/generic.c struct urb *urb; urb 175 drivers/usb/serial/generic.c urb = port->write_urbs[i]; urb 177 drivers/usb/serial/generic.c urb->transfer_buffer, urb 179 drivers/usb/serial/generic.c urb->transfer_buffer_length = count; urb 180 drivers/usb/serial/generic.c usb_serial_debug_data(&port->dev, __func__, count, urb->transfer_buffer); urb 186 drivers/usb/serial/generic.c result = usb_submit_urb(urb, mem_flags); urb 345 drivers/usb/serial/generic.c void usb_serial_generic_process_read_urb(struct urb *urb) urb 347 drivers/usb/serial/generic.c struct usb_serial_port *port = urb->context; urb 348 drivers/usb/serial/generic.c char *ch = (char *)urb->transfer_buffer; urb 351 drivers/usb/serial/generic.c if (!urb->actual_length) urb 359 drivers/usb/serial/generic.c tty_insert_flip_string(&port->port, ch, urb->actual_length); urb 361 drivers/usb/serial/generic.c for (i = 0; i < urb->actual_length; i++, ch++) { urb 370 drivers/usb/serial/generic.c void usb_serial_generic_read_bulk_callback(struct urb *urb) urb 372 drivers/usb/serial/generic.c struct usb_serial_port *port = urb->context; urb 373 drivers/usb/serial/generic.c unsigned char *data = urb->transfer_buffer; urb 375 drivers/usb/serial/generic.c int status = urb->status; urb 379 drivers/usb/serial/generic.c if (urb == port->read_urbs[i]) urb 384 drivers/usb/serial/generic.c urb->actual_length); urb 387 drivers/usb/serial/generic.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, urb 389 drivers/usb/serial/generic.c port->serial->type->process_read_urb(urb); urb 434 drivers/usb/serial/generic.c void usb_serial_generic_write_bulk_callback(struct urb *urb) urb 437 drivers/usb/serial/generic.c struct usb_serial_port *port = urb->context; urb 438 drivers/usb/serial/generic.c int status = urb->status; urb 442 drivers/usb/serial/generic.c if (port->write_urbs[i] == urb) urb 446 drivers/usb/serial/generic.c port->tx_bytes -= urb->transfer_buffer_length; urb 166 drivers/usb/serial/io_edgeport.c struct urb *write_urb; /* write URB for this port */ urb 205 drivers/usb/serial/io_edgeport.c struct urb *interrupt_read_urb; /* our interrupt urb */ urb 209 drivers/usb/serial/io_edgeport.c struct urb *read_urb; /* our bulk read urb */ urb 269 drivers/usb/serial/io_edgeport.c static void edge_interrupt_callback(struct urb *urb); urb 270 drivers/usb/serial/io_edgeport.c static void edge_bulk_in_callback(struct urb *urb); urb 271 drivers/usb/serial/io_edgeport.c static void edge_bulk_out_data_callback(struct urb *urb); urb 272 drivers/usb/serial/io_edgeport.c static void edge_bulk_out_cmd_callback(struct urb *urb); urb 643 drivers/usb/serial/io_edgeport.c static void edge_interrupt_callback(struct urb *urb) urb 645 drivers/usb/serial/io_edgeport.c struct edgeport_serial *edge_serial = urb->context; urb 649 drivers/usb/serial/io_edgeport.c unsigned char *data = urb->transfer_buffer; urb 650 drivers/usb/serial/io_edgeport.c int length = urb->actual_length; urb 657 drivers/usb/serial/io_edgeport.c int status = urb->status; urb 667 drivers/usb/serial/io_edgeport.c dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", __func__, status); urb 670 drivers/usb/serial/io_edgeport.c dev_dbg(&urb->dev->dev, "%s - nonzero urb status received: %d\n", __func__, status); urb 744 drivers/usb/serial/io_edgeport.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 746 drivers/usb/serial/io_edgeport.c dev_err(&urb->dev->dev, urb 757 drivers/usb/serial/io_edgeport.c static void edge_bulk_in_callback(struct urb *urb) urb 759 drivers/usb/serial/io_edgeport.c struct edgeport_serial *edge_serial = urb->context; urb 761 drivers/usb/serial/io_edgeport.c unsigned char *data = urb->transfer_buffer; urb 764 drivers/usb/serial/io_edgeport.c int status = urb->status; urb 768 drivers/usb/serial/io_edgeport.c dev_dbg(&urb->dev->dev, "%s - nonzero read bulk status received: %d\n", urb 774 drivers/usb/serial/io_edgeport.c if (urb->actual_length == 0) { urb 775 drivers/usb/serial/io_edgeport.c dev_dbg(&urb->dev->dev, "%s - read bulk callback with no data\n", __func__); urb 781 drivers/usb/serial/io_edgeport.c raw_data_length = urb->actual_length; urb 793 drivers/usb/serial/io_edgeport.c process_rcvd_data(edge_serial, data, urb->actual_length); urb 818 drivers/usb/serial/io_edgeport.c static void edge_bulk_out_data_callback(struct urb *urb) urb 820 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = urb->context; urb 821 drivers/usb/serial/io_edgeport.c int status = urb->status; urb 824 drivers/usb/serial/io_edgeport.c dev_dbg(&urb->dev->dev, urb 846 drivers/usb/serial/io_edgeport.c static void edge_bulk_out_cmd_callback(struct urb *urb) urb 848 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = urb->context; urb 849 drivers/usb/serial/io_edgeport.c int status = urb->status; urb 852 drivers/usb/serial/io_edgeport.c dev_dbg(&urb->dev->dev, "%s - FREE URB %p (outstanding %d)\n", urb 853 drivers/usb/serial/io_edgeport.c __func__, urb, atomic_read(&CmdUrbs)); urb 857 drivers/usb/serial/io_edgeport.c kfree(urb->transfer_buffer); urb 860 drivers/usb/serial/io_edgeport.c usb_free_urb(urb); urb 863 drivers/usb/serial/io_edgeport.c dev_dbg(&urb->dev->dev, urb 1290 drivers/usb/serial/io_edgeport.c struct urb *urb; urb 1326 drivers/usb/serial/io_edgeport.c urb = edge_port->write_urb; urb 1329 drivers/usb/serial/io_edgeport.c kfree(urb->transfer_buffer); urb 1330 drivers/usb/serial/io_edgeport.c urb->transfer_buffer = NULL; urb 1364 drivers/usb/serial/io_edgeport.c usb_fill_bulk_urb(urb, edge_serial->serial->dev, urb 1374 drivers/usb/serial/io_edgeport.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 2249 drivers/usb/serial/io_edgeport.c struct urb *urb; urb 2254 drivers/usb/serial/io_edgeport.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 2255 drivers/usb/serial/io_edgeport.c if (!urb) urb 2260 drivers/usb/serial/io_edgeport.c __func__, urb, atomic_read(&CmdUrbs)); urb 2262 drivers/usb/serial/io_edgeport.c usb_fill_bulk_urb(urb, edge_serial->serial->dev, urb 2268 drivers/usb/serial/io_edgeport.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 2274 drivers/usb/serial/io_edgeport.c usb_free_urb(urb); urb 1624 drivers/usb/serial/io_ti.c static void edge_interrupt_callback(struct urb *urb) urb 1626 drivers/usb/serial/io_ti.c struct edgeport_serial *edge_serial = urb->context; urb 1630 drivers/usb/serial/io_ti.c unsigned char *data = urb->transfer_buffer; urb 1631 drivers/usb/serial/io_ti.c int length = urb->actual_length; urb 1637 drivers/usb/serial/io_ti.c int status = urb->status; urb 1647 drivers/usb/serial/io_ti.c dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", urb 1651 drivers/usb/serial/io_ti.c dev_err(&urb->dev->dev, "%s - nonzero urb status received: " urb 1657 drivers/usb/serial/io_ti.c dev_dbg(&urb->dev->dev, "%s - no data in urb\n", __func__); urb 1712 drivers/usb/serial/io_ti.c dev_err(&urb->dev->dev, urb 1720 drivers/usb/serial/io_ti.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 1722 drivers/usb/serial/io_ti.c dev_err(&urb->dev->dev, urb 1727 drivers/usb/serial/io_ti.c static void edge_bulk_in_callback(struct urb *urb) urb 1729 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = urb->context; urb 1731 drivers/usb/serial/io_ti.c unsigned char *data = urb->transfer_buffer; urb 1735 drivers/usb/serial/io_ti.c int status = urb->status; urb 1745 drivers/usb/serial/io_ti.c dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", __func__, status); urb 1748 drivers/usb/serial/io_ti.c dev_err(&urb->dev->dev, "%s - nonzero read bulk status received: %d\n", __func__, status); urb 1755 drivers/usb/serial/io_ti.c dev_err(&urb->dev->dev, "%s - stopping read!\n", __func__); urb 1761 drivers/usb/serial/io_ti.c if (urb->actual_length > 0 && edge_port->lsr_event) { urb 1767 drivers/usb/serial/io_ti.c --urb->actual_length; urb 1771 drivers/usb/serial/io_ti.c if (urb->actual_length) { urb 1772 drivers/usb/serial/io_ti.c usb_serial_debug_data(dev, __func__, urb->actual_length, data); urb 1778 drivers/usb/serial/io_ti.c urb->actual_length); urb 1779 drivers/usb/serial/io_ti.c edge_port->port->icount.rx += urb->actual_length; urb 1786 drivers/usb/serial/io_ti.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 1807 drivers/usb/serial/io_ti.c static void edge_bulk_out_callback(struct urb *urb) urb 1809 drivers/usb/serial/io_ti.c struct usb_serial_port *port = urb->context; urb 1811 drivers/usb/serial/io_ti.c int status = urb->status; urb 1824 drivers/usb/serial/io_ti.c dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", urb 1843 drivers/usb/serial/io_ti.c struct urb *urb; urb 1932 drivers/usb/serial/io_ti.c urb = edge_serial->serial->port[0]->interrupt_in_urb; urb 1933 drivers/usb/serial/io_ti.c urb->context = edge_serial; urb 1934 drivers/usb/serial/io_ti.c status = usb_submit_urb(urb, GFP_KERNEL); urb 1951 drivers/usb/serial/io_ti.c urb = port->read_urb; urb 1953 drivers/usb/serial/io_ti.c urb->context = edge_port; urb 1954 drivers/usb/serial/io_ti.c status = usb_submit_urb(urb, GFP_KERNEL); urb 2210 drivers/usb/serial/io_ti.c struct urb *urb; urb 2217 drivers/usb/serial/io_ti.c urb = edge_port->port->read_urb; urb 2218 drivers/usb/serial/io_ti.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 51 drivers/usb/serial/ir-usb.c static void ir_write_bulk_callback(struct urb *urb); urb 52 drivers/usb/serial/ir-usb.c static void ir_process_read_urb(struct urb *urb); urb 262 drivers/usb/serial/ir-usb.c struct urb *urb = NULL; urb 276 drivers/usb/serial/ir-usb.c urb = port->write_urbs[0]; urb 281 drivers/usb/serial/ir-usb.c if (!urb) urb 291 drivers/usb/serial/ir-usb.c *(u8 *)urb->transfer_buffer = ir_xbof | ir_baud; urb 293 drivers/usb/serial/ir-usb.c memcpy(urb->transfer_buffer + 1, buf, count); urb 295 drivers/usb/serial/ir-usb.c urb->transfer_buffer_length = count + 1; urb 296 drivers/usb/serial/ir-usb.c urb->transfer_flags = URB_ZERO_PACKET; urb 298 drivers/usb/serial/ir-usb.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 313 drivers/usb/serial/ir-usb.c static void ir_write_bulk_callback(struct urb *urb) urb 315 drivers/usb/serial/ir-usb.c struct usb_serial_port *port = urb->context; urb 316 drivers/usb/serial/ir-usb.c int status = urb->status; urb 321 drivers/usb/serial/ir-usb.c port->tx_bytes -= urb->transfer_buffer_length - 1; urb 357 drivers/usb/serial/ir-usb.c static void ir_process_read_urb(struct urb *urb) urb 359 drivers/usb/serial/ir-usb.c struct usb_serial_port *port = urb->context; urb 360 drivers/usb/serial/ir-usb.c unsigned char *data = urb->transfer_buffer; urb 362 drivers/usb/serial/ir-usb.c if (!urb->actual_length) urb 372 drivers/usb/serial/ir-usb.c if (urb->actual_length == 1) urb 375 drivers/usb/serial/ir-usb.c tty_insert_flip_string(&port->port, data + 1, urb->actual_length - 1); urb 379 drivers/usb/serial/ir-usb.c static void ir_set_termios_callback(struct urb *urb) urb 381 drivers/usb/serial/ir-usb.c kfree(urb->transfer_buffer); urb 383 drivers/usb/serial/ir-usb.c if (urb->status) urb 384 drivers/usb/serial/ir-usb.c dev_dbg(&urb->dev->dev, "%s - non-zero urb status: %d\n", urb 385 drivers/usb/serial/ir-usb.c __func__, urb->status); urb 391 drivers/usb/serial/ir-usb.c struct urb *urb; urb 450 drivers/usb/serial/ir-usb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 451 drivers/usb/serial/ir-usb.c if (!urb) urb 461 drivers/usb/serial/ir-usb.c urb, urb 470 drivers/usb/serial/ir-usb.c urb->transfer_flags = URB_ZERO_PACKET; urb 472 drivers/usb/serial/ir-usb.c result = usb_submit_urb(urb, GFP_KERNEL); urb 479 drivers/usb/serial/ir-usb.c usb_free_urb(urb); urb 485 drivers/usb/serial/ir-usb.c usb_free_urb(urb); urb 48 drivers/usb/serial/iuu_phoenix.c static void read_rxcmd_callback(struct urb *urb); urb 158 drivers/usb/serial/iuu_phoenix.c static void iuu_rxcmd(struct urb *urb) urb 160 drivers/usb/serial/iuu_phoenix.c struct usb_serial_port *port = urb->context; urb 162 drivers/usb/serial/iuu_phoenix.c int status = urb->status; urb 211 drivers/usb/serial/iuu_phoenix.c static void iuu_update_status_callback(struct urb *urb) urb 213 drivers/usb/serial/iuu_phoenix.c struct usb_serial_port *port = urb->context; urb 216 drivers/usb/serial/iuu_phoenix.c int status = urb->status; urb 224 drivers/usb/serial/iuu_phoenix.c st = urb->transfer_buffer; urb 226 drivers/usb/serial/iuu_phoenix.c if (urb->actual_length == 1) { urb 238 drivers/usb/serial/iuu_phoenix.c iuu_rxcmd(urb); urb 241 drivers/usb/serial/iuu_phoenix.c static void iuu_status_callback(struct urb *urb) urb 243 drivers/usb/serial/iuu_phoenix.c struct usb_serial_port *port = urb->context; urb 245 drivers/usb/serial/iuu_phoenix.c int status = urb->status; urb 351 drivers/usb/serial/iuu_phoenix.c static void iuu_led_activity_on(struct urb *urb) urb 353 drivers/usb/serial/iuu_phoenix.c struct usb_serial_port *port = urb->context; urb 372 drivers/usb/serial/iuu_phoenix.c static void iuu_led_activity_off(struct urb *urb) urb 374 drivers/usb/serial/iuu_phoenix.c struct usb_serial_port *port = urb->context; urb 378 drivers/usb/serial/iuu_phoenix.c iuu_rxcmd(urb); urb 570 drivers/usb/serial/iuu_phoenix.c static void read_buf_callback(struct urb *urb) urb 572 drivers/usb/serial/iuu_phoenix.c struct usb_serial_port *port = urb->context; urb 573 drivers/usb/serial/iuu_phoenix.c unsigned char *data = urb->transfer_buffer; urb 574 drivers/usb/serial/iuu_phoenix.c int status = urb->status; urb 583 drivers/usb/serial/iuu_phoenix.c dev_dbg(&port->dev, "%s - %i chars to write\n", __func__, urb->actual_length); urb 585 drivers/usb/serial/iuu_phoenix.c if (urb->actual_length) { urb 586 drivers/usb/serial/iuu_phoenix.c tty_insert_flip_string(&port->port, data, urb->actual_length); urb 589 drivers/usb/serial/iuu_phoenix.c iuu_led_activity_on(urb); urb 634 drivers/usb/serial/iuu_phoenix.c static void iuu_uart_read_callback(struct urb *urb) urb 636 drivers/usb/serial/iuu_phoenix.c struct usb_serial_port *port = urb->context; urb 639 drivers/usb/serial/iuu_phoenix.c int status = urb->status; urb 642 drivers/usb/serial/iuu_phoenix.c unsigned char *data = urb->transfer_buffer; urb 651 drivers/usb/serial/iuu_phoenix.c if (urb->actual_length == 1) urb 654 drivers/usb/serial/iuu_phoenix.c if (urb->actual_length > 1) { urb 656 drivers/usb/serial/iuu_phoenix.c urb->actual_length); urb 691 drivers/usb/serial/iuu_phoenix.c iuu_led_activity_off(urb); urb 713 drivers/usb/serial/iuu_phoenix.c static void read_rxcmd_callback(struct urb *urb) urb 715 drivers/usb/serial/iuu_phoenix.c struct usb_serial_port *port = urb->context; urb 717 drivers/usb/serial/iuu_phoenix.c int status = urb->status; urb 554 drivers/usb/serial/keyspan.c struct urb *instat_urb; urb 559 drivers/usb/serial/keyspan.c struct urb *indat_urb; urb 563 drivers/usb/serial/keyspan.c struct urb *glocont_urb; urb 579 drivers/usb/serial/keyspan.c struct urb *in_urbs[2]; urb 582 drivers/usb/serial/keyspan.c struct urb *out_urbs[2]; urb 586 drivers/usb/serial/keyspan.c struct urb *inack_urb; urb 590 drivers/usb/serial/keyspan.c struct urb *outcont_urb; urb 717 drivers/usb/serial/keyspan.c struct urb *this_urb; urb 783 drivers/usb/serial/keyspan.c static void usa26_indat_callback(struct urb *urb) urb 788 drivers/usb/serial/keyspan.c unsigned char *data = urb->transfer_buffer; urb 789 drivers/usb/serial/keyspan.c int status = urb->status; urb 791 drivers/usb/serial/keyspan.c endpoint = usb_pipeendpoint(urb->pipe); urb 794 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status %d on endpoint %x\n", urb 799 drivers/usb/serial/keyspan.c port = urb->context; urb 800 drivers/usb/serial/keyspan.c if (urb->actual_length) { urb 809 drivers/usb/serial/keyspan.c for (i = 1; i < urb->actual_length ; ++i) urb 815 drivers/usb/serial/keyspan.c for (i = 0; i + 1 < urb->actual_length; i += 2) { urb 837 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 843 drivers/usb/serial/keyspan.c static void usa2x_outdat_callback(struct urb *urb) urb 848 drivers/usb/serial/keyspan.c port = urb->context; urb 850 drivers/usb/serial/keyspan.c dev_dbg(&port->dev, "%s - urb %d\n", __func__, urb == p_priv->out_urbs[1]); urb 855 drivers/usb/serial/keyspan.c static void usa26_inack_callback(struct urb *urb) urb 859 drivers/usb/serial/keyspan.c static void usa26_outcont_callback(struct urb *urb) urb 864 drivers/usb/serial/keyspan.c port = urb->context; urb 874 drivers/usb/serial/keyspan.c static void usa26_instat_callback(struct urb *urb) urb 876 drivers/usb/serial/keyspan.c unsigned char *data = urb->transfer_buffer; urb 882 drivers/usb/serial/keyspan.c int status = urb->status; urb 884 drivers/usb/serial/keyspan.c serial = urb->context; urb 887 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", urb 891 drivers/usb/serial/keyspan.c if (urb->actual_length != 9) { urb 892 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - %d byte report??\n", __func__, urb->actual_length); urb 900 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", __func__, msg->port); urb 919 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 925 drivers/usb/serial/keyspan.c static void usa26_glocont_callback(struct urb *urb) urb 930 drivers/usb/serial/keyspan.c static void usa28_indat_callback(struct urb *urb) urb 936 drivers/usb/serial/keyspan.c int status = urb->status; urb 938 drivers/usb/serial/keyspan.c port = urb->context; urb 940 drivers/usb/serial/keyspan.c data = urb->transfer_buffer; urb 942 drivers/usb/serial/keyspan.c if (urb != p_priv->in_urbs[p_priv->in_flip]) urb 947 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status %d on endpoint %x\n", urb 948 drivers/usb/serial/keyspan.c __func__, status, usb_pipeendpoint(urb->pipe)); urb 952 drivers/usb/serial/keyspan.c port = urb->context; urb 954 drivers/usb/serial/keyspan.c data = urb->transfer_buffer; urb 956 drivers/usb/serial/keyspan.c if (urb->actual_length) { urb 958 drivers/usb/serial/keyspan.c urb->actual_length); urb 963 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 969 drivers/usb/serial/keyspan.c urb = p_priv->in_urbs[p_priv->in_flip]; urb 970 drivers/usb/serial/keyspan.c } while (urb->status != -EINPROGRESS); urb 973 drivers/usb/serial/keyspan.c static void usa28_inack_callback(struct urb *urb) urb 977 drivers/usb/serial/keyspan.c static void usa28_outcont_callback(struct urb *urb) urb 982 drivers/usb/serial/keyspan.c port = urb->context; urb 992 drivers/usb/serial/keyspan.c static void usa28_instat_callback(struct urb *urb) urb 995 drivers/usb/serial/keyspan.c unsigned char *data = urb->transfer_buffer; urb 1001 drivers/usb/serial/keyspan.c int status = urb->status; urb 1003 drivers/usb/serial/keyspan.c serial = urb->context; urb 1006 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", urb 1011 drivers/usb/serial/keyspan.c if (urb->actual_length != sizeof(struct keyspan_usa28_portStatusMessage)) { urb 1012 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - bad length %d\n", __func__, urb->actual_length); urb 1020 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", __func__, msg->port); urb 1039 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 1045 drivers/usb/serial/keyspan.c static void usa28_glocont_callback(struct urb *urb) urb 1050 drivers/usb/serial/keyspan.c static void usa49_glocont_callback(struct urb *urb) urb 1057 drivers/usb/serial/keyspan.c serial = urb->context; urb 1075 drivers/usb/serial/keyspan.c static void usa49_instat_callback(struct urb *urb) urb 1078 drivers/usb/serial/keyspan.c unsigned char *data = urb->transfer_buffer; urb 1084 drivers/usb/serial/keyspan.c int status = urb->status; urb 1086 drivers/usb/serial/keyspan.c serial = urb->context; urb 1089 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", urb 1094 drivers/usb/serial/keyspan.c if (urb->actual_length != urb 1096 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - bad length %d\n", __func__, urb->actual_length); urb 1104 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", urb 1124 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 1130 drivers/usb/serial/keyspan.c static void usa49_inack_callback(struct urb *urb) urb 1134 drivers/usb/serial/keyspan.c static void usa49_indat_callback(struct urb *urb) urb 1139 drivers/usb/serial/keyspan.c unsigned char *data = urb->transfer_buffer; urb 1140 drivers/usb/serial/keyspan.c int status = urb->status; urb 1142 drivers/usb/serial/keyspan.c endpoint = usb_pipeendpoint(urb->pipe); urb 1145 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status %d on endpoint %x\n", urb 1150 drivers/usb/serial/keyspan.c port = urb->context; urb 1151 drivers/usb/serial/keyspan.c if (urb->actual_length) { urb 1156 drivers/usb/serial/keyspan.c urb->actual_length - 1); urb 1159 drivers/usb/serial/keyspan.c for (i = 0; i + 1 < urb->actual_length; i += 2) { urb 1181 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 1186 drivers/usb/serial/keyspan.c static void usa49wg_indat_callback(struct urb *urb) urb 1191 drivers/usb/serial/keyspan.c unsigned char *data = urb->transfer_buffer; urb 1192 drivers/usb/serial/keyspan.c int status = urb->status; urb 1194 drivers/usb/serial/keyspan.c serial = urb->context; urb 1197 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", urb 1206 drivers/usb/serial/keyspan.c while (i < urb->actual_length) { urb 1210 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", urb 1221 drivers/usb/serial/keyspan.c for (x = 1; x < len && i < urb->actual_length; ++x) urb 1229 drivers/usb/serial/keyspan.c i + 1 < urb->actual_length; x += 2) { urb 1252 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 1254 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - resubmit read urb failed. (%d)\n", __func__, err); urb 1258 drivers/usb/serial/keyspan.c static void usa49_outcont_callback(struct urb *urb) urb 1262 drivers/usb/serial/keyspan.c static void usa90_indat_callback(struct urb *urb) urb 1268 drivers/usb/serial/keyspan.c unsigned char *data = urb->transfer_buffer; urb 1269 drivers/usb/serial/keyspan.c int status = urb->status; urb 1271 drivers/usb/serial/keyspan.c endpoint = usb_pipeendpoint(urb->pipe); urb 1274 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status %d on endpoint %x\n", urb 1279 drivers/usb/serial/keyspan.c port = urb->context; urb 1282 drivers/usb/serial/keyspan.c if (urb->actual_length) { urb 1288 drivers/usb/serial/keyspan.c urb->actual_length); urb 1298 drivers/usb/serial/keyspan.c for (i = 1; i < urb->actual_length ; ++i) urb 1304 drivers/usb/serial/keyspan.c for (i = 0; i + 1 < urb->actual_length; i += 2) { urb 1328 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 1334 drivers/usb/serial/keyspan.c static void usa90_instat_callback(struct urb *urb) urb 1336 drivers/usb/serial/keyspan.c unsigned char *data = urb->transfer_buffer; urb 1342 drivers/usb/serial/keyspan.c int status = urb->status; urb 1344 drivers/usb/serial/keyspan.c serial = urb->context; urb 1347 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", urb 1351 drivers/usb/serial/keyspan.c if (urb->actual_length < 14) { urb 1352 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - %d byte report??\n", __func__, urb->actual_length); urb 1376 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 1383 drivers/usb/serial/keyspan.c static void usa90_outcont_callback(struct urb *urb) urb 1388 drivers/usb/serial/keyspan.c port = urb->context; urb 1392 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - sending setup\n", __func__); urb 1399 drivers/usb/serial/keyspan.c static void usa67_instat_callback(struct urb *urb) urb 1402 drivers/usb/serial/keyspan.c unsigned char *data = urb->transfer_buffer; urb 1408 drivers/usb/serial/keyspan.c int status = urb->status; urb 1410 drivers/usb/serial/keyspan.c serial = urb->context; urb 1413 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - nonzero status: %d\n", urb 1418 drivers/usb/serial/keyspan.c if (urb->actual_length != urb 1420 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - bad length %d\n", __func__, urb->actual_length); urb 1430 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", __func__, msg->port); urb 1448 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 1453 drivers/usb/serial/keyspan.c static void usa67_glocont_callback(struct urb *urb) urb 1460 drivers/usb/serial/keyspan.c serial = urb->context; urb 1483 drivers/usb/serial/keyspan.c struct urb *this_urb; urb 1518 drivers/usb/serial/keyspan.c struct urb *urb; urb 1538 drivers/usb/serial/keyspan.c urb = p_priv->in_urbs[i]; urb 1539 drivers/usb/serial/keyspan.c if (urb == NULL) urb 1544 drivers/usb/serial/keyspan.c usb_clear_halt(urb->dev, urb->pipe); urb 1545 drivers/usb/serial/keyspan.c err = usb_submit_urb(urb, GFP_KERNEL); urb 1552 drivers/usb/serial/keyspan.c urb = p_priv->out_urbs[i]; urb 1553 drivers/usb/serial/keyspan.c if (urb == NULL) urb 1724 drivers/usb/serial/keyspan.c static struct urb *keyspan_setup_urb(struct usb_serial *serial, int endpoint, urb 1726 drivers/usb/serial/keyspan.c void (*callback)(struct urb *)) urb 1728 drivers/usb/serial/keyspan.c struct urb *urb; urb 1737 drivers/usb/serial/keyspan.c urb = usb_alloc_urb(0, GFP_KERNEL); /* No ISO */ urb 1738 drivers/usb/serial/keyspan.c if (!urb) urb 1743 drivers/usb/serial/keyspan.c return urb; urb 1748 drivers/usb/serial/keyspan.c usb_free_urb(urb); urb 1753 drivers/usb/serial/keyspan.c usb_fill_int_urb(urb, serial->dev, urb 1759 drivers/usb/serial/keyspan.c usb_fill_bulk_urb(urb, serial->dev, urb 1766 drivers/usb/serial/keyspan.c usb_free_urb(urb); urb 1771 drivers/usb/serial/keyspan.c __func__, urb, ep_type_name, endpoint); urb 1772 drivers/usb/serial/keyspan.c return urb; urb 1776 drivers/usb/serial/keyspan.c void (*instat_callback)(struct urb *); urb 1777 drivers/usb/serial/keyspan.c void (*glocont_callback)(struct urb *); urb 1778 drivers/usb/serial/keyspan.c void (*indat_callback)(struct urb *); urb 1779 drivers/usb/serial/keyspan.c void (*outdat_callback)(struct urb *); urb 1780 drivers/usb/serial/keyspan.c void (*inack_callback)(struct urb *); urb 1781 drivers/usb/serial/keyspan.c void (*outcont_callback)(struct urb *); urb 2053 drivers/usb/serial/keyspan.c struct urb *this_urb; urb 2200 drivers/usb/serial/keyspan.c struct urb *this_urb; urb 2320 drivers/usb/serial/keyspan.c struct urb *this_urb; urb 2496 drivers/usb/serial/keyspan.c struct urb *this_urb; urb 2626 drivers/usb/serial/keyspan.c struct urb *this_urb; urb 134 drivers/usb/serial/keyspan_pda.c static void keyspan_pda_rx_interrupt(struct urb *urb) urb 136 drivers/usb/serial/keyspan_pda.c struct usb_serial_port *port = urb->context; urb 137 drivers/usb/serial/keyspan_pda.c unsigned char *data = urb->transfer_buffer; urb 138 drivers/usb/serial/keyspan_pda.c unsigned int len = urb->actual_length; urb 140 drivers/usb/serial/keyspan_pda.c int status = urb->status; urb 152 drivers/usb/serial/keyspan_pda.c dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", __func__, status); urb 155 drivers/usb/serial/keyspan_pda.c dev_dbg(&urb->dev->dev, "%s - nonzero urb status received: %d\n", __func__, status); urb 197 drivers/usb/serial/keyspan_pda.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 556 drivers/usb/serial/keyspan_pda.c static void keyspan_pda_write_bulk_callback(struct urb *urb) urb 558 drivers/usb/serial/keyspan_pda.c struct usb_serial_port *port = urb->context; urb 61 drivers/usb/serial/kl5kusb105.c static void klsi_105_process_read_urb(struct urb *urb); urb 373 drivers/usb/serial/kl5kusb105.c static void klsi_105_process_read_urb(struct urb *urb) urb 375 drivers/usb/serial/kl5kusb105.c struct usb_serial_port *port = urb->context; urb 376 drivers/usb/serial/kl5kusb105.c unsigned char *data = urb->transfer_buffer; urb 380 drivers/usb/serial/kl5kusb105.c if (!urb->actual_length) urb 383 drivers/usb/serial/kl5kusb105.c if (urb->actual_length <= KLSI_HDR_LEN) { urb 389 drivers/usb/serial/kl5kusb105.c if (len > urb->actual_length - KLSI_HDR_LEN) { urb 391 drivers/usb/serial/kl5kusb105.c len = urb->actual_length - KLSI_HDR_LEN; urb 62 drivers/usb/serial/kobil_sct.c static void kobil_read_int_callback(struct urb *urb); urb 63 drivers/usb/serial/kobil_sct.c static void kobil_write_int_callback(struct urb *urb); urb 265 drivers/usb/serial/kobil_sct.c static void kobil_read_int_callback(struct urb *urb) urb 268 drivers/usb/serial/kobil_sct.c struct usb_serial_port *port = urb->context; urb 269 drivers/usb/serial/kobil_sct.c unsigned char *data = urb->transfer_buffer; urb 270 drivers/usb/serial/kobil_sct.c int status = urb->status; urb 277 drivers/usb/serial/kobil_sct.c if (urb->actual_length) { urb 278 drivers/usb/serial/kobil_sct.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, urb 280 drivers/usb/serial/kobil_sct.c tty_insert_flip_string(&port->port, data, urb->actual_length); urb 289 drivers/usb/serial/kobil_sct.c static void kobil_write_int_callback(struct urb *urb) urb 46 drivers/usb/serial/mct_u232.c static void mct_u232_read_int_callback(struct urb *urb); urb 98 drivers/usb/serial/mct_u232.c struct urb *read_urb; urb 508 drivers/usb/serial/mct_u232.c static void mct_u232_read_int_callback(struct urb *urb) urb 510 drivers/usb/serial/mct_u232.c struct usb_serial_port *port = urb->context; urb 512 drivers/usb/serial/mct_u232.c unsigned char *data = urb->transfer_buffer; urb 514 drivers/usb/serial/mct_u232.c int status = urb->status; urb 534 drivers/usb/serial/mct_u232.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); urb 539 drivers/usb/serial/mct_u232.c if (urb->transfer_buffer_length > 2) { urb 540 drivers/usb/serial/mct_u232.c if (urb->actual_length) { urb 542 drivers/usb/serial/mct_u232.c urb->actual_length); urb 589 drivers/usb/serial/mct_u232.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 107 drivers/usb/serial/metro-usb.c static void metrousb_read_int_callback(struct urb *urb) urb 109 drivers/usb/serial/metro-usb.c struct usb_serial_port *port = urb->context; urb 111 drivers/usb/serial/metro-usb.c unsigned char *data = urb->transfer_buffer; urb 118 drivers/usb/serial/metro-usb.c switch (urb->status) { urb 128 drivers/usb/serial/metro-usb.c __func__, urb->status); urb 133 drivers/usb/serial/metro-usb.c __func__, urb->status); urb 139 drivers/usb/serial/metro-usb.c if (urb->actual_length) { urb 141 drivers/usb/serial/metro-usb.c tty_insert_flip_string(&port->port, data, urb->actual_length); urb 156 drivers/usb/serial/metro-usb.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 62 drivers/usb/serial/mos7720.c struct urb *write_urb_pool[NUM_URBS]; urb 86 drivers/usb/serial/mos7720.c struct urb *urb; urb 274 drivers/usb/serial/mos7720.c usb_free_urb(urbtrack->urb); urb 326 drivers/usb/serial/mos7720.c ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); urb 339 drivers/usb/serial/mos7720.c static void async_complete(struct urb *urb) urb 341 drivers/usb/serial/mos7720.c struct urbtracker *urbtrack = urb->context; urb 342 drivers/usb/serial/mos7720.c int status = urb->status; urb 346 drivers/usb/serial/mos7720.c dev_dbg(&urb->dev->dev, "%s - nonzero urb status received: %d\n", __func__, status); urb 369 drivers/usb/serial/mos7720.c urbtrack->urb = usb_alloc_urb(0, GFP_ATOMIC); urb 370 drivers/usb/serial/mos7720.c if (!urbtrack->urb) { urb 376 drivers/usb/serial/mos7720.c usb_free_urb(urbtrack->urb); urb 385 drivers/usb/serial/mos7720.c usb_fill_control_urb(urbtrack->urb, usbdev, urb 419 drivers/usb/serial/mos7720.c ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); urb 759 drivers/usb/serial/mos7720.c static void mos7720_interrupt_callback(struct urb *urb) urb 763 drivers/usb/serial/mos7720.c int status = urb->status; urb 764 drivers/usb/serial/mos7720.c struct device *dev = &urb->dev->dev; urb 784 drivers/usb/serial/mos7720.c length = urb->actual_length; urb 785 drivers/usb/serial/mos7720.c data = urb->transfer_buffer; urb 834 drivers/usb/serial/mos7720.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 844 drivers/usb/serial/mos7720.c static void mos7715_interrupt_callback(struct urb *urb) urb 848 drivers/usb/serial/mos7720.c int status = urb->status; urb 849 drivers/usb/serial/mos7720.c struct device *dev = &urb->dev->dev; urb 869 drivers/usb/serial/mos7720.c length = urb->actual_length; urb 870 drivers/usb/serial/mos7720.c data = urb->transfer_buffer; urb 900 drivers/usb/serial/mos7720.c struct usb_serial_port *port = urb->context; urb 909 drivers/usb/serial/mos7720.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 919 drivers/usb/serial/mos7720.c static void mos7720_bulk_in_callback(struct urb *urb) urb 924 drivers/usb/serial/mos7720.c int status = urb->status; urb 927 drivers/usb/serial/mos7720.c dev_dbg(&urb->dev->dev, "nonzero read bulk status received: %d\n", status); urb 931 drivers/usb/serial/mos7720.c port = urb->context; urb 935 drivers/usb/serial/mos7720.c data = urb->transfer_buffer; urb 937 drivers/usb/serial/mos7720.c if (urb->actual_length) { urb 938 drivers/usb/serial/mos7720.c tty_insert_flip_string(&port->port, data, urb->actual_length); urb 954 drivers/usb/serial/mos7720.c static void mos7720_bulk_out_data_callback(struct urb *urb) urb 957 drivers/usb/serial/mos7720.c int status = urb->status; urb 960 drivers/usb/serial/mos7720.c dev_dbg(&urb->dev->dev, "nonzero write bulk status received:%d\n", status); urb 964 drivers/usb/serial/mos7720.c mos7720_port = urb->context; urb 966 drivers/usb/serial/mos7720.c dev_dbg(&urb->dev->dev, "NULL mos7720_port pointer\n"); urb 999 drivers/usb/serial/mos7720.c struct urb *urb; urb 1018 drivers/usb/serial/mos7720.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1019 drivers/usb/serial/mos7720.c mos7720_port->write_urb_pool[j] = urb; urb 1020 drivers/usb/serial/mos7720.c if (!urb) urb 1023 drivers/usb/serial/mos7720.c urb->transfer_buffer = kmalloc(URB_TRANSFER_BUFFER_SIZE, urb 1025 drivers/usb/serial/mos7720.c if (!urb->transfer_buffer) { urb 1222 drivers/usb/serial/mos7720.c struct urb *urb; urb 1232 drivers/usb/serial/mos7720.c urb = NULL; urb 1237 drivers/usb/serial/mos7720.c urb = mos7720_port->write_urb_pool[i]; urb 1243 drivers/usb/serial/mos7720.c if (urb == NULL) { urb 1248 drivers/usb/serial/mos7720.c if (urb->transfer_buffer == NULL) { urb 1249 drivers/usb/serial/mos7720.c urb->transfer_buffer = kmalloc(URB_TRANSFER_BUFFER_SIZE, urb 1251 drivers/usb/serial/mos7720.c if (!urb->transfer_buffer) urb 1256 drivers/usb/serial/mos7720.c memcpy(urb->transfer_buffer, current_position, transfer_size); urb 1258 drivers/usb/serial/mos7720.c urb->transfer_buffer); urb 1261 drivers/usb/serial/mos7720.c usb_fill_bulk_urb(urb, serial->dev, urb 1264 drivers/usb/serial/mos7720.c urb->transfer_buffer, transfer_size, urb 1268 drivers/usb/serial/mos7720.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 1837 drivers/usb/serial/mos7720.c struct urb *urb = serial->port[0]->interrupt_in_urb; urb 1839 drivers/usb/serial/mos7720.c urb->complete = mos7715_interrupt_callback; urb 1897 drivers/usb/serial/mos7720.c usb_unlink_urb(urbtrack->urb); urb 211 drivers/usb/serial/mos7840.c struct urb *read_urb; /* read URB for this port */ urb 223 drivers/usb/serial/mos7840.c struct urb *control_urb; urb 229 drivers/usb/serial/mos7840.c struct urb *write_urb_pool[NUM_URBS]; urb 237 drivers/usb/serial/mos7840.c struct urb *led_urb; urb 442 drivers/usb/serial/mos7840.c static void mos7840_control_callback(struct urb *urb) urb 446 drivers/usb/serial/mos7840.c struct device *dev = &urb->dev->dev; urb 448 drivers/usb/serial/mos7840.c int status = urb->status; urb 450 drivers/usb/serial/mos7840.c mos7840_port = urb->context; urb 467 drivers/usb/serial/mos7840.c dev_dbg(dev, "%s urb buffer size is %d\n", __func__, urb->actual_length); urb 468 drivers/usb/serial/mos7840.c if (urb->actual_length < 1) urb 473 drivers/usb/serial/mos7840.c data = urb->transfer_buffer; urb 512 drivers/usb/serial/mos7840.c static void mos7840_set_led_callback(struct urb *urb) urb 514 drivers/usb/serial/mos7840.c switch (urb->status) { urb 522 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "%s - urb shutting down: %d\n", urb 523 drivers/usb/serial/mos7840.c __func__, urb->status); urb 526 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "%s - nonzero urb status: %d\n", urb 527 drivers/usb/serial/mos7840.c __func__, urb->status); urb 593 drivers/usb/serial/mos7840.c static void mos7840_interrupt_callback(struct urb *urb) urb 604 drivers/usb/serial/mos7840.c int status = urb->status; urb 614 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", urb 618 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "%s - nonzero urb status received: %d\n", urb 623 drivers/usb/serial/mos7840.c length = urb->actual_length; urb 624 drivers/usb/serial/mos7840.c data = urb->transfer_buffer; urb 626 drivers/usb/serial/mos7840.c serial = urb->context; urb 636 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "%s", "Wrong data !!!\n"); urb 650 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "SP%d No Interrupt !!!\n", i); urb 654 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "Serial Port %d: Receiver status error or \n", i); urb 655 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "address bit detected in 9-bit mode\n"); urb 660 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "Serial Port %d: Modem status change\n", i); urb 673 drivers/usb/serial/mos7840.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 675 drivers/usb/serial/mos7840.c dev_err(&urb->dev->dev, urb 733 drivers/usb/serial/mos7840.c static void mos7840_bulk_in_callback(struct urb *urb) urb 740 drivers/usb/serial/mos7840.c int status = urb->status; urb 742 drivers/usb/serial/mos7840.c mos7840_port = urb->context; urb 747 drivers/usb/serial/mos7840.c dev_dbg(&urb->dev->dev, "nonzero read bulk status received: %d\n", status); urb 764 drivers/usb/serial/mos7840.c data = urb->transfer_buffer; urb 765 drivers/usb/serial/mos7840.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); urb 767 drivers/usb/serial/mos7840.c if (urb->actual_length) { urb 769 drivers/usb/serial/mos7840.c tty_insert_flip_string(tport, data, urb->actual_length); urb 771 drivers/usb/serial/mos7840.c port->icount.rx += urb->actual_length; urb 799 drivers/usb/serial/mos7840.c static void mos7840_bulk_out_data_callback(struct urb *urb) urb 803 drivers/usb/serial/mos7840.c int status = urb->status; urb 807 drivers/usb/serial/mos7840.c mos7840_port = urb->context; urb 811 drivers/usb/serial/mos7840.c if (urb == mos7840_port->write_urb_pool[i]) { urb 847 drivers/usb/serial/mos7840.c struct urb *urb; urb 873 drivers/usb/serial/mos7840.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 874 drivers/usb/serial/mos7840.c mos7840_port->write_urb_pool[j] = urb; urb 875 drivers/usb/serial/mos7840.c if (!urb) urb 878 drivers/usb/serial/mos7840.c urb->transfer_buffer = kmalloc(URB_TRANSFER_BUFFER_SIZE, urb 880 drivers/usb/serial/mos7840.c if (!urb->transfer_buffer) { urb 881 drivers/usb/serial/mos7840.c usb_free_urb(urb); urb 1101 drivers/usb/serial/mos7840.c urb = mos7840_port->write_urb_pool[j]; urb 1102 drivers/usb/serial/mos7840.c if (!urb) urb 1104 drivers/usb/serial/mos7840.c kfree(urb->transfer_buffer); urb 1105 drivers/usb/serial/mos7840.c usb_free_urb(urb); urb 1138 drivers/usb/serial/mos7840.c struct urb *urb = mos7840_port->write_urb_pool[i]; urb 1139 drivers/usb/serial/mos7840.c chars += urb->transfer_buffer_length; urb 1296 drivers/usb/serial/mos7840.c struct urb *urb; urb 1312 drivers/usb/serial/mos7840.c urb = NULL; urb 1318 drivers/usb/serial/mos7840.c urb = mos7840_port->write_urb_pool[i]; urb 1325 drivers/usb/serial/mos7840.c if (urb == NULL) { urb 1330 drivers/usb/serial/mos7840.c if (urb->transfer_buffer == NULL) { urb 1331 drivers/usb/serial/mos7840.c urb->transfer_buffer = kmalloc(URB_TRANSFER_BUFFER_SIZE, urb 1333 drivers/usb/serial/mos7840.c if (!urb->transfer_buffer) urb 1338 drivers/usb/serial/mos7840.c memcpy(urb->transfer_buffer, current_position, transfer_size); urb 1342 drivers/usb/serial/mos7840.c usb_fill_bulk_urb(urb, urb 1346 drivers/usb/serial/mos7840.c urb->transfer_buffer, urb 1350 drivers/usb/serial/mos7840.c usb_fill_bulk_urb(urb, urb 1354 drivers/usb/serial/mos7840.c urb->transfer_buffer, urb 1365 drivers/usb/serial/mos7840.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 470 drivers/usb/serial/mxuport.c static void mxuport_process_read_urb_demux_data(struct urb *urb) urb 472 drivers/usb/serial/mxuport.c struct usb_serial_port *port = urb->context; urb 474 drivers/usb/serial/mxuport.c u8 *data = urb->transfer_buffer; urb 475 drivers/usb/serial/mxuport.c u8 *end = data + urb->actual_length; urb 517 drivers/usb/serial/mxuport.c static void mxuport_process_read_urb_demux_event(struct urb *urb) urb 519 drivers/usb/serial/mxuport.c struct usb_serial_port *port = urb->context; urb 521 drivers/usb/serial/mxuport.c u8 *data = urb->transfer_buffer; urb 522 drivers/usb/serial/mxuport.c u8 *end = data + urb->actual_length; urb 561 drivers/usb/serial/mxuport.c static void mxuport_process_read_urb(struct urb *urb) urb 563 drivers/usb/serial/mxuport.c struct usb_serial_port *port = urb->context; urb 567 drivers/usb/serial/mxuport.c mxuport_process_read_urb_demux_data(urb); urb 570 drivers/usb/serial/mxuport.c mxuport_process_read_urb_demux_event(urb); urb 27 drivers/usb/serial/navman.c static void navman_read_int_callback(struct urb *urb) urb 29 drivers/usb/serial/navman.c struct usb_serial_port *port = urb->context; urb 30 drivers/usb/serial/navman.c unsigned char *data = urb->transfer_buffer; urb 31 drivers/usb/serial/navman.c int status = urb->status; urb 51 drivers/usb/serial/navman.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); urb 53 drivers/usb/serial/navman.c if (urb->actual_length) { urb 54 drivers/usb/serial/navman.c tty_insert_flip_string(&port->port, data, urb->actual_length); urb 59 drivers/usb/serial/navman.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 61 drivers/usb/serial/navman.c dev_err(&urb->dev->dev, urb 33 drivers/usb/serial/omninet.c static void omninet_process_read_urb(struct urb *urb); urb 138 drivers/usb/serial/omninet.c static void omninet_process_read_urb(struct urb *urb) urb 140 drivers/usb/serial/omninet.c struct usb_serial_port *port = urb->context; urb 141 drivers/usb/serial/omninet.c const struct omninet_header *hdr = urb->transfer_buffer; urb 145 drivers/usb/serial/omninet.c if (urb->actual_length <= OMNINET_HEADERLEN || !hdr->oh_len) urb 148 drivers/usb/serial/omninet.c data = (char *)urb->transfer_buffer + OMNINET_HEADERLEN; urb 149 drivers/usb/serial/omninet.c data_len = min_t(size_t, urb->actual_length - OMNINET_HEADERLEN, urb 68 drivers/usb/serial/opticon.c static void opticon_process_read_urb(struct urb *urb) urb 70 drivers/usb/serial/opticon.c struct usb_serial_port *port = urb->context; urb 71 drivers/usb/serial/opticon.c const unsigned char *hdr = urb->transfer_buffer; urb 73 drivers/usb/serial/opticon.c size_t data_len = urb->actual_length - 2; urb 75 drivers/usb/serial/opticon.c if (urb->actual_length <= 2) { urb 77 drivers/usb/serial/opticon.c urb->actual_length); urb 152 drivers/usb/serial/opticon.c static void opticon_write_control_callback(struct urb *urb) urb 154 drivers/usb/serial/opticon.c struct usb_serial_port *port = urb->context; urb 156 drivers/usb/serial/opticon.c int status = urb->status; urb 160 drivers/usb/serial/opticon.c kfree(urb->transfer_buffer); urb 163 drivers/usb/serial/opticon.c kfree(urb->setup_packet); urb 182 drivers/usb/serial/opticon.c struct urb *urb; urb 203 drivers/usb/serial/opticon.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 204 drivers/usb/serial/opticon.c if (!urb) { urb 227 drivers/usb/serial/opticon.c usb_fill_control_urb(urb, serial->dev, urb 233 drivers/usb/serial/opticon.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 244 drivers/usb/serial/opticon.c usb_free_urb(urb); urb 250 drivers/usb/serial/opticon.c usb_free_urb(urb); urb 48 drivers/usb/serial/option.c static void option_instat_callback(struct urb *urb); urb 2142 drivers/usb/serial/option.c static void option_instat_callback(struct urb *urb) urb 2145 drivers/usb/serial/option.c int status = urb->status; urb 2146 drivers/usb/serial/option.c struct usb_serial_port *port = urb->context; urb 2151 drivers/usb/serial/option.c dev_dbg(dev, "%s: urb %p port %p has data %p\n", __func__, urb, port, portdata); urb 2155 drivers/usb/serial/option.c (struct usb_ctrlrequest *)urb->transfer_buffer; urb 2165 drivers/usb/serial/option.c urb->transfer_buffer + urb 2190 drivers/usb/serial/option.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 124 drivers/usb/serial/oti6858.c static void oti6858_read_int_callback(struct urb *urb); urb 125 drivers/usb/serial/oti6858.c static void oti6858_read_bulk_callback(struct urb *urb); urb 126 drivers/usb/serial/oti6858.c static void oti6858_write_bulk_callback(struct urb *urb); urb 641 drivers/usb/serial/oti6858.c static void oti6858_read_int_callback(struct urb *urb) urb 643 drivers/usb/serial/oti6858.c struct usb_serial_port *port = urb->context; urb 646 drivers/usb/serial/oti6858.c int status = urb->status; urb 656 drivers/usb/serial/oti6858.c dev_dbg(&urb->dev->dev, "%s(): urb shutting down with status: %d\n", urb 660 drivers/usb/serial/oti6858.c dev_dbg(&urb->dev->dev, "%s(): nonzero urb status received: %d\n", urb 665 drivers/usb/serial/oti6858.c if (status == 0 && urb->actual_length == OTI6858_CTRL_PKT_SIZE) { urb 666 drivers/usb/serial/oti6858.c struct oti6858_control_pkt *xs = urb->transfer_buffer; urb 756 drivers/usb/serial/oti6858.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 758 drivers/usb/serial/oti6858.c dev_err(&urb->dev->dev, urb 765 drivers/usb/serial/oti6858.c static void oti6858_read_bulk_callback(struct urb *urb) urb 767 drivers/usb/serial/oti6858.c struct usb_serial_port *port = urb->context; urb 769 drivers/usb/serial/oti6858.c unsigned char *data = urb->transfer_buffer; urb 771 drivers/usb/serial/oti6858.c int status = urb->status; urb 779 drivers/usb/serial/oti6858.c dev_dbg(&urb->dev->dev, "%s(): unable to handle the error, exiting\n", __func__); urb 783 drivers/usb/serial/oti6858.c if (urb->actual_length > 0) { urb 784 drivers/usb/serial/oti6858.c tty_insert_flip_string(&port->port, data, urb->actual_length); urb 796 drivers/usb/serial/oti6858.c static void oti6858_write_bulk_callback(struct urb *urb) urb 798 drivers/usb/serial/oti6858.c struct usb_serial_port *port = urb->context; urb 800 drivers/usb/serial/oti6858.c int status = urb->status; urb 811 drivers/usb/serial/oti6858.c dev_dbg(&urb->dev->dev, "%s(): urb shutting down with status: %d\n", __func__, status); urb 816 drivers/usb/serial/oti6858.c dev_dbg(&urb->dev->dev, "%s(): nonzero write bulk status received: %d\n", __func__, status); urb 817 drivers/usb/serial/oti6858.c dev_dbg(&urb->dev->dev, "%s(): overflow in write\n", __func__); urb 950 drivers/usb/serial/pl2303.c static void pl2303_read_int_callback(struct urb *urb) urb 952 drivers/usb/serial/pl2303.c struct usb_serial_port *port = urb->context; urb 953 drivers/usb/serial/pl2303.c unsigned char *data = urb->transfer_buffer; urb 954 drivers/usb/serial/pl2303.c unsigned int actual_length = urb->actual_length; urb 955 drivers/usb/serial/pl2303.c int status = urb->status; urb 976 drivers/usb/serial/pl2303.c urb->actual_length, urb->transfer_buffer); urb 981 drivers/usb/serial/pl2303.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 989 drivers/usb/serial/pl2303.c static void pl2303_process_read_urb(struct urb *urb) urb 991 drivers/usb/serial/pl2303.c struct usb_serial_port *port = urb->context; urb 993 drivers/usb/serial/pl2303.c unsigned char *data = urb->transfer_buffer; urb 1005 drivers/usb/serial/pl2303.c if (!urb->actual_length) urb 1027 drivers/usb/serial/pl2303.c for (i = 0; i < urb->actual_length; ++i) urb 1033 drivers/usb/serial/pl2303.c urb->actual_length); urb 110 drivers/usb/serial/quatech2.c struct urb *read_urb; /* shared among all ports */ urb 119 drivers/usb/serial/quatech2.c struct urb *write_urb; urb 131 drivers/usb/serial/quatech2.c static void qt2_write_bulk_callback(struct urb *urb); urb 132 drivers/usb/serial/quatech2.c static void qt2_read_bulk_callback(struct urb *urb); urb 498 drivers/usb/serial/quatech2.c static void qt2_process_read_urb(struct urb *urb) urb 507 drivers/usb/serial/quatech2.c int len = urb->actual_length; urb 512 drivers/usb/serial/quatech2.c ch = urb->transfer_buffer; urb 513 drivers/usb/serial/quatech2.c serial = urb->context; urb 517 drivers/usb/serial/quatech2.c for (i = 0; i < urb->actual_length; i++) { urb 518 drivers/usb/serial/quatech2.c ch = (unsigned char *)urb->transfer_buffer + i; urb 597 drivers/usb/serial/quatech2.c static void qt2_write_bulk_callback(struct urb *urb) urb 603 drivers/usb/serial/quatech2.c port = urb->context; urb 615 drivers/usb/serial/quatech2.c static void qt2_read_bulk_callback(struct urb *urb) urb 617 drivers/usb/serial/quatech2.c struct usb_serial *serial = urb->context; urb 620 drivers/usb/serial/quatech2.c if (urb->status) { urb 623 drivers/usb/serial/quatech2.c urb->status); urb 627 drivers/usb/serial/quatech2.c qt2_process_read_urb(urb); urb 629 drivers/usb/serial/quatech2.c status = usb_submit_urb(urb, GFP_ATOMIC); urb 932 drivers/usb/serial/quatech2.c struct urb *write_urb; urb 185 drivers/usb/serial/safe_serial.c static void safe_process_read_urb(struct urb *urb) urb 187 drivers/usb/serial/safe_serial.c struct usb_serial_port *port = urb->context; urb 188 drivers/usb/serial/safe_serial.c unsigned char *data = urb->transfer_buffer; urb 189 drivers/usb/serial/safe_serial.c unsigned char length = urb->actual_length; urb 216 drivers/usb/serial/safe_serial.c dev_info(&urb->dev->dev, "%s - actual: %d\n", __func__, actual_length); urb 296 drivers/usb/serial/sierra.c struct urb *in_urbs[N_IN_URB_HM]; urb 398 drivers/usb/serial/sierra.c static void sierra_release_urb(struct urb *urb) urb 400 drivers/usb/serial/sierra.c if (urb) { urb 401 drivers/usb/serial/sierra.c kfree(urb->transfer_buffer); urb 402 drivers/usb/serial/sierra.c usb_free_urb(urb); urb 406 drivers/usb/serial/sierra.c static void sierra_outdat_callback(struct urb *urb) urb 408 drivers/usb/serial/sierra.c struct usb_serial_port *port = urb->context; urb 411 drivers/usb/serial/sierra.c int status = urb->status; urb 417 drivers/usb/serial/sierra.c kfree(urb->transfer_buffer); urb 442 drivers/usb/serial/sierra.c struct urb *urb; urb 481 drivers/usb/serial/sierra.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 482 drivers/usb/serial/sierra.c if (!urb) { urb 491 drivers/usb/serial/sierra.c usb_fill_bulk_urb(urb, serial->dev, urb 497 drivers/usb/serial/sierra.c urb->transfer_flags |= URB_ZERO_PACKET; urb 502 drivers/usb/serial/sierra.c usb_anchor_urb(urb, &portdata->delayed); urb 506 drivers/usb/serial/sierra.c usb_anchor_urb(urb, &portdata->active); urb 509 drivers/usb/serial/sierra.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 511 drivers/usb/serial/sierra.c usb_unanchor_urb(urb); urb 524 drivers/usb/serial/sierra.c usb_free_urb(urb); urb 528 drivers/usb/serial/sierra.c usb_free_urb(urb); urb 542 drivers/usb/serial/sierra.c static void sierra_indat_callback(struct urb *urb) urb 547 drivers/usb/serial/sierra.c unsigned char *data = urb->transfer_buffer; urb 548 drivers/usb/serial/sierra.c int status = urb->status; urb 550 drivers/usb/serial/sierra.c endpoint = usb_pipeendpoint(urb->pipe); urb 551 drivers/usb/serial/sierra.c port = urb->context; urb 557 drivers/usb/serial/sierra.c if (urb->actual_length) { urb 559 drivers/usb/serial/sierra.c urb->actual_length); urb 563 drivers/usb/serial/sierra.c urb->actual_length, data); urb 573 drivers/usb/serial/sierra.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 580 drivers/usb/serial/sierra.c static void sierra_instat_callback(struct urb *urb) urb 583 drivers/usb/serial/sierra.c int status = urb->status; urb 584 drivers/usb/serial/sierra.c struct usb_serial_port *port = urb->context; urb 589 drivers/usb/serial/sierra.c urb, port, portdata); urb 593 drivers/usb/serial/sierra.c (struct usb_ctrlrequest *)urb->transfer_buffer; urb 604 drivers/usb/serial/sierra.c urb->transfer_buffer + urb 629 drivers/usb/serial/sierra.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 688 drivers/usb/serial/sierra.c struct urb *urb; urb 693 drivers/usb/serial/sierra.c urb = portdata->in_urbs[i]; urb 694 drivers/usb/serial/sierra.c if (!urb) urb 696 drivers/usb/serial/sierra.c err = usb_submit_urb(urb, mem_flags); urb 719 drivers/usb/serial/sierra.c static struct urb *sierra_setup_urb(struct usb_serial *serial, int endpoint, urb 724 drivers/usb/serial/sierra.c struct urb *urb; urb 727 drivers/usb/serial/sierra.c urb = usb_alloc_urb(0, mem_flags); urb 728 drivers/usb/serial/sierra.c if (!urb) urb 734 drivers/usb/serial/sierra.c usb_fill_bulk_urb(urb, serial->dev, urb 739 drivers/usb/serial/sierra.c dir == USB_DIR_IN ? 'i' : 'o', urb, buf); urb 741 drivers/usb/serial/sierra.c sierra_release_urb(urb); urb 742 drivers/usb/serial/sierra.c urb = NULL; urb 745 drivers/usb/serial/sierra.c return urb; urb 754 drivers/usb/serial/sierra.c struct urb *urb; urb 768 drivers/usb/serial/sierra.c urb = usb_get_from_anchor(&portdata->delayed); urb 769 drivers/usb/serial/sierra.c if (!urb) urb 771 drivers/usb/serial/sierra.c kfree(urb->transfer_buffer); urb 772 drivers/usb/serial/sierra.c usb_free_urb(urb); urb 798 drivers/usb/serial/sierra.c struct urb *urb; urb 804 drivers/usb/serial/sierra.c urb = sierra_setup_urb(serial, endpoint, USB_DIR_IN, port, urb 807 drivers/usb/serial/sierra.c portdata->in_urbs[i] = urb; urb 977 drivers/usb/serial/sierra.c struct urb *urb; urb 984 drivers/usb/serial/sierra.c urb = usb_get_from_anchor(&portdata->delayed); urb 985 drivers/usb/serial/sierra.c if (!urb) urb 988 drivers/usb/serial/sierra.c usb_anchor_urb(urb, &portdata->active); urb 990 drivers/usb/serial/sierra.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 996 drivers/usb/serial/sierra.c usb_unanchor_urb(urb); urb 997 drivers/usb/serial/sierra.c kfree(urb->transfer_buffer); urb 998 drivers/usb/serial/sierra.c usb_free_urb(urb); urb 495 drivers/usb/serial/ssu100.c static void ssu100_process_read_urb(struct urb *urb) urb 497 drivers/usb/serial/ssu100.c struct usb_serial_port *port = urb->context; urb 498 drivers/usb/serial/ssu100.c char *packet = (char *)urb->transfer_buffer; urb 500 drivers/usb/serial/ssu100.c u32 len = urb->actual_length; urb 32 drivers/usb/serial/symbolserial.c static void symbol_int_callback(struct urb *urb) urb 34 drivers/usb/serial/symbolserial.c struct usb_serial_port *port = urb->context; urb 36 drivers/usb/serial/symbolserial.c unsigned char *data = urb->transfer_buffer; urb 37 drivers/usb/serial/symbolserial.c int status = urb->status; urb 59 drivers/usb/serial/symbolserial.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); urb 66 drivers/usb/serial/symbolserial.c if (urb->actual_length > 1) { urb 68 drivers/usb/serial/symbolserial.c if (data_length > (urb->actual_length - 1)) urb 69 drivers/usb/serial/symbolserial.c data_length = urb->actual_length - 1; urb 322 drivers/usb/serial/ti_usb_3410_5052.c static void ti_interrupt_callback(struct urb *urb); urb 323 drivers/usb/serial/ti_usb_3410_5052.c static void ti_bulk_in_callback(struct urb *urb); urb 324 drivers/usb/serial/ti_usb_3410_5052.c static void ti_bulk_out_callback(struct urb *urb); urb 647 drivers/usb/serial/ti_usb_3410_5052.c struct urb *urb; urb 671 drivers/usb/serial/ti_usb_3410_5052.c urb = tdev->td_serial->port[0]->interrupt_in_urb; urb 672 drivers/usb/serial/ti_usb_3410_5052.c if (!urb) { urb 677 drivers/usb/serial/ti_usb_3410_5052.c urb->context = tdev; urb 678 drivers/usb/serial/ti_usb_3410_5052.c status = usb_submit_urb(urb, GFP_KERNEL); urb 744 drivers/usb/serial/ti_usb_3410_5052.c urb = port->read_urb; urb 745 drivers/usb/serial/ti_usb_3410_5052.c if (!urb) { urb 751 drivers/usb/serial/ti_usb_3410_5052.c urb->context = tport; urb 752 drivers/usb/serial/ti_usb_3410_5052.c status = usb_submit_urb(urb, GFP_KERNEL); urb 1108 drivers/usb/serial/ti_usb_3410_5052.c static void ti_interrupt_callback(struct urb *urb) urb 1110 drivers/usb/serial/ti_usb_3410_5052.c struct ti_device *tdev = urb->context; urb 1114 drivers/usb/serial/ti_usb_3410_5052.c struct device *dev = &urb->dev->dev; urb 1115 drivers/usb/serial/ti_usb_3410_5052.c unsigned char *data = urb->transfer_buffer; urb 1116 drivers/usb/serial/ti_usb_3410_5052.c int length = urb->actual_length; urb 1119 drivers/usb/serial/ti_usb_3410_5052.c int status = urb->status; urb 1183 drivers/usb/serial/ti_usb_3410_5052.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 1190 drivers/usb/serial/ti_usb_3410_5052.c static void ti_bulk_in_callback(struct urb *urb) urb 1192 drivers/usb/serial/ti_usb_3410_5052.c struct ti_port *tport = urb->context; urb 1194 drivers/usb/serial/ti_usb_3410_5052.c struct device *dev = &urb->dev->dev; urb 1195 drivers/usb/serial/ti_usb_3410_5052.c int status = urb->status; urb 1220 drivers/usb/serial/ti_usb_3410_5052.c if (urb->actual_length) { urb 1221 drivers/usb/serial/ti_usb_3410_5052.c usb_serial_debug_data(dev, __func__, urb->actual_length, urb 1222 drivers/usb/serial/ti_usb_3410_5052.c urb->transfer_buffer); urb 1228 drivers/usb/serial/ti_usb_3410_5052.c ti_recv(port, urb->transfer_buffer, urb->actual_length); urb 1230 drivers/usb/serial/ti_usb_3410_5052.c port->icount.rx += urb->actual_length; urb 1238 drivers/usb/serial/ti_usb_3410_5052.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 1249 drivers/usb/serial/ti_usb_3410_5052.c static void ti_bulk_out_callback(struct urb *urb) urb 1251 drivers/usb/serial/ti_usb_3410_5052.c struct ti_port *tport = urb->context; urb 1253 drivers/usb/serial/ti_usb_3410_5052.c int status = urb->status; urb 1486 drivers/usb/serial/ti_usb_3410_5052.c struct urb *urb; urb 1494 drivers/usb/serial/ti_usb_3410_5052.c urb = tport->tp_port->read_urb; urb 1496 drivers/usb/serial/ti_usb_3410_5052.c urb->context = tport; urb 1497 drivers/usb/serial/ti_usb_3410_5052.c status = usb_submit_urb(urb, GFP_KERNEL); urb 49 drivers/usb/serial/usb-wwan.h struct urb *in_urbs[N_IN_URB]; urb 52 drivers/usb/serial/usb-wwan.h struct urb *out_urbs[N_OUT_URB]; urb 58 drivers/usb/serial/usb_debug.c static void usb_debug_process_read_urb(struct urb *urb) urb 60 drivers/usb/serial/usb_debug.c struct usb_serial_port *port = urb->context; urb 62 drivers/usb/serial/usb_debug.c if (urb->actual_length == USB_DEBUG_BRK_SIZE && urb 63 drivers/usb/serial/usb_debug.c memcmp(urb->transfer_buffer, USB_DEBUG_BRK, urb 69 drivers/usb/serial/usb_debug.c usb_serial_generic_process_read_urb(urb); urb 187 drivers/usb/serial/usb_wwan.c struct urb *this_urb = NULL; /* spurious */ urb 257 drivers/usb/serial/usb_wwan.c static void usb_wwan_indat_callback(struct urb *urb) urb 263 drivers/usb/serial/usb_wwan.c unsigned char *data = urb->transfer_buffer; urb 264 drivers/usb/serial/usb_wwan.c int status = urb->status; urb 266 drivers/usb/serial/usb_wwan.c endpoint = usb_pipeendpoint(urb->pipe); urb 267 drivers/usb/serial/usb_wwan.c port = urb->context; urb 278 drivers/usb/serial/usb_wwan.c if (urb->actual_length) { urb 280 drivers/usb/serial/usb_wwan.c urb->actual_length); urb 286 drivers/usb/serial/usb_wwan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 299 drivers/usb/serial/usb_wwan.c static void usb_wwan_outdat_callback(struct urb *urb) urb 307 drivers/usb/serial/usb_wwan.c port = urb->context; urb 318 drivers/usb/serial/usb_wwan.c if (portdata->out_urbs[i] == urb) { urb 332 drivers/usb/serial/usb_wwan.c struct urb *this_urb; urb 353 drivers/usb/serial/usb_wwan.c struct urb *this_urb; urb 375 drivers/usb/serial/usb_wwan.c struct urb *urb; urb 390 drivers/usb/serial/usb_wwan.c urb = portdata->in_urbs[i]; urb 391 drivers/usb/serial/usb_wwan.c if (!urb) urb 393 drivers/usb/serial/usb_wwan.c err = usb_submit_urb(urb, GFP_KERNEL); urb 412 drivers/usb/serial/usb_wwan.c static void unbusy_queued_urb(struct urb *urb, urb 418 drivers/usb/serial/usb_wwan.c if (urb == portdata->out_urbs[i]) { urb 431 drivers/usb/serial/usb_wwan.c struct urb *urb; urb 445 drivers/usb/serial/usb_wwan.c urb = usb_get_from_anchor(&portdata->delayed); urb 446 drivers/usb/serial/usb_wwan.c if (!urb) urb 448 drivers/usb/serial/usb_wwan.c unbusy_queued_urb(urb, portdata); urb 462 drivers/usb/serial/usb_wwan.c static struct urb *usb_wwan_setup_urb(struct usb_serial_port *port, urb 465 drivers/usb/serial/usb_wwan.c void (*callback) (struct urb *)) urb 469 drivers/usb/serial/usb_wwan.c struct urb *urb; urb 471 drivers/usb/serial/usb_wwan.c urb = usb_alloc_urb(0, GFP_KERNEL); /* No ISO */ urb 472 drivers/usb/serial/usb_wwan.c if (!urb) urb 475 drivers/usb/serial/usb_wwan.c usb_fill_bulk_urb(urb, serial->dev, urb 480 drivers/usb/serial/usb_wwan.c urb->transfer_flags |= URB_ZERO_PACKET; urb 482 drivers/usb/serial/usb_wwan.c return urb; urb 488 drivers/usb/serial/usb_wwan.c struct urb *urb; urb 507 drivers/usb/serial/usb_wwan.c urb = usb_wwan_setup_urb(port, port->bulk_in_endpointAddress, urb 511 drivers/usb/serial/usb_wwan.c portdata->in_urbs[i] = urb; urb 520 drivers/usb/serial/usb_wwan.c urb = usb_wwan_setup_urb(port, port->bulk_out_endpointAddress, urb 524 drivers/usb/serial/usb_wwan.c portdata->out_urbs[i] = urb; urb 616 drivers/usb/serial/usb_wwan.c struct urb *urb; urb 623 drivers/usb/serial/usb_wwan.c urb = usb_get_from_anchor(&portdata->delayed); urb 624 drivers/usb/serial/usb_wwan.c if (!urb) urb 627 drivers/usb/serial/usb_wwan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 632 drivers/usb/serial/usb_wwan.c unbusy_queued_urb(urb, portdata); urb 651 drivers/usb/serial/usb_wwan.c struct urb *urb; urb 680 drivers/usb/serial/usb_wwan.c urb = portdata->in_urbs[j]; urb 681 drivers/usb/serial/usb_wwan.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 44 drivers/usb/serial/visor.c static void visor_read_int_callback(struct urb *urb); urb 270 drivers/usb/serial/visor.c static void visor_read_int_callback(struct urb *urb) urb 272 drivers/usb/serial/visor.c struct usb_serial_port *port = urb->context; urb 273 drivers/usb/serial/visor.c int status = urb->status; urb 300 drivers/usb/serial/visor.c usb_serial_debug_data(&port->dev, __func__, urb->actual_length, urb 301 drivers/usb/serial/visor.c urb->transfer_buffer); urb 304 drivers/usb/serial/visor.c result = usb_submit_urb(urb, GFP_ATOMIC); urb 306 drivers/usb/serial/visor.c dev_err(&urb->dev->dev, urb 154 drivers/usb/serial/whiteheat.c static void command_port_write_callback(struct urb *urb); urb 155 drivers/usb/serial/whiteheat.c static void command_port_read_callback(struct urb *urb); urb 479 drivers/usb/serial/whiteheat.c static void command_port_write_callback(struct urb *urb) urb 481 drivers/usb/serial/whiteheat.c int status = urb->status; urb 484 drivers/usb/serial/whiteheat.c dev_dbg(&urb->dev->dev, "nonzero urb status: %d\n", status); urb 490 drivers/usb/serial/whiteheat.c static void command_port_read_callback(struct urb *urb) urb 492 drivers/usb/serial/whiteheat.c struct usb_serial_port *command_port = urb->context; urb 494 drivers/usb/serial/whiteheat.c int status = urb->status; urb 495 drivers/usb/serial/whiteheat.c unsigned char *data = urb->transfer_buffer; urb 500 drivers/usb/serial/whiteheat.c dev_dbg(&urb->dev->dev, "%s - command_info is NULL, exiting.\n", __func__); urb 503 drivers/usb/serial/whiteheat.c if (!urb->actual_length) { urb 504 drivers/usb/serial/whiteheat.c dev_dbg(&urb->dev->dev, "%s - empty response, exiting.\n", __func__); urb 508 drivers/usb/serial/whiteheat.c dev_dbg(&urb->dev->dev, "%s - nonzero urb status: %d\n", __func__, status); urb 515 drivers/usb/serial/whiteheat.c usb_serial_debug_data(&command_port->dev, __func__, urb->actual_length, data); urb 526 drivers/usb/serial/whiteheat.c dev_dbg(&urb->dev->dev, "%s - event received\n", __func__); urb 528 drivers/usb/serial/whiteheat.c (urb->actual_length - 1 <= sizeof(command_info->result_buffer))) { urb 530 drivers/usb/serial/whiteheat.c urb->actual_length - 1); urb 534 drivers/usb/serial/whiteheat.c dev_dbg(&urb->dev->dev, "%s - bad reply from firmware\n", __func__); urb 539 drivers/usb/serial/whiteheat.c dev_dbg(&urb->dev->dev, "%s - failed resubmitting read urb, error %d\n", urb 42 drivers/usb/storage/onetouch.c struct urb *irq; /* urb for interrupt in report */ urb 88 drivers/usb/storage/onetouch.c static void usb_onetouch_irq(struct urb *urb) urb 90 drivers/usb/storage/onetouch.c struct usb_onetouch *onetouch = urb->context; urb 93 drivers/usb/storage/onetouch.c int status = urb->status; urb 112 drivers/usb/storage/onetouch.c retval = usb_submit_urb (urb, GFP_ATOMIC); urb 101 drivers/usb/storage/transport.c static void usb_stor_blocking_completion(struct urb *urb) urb 103 drivers/usb/storage/transport.c struct completion *urb_done_ptr = urb->context; urb 70 drivers/usb/storage/uas.c struct urb *cmd_urb; urb 71 drivers/usb/storage/uas.c struct urb *data_in_urb; urb 72 drivers/usb/storage/uas.c struct urb *data_out_urb; urb 177 drivers/usb/storage/uas.c static void uas_sense(struct urb *urb, struct scsi_cmnd *cmnd) urb 179 drivers/usb/storage/uas.c struct sense_iu *sense_iu = urb->transfer_buffer; urb 182 drivers/usb/storage/uas.c if (urb->actual_length > 16) { urb 184 drivers/usb/storage/uas.c if (len + 16 != urb->actual_length) { urb 185 drivers/usb/storage/uas.c int newlen = min(len + 16, urb->actual_length) - 16; urb 191 drivers/usb/storage/uas.c urb->actual_length, len, newlen); urb 263 drivers/usb/storage/uas.c static void uas_xfer_data(struct urb *urb, struct scsi_cmnd *cmnd, urb 299 drivers/usb/storage/uas.c static void uas_stat_cmplt(struct urb *urb) urb 301 drivers/usb/storage/uas.c struct iu *iu = urb->transfer_buffer; urb 302 drivers/usb/storage/uas.c struct Scsi_Host *shost = urb->context; urb 304 drivers/usb/storage/uas.c struct urb *data_in_urb = NULL; urb 305 drivers/usb/storage/uas.c struct urb *data_out_urb = NULL; urb 310 drivers/usb/storage/uas.c int status = urb->status; urb 320 drivers/usb/storage/uas.c dev_err(&urb->dev->dev, "stat urb: status %d\n", status); urb 326 drivers/usb/storage/uas.c dev_err(&urb->dev->dev, urb 341 drivers/usb/storage/uas.c uas_sense(urb, cmnd); urb 356 drivers/usb/storage/uas.c uas_xfer_data(urb, cmnd, SUBMIT_DATA_IN_URB); urb 364 drivers/usb/storage/uas.c uas_xfer_data(urb, cmnd, SUBMIT_DATA_OUT_URB); urb 380 drivers/usb/storage/uas.c usb_free_urb(urb); urb 394 drivers/usb/storage/uas.c static void uas_data_cmplt(struct urb *urb) urb 396 drivers/usb/storage/uas.c struct scsi_cmnd *cmnd = urb->context; urb 401 drivers/usb/storage/uas.c int status = urb->status; urb 405 drivers/usb/storage/uas.c if (cmdinfo->data_in_urb == urb) { urb 408 drivers/usb/storage/uas.c } else if (cmdinfo->data_out_urb == urb) { urb 428 drivers/usb/storage/uas.c scsi_set_resid(cmnd, sdb->length - urb->actual_length); urb 432 drivers/usb/storage/uas.c usb_free_urb(urb); urb 436 drivers/usb/storage/uas.c static void uas_cmd_cmplt(struct urb *urb) urb 438 drivers/usb/storage/uas.c if (urb->status) urb 439 drivers/usb/storage/uas.c dev_err(&urb->dev->dev, "cmd cmplt err %d\n", urb->status); urb 441 drivers/usb/storage/uas.c usb_free_urb(urb); urb 444 drivers/usb/storage/uas.c static struct urb *uas_alloc_data_urb(struct uas_dev_info *devinfo, gfp_t gfp, urb 450 drivers/usb/storage/uas.c struct urb *urb = usb_alloc_urb(0, gfp); urb 455 drivers/usb/storage/uas.c if (!urb) urb 457 drivers/usb/storage/uas.c usb_fill_bulk_urb(urb, udev, pipe, NULL, sdb->length, urb 460 drivers/usb/storage/uas.c urb->stream_id = cmdinfo->uas_tag; urb 461 drivers/usb/storage/uas.c urb->num_sgs = udev->bus->sg_tablesize ? sdb->table.nents : 0; urb 462 drivers/usb/storage/uas.c urb->sg = sdb->table.sgl; urb 464 drivers/usb/storage/uas.c return urb; urb 467 drivers/usb/storage/uas.c static struct urb *uas_alloc_sense_urb(struct uas_dev_info *devinfo, gfp_t gfp, urb 472 drivers/usb/storage/uas.c struct urb *urb = usb_alloc_urb(0, gfp); urb 475 drivers/usb/storage/uas.c if (!urb) urb 482 drivers/usb/storage/uas.c usb_fill_bulk_urb(urb, udev, devinfo->status_pipe, iu, sizeof(*iu), urb 485 drivers/usb/storage/uas.c urb->stream_id = cmdinfo->uas_tag; urb 486 drivers/usb/storage/uas.c urb->transfer_flags |= URB_FREE_BUFFER; urb 488 drivers/usb/storage/uas.c return urb; urb 490 drivers/usb/storage/uas.c usb_free_urb(urb); urb 494 drivers/usb/storage/uas.c static struct urb *uas_alloc_cmd_urb(struct uas_dev_info *devinfo, gfp_t gfp, urb 500 drivers/usb/storage/uas.c struct urb *urb = usb_alloc_urb(0, gfp); urb 504 drivers/usb/storage/uas.c if (!urb) urb 522 drivers/usb/storage/uas.c usb_fill_bulk_urb(urb, udev, devinfo->cmd_pipe, iu, sizeof(*iu) + len, urb 524 drivers/usb/storage/uas.c urb->transfer_flags |= URB_FREE_BUFFER; urb 526 drivers/usb/storage/uas.c return urb; urb 528 drivers/usb/storage/uas.c usb_free_urb(urb); urb 538 drivers/usb/storage/uas.c static struct urb *uas_submit_sense_urb(struct scsi_cmnd *cmnd, gfp_t gfp) urb 541 drivers/usb/storage/uas.c struct urb *urb; urb 544 drivers/usb/storage/uas.c urb = uas_alloc_sense_urb(devinfo, gfp, cmnd); urb 545 drivers/usb/storage/uas.c if (!urb) urb 547 drivers/usb/storage/uas.c usb_anchor_urb(urb, &devinfo->sense_urbs); urb 548 drivers/usb/storage/uas.c err = usb_submit_urb(urb, gfp); urb 550 drivers/usb/storage/uas.c usb_unanchor_urb(urb); urb 552 drivers/usb/storage/uas.c usb_free_urb(urb); urb 555 drivers/usb/storage/uas.c return urb; urb 562 drivers/usb/storage/uas.c struct urb *urb; urb 567 drivers/usb/storage/uas.c urb = uas_submit_sense_urb(cmnd, GFP_ATOMIC); urb 568 drivers/usb/storage/uas.c if (!urb) urb 727 drivers/usb/storage/uas.c struct urb *data_in_urb = NULL; urb 728 drivers/usb/storage/uas.c struct urb *data_out_urb = NULL; urb 127 drivers/usb/storage/usb.h struct urb *current_urb; /* USB requests */ urb 52 drivers/usb/usb-skeleton.c struct urb *bulk_in_urb; /* the urb to read data with */ urb 160 drivers/usb/usb-skeleton.c static void skel_read_bulk_callback(struct urb *urb) urb 165 drivers/usb/usb-skeleton.c dev = urb->context; urb 169 drivers/usb/usb-skeleton.c if (urb->status) { urb 170 drivers/usb/usb-skeleton.c if (!(urb->status == -ENOENT || urb 171 drivers/usb/usb-skeleton.c urb->status == -ECONNRESET || urb 172 drivers/usb/usb-skeleton.c urb->status == -ESHUTDOWN)) urb 175 drivers/usb/usb-skeleton.c __func__, urb->status); urb 177 drivers/usb/usb-skeleton.c dev->errors = urb->status; urb 179 drivers/usb/usb-skeleton.c dev->bulk_in_filled = urb->actual_length; urb 332 drivers/usb/usb-skeleton.c static void skel_write_bulk_callback(struct urb *urb) urb 337 drivers/usb/usb-skeleton.c dev = urb->context; urb 340 drivers/usb/usb-skeleton.c if (urb->status) { urb 341 drivers/usb/usb-skeleton.c if (!(urb->status == -ENOENT || urb 342 drivers/usb/usb-skeleton.c urb->status == -ECONNRESET || urb 343 drivers/usb/usb-skeleton.c urb->status == -ESHUTDOWN)) urb 346 drivers/usb/usb-skeleton.c __func__, urb->status); urb 349 drivers/usb/usb-skeleton.c dev->errors = urb->status; urb 354 drivers/usb/usb-skeleton.c usb_free_coherent(urb->dev, urb->transfer_buffer_length, urb 355 drivers/usb/usb-skeleton.c urb->transfer_buffer, urb->transfer_dma); urb 364 drivers/usb/usb-skeleton.c struct urb *urb = NULL; urb 403 drivers/usb/usb-skeleton.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 404 drivers/usb/usb-skeleton.c if (!urb) { urb 410 drivers/usb/usb-skeleton.c &urb->transfer_dma); urb 430 drivers/usb/usb-skeleton.c usb_fill_bulk_urb(urb, dev->udev, urb 433 drivers/usb/usb-skeleton.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 434 drivers/usb/usb-skeleton.c usb_anchor_urb(urb, &dev->submitted); urb 437 drivers/usb/usb-skeleton.c retval = usb_submit_urb(urb, GFP_KERNEL); urb 450 drivers/usb/usb-skeleton.c usb_free_urb(urb); urb 456 drivers/usb/usb-skeleton.c usb_unanchor_urb(urb); urb 458 drivers/usb/usb-skeleton.c if (urb) { urb 459 drivers/usb/usb-skeleton.c usb_free_coherent(dev->udev, writesize, buf, urb->transfer_dma); urb 460 drivers/usb/usb-skeleton.c usb_free_urb(urb); urb 55 drivers/usb/usbip/stub.h struct urb **urbs; urb 102 drivers/usb/usbip/stub.h void stub_complete(struct urb *urb); urb 294 drivers/usb/usbip/stub_main.c struct urb *urb; urb 298 drivers/usb/usbip/stub_main.c urb = priv->urbs[i]; urb 300 drivers/usb/usbip/stub_main.c if (!urb) urb 303 drivers/usb/usbip/stub_main.c kfree(urb->setup_packet); urb 304 drivers/usb/usbip/stub_main.c urb->setup_packet = NULL; urb 307 drivers/usb/usbip/stub_main.c if (urb->transfer_buffer && !priv->sgl) { urb 308 drivers/usb/usbip/stub_main.c kfree(urb->transfer_buffer); urb 309 drivers/usb/usbip/stub_main.c urb->transfer_buffer = NULL; urb 312 drivers/usb/usbip/stub_main.c if (urb->num_sgs) { urb 313 drivers/usb/usbip/stub_main.c sgl_free(urb->sg); urb 314 drivers/usb/usbip/stub_main.c urb->sg = NULL; urb 315 drivers/usb/usbip/stub_main.c urb->num_sgs = 0; urb 318 drivers/usb/usbip/stub_main.c usb_free_urb(urb); urb 15 drivers/usb/usbip/stub_rx.c static int is_clear_halt_cmd(struct urb *urb) urb 19 drivers/usb/usbip/stub_rx.c req = (struct usb_ctrlrequest *) urb->setup_packet; urb 26 drivers/usb/usbip/stub_rx.c static int is_set_interface_cmd(struct urb *urb) urb 30 drivers/usb/usbip/stub_rx.c req = (struct usb_ctrlrequest *) urb->setup_packet; urb 36 drivers/usb/usbip/stub_rx.c static int is_set_configuration_cmd(struct urb *urb) urb 40 drivers/usb/usbip/stub_rx.c req = (struct usb_ctrlrequest *) urb->setup_packet; urb 46 drivers/usb/usbip/stub_rx.c static int is_reset_device_cmd(struct urb *urb) urb 52 drivers/usb/usbip/stub_rx.c req = (struct usb_ctrlrequest *) urb->setup_packet; urb 65 drivers/usb/usbip/stub_rx.c static int tweak_clear_halt_cmd(struct urb *urb) urb 73 drivers/usb/usbip/stub_rx.c req = (struct usb_ctrlrequest *) urb->setup_packet; urb 86 drivers/usb/usbip/stub_rx.c target_pipe = usb_rcvctrlpipe(urb->dev, target_endp); urb 88 drivers/usb/usbip/stub_rx.c target_pipe = usb_sndctrlpipe(urb->dev, target_endp); urb 90 drivers/usb/usbip/stub_rx.c ret = usb_clear_halt(urb->dev, target_pipe); urb 92 drivers/usb/usbip/stub_rx.c dev_err(&urb->dev->dev, urb 94 drivers/usb/usbip/stub_rx.c urb->dev->devnum, target_endp, ret); urb 96 drivers/usb/usbip/stub_rx.c dev_info(&urb->dev->dev, urb 98 drivers/usb/usbip/stub_rx.c urb->dev->devnum, target_endp); urb 103 drivers/usb/usbip/stub_rx.c static int tweak_set_interface_cmd(struct urb *urb) urb 110 drivers/usb/usbip/stub_rx.c req = (struct usb_ctrlrequest *) urb->setup_packet; urb 117 drivers/usb/usbip/stub_rx.c ret = usb_set_interface(urb->dev, interface, alternate); urb 119 drivers/usb/usbip/stub_rx.c dev_err(&urb->dev->dev, urb 123 drivers/usb/usbip/stub_rx.c dev_info(&urb->dev->dev, urb 130 drivers/usb/usbip/stub_rx.c static int tweak_set_configuration_cmd(struct urb *urb) urb 132 drivers/usb/usbip/stub_rx.c struct stub_priv *priv = (struct stub_priv *) urb->context; urb 138 drivers/usb/usbip/stub_rx.c req = (struct usb_ctrlrequest *) urb->setup_packet; urb 148 drivers/usb/usbip/stub_rx.c static int tweak_reset_device_cmd(struct urb *urb) urb 150 drivers/usb/usbip/stub_rx.c struct stub_priv *priv = (struct stub_priv *) urb->context; urb 153 drivers/usb/usbip/stub_rx.c dev_info(&urb->dev->dev, "usb_queue_reset_device\n"); urb 156 drivers/usb/usbip/stub_rx.c dev_err(&urb->dev->dev, "could not obtain lock to reset device\n"); urb 168 drivers/usb/usbip/stub_rx.c static void tweak_special_requests(struct urb *urb) urb 170 drivers/usb/usbip/stub_rx.c if (!urb || !urb->setup_packet) urb 173 drivers/usb/usbip/stub_rx.c if (usb_pipetype(urb->pipe) != PIPE_CONTROL) urb 176 drivers/usb/usbip/stub_rx.c if (is_clear_halt_cmd(urb)) urb 178 drivers/usb/usbip/stub_rx.c tweak_clear_halt_cmd(urb); urb 180 drivers/usb/usbip/stub_rx.c else if (is_set_interface_cmd(urb)) urb 182 drivers/usb/usbip/stub_rx.c tweak_set_interface_cmd(urb); urb 184 drivers/usb/usbip/stub_rx.c else if (is_set_configuration_cmd(urb)) urb 186 drivers/usb/usbip/stub_rx.c tweak_set_configuration_cmd(urb); urb 188 drivers/usb/usbip/stub_rx.c else if (is_reset_device_cmd(urb)) urb 189 drivers/usb/usbip/stub_rx.c tweak_reset_device_cmd(urb); urb 388 drivers/usb/usbip/stub_rx.c static void masking_bogus_flags(struct urb *urb) urb 396 drivers/usb/usbip/stub_rx.c if (!urb || urb->hcpriv || !urb->complete) urb 398 drivers/usb/usbip/stub_rx.c dev = urb->dev; urb 402 drivers/usb/usbip/stub_rx.c ep = (usb_pipein(urb->pipe) ? dev->ep_in : dev->ep_out) urb 403 drivers/usb/usbip/stub_rx.c [usb_pipeendpoint(urb->pipe)]; urb 410 drivers/usb/usbip/stub_rx.c (struct usb_ctrlrequest *) urb->setup_packet; urb 436 drivers/usb/usbip/stub_rx.c urb->transfer_flags &= allowed; urb 40 drivers/usb/usbip/stub_tx.c void stub_complete(struct urb *urb) urb 42 drivers/usb/usbip/stub_tx.c struct stub_priv *priv = (struct stub_priv *) urb->context; urb 46 drivers/usb/usbip/stub_tx.c usbip_dbg_stub_tx("complete! status %d\n", urb->status); urb 48 drivers/usb/usbip/stub_tx.c switch (urb->status) { urb 53 drivers/usb/usbip/stub_tx.c dev_info(&urb->dev->dev, urb 57 drivers/usb/usbip/stub_tx.c dev_info(&urb->dev->dev, urb 61 drivers/usb/usbip/stub_tx.c dev_info(&urb->dev->dev, "endpoint %d is stalled\n", urb 62 drivers/usb/usbip/stub_tx.c usb_pipeendpoint(urb->pipe)); urb 65 drivers/usb/usbip/stub_tx.c dev_info(&urb->dev->dev, "device removed?\n"); urb 68 drivers/usb/usbip/stub_tx.c dev_info(&urb->dev->dev, urb 70 drivers/usb/usbip/stub_tx.c urb->status); urb 83 drivers/usb/usbip/stub_tx.c if (urb->status && !priv->urb_status) urb 84 drivers/usb/usbip/stub_tx.c priv->urb_status = urb->status; urb 96 drivers/usb/usbip/stub_tx.c stub_enqueue_ret_unlink(sdev, priv->seqnum, urb->status); urb 117 drivers/usb/usbip/stub_tx.c static void setup_ret_submit_pdu(struct usbip_header *rpdu, struct urb *urb) urb 119 drivers/usb/usbip/stub_tx.c struct stub_priv *priv = (struct stub_priv *) urb->context; urb 122 drivers/usb/usbip/stub_tx.c usbip_pack_pdu(rpdu, urb, USBIP_RET_SUBMIT, 1); urb 161 drivers/usb/usbip/stub_tx.c struct urb *urb = priv->urbs[0]; urb 175 drivers/usb/usbip/stub_tx.c if (urb->actual_length > 0 && !urb->transfer_buffer && urb 176 drivers/usb/usbip/stub_tx.c !urb->num_sgs) { urb 179 drivers/usb/usbip/stub_tx.c urb->actual_length); urb 183 drivers/usb/usbip/stub_tx.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) urb 184 drivers/usb/usbip/stub_tx.c iovnum = 2 + urb->number_of_packets; urb 185 drivers/usb/usbip/stub_tx.c else if (usb_pipein(urb->pipe) && urb->actual_length > 0 && urb 186 drivers/usb/usbip/stub_tx.c urb->num_sgs) urb 187 drivers/usb/usbip/stub_tx.c iovnum = 1 + urb->num_sgs; urb 188 drivers/usb/usbip/stub_tx.c else if (usb_pipein(urb->pipe) && priv->sgl) urb 203 drivers/usb/usbip/stub_tx.c setup_ret_submit_pdu(&pdu_header, urb); urb 223 drivers/usb/usbip/stub_tx.c if (usb_pipein(urb->pipe) && priv->sgl) { urb 237 drivers/usb/usbip/stub_tx.c } else if (usb_pipein(urb->pipe) && urb 238 drivers/usb/usbip/stub_tx.c usb_pipetype(urb->pipe) != PIPE_ISOCHRONOUS && urb 239 drivers/usb/usbip/stub_tx.c urb->actual_length > 0) { urb 240 drivers/usb/usbip/stub_tx.c if (urb->num_sgs) { urb 241 drivers/usb/usbip/stub_tx.c unsigned int copy = urb->actual_length; urb 244 drivers/usb/usbip/stub_tx.c for_each_sg(urb->sg, sg, urb->num_sgs, i) { urb 260 drivers/usb/usbip/stub_tx.c iov[iovnum].iov_base = urb->transfer_buffer; urb 261 drivers/usb/usbip/stub_tx.c iov[iovnum].iov_len = urb->actual_length; urb 264 drivers/usb/usbip/stub_tx.c txsize += urb->actual_length; urb 265 drivers/usb/usbip/stub_tx.c } else if (usb_pipein(urb->pipe) && urb 266 drivers/usb/usbip/stub_tx.c usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 277 drivers/usb/usbip/stub_tx.c for (i = 0; i < urb->number_of_packets; i++) { urb 278 drivers/usb/usbip/stub_tx.c iov[iovnum].iov_base = urb->transfer_buffer + urb 279 drivers/usb/usbip/stub_tx.c urb->iso_frame_desc[i].offset; urb 281 drivers/usb/usbip/stub_tx.c urb->iso_frame_desc[i].actual_length; urb 283 drivers/usb/usbip/stub_tx.c txsize += urb->iso_frame_desc[i].actual_length; urb 286 drivers/usb/usbip/stub_tx.c if (txsize != sizeof(pdu_header) + urb->actual_length) { urb 289 drivers/usb/usbip/stub_tx.c urb->actual_length, urb 299 drivers/usb/usbip/stub_tx.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 302 drivers/usb/usbip/stub_tx.c iso_buffer = usbip_alloc_iso_desc_pdu(urb, &len); urb 220 drivers/usb/usbip/usbip_common.c void usbip_dump_urb(struct urb *urb) urb 224 drivers/usb/usbip/usbip_common.c if (!urb) { urb 229 drivers/usb/usbip/usbip_common.c if (!urb->dev) { urb 234 drivers/usb/usbip/usbip_common.c dev = &urb->dev->dev; urb 236 drivers/usb/usbip/usbip_common.c usbip_dump_usb_device(urb->dev); urb 238 drivers/usb/usbip/usbip_common.c dev_dbg(dev, " pipe :%08x ", urb->pipe); urb 240 drivers/usb/usbip/usbip_common.c usbip_dump_pipe(urb->pipe); urb 242 drivers/usb/usbip/usbip_common.c dev_dbg(dev, " status :%d\n", urb->status); urb 243 drivers/usb/usbip/usbip_common.c dev_dbg(dev, " transfer_flags :%08X\n", urb->transfer_flags); urb 245 drivers/usb/usbip/usbip_common.c urb->transfer_buffer_length); urb 246 drivers/usb/usbip/usbip_common.c dev_dbg(dev, " actual_length :%d\n", urb->actual_length); urb 248 drivers/usb/usbip/usbip_common.c if (urb->setup_packet && usb_pipetype(urb->pipe) == PIPE_CONTROL) urb 250 drivers/usb/usbip/usbip_common.c (struct usb_ctrlrequest *)urb->setup_packet); urb 252 drivers/usb/usbip/usbip_common.c dev_dbg(dev, " start_frame :%d\n", urb->start_frame); urb 253 drivers/usb/usbip/usbip_common.c dev_dbg(dev, " number_of_packets :%d\n", urb->number_of_packets); urb 254 drivers/usb/usbip/usbip_common.c dev_dbg(dev, " interval :%d\n", urb->interval); urb 255 drivers/usb/usbip/usbip_common.c dev_dbg(dev, " error_count :%d\n", urb->error_count); urb 352 drivers/usb/usbip/usbip_common.c static void usbip_pack_cmd_submit(struct usbip_header *pdu, struct urb *urb, urb 363 drivers/usb/usbip/usbip_common.c tweak_transfer_flags(urb->transfer_flags); urb 364 drivers/usb/usbip/usbip_common.c spdu->transfer_buffer_length = urb->transfer_buffer_length; urb 365 drivers/usb/usbip/usbip_common.c spdu->start_frame = urb->start_frame; urb 366 drivers/usb/usbip/usbip_common.c spdu->number_of_packets = urb->number_of_packets; urb 367 drivers/usb/usbip/usbip_common.c spdu->interval = urb->interval; urb 369 drivers/usb/usbip/usbip_common.c urb->transfer_flags = spdu->transfer_flags; urb 370 drivers/usb/usbip/usbip_common.c urb->transfer_buffer_length = spdu->transfer_buffer_length; urb 371 drivers/usb/usbip/usbip_common.c urb->start_frame = spdu->start_frame; urb 372 drivers/usb/usbip/usbip_common.c urb->number_of_packets = spdu->number_of_packets; urb 373 drivers/usb/usbip/usbip_common.c urb->interval = spdu->interval; urb 377 drivers/usb/usbip/usbip_common.c static void usbip_pack_ret_submit(struct usbip_header *pdu, struct urb *urb, urb 383 drivers/usb/usbip/usbip_common.c rpdu->status = urb->status; urb 384 drivers/usb/usbip/usbip_common.c rpdu->actual_length = urb->actual_length; urb 385 drivers/usb/usbip/usbip_common.c rpdu->start_frame = urb->start_frame; urb 386 drivers/usb/usbip/usbip_common.c rpdu->number_of_packets = urb->number_of_packets; urb 387 drivers/usb/usbip/usbip_common.c rpdu->error_count = urb->error_count; urb 389 drivers/usb/usbip/usbip_common.c urb->status = rpdu->status; urb 390 drivers/usb/usbip/usbip_common.c urb->actual_length = rpdu->actual_length; urb 391 drivers/usb/usbip/usbip_common.c urb->start_frame = rpdu->start_frame; urb 392 drivers/usb/usbip/usbip_common.c urb->number_of_packets = rpdu->number_of_packets; urb 393 drivers/usb/usbip/usbip_common.c urb->error_count = rpdu->error_count; urb 397 drivers/usb/usbip/usbip_common.c void usbip_pack_pdu(struct usbip_header *pdu, struct urb *urb, int cmd, urb 402 drivers/usb/usbip/usbip_common.c usbip_pack_cmd_submit(pdu, urb, pack); urb 405 drivers/usb/usbip/usbip_common.c usbip_pack_ret_submit(pdu, urb, pack); urb 556 drivers/usb/usbip/usbip_common.c usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen) urb 559 drivers/usb/usbip/usbip_common.c int np = urb->number_of_packets; urb 568 drivers/usb/usbip/usbip_common.c usbip_pack_iso(&iso[i], &urb->iso_frame_desc[i], 1); urb 579 drivers/usb/usbip/usbip_common.c int usbip_recv_iso(struct usbip_device *ud, struct urb *urb) urb 583 drivers/usb/usbip/usbip_common.c int np = urb->number_of_packets; urb 589 drivers/usb/usbip/usbip_common.c if (!usb_pipeisoc(urb->pipe)) urb 602 drivers/usb/usbip/usbip_common.c dev_err(&urb->dev->dev, "recv iso_frame_descriptor, %d\n", urb 617 drivers/usb/usbip/usbip_common.c usbip_pack_iso(&iso[i], &urb->iso_frame_desc[i], 0); urb 618 drivers/usb/usbip/usbip_common.c total_length += urb->iso_frame_desc[i].actual_length; urb 623 drivers/usb/usbip/usbip_common.c if (total_length != urb->actual_length) { urb 624 drivers/usb/usbip/usbip_common.c dev_err(&urb->dev->dev, urb 626 drivers/usb/usbip/usbip_common.c total_length, urb->actual_length); urb 647 drivers/usb/usbip/usbip_common.c void usbip_pad_iso(struct usbip_device *ud, struct urb *urb) urb 649 drivers/usb/usbip/usbip_common.c int np = urb->number_of_packets; urb 651 drivers/usb/usbip/usbip_common.c int actualoffset = urb->actual_length; urb 653 drivers/usb/usbip/usbip_common.c if (!usb_pipeisoc(urb->pipe)) urb 657 drivers/usb/usbip/usbip_common.c if (np == 0 || urb->actual_length == 0) urb 664 drivers/usb/usbip/usbip_common.c if (urb->actual_length == urb->transfer_buffer_length) urb 672 drivers/usb/usbip/usbip_common.c actualoffset -= urb->iso_frame_desc[i].actual_length; urb 673 drivers/usb/usbip/usbip_common.c memmove(urb->transfer_buffer + urb->iso_frame_desc[i].offset, urb 674 drivers/usb/usbip/usbip_common.c urb->transfer_buffer + actualoffset, urb 675 drivers/usb/usbip/usbip_common.c urb->iso_frame_desc[i].actual_length); urb 681 drivers/usb/usbip/usbip_common.c int usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb) urb 692 drivers/usb/usbip/usbip_common.c if (usb_pipein(urb->pipe)) urb 695 drivers/usb/usbip/usbip_common.c size = urb->transfer_buffer_length; urb 698 drivers/usb/usbip/usbip_common.c if (usb_pipeout(urb->pipe)) urb 701 drivers/usb/usbip/usbip_common.c size = urb->actual_length; urb 708 drivers/usb/usbip/usbip_common.c if (size > urb->transfer_buffer_length) urb 712 drivers/usb/usbip/usbip_common.c if (urb->num_sgs) { urb 714 drivers/usb/usbip/usbip_common.c for_each_sg(urb->sg, sg, urb->num_sgs, i) { urb 738 drivers/usb/usbip/usbip_common.c ret = usbip_recv(ud->tcp_socket, urb->transfer_buffer, size); urb 746 drivers/usb/usbip/usbip_common.c dev_err(&urb->dev->dev, "recv xbuf, %d\n", ret); urb 300 drivers/usb/usbip/usbip_common.h void usbip_dump_urb(struct urb *purb); urb 305 drivers/usb/usbip/usbip_common.h void usbip_pack_pdu(struct usbip_header *pdu, struct urb *urb, int cmd, urb 310 drivers/usb/usbip/usbip_common.h usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen); urb 313 drivers/usb/usbip/usbip_common.h int usbip_recv_iso(struct usbip_device *ud, struct urb *urb); urb 314 drivers/usb/usbip/usbip_common.h void usbip_pad_iso(struct usbip_device *ud, struct urb *urb); urb 315 drivers/usb/usbip/usbip_common.h int usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb); urb 57 drivers/usb/usbip/vhci.h struct urb *urb; urb 133 drivers/usb/usbip/vhci.h struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum); urb 36 drivers/usb/usbip/vhci_hcd.c static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, urb 38 drivers/usb/usbip/vhci_hcd.c static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); urb 655 drivers/usb/usbip/vhci_hcd.c static void vhci_tx_urb(struct urb *urb, struct vhci_device *vdev) urb 671 drivers/usb/usbip/vhci_hcd.c dev_info(&urb->dev->dev, "seqnum max\n"); urb 674 drivers/usb/usbip/vhci_hcd.c priv->urb = urb; urb 676 drivers/usb/usbip/vhci_hcd.c urb->hcpriv = (void *) priv; urb 684 drivers/usb/usbip/vhci_hcd.c static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) urb 688 drivers/usb/usbip/vhci_hcd.c struct device *dev = &urb->dev->dev; urb 689 drivers/usb/usbip/vhci_hcd.c u8 portnum = urb->dev->portnum; urb 700 drivers/usb/usbip/vhci_hcd.c if (!urb->transfer_buffer && !urb->num_sgs && urb 701 drivers/usb/usbip/vhci_hcd.c urb->transfer_buffer_length) { urb 708 drivers/usb/usbip/vhci_hcd.c if (urb->status != -EINPROGRESS) { urb 709 drivers/usb/usbip/vhci_hcd.c dev_err(dev, "URB already unlinked!, status %d\n", urb->status); urb 711 drivers/usb/usbip/vhci_hcd.c return urb->status; urb 725 drivers/usb/usbip/vhci_hcd.c ret = usb_hcd_link_urb_to_ep(hcd, urb); urb 738 drivers/usb/usbip/vhci_hcd.c if (usb_pipedevice(urb->pipe) == 0) { urb 739 drivers/usb/usbip/vhci_hcd.c __u8 type = usb_pipetype(urb->pipe); urb 741 drivers/usb/usbip/vhci_hcd.c (struct usb_ctrlrequest *) urb->setup_packet; urb 756 drivers/usb/usbip/vhci_hcd.c vdev->udev = usb_get_dev(urb->dev); urb 762 drivers/usb/usbip/vhci_hcd.c if (urb->status == -EINPROGRESS) { urb 765 drivers/usb/usbip/vhci_hcd.c urb->status = 0; urb 776 drivers/usb/usbip/vhci_hcd.c vdev->udev = usb_get_dev(urb->dev); urb 792 drivers/usb/usbip/vhci_hcd.c vhci_tx_urb(urb, vdev); urb 798 drivers/usb/usbip/vhci_hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 802 drivers/usb/usbip/vhci_hcd.c usb_hcd_giveback_urb(hcd, urb, urb->status); urb 852 drivers/usb/usbip/vhci_hcd.c static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) urb 862 drivers/usb/usbip/vhci_hcd.c priv = urb->hcpriv; urb 873 drivers/usb/usbip/vhci_hcd.c ret = usb_hcd_check_unlink_urb(hcd, urb, status); urb 889 drivers/usb/usbip/vhci_hcd.c urb->hcpriv = NULL; urb 898 drivers/usb/usbip/vhci_hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 901 drivers/usb/usbip/vhci_hcd.c usb_hcd_giveback_urb(hcd, urb, urb->status); urb 957 drivers/usb/usbip/vhci_hcd.c struct urb *urb; urb 965 drivers/usb/usbip/vhci_hcd.c urb = pickup_urb_and_free_priv(vdev, unlink->unlink_seqnum); urb 966 drivers/usb/usbip/vhci_hcd.c if (!urb) { urb 974 drivers/usb/usbip/vhci_hcd.c urb->status = -ENODEV; urb 976 drivers/usb/usbip/vhci_hcd.c usb_hcd_unlink_urb_from_ep(hcd, urb); urb 983 drivers/usb/usbip/vhci_hcd.c usb_hcd_giveback_urb(hcd, urb, urb->status); urb 13 drivers/usb/usbip/vhci_rx.c struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum) urb 16 drivers/usb/usbip/vhci_rx.c struct urb *urb = NULL; urb 23 drivers/usb/usbip/vhci_rx.c urb = priv->urb; urb 24 drivers/usb/usbip/vhci_rx.c status = urb->status; urb 32 drivers/usb/usbip/vhci_rx.c dev_dbg(&urb->dev->dev, urb 40 drivers/usb/usbip/vhci_rx.c dev_dbg(&urb->dev->dev, urb 47 drivers/usb/usbip/vhci_rx.c urb->hcpriv = NULL; urb 52 drivers/usb/usbip/vhci_rx.c return urb; urb 61 drivers/usb/usbip/vhci_rx.c struct urb *urb; urb 65 drivers/usb/usbip/vhci_rx.c urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum); urb 68 drivers/usb/usbip/vhci_rx.c if (!urb) { urb 77 drivers/usb/usbip/vhci_rx.c usbip_pack_pdu(pdu, urb, USBIP_RET_SUBMIT, 0); urb 80 drivers/usb/usbip/vhci_rx.c if (usbip_recv_xbuff(ud, urb) < 0) { urb 81 drivers/usb/usbip/vhci_rx.c urb->status = -EPROTO; urb 86 drivers/usb/usbip/vhci_rx.c if (usbip_recv_iso(ud, urb) < 0) { urb 87 drivers/usb/usbip/vhci_rx.c urb->status = -EPROTO; urb 92 drivers/usb/usbip/vhci_rx.c usbip_pad_iso(ud, urb); urb 96 drivers/usb/usbip/vhci_rx.c usbip_dump_urb(urb); urb 98 drivers/usb/usbip/vhci_rx.c if (urb->num_sgs) urb 99 drivers/usb/usbip/vhci_rx.c urb->transfer_flags &= ~URB_DMA_MAP_SG; urb 104 drivers/usb/usbip/vhci_rx.c usb_hcd_unlink_urb_from_ep(vhci_hcd_to_hcd(vhci_hcd), urb); urb 107 drivers/usb/usbip/vhci_rx.c usb_hcd_giveback_urb(vhci_hcd_to_hcd(vhci_hcd), urb, urb->status); urb 143 drivers/usb/usbip/vhci_rx.c struct urb *urb; urb 156 drivers/usb/usbip/vhci_rx.c urb = pickup_urb_and_free_priv(vdev, unlink->unlink_seqnum); urb 159 drivers/usb/usbip/vhci_rx.c if (!urb) { urb 171 drivers/usb/usbip/vhci_rx.c urb->status = pdu->u.ret_unlink.status; urb 172 drivers/usb/usbip/vhci_rx.c pr_info("urb->status %d\n", urb->status); urb 175 drivers/usb/usbip/vhci_rx.c usb_hcd_unlink_urb_from_ep(vhci_hcd_to_hcd(vhci_hcd), urb); urb 178 drivers/usb/usbip/vhci_rx.c usb_hcd_giveback_urb(vhci_hcd_to_hcd(vhci_hcd), urb, urb->status); urb 13 drivers/usb/usbip/vhci_tx.c static void setup_cmd_submit_pdu(struct usbip_header *pdup, struct urb *urb) urb 15 drivers/usb/usbip/vhci_tx.c struct vhci_priv *priv = ((struct vhci_priv *)urb->hcpriv); urb 19 drivers/usb/usbip/vhci_tx.c usb_pipedevice(urb->pipe), vdev->devid); urb 24 drivers/usb/usbip/vhci_tx.c pdup->base.direction = usb_pipein(urb->pipe) ? urb 26 drivers/usb/usbip/vhci_tx.c pdup->base.ep = usb_pipeendpoint(urb->pipe); urb 28 drivers/usb/usbip/vhci_tx.c usbip_pack_pdu(pdup, urb, USBIP_CMD_SUBMIT, 1); urb 30 drivers/usb/usbip/vhci_tx.c if (urb->setup_packet) urb 31 drivers/usb/usbip/vhci_tx.c memcpy(pdup->u.cmd_submit.setup, urb->setup_packet, 8); urb 69 drivers/usb/usbip/vhci_tx.c struct urb *urb = priv->urb; urb 80 drivers/usb/usbip/vhci_tx.c if (urb->num_sgs && usb_pipeout(urb->pipe)) urb 81 drivers/usb/usbip/vhci_tx.c iovnum = 2 + urb->num_sgs; urb 91 drivers/usb/usbip/vhci_tx.c if (urb->num_sgs) urb 92 drivers/usb/usbip/vhci_tx.c urb->transfer_flags |= URB_DMA_MAP_SG; urb 95 drivers/usb/usbip/vhci_tx.c setup_cmd_submit_pdu(&pdu_header, urb); urb 105 drivers/usb/usbip/vhci_tx.c if (!usb_pipein(urb->pipe) && urb->transfer_buffer_length > 0) { urb 106 drivers/usb/usbip/vhci_tx.c if (urb->num_sgs && urb 107 drivers/usb/usbip/vhci_tx.c !usb_endpoint_xfer_isoc(&urb->ep->desc)) { urb 108 drivers/usb/usbip/vhci_tx.c for_each_sg(urb->sg, sg, urb->num_sgs, i) { urb 114 drivers/usb/usbip/vhci_tx.c iov[iovnum].iov_base = urb->transfer_buffer; urb 116 drivers/usb/usbip/vhci_tx.c urb->transfer_buffer_length; urb 119 drivers/usb/usbip/vhci_tx.c txsize += urb->transfer_buffer_length; urb 123 drivers/usb/usbip/vhci_tx.c if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { urb 126 drivers/usb/usbip/vhci_tx.c iso_buffer = usbip_alloc_iso_desc_pdu(urb, &len); urb 46 drivers/usb/usbip/vudc.h struct urb *urb; urb 28 drivers/usb/usbip/vudc_dev.c static void free_urb(struct urb *urb) urb 30 drivers/usb/usbip/vudc_dev.c if (!urb) urb 33 drivers/usb/usbip/vudc_dev.c kfree(urb->setup_packet); urb 34 drivers/usb/usbip/vudc_dev.c urb->setup_packet = NULL; urb 36 drivers/usb/usbip/vudc_dev.c kfree(urb->transfer_buffer); urb 37 drivers/usb/usbip/vudc_dev.c urb->transfer_buffer = NULL; urb 39 drivers/usb/usbip/vudc_dev.c usb_free_urb(urb); urb 50 drivers/usb/usbip/vudc_dev.c urb_p->urb = NULL; urb 65 drivers/usb/usbip/vudc_dev.c free_urb(urb_p->urb); urb 15 drivers/usb/usbip/vudc_rx.c static int alloc_urb_from_cmd(struct urb **urbp, urb 18 drivers/usb/usbip/vudc_rx.c struct urb *urb; urb 21 drivers/usb/usbip/vudc_rx.c urb = usb_alloc_urb(pdu->u.cmd_submit.number_of_packets, urb 24 drivers/usb/usbip/vudc_rx.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 26 drivers/usb/usbip/vudc_rx.c if (!urb) urb 29 drivers/usb/usbip/vudc_rx.c usbip_pack_pdu(pdu, urb, USBIP_CMD_SUBMIT, 0); urb 31 drivers/usb/usbip/vudc_rx.c if (urb->transfer_buffer_length > 0) { urb 32 drivers/usb/usbip/vudc_rx.c urb->transfer_buffer = kzalloc(urb->transfer_buffer_length, urb 34 drivers/usb/usbip/vudc_rx.c if (!urb->transfer_buffer) urb 38 drivers/usb/usbip/vudc_rx.c urb->setup_packet = kmemdup(&pdu->u.cmd_submit.setup, 8, urb 40 drivers/usb/usbip/vudc_rx.c if (!urb->setup_packet) urb 47 drivers/usb/usbip/vudc_rx.c urb->pipe |= pdu->base.direction == USBIP_DIR_IN ? urb 50 drivers/usb/usbip/vudc_rx.c *urbp = urb; urb 54 drivers/usb/usbip/vudc_rx.c kfree(urb->transfer_buffer); urb 55 drivers/usb/usbip/vudc_rx.c urb->transfer_buffer = NULL; urb 57 drivers/usb/usbip/vudc_rx.c usb_free_urb(urb); urb 72 drivers/usb/usbip/vudc_rx.c urb_p->urb->unlinked = -ECONNRESET; urb 142 drivers/usb/usbip/vudc_rx.c ret = alloc_urb_from_cmd(&urb_p->urb, pdu, urb_p->ep->type); urb 149 drivers/usb/usbip/vudc_rx.c urb_p->urb->status = -EINPROGRESS; urb 152 drivers/usb/usbip/vudc_rx.c urb_p->urb->pipe &= ~(3 << 30); urb 155 drivers/usb/usbip/vudc_rx.c urb_p->urb->pipe |= (PIPE_BULK << 30); urb 158 drivers/usb/usbip/vudc_rx.c urb_p->urb->pipe |= (PIPE_INTERRUPT << 30); urb 161 drivers/usb/usbip/vudc_rx.c urb_p->urb->pipe |= (PIPE_CONTROL << 30); urb 164 drivers/usb/usbip/vudc_rx.c urb_p->urb->pipe |= (PIPE_ISOCHRONOUS << 30); urb 167 drivers/usb/usbip/vudc_rx.c ret = usbip_recv_xbuff(&udc->ud, urb_p->urb); urb 171 drivers/usb/usbip/vudc_rx.c ret = usbip_recv_iso(&udc->ud, urb_p->urb); urb 58 drivers/usb/usbip/vudc_transfer.c static int handle_control_request(struct vudc *udc, struct urb *urb, urb 155 drivers/usb/usbip/vudc_transfer.c buf = (char *)urb->transfer_buffer; urb 156 drivers/usb/usbip/vudc_transfer.c if (urb->transfer_buffer_length > 0) { urb 170 drivers/usb/usbip/vudc_transfer.c if (urb->transfer_buffer_length > 1) urb 172 drivers/usb/usbip/vudc_transfer.c urb->actual_length = min_t(u32, 2, urb 173 drivers/usb/usbip/vudc_transfer.c urb->transfer_buffer_length); urb 184 drivers/usb/usbip/vudc_transfer.c struct urb *urb, struct vep *ep, int limit) urb 204 drivers/usb/usbip/vudc_transfer.c host_len = urb->transfer_buffer_length - urb->actual_length; urb 208 drivers/usb/usbip/vudc_transfer.c to_host = usb_pipein(urb->pipe); urb 222 drivers/usb/usbip/vudc_transfer.c ubuf_pos = urb->transfer_buffer + urb->actual_length; urb 225 drivers/usb/usbip/vudc_transfer.c if (urb->pipe & USB_DIR_IN) urb 230 drivers/usb/usbip/vudc_transfer.c urb->actual_length += len; urb 246 drivers/usb/usbip/vudc_transfer.c urb->status = 0; urb 250 drivers/usb/usbip/vudc_transfer.c urb->status = -EOVERFLOW; urb 252 drivers/usb/usbip/vudc_transfer.c urb->status = 0; urb 254 drivers/usb/usbip/vudc_transfer.c urb->status = 0; urb 270 drivers/usb/usbip/vudc_transfer.c if (urb->transfer_buffer_length == urb->actual_length) { urb 271 drivers/usb/usbip/vudc_transfer.c if (urb->transfer_flags & URB_ZERO_PACKET && urb 275 drivers/usb/usbip/vudc_transfer.c urb->status = 0; urb 292 drivers/usb/usbip/vudc_transfer.c if (urb->status != -EINPROGRESS) urb 339 drivers/usb/usbip/vudc_transfer.c struct urb *urb = urb_p->urb; urb 342 drivers/usb/usbip/vudc_transfer.c if (urb->unlinked) urb 348 drivers/usb/usbip/vudc_transfer.c urb->status = -EPROTO; urb 364 drivers/usb/usbip/vudc_transfer.c urb->status = -EPIPE; urb 373 drivers/usb/usbip/vudc_transfer.c ret = handle_control_request(udc, urb, urb 374 drivers/usb/usbip/vudc_transfer.c (struct usb_ctrlrequest *) urb->setup_packet, urb 375 drivers/usb/usbip/vudc_transfer.c (&urb->status)); urb 380 drivers/usb/usbip/vudc_transfer.c urb->setup_packet); urb 388 drivers/usb/usbip/vudc_transfer.c urb->status = -EPIPE; urb 389 drivers/usb/usbip/vudc_transfer.c urb->actual_length = 0; urb 398 drivers/usb/usbip/vudc_transfer.c urb->status = -EXDEV; urb 406 drivers/usb/usbip/vudc_transfer.c limit += urb->transfer_buffer_length; urb 410 drivers/usb/usbip/vudc_transfer.c total -= transfer(udc, urb, ep, limit); urb 412 drivers/usb/usbip/vudc_transfer.c if (urb->status == -EINPROGRESS) urb 421 drivers/usb/usbip/vudc_transfer.c if (!urb->unlinked) { urb 425 drivers/usb/usbip/vudc_transfer.c urb->unlinked); urb 28 drivers/usb/usbip/vudc_tx.c usbip_pack_pdu(rpdu, urb_p->urb, USBIP_RET_SUBMIT, 1); urb 75 drivers/usb/usbip/vudc_tx.c struct urb *urb = urb_p->urb; urb 88 drivers/usb/usbip/vudc_tx.c if (urb->actual_length > 0 && !urb->transfer_buffer) { urb 91 drivers/usb/usbip/vudc_tx.c urb->actual_length); urb 96 drivers/usb/usbip/vudc_tx.c iovnum = 2 + urb->number_of_packets; urb 121 drivers/usb/usbip/vudc_tx.c usb_pipein(urb->pipe) && urb->actual_length > 0) { urb 122 drivers/usb/usbip/vudc_tx.c iov[iovnum].iov_base = urb->transfer_buffer; urb 123 drivers/usb/usbip/vudc_tx.c iov[iovnum].iov_len = urb->actual_length; urb 125 drivers/usb/usbip/vudc_tx.c txsize += urb->actual_length; urb 127 drivers/usb/usbip/vudc_tx.c usb_pipein(urb->pipe)) { urb 131 drivers/usb/usbip/vudc_tx.c for (i = 0; i < urb->number_of_packets; i++) { urb 132 drivers/usb/usbip/vudc_tx.c iov[iovnum].iov_base = urb->transfer_buffer + urb 133 drivers/usb/usbip/vudc_tx.c urb->iso_frame_desc[i].offset; urb 135 drivers/usb/usbip/vudc_tx.c urb->iso_frame_desc[i].actual_length; urb 137 drivers/usb/usbip/vudc_tx.c txsize += urb->iso_frame_desc[i].actual_length; urb 140 drivers/usb/usbip/vudc_tx.c if (txsize != sizeof(pdu_header) + urb->actual_length) { urb 152 drivers/usb/usbip/vudc_tx.c iso_buffer = usbip_alloc_iso_desc_pdu(urb, &len); urb 80 drivers/video/fbdev/smscufx.c struct urb *urb; urb 134 drivers/video/fbdev/smscufx.c static void ufx_urb_completion(struct urb *urb); urb 135 drivers/video/fbdev/smscufx.c static struct urb *ufx_get_urb(struct ufx_data *dev); urb 136 drivers/video/fbdev/smscufx.c static int ufx_submit_urb(struct ufx_data *dev, struct urb * urb, size_t len); urb 864 drivers/video/fbdev/smscufx.c struct urb *urb = ufx_get_urb(dev); urb 865 drivers/video/fbdev/smscufx.c if (!urb) { urb 871 drivers/video/fbdev/smscufx.c BUG_ON(urb->transfer_buffer_length < (24 + (width * 2))); urb 874 drivers/video/fbdev/smscufx.c urb_lines = (urb->transfer_buffer_length - 24) / packed_line_len; urb 879 drivers/video/fbdev/smscufx.c memset(urb->transfer_buffer, 0, urb->transfer_buffer_length); urb 881 drivers/video/fbdev/smscufx.c ufx_raw_rect(dev, urb->transfer_buffer, x, (y + start_line), width, urb_lines); urb 884 drivers/video/fbdev/smscufx.c status = ufx_submit_urb(dev, urb, len); urb 1776 drivers/video/fbdev/smscufx.c static void ufx_urb_completion(struct urb *urb) urb 1778 drivers/video/fbdev/smscufx.c struct urb_node *unode = urb->context; urb 1783 drivers/video/fbdev/smscufx.c if (urb->status) { urb 1784 drivers/video/fbdev/smscufx.c if (!(urb->status == -ENOENT || urb 1785 drivers/video/fbdev/smscufx.c urb->status == -ECONNRESET || urb 1786 drivers/video/fbdev/smscufx.c urb->status == -ESHUTDOWN)) { urb 1788 drivers/video/fbdev/smscufx.c __func__, urb->status); urb 1793 drivers/video/fbdev/smscufx.c urb->transfer_buffer_length = dev->urbs.size; /* reset to actual */ urb 1813 drivers/video/fbdev/smscufx.c struct urb *urb; urb 1834 drivers/video/fbdev/smscufx.c urb = unode->urb; urb 1837 drivers/video/fbdev/smscufx.c usb_free_coherent(urb->dev, dev->urbs.size, urb 1838 drivers/video/fbdev/smscufx.c urb->transfer_buffer, urb->transfer_dma); urb 1839 drivers/video/fbdev/smscufx.c usb_free_urb(urb); urb 1847 drivers/video/fbdev/smscufx.c struct urb *urb; urb 1865 drivers/video/fbdev/smscufx.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1866 drivers/video/fbdev/smscufx.c if (!urb) { urb 1870 drivers/video/fbdev/smscufx.c unode->urb = urb; urb 1873 drivers/video/fbdev/smscufx.c &urb->transfer_dma); urb 1876 drivers/video/fbdev/smscufx.c usb_free_urb(urb); urb 1881 drivers/video/fbdev/smscufx.c usb_fill_bulk_urb(urb, dev->udev, usb_sndbulkpipe(dev->udev, 1), urb 1883 drivers/video/fbdev/smscufx.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1899 drivers/video/fbdev/smscufx.c static struct urb *ufx_get_urb(struct ufx_data *dev) urb 1904 drivers/video/fbdev/smscufx.c struct urb *urb = NULL; urb 1926 drivers/video/fbdev/smscufx.c urb = unode->urb; urb 1929 drivers/video/fbdev/smscufx.c return urb; urb 1932 drivers/video/fbdev/smscufx.c static int ufx_submit_urb(struct ufx_data *dev, struct urb *urb, size_t len) urb 1938 drivers/video/fbdev/smscufx.c urb->transfer_buffer_length = len; /* set to actual payload len */ urb 1939 drivers/video/fbdev/smscufx.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 1941 drivers/video/fbdev/smscufx.c ufx_urb_completion(urb); /* because no one else will */ urb 80 drivers/video/fbdev/udlfb.c static void dlfb_urb_completion(struct urb *urb); urb 81 drivers/video/fbdev/udlfb.c static struct urb *dlfb_get_urb(struct dlfb_data *dlfb); urb 82 drivers/video/fbdev/udlfb.c static int dlfb_submit_urb(struct dlfb_data *dlfb, struct urb * urb, size_t len); urb 286 drivers/video/fbdev/udlfb.c struct urb *urb; urb 291 drivers/video/fbdev/udlfb.c urb = dlfb_get_urb(dlfb); urb 292 drivers/video/fbdev/udlfb.c if (!urb) urb 295 drivers/video/fbdev/udlfb.c buf = (char *) urb->transfer_buffer; urb 315 drivers/video/fbdev/udlfb.c retval = dlfb_submit_urb(dlfb, urb, writesize); urb 535 drivers/video/fbdev/udlfb.c static int dlfb_render_hline(struct dlfb_data *dlfb, struct urb **urb_ptr, urb 542 drivers/video/fbdev/udlfb.c struct urb *urb = *urb_ptr; urb 544 drivers/video/fbdev/udlfb.c u8 *cmd_end = (u8 *) urb->transfer_buffer + urb->transfer_buffer_length; urb 576 drivers/video/fbdev/udlfb.c int len = cmd - (u8 *) urb->transfer_buffer; urb 577 drivers/video/fbdev/udlfb.c if (dlfb_submit_urb(dlfb, urb, len)) urb 580 drivers/video/fbdev/udlfb.c urb = dlfb_get_urb(dlfb); urb 581 drivers/video/fbdev/udlfb.c if (!urb) urb 583 drivers/video/fbdev/udlfb.c *urb_ptr = urb; urb 584 drivers/video/fbdev/udlfb.c cmd = urb->transfer_buffer; urb 585 drivers/video/fbdev/udlfb.c cmd_end = &cmd[urb->transfer_buffer_length]; urb 601 drivers/video/fbdev/udlfb.c struct urb *urb; urb 624 drivers/video/fbdev/udlfb.c urb = dlfb_get_urb(dlfb); urb 625 drivers/video/fbdev/udlfb.c if (!urb) { urb 629 drivers/video/fbdev/udlfb.c cmd = urb->transfer_buffer; urb 635 drivers/video/fbdev/udlfb.c if (dlfb_render_hline(dlfb, &urb, urb 642 drivers/video/fbdev/udlfb.c if (cmd > (char *) urb->transfer_buffer) { urb 644 drivers/video/fbdev/udlfb.c if (cmd < (char *) urb->transfer_buffer + urb->transfer_buffer_length) urb 647 drivers/video/fbdev/udlfb.c len = cmd - (char *) urb->transfer_buffer; urb 648 drivers/video/fbdev/udlfb.c dlfb_submit_urb(dlfb, urb, len); urb 651 drivers/video/fbdev/udlfb.c dlfb_urb_completion(urb); urb 787 drivers/video/fbdev/udlfb.c struct urb *urb; urb 804 drivers/video/fbdev/udlfb.c urb = dlfb_get_urb(dlfb); urb 805 drivers/video/fbdev/udlfb.c if (!urb) urb 808 drivers/video/fbdev/udlfb.c cmd = urb->transfer_buffer; urb 813 drivers/video/fbdev/udlfb.c if (dlfb_render_hline(dlfb, &urb, (char *) info->fix.smem_start, urb 820 drivers/video/fbdev/udlfb.c if (cmd > (char *) urb->transfer_buffer) { urb 822 drivers/video/fbdev/udlfb.c if (cmd < (char *) urb->transfer_buffer + urb->transfer_buffer_length) urb 825 drivers/video/fbdev/udlfb.c len = cmd - (char *) urb->transfer_buffer; urb 826 drivers/video/fbdev/udlfb.c dlfb_submit_urb(dlfb, urb, len); urb 829 drivers/video/fbdev/udlfb.c dlfb_urb_completion(urb); urb 1154 drivers/video/fbdev/udlfb.c struct urb *urb; urb 1166 drivers/video/fbdev/udlfb.c urb = dlfb_get_urb(dlfb); urb 1167 drivers/video/fbdev/udlfb.c if (!urb) urb 1170 drivers/video/fbdev/udlfb.c bufptr = (char *) urb->transfer_buffer; urb 1178 drivers/video/fbdev/udlfb.c dlfb_submit_urb(dlfb, urb, bufptr - urb 1179 drivers/video/fbdev/udlfb.c (char *) urb->transfer_buffer); urb 1811 drivers/video/fbdev/udlfb.c static void dlfb_urb_completion(struct urb *urb) urb 1813 drivers/video/fbdev/udlfb.c struct urb_node *unode = urb->context; urb 1817 drivers/video/fbdev/udlfb.c switch (urb->status) { urb 1829 drivers/video/fbdev/udlfb.c __func__, urb->status); urb 1834 drivers/video/fbdev/udlfb.c urb->transfer_buffer_length = dlfb->urbs.size; /* reset to actual */ urb 1849 drivers/video/fbdev/udlfb.c struct urb *urb; urb 1863 drivers/video/fbdev/udlfb.c urb = unode->urb; urb 1866 drivers/video/fbdev/udlfb.c usb_free_coherent(urb->dev, dlfb->urbs.size, urb 1867 drivers/video/fbdev/udlfb.c urb->transfer_buffer, urb->transfer_dma); urb 1868 drivers/video/fbdev/udlfb.c usb_free_urb(urb); urb 1877 drivers/video/fbdev/udlfb.c struct urb *urb; urb 1898 drivers/video/fbdev/udlfb.c urb = usb_alloc_urb(0, GFP_KERNEL); urb 1899 drivers/video/fbdev/udlfb.c if (!urb) { urb 1903 drivers/video/fbdev/udlfb.c unode->urb = urb; urb 1906 drivers/video/fbdev/udlfb.c &urb->transfer_dma); urb 1909 drivers/video/fbdev/udlfb.c usb_free_urb(urb); urb 1919 drivers/video/fbdev/udlfb.c usb_fill_bulk_urb(urb, dlfb->udev, usb_sndbulkpipe(dlfb->udev, 1), urb 1921 drivers/video/fbdev/udlfb.c urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; urb 1933 drivers/video/fbdev/udlfb.c static struct urb *dlfb_get_urb(struct dlfb_data *dlfb) urb 1959 drivers/video/fbdev/udlfb.c return unode->urb; urb 1962 drivers/video/fbdev/udlfb.c static int dlfb_submit_urb(struct dlfb_data *dlfb, struct urb *urb, size_t len) urb 1968 drivers/video/fbdev/udlfb.c urb->transfer_buffer_length = len; /* set to actual payload len */ urb 1969 drivers/video/fbdev/udlfb.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 1971 drivers/video/fbdev/udlfb.c dlfb_urb_completion(urb); /* because no one else will */ urb 130 drivers/watchdog/pcwd_usb.c struct urb *intr_urb; urb 165 drivers/watchdog/pcwd_usb.c static void usb_pcwd_intr_done(struct urb *urb) urb 168 drivers/watchdog/pcwd_usb.c (struct usb_pcwd_private *)urb->context; urb 173 drivers/watchdog/pcwd_usb.c switch (urb->status) { urb 181 drivers/watchdog/pcwd_usb.c __func__, urb->status); urb 186 drivers/watchdog/pcwd_usb.c __func__, urb->status); urb 201 drivers/watchdog/pcwd_usb.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 1347 include/linux/usb.h struct urb; urb 1365 include/linux/usb.h typedef void (*usb_complete_t)(struct urb *); urb 1605 include/linux/usb.h static inline void usb_fill_control_urb(struct urb *urb, urb 1614 include/linux/usb.h urb->dev = dev; urb 1615 include/linux/usb.h urb->pipe = pipe; urb 1616 include/linux/usb.h urb->setup_packet = setup_packet; urb 1617 include/linux/usb.h urb->transfer_buffer = transfer_buffer; urb 1618 include/linux/usb.h urb->transfer_buffer_length = buffer_length; urb 1619 include/linux/usb.h urb->complete = complete_fn; urb 1620 include/linux/usb.h urb->context = context; urb 1636 include/linux/usb.h static inline void usb_fill_bulk_urb(struct urb *urb, urb 1644 include/linux/usb.h urb->dev = dev; urb 1645 include/linux/usb.h urb->pipe = pipe; urb 1646 include/linux/usb.h urb->transfer_buffer = transfer_buffer; urb 1647 include/linux/usb.h urb->transfer_buffer_length = buffer_length; urb 1648 include/linux/usb.h urb->complete = complete_fn; urb 1649 include/linux/usb.h urb->context = context; urb 1677 include/linux/usb.h static inline void usb_fill_int_urb(struct urb *urb, urb 1686 include/linux/usb.h urb->dev = dev; urb 1687 include/linux/usb.h urb->pipe = pipe; urb 1688 include/linux/usb.h urb->transfer_buffer = transfer_buffer; urb 1689 include/linux/usb.h urb->transfer_buffer_length = buffer_length; urb 1690 include/linux/usb.h urb->complete = complete_fn; urb 1691 include/linux/usb.h urb->context = context; urb 1697 include/linux/usb.h urb->interval = 1 << (interval - 1); urb 1699 include/linux/usb.h urb->interval = interval; urb 1702 include/linux/usb.h urb->start_frame = -1; urb 1705 include/linux/usb.h extern void usb_init_urb(struct urb *urb); urb 1706 include/linux/usb.h extern struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags); urb 1707 include/linux/usb.h extern void usb_free_urb(struct urb *urb); urb 1709 include/linux/usb.h extern struct urb *usb_get_urb(struct urb *urb); urb 1710 include/linux/usb.h extern int usb_submit_urb(struct urb *urb, gfp_t mem_flags); urb 1711 include/linux/usb.h extern int usb_unlink_urb(struct urb *urb); urb 1712 include/linux/usb.h extern void usb_kill_urb(struct urb *urb); urb 1713 include/linux/usb.h extern void usb_poison_urb(struct urb *urb); urb 1714 include/linux/usb.h extern void usb_unpoison_urb(struct urb *urb); urb 1715 include/linux/usb.h extern void usb_block_urb(struct urb *urb); urb 1722 include/linux/usb.h extern void usb_anchor_urb(struct urb *urb, struct usb_anchor *anchor); urb 1723 include/linux/usb.h extern void usb_unanchor_urb(struct urb *urb); urb 1726 include/linux/usb.h extern struct urb *usb_get_from_anchor(struct usb_anchor *anchor); urb 1739 include/linux/usb.h static inline int usb_urb_dir_in(struct urb *urb) urb 1741 include/linux/usb.h return (urb->transfer_flags & URB_DIR_MASK) == URB_DIR_IN; urb 1751 include/linux/usb.h static inline int usb_urb_dir_out(struct urb *urb) urb 1753 include/linux/usb.h return (urb->transfer_flags & URB_DIR_MASK) == URB_DIR_OUT; urb 1756 include/linux/usb.h int usb_urb_ep_type_check(const struct urb *urb); urb 1764 include/linux/usb.h struct urb *usb_buffer_map(struct urb *urb); urb 1765 include/linux/usb.h void usb_buffer_dmasync(struct urb *urb); urb 1766 include/linux/usb.h void usb_buffer_unmap(struct urb *urb); urb 1867 include/linux/usb.h struct urb **urbs; urb 97 include/linux/usb/hcd.h struct urb *status_urb; /* the current status urb */ urb 294 include/linux/usb/hcd.h struct urb *urb, gfp_t mem_flags); urb 296 include/linux/usb/hcd.h struct urb *urb, int status); urb 307 include/linux/usb/hcd.h int (*map_urb_for_dma)(struct usb_hcd *hcd, struct urb *urb, urb 309 include/linux/usb/hcd.h void (*unmap_urb_for_dma)(struct usb_hcd *hcd, struct urb *urb); urb 431 include/linux/usb/hcd.h extern int usb_hcd_link_urb_to_ep(struct usb_hcd *hcd, struct urb *urb); urb 432 include/linux/usb/hcd.h extern int usb_hcd_check_unlink_urb(struct usb_hcd *hcd, struct urb *urb, urb 434 include/linux/usb/hcd.h extern void usb_hcd_unlink_urb_from_ep(struct usb_hcd *hcd, struct urb *urb); urb 436 include/linux/usb/hcd.h extern int usb_hcd_submit_urb(struct urb *urb, gfp_t mem_flags); urb 437 include/linux/usb/hcd.h extern int usb_hcd_unlink_urb(struct urb *urb, int status); urb 438 include/linux/usb/hcd.h extern void usb_hcd_giveback_urb(struct usb_hcd *hcd, struct urb *urb, urb 440 include/linux/usb/hcd.h extern int usb_hcd_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, urb 442 include/linux/usb/hcd.h extern void usb_hcd_unmap_urb_setup_for_dma(struct usb_hcd *, struct urb *); urb 443 include/linux/usb/hcd.h extern void usb_hcd_unmap_urb_for_dma(struct usb_hcd *, struct urb *); urb 573 include/linux/usb/hcd.h extern int usb_hub_clear_tt_buffer(struct urb *urb); urb 691 include/linux/usb/hcd.h void (*urb_submit)(struct usb_bus *bus, struct urb *urb); urb 692 include/linux/usb/hcd.h void (*urb_submit_error)(struct usb_bus *bus, struct urb *urb, int err); urb 693 include/linux/usb/hcd.h void (*urb_complete)(struct usb_bus *bus, struct urb *urb, int status); urb 699 include/linux/usb/hcd.h static inline void usbmon_urb_submit(struct usb_bus *bus, struct urb *urb) urb 702 include/linux/usb/hcd.h (*mon_ops->urb_submit)(bus, urb); urb 705 include/linux/usb/hcd.h static inline void usbmon_urb_submit_error(struct usb_bus *bus, struct urb *urb, urb 709 include/linux/usb/hcd.h (*mon_ops->urb_submit_error)(bus, urb, error); urb 712 include/linux/usb/hcd.h static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb, urb 716 include/linux/usb/hcd.h (*mon_ops->urb_complete)(bus, urb, status); urb 724 include/linux/usb/hcd.h static inline void usbmon_urb_submit(struct usb_bus *bus, struct urb *urb) {} urb 725 include/linux/usb/hcd.h static inline void usbmon_urb_submit_error(struct usb_bus *bus, struct urb *urb, urb 727 include/linux/usb/hcd.h static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb, urb 201 include/linux/usb/rndis_host.h extern void rndis_status(struct usbnet *dev, struct urb *urb); urb 81 include/linux/usb/serial.h struct urb *interrupt_in_urb; urb 86 include/linux/usb/serial.h struct urb *interrupt_out_urb; urb 91 include/linux/usb/serial.h struct urb *read_urb; urb 95 include/linux/usb/serial.h struct urb *read_urbs[2]; urb 100 include/linux/usb/serial.h struct urb *write_urb; urb 104 include/linux/usb/serial.h struct urb *write_urbs[2]; urb 306 include/linux/usb/serial.h void (*read_int_callback)(struct urb *urb); urb 307 include/linux/usb/serial.h void (*write_int_callback)(struct urb *urb); urb 308 include/linux/usb/serial.h void (*read_bulk_callback)(struct urb *urb); urb 309 include/linux/usb/serial.h void (*write_bulk_callback)(struct urb *urb); urb 311 include/linux/usb/serial.h void (*process_read_urb)(struct urb *urb); urb 353 include/linux/usb/serial.h extern void usb_serial_generic_read_bulk_callback(struct urb *urb); urb 354 include/linux/usb/serial.h extern void usb_serial_generic_write_bulk_callback(struct urb *urb); urb 365 include/linux/usb/serial.h extern void usb_serial_generic_process_read_urb(struct urb *urb); urb 62 include/linux/usb/usbnet.h struct urb *interrupt; urb 144 include/linux/usb/usbnet.h void (*status)(struct usbnet *, struct urb *); urb 214 include/linux/usb/usbnet.h extern void usbnet_cdc_status(struct usbnet *, struct urb *); urb 232 include/linux/usb/usbnet.h struct urb *urb; urb 12 include/trace/events/pwc.h TP_PROTO(struct urb *urb, struct pwc_device *pdev), urb 13 include/trace/events/pwc.h TP_ARGS(urb, pdev), urb 15 include/trace/events/pwc.h __field(struct urb*, urb) urb 23 include/trace/events/pwc.h __entry->urb = urb; urb 25 include/trace/events/pwc.h __entry->urb__status = urb->status; urb 26 include/trace/events/pwc.h __entry->urb__actual_length = urb->actual_length; urb 35 include/trace/events/pwc.h __entry->urb, urb 41 include/trace/events/pwc.h TP_PROTO(struct urb *urb, struct pwc_device *pdev), urb 42 include/trace/events/pwc.h TP_ARGS(urb, pdev), urb 44 include/trace/events/pwc.h __field(struct urb*, urb) urb 50 include/trace/events/pwc.h __entry->urb = urb; urb 59 include/trace/events/pwc.h __entry->urb) urb 23 include/video/udlfb.h struct urb *urb; urb 21 sound/usb/6fire/comm.c static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, urb 22 sound/usb/6fire/comm.c u8 *buffer, void *context, void(*handler)(struct urb *urb)) urb 24 sound/usb/6fire/comm.c usb_init_urb(urb); urb 25 sound/usb/6fire/comm.c urb->transfer_buffer = buffer; urb 26 sound/usb/6fire/comm.c urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); urb 27 sound/usb/6fire/comm.c urb->complete = handler; urb 28 sound/usb/6fire/comm.c urb->context = context; urb 29 sound/usb/6fire/comm.c urb->interval = 1; urb 30 sound/usb/6fire/comm.c urb->dev = rt->chip->dev; urb 33 sound/usb/6fire/comm.c static void usb6fire_comm_receiver_handler(struct urb *urb) urb 35 sound/usb/6fire/comm.c struct comm_runtime *rt = urb->context; urb 38 sound/usb/6fire/comm.c if (!urb->status) { urb 47 sound/usb/6fire/comm.c urb->status = 0; urb 48 sound/usb/6fire/comm.c urb->actual_length = 0; urb 49 sound/usb/6fire/comm.c if (usb_submit_urb(urb, GFP_ATOMIC) < 0) urb 50 sound/usb/6fire/comm.c dev_warn(&urb->dev->dev, urb 146 sound/usb/6fire/comm.c struct urb *urb; urb 158 sound/usb/6fire/comm.c urb = &rt->receiver; urb 161 sound/usb/6fire/comm.c usb_init_urb(urb); urb 167 sound/usb/6fire/comm.c urb->transfer_buffer = rt->receiver_buffer; urb 168 sound/usb/6fire/comm.c urb->transfer_buffer_length = COMM_RECEIVER_BUFSIZE; urb 169 sound/usb/6fire/comm.c urb->pipe = usb_rcvintpipe(chip->dev, COMM_EP); urb 170 sound/usb/6fire/comm.c urb->dev = chip->dev; urb 171 sound/usb/6fire/comm.c urb->complete = usb6fire_comm_receiver_handler; urb 172 sound/usb/6fire/comm.c urb->context = rt; urb 173 sound/usb/6fire/comm.c urb->interval = 1; urb 174 sound/usb/6fire/comm.c ret = usb_submit_urb(urb, GFP_KERNEL); urb 22 sound/usb/6fire/comm.h struct urb receiver; urb 27 sound/usb/6fire/comm.h void (*init_urb)(struct comm_runtime *rt, struct urb *urb, u8 *buffer, urb 28 sound/usb/6fire/comm.h void *context, void(*handler)(struct urb *urb)); urb 22 sound/usb/6fire/midi.c static void usb6fire_midi_out_handler(struct urb *urb) urb 24 sound/usb/6fire/midi.c struct midi_runtime *rt = urb->context; urb 36 sound/usb/6fire/midi.c urb->transfer_buffer_length = ret + 4; urb 38 sound/usb/6fire/midi.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 40 sound/usb/6fire/midi.c dev_err(&urb->dev->dev, urb 74 sound/usb/6fire/midi.c struct urb *urb = &rt->out_urb; urb 90 sound/usb/6fire/midi.c urb->transfer_buffer_length = ret + 4; urb 92 sound/usb/6fire/midi.c ret = usb_submit_urb(urb, GFP_ATOMIC); urb 94 sound/usb/6fire/midi.c dev_err(&urb->dev->dev, urb 25 sound/usb/6fire/midi.h struct urb out_urb; urb 192 sound/usb/6fire/pcm.c static void usb6fire_pcm_capture(struct pcm_substream *sub, struct pcm_urb *urb) urb 210 sound/usb/6fire/pcm.c if (urb->packets[i].actual_length > 4) urb 211 sound/usb/6fire/pcm.c frame_count = (urb->packets[i].actual_length - 4) urb 217 sound/usb/6fire/pcm.c src = (u32 *) (urb->buffer + total_length); urb 219 sound/usb/6fire/pcm.c src = (u32 *) (urb->buffer - 1 + total_length); urb 223 sound/usb/6fire/pcm.c total_length += urb->packets[i].length; urb 240 sound/usb/6fire/pcm.c struct pcm_urb *urb) urb 255 sound/usb/6fire/pcm.c dest = (u32 *) (urb->buffer - 1); urb 257 sound/usb/6fire/pcm.c dest = (u32 *) (urb->buffer); urb 266 sound/usb/6fire/pcm.c if (urb->packets[i].length > 4) urb 267 sound/usb/6fire/pcm.c frame_count = (urb->packets[i].length - 4) urb 286 sound/usb/6fire/pcm.c static void usb6fire_pcm_in_urb_handler(struct urb *usb_urb) urb 375 sound/usb/6fire/pcm.c static void usb6fire_pcm_out_urb_handler(struct urb *usb_urb) urb 377 sound/usb/6fire/pcm.c struct pcm_urb *urb = usb_urb->context; urb 378 sound/usb/6fire/pcm.c struct pcm_runtime *rt = urb->chip->pcm; urb 566 sound/usb/6fire/pcm.c static void usb6fire_pcm_init_urb(struct pcm_urb *urb, urb 568 sound/usb/6fire/pcm.c void (*handler)(struct urb *)) urb 570 sound/usb/6fire/pcm.c urb->chip = chip; urb 571 sound/usb/6fire/pcm.c usb_init_urb(&urb->instance); urb 572 sound/usb/6fire/pcm.c urb->instance.transfer_buffer = urb->buffer; urb 573 sound/usb/6fire/pcm.c urb->instance.transfer_buffer_length = urb 575 sound/usb/6fire/pcm.c urb->instance.dev = chip->dev; urb 576 sound/usb/6fire/pcm.c urb->instance.pipe = in ? usb_rcvisocpipe(chip->dev, ep) urb 578 sound/usb/6fire/pcm.c urb->instance.interval = 1; urb 579 sound/usb/6fire/pcm.c urb->instance.complete = handler; urb 580 sound/usb/6fire/pcm.c urb->instance.context = urb; urb 581 sound/usb/6fire/pcm.c urb->instance.number_of_packets = PCM_N_PACKETS_PER_URB; urb 28 sound/usb/6fire/pcm.h struct urb instance; urb 54 sound/usb/bcd2000/bcd2000.c struct urb *midi_out_urb; urb 55 sound/usb/bcd2000/bcd2000.c struct urb *midi_in_urb; urb 205 sound/usb/bcd2000/bcd2000.c static void bcd2000_output_complete(struct urb *urb) urb 207 sound/usb/bcd2000/bcd2000.c struct bcd2000 *bcd2k = urb->context; urb 211 sound/usb/bcd2000/bcd2000.c if (urb->status) urb 212 sound/usb/bcd2000/bcd2000.c dev_warn(&urb->dev->dev, urb 213 sound/usb/bcd2000/bcd2000.c PREFIX "output urb->status: %d\n", urb->status); urb 215 sound/usb/bcd2000/bcd2000.c if (urb->status == -ESHUTDOWN) urb 222 sound/usb/bcd2000/bcd2000.c static void bcd2000_input_complete(struct urb *urb) urb 225 sound/usb/bcd2000/bcd2000.c struct bcd2000 *bcd2k = urb->context; urb 227 sound/usb/bcd2000/bcd2000.c if (urb->status) urb 228 sound/usb/bcd2000/bcd2000.c dev_warn(&urb->dev->dev, urb 229 sound/usb/bcd2000/bcd2000.c PREFIX "input urb->status: %i\n", urb->status); urb 231 sound/usb/bcd2000/bcd2000.c if (!bcd2k || urb->status == -ESHUTDOWN) urb 234 sound/usb/bcd2000/bcd2000.c if (urb->actual_length > 0) urb 235 sound/usb/bcd2000/bcd2000.c bcd2000_midi_handle_input(bcd2k, urb->transfer_buffer, urb 236 sound/usb/bcd2000/bcd2000.c urb->actual_length); urb 364 sound/usb/caiaq/audio.c const struct urb *urb, urb 367 sound/usb/caiaq/audio.c unsigned char *usb_buf = urb->transfer_buffer + iso->offset; urb 392 sound/usb/caiaq/audio.c const struct urb *urb, urb 395 sound/usb/caiaq/audio.c unsigned char *usb_buf = urb->transfer_buffer + iso->offset; urb 439 sound/usb/caiaq/audio.c const struct urb *urb, urb 442 sound/usb/caiaq/audio.c unsigned char *usb_buf = urb->transfer_buffer + iso->offset; urb 495 sound/usb/caiaq/audio.c const struct urb *urb, urb 508 sound/usb/caiaq/audio.c read_in_urb_mode0(cdev, urb, iso); urb 511 sound/usb/caiaq/audio.c read_in_urb_mode2(cdev, urb, iso); urb 514 sound/usb/caiaq/audio.c read_in_urb_mode3(cdev, urb, iso); urb 527 sound/usb/caiaq/audio.c struct urb *urb, urb 530 sound/usb/caiaq/audio.c unsigned char *usb_buf = urb->transfer_buffer + iso->offset; urb 561 sound/usb/caiaq/audio.c struct urb *urb, urb 564 sound/usb/caiaq/audio.c unsigned char *usb_buf = urb->transfer_buffer + iso->offset; urb 604 sound/usb/caiaq/audio.c struct urb *urb, urb 610 sound/usb/caiaq/audio.c fill_out_urb_mode_0(cdev, urb, iso); urb 613 sound/usb/caiaq/audio.c fill_out_urb_mode_3(cdev, urb, iso); urb 618 sound/usb/caiaq/audio.c static void read_completed(struct urb *urb) urb 620 sound/usb/caiaq/audio.c struct snd_usb_caiaq_cb_info *info = urb->context; urb 623 sound/usb/caiaq/audio.c struct urb *out = NULL; urb 628 sound/usb/caiaq/audio.c if (urb->status || !info) urb 652 sound/usb/caiaq/audio.c if (urb->iso_frame_desc[frame].status) urb 655 sound/usb/caiaq/audio.c len = urb->iso_frame_desc[outframe].actual_length; urb 664 sound/usb/caiaq/audio.c read_in_urb(cdev, urb, &urb->iso_frame_desc[frame]); urb 685 sound/usb/caiaq/audio.c urb->iso_frame_desc[frame].offset = BYTES_PER_FRAME * frame; urb 686 sound/usb/caiaq/audio.c urb->iso_frame_desc[frame].length = BYTES_PER_FRAME; urb 687 sound/usb/caiaq/audio.c urb->iso_frame_desc[frame].actual_length = 0; urb 690 sound/usb/caiaq/audio.c urb->number_of_packets = FRAMES_PER_URB; urb 691 sound/usb/caiaq/audio.c usb_submit_urb(urb, GFP_ATOMIC); urb 694 sound/usb/caiaq/audio.c static void write_completed(struct urb *urb) urb 696 sound/usb/caiaq/audio.c struct snd_usb_caiaq_cb_info *info = urb->context; urb 707 sound/usb/caiaq/audio.c static struct urb **alloc_urbs(struct snd_usb_caiaqdev *cdev, int dir, int *ret) urb 710 sound/usb/caiaq/audio.c struct urb **urbs; urb 762 sound/usb/caiaq/audio.c static void free_urbs(struct urb **urbs) urb 145 sound/usb/caiaq/device.c static void usb_ep1_command_reply_dispatch (struct urb* urb) urb 148 sound/usb/caiaq/device.c struct device *dev = &urb->dev->dev; urb 149 sound/usb/caiaq/device.c struct snd_usb_caiaqdev *cdev = urb->context; urb 150 sound/usb/caiaq/device.c unsigned char *buf = urb->transfer_buffer; urb 152 sound/usb/caiaq/device.c if (urb->status || !cdev) { urb 153 sound/usb/caiaq/device.c dev_warn(dev, "received EP1 urb->status = %i\n", urb->status); urb 183 sound/usb/caiaq/device.c if (urb->actual_length > sizeof(cdev->control_state)) urb 184 sound/usb/caiaq/device.c urb->actual_length = sizeof(cdev->control_state); urb 185 sound/usb/caiaq/device.c memcpy(cdev->control_state, buf + 1, urb->actual_length); urb 193 sound/usb/caiaq/device.c snd_usb_caiaq_input_dispatch(cdev, buf, urb->actual_length); urb 63 sound/usb/caiaq/device.h struct urb ep1_in_urb; urb 64 sound/usb/caiaq/device.h struct urb midi_out_urb; urb 65 sound/usb/caiaq/device.h struct urb **data_urbs_in; urb 66 sound/usb/caiaq/device.h struct urb **data_urbs_out; urb 106 sound/usb/caiaq/device.h struct urb *ep4_in_urb; urb 490 sound/usb/caiaq/input.c static void snd_usb_caiaq_ep4_reply_dispatch(struct urb *urb) urb 492 sound/usb/caiaq/input.c struct snd_usb_caiaqdev *cdev = urb->context; urb 493 sound/usb/caiaq/input.c unsigned char *buf = urb->transfer_buffer; urb 494 sound/usb/caiaq/input.c struct device *dev = &urb->dev->dev; urb 497 sound/usb/caiaq/input.c if (urb->status || !cdev || urb != cdev->ep4_in_urb) urb 502 sound/usb/caiaq/input.c if (urb->actual_length < 24) urb 514 sound/usb/caiaq/input.c snd_usb_caiaq_tks4_dispatch(cdev, buf, urb->actual_length); urb 518 sound/usb/caiaq/input.c if (urb->actual_length < (MASCHINE_PADS * MASCHINE_MSGBLOCK_SIZE)) urb 521 sound/usb/caiaq/input.c snd_usb_caiaq_maschine_dispatch(cdev, buf, urb->actual_length); urb 150 sound/usb/caiaq/midi.c void snd_usb_caiaq_midi_output_done(struct urb* urb) urb 152 sound/usb/caiaq/midi.c struct snd_usb_caiaqdev *cdev = urb->context; urb 155 sound/usb/caiaq/midi.c if (urb->status != 0) urb 8 sound/usb/caiaq/midi.h void snd_usb_caiaq_midi_output_done(struct urb *urb); urb 44 sound/usb/card.h struct urb *urb; urb 63 sound/usb/card.h struct urb *urb); urb 65 sound/usb/card.h struct urb *urb); urb 71 sound/usb/card.h struct snd_urb_ctx urb[MAX_URBS]; urb 78 sound/usb/endpoint.c u->urb->transfer_buffer, urb 79 sound/usb/endpoint.c u->urb->transfer_dma); urb 80 sound/usb/endpoint.c usb_free_urb(u->urb); urb 81 sound/usb/endpoint.c u->urb = NULL; urb 153 sound/usb/endpoint.c ep->retire_data_urb(ep->data_subs, urb_ctx->urb); urb 159 sound/usb/endpoint.c struct urb *urb = urb_ctx->urb; urb 167 sound/usb/endpoint.c snd_usb_handle_sync_urb(ep->sync_slave, ep, urb); urb 170 sound/usb/endpoint.c ep->retire_data_urb(ep->data_subs, urb); urb 176 sound/usb/endpoint.c struct urb *urb = ctx->urb; urb 198 sound/usb/endpoint.c urb->iso_frame_desc[i].offset = offset; urb 199 sound/usb/endpoint.c urb->iso_frame_desc[i].length = length + extra; urb 202 sound/usb/endpoint.c memcpy(urb->transfer_buffer + offset, urb 205 sound/usb/endpoint.c memset(urb->transfer_buffer + offset + extra, urb 210 sound/usb/endpoint.c urb->number_of_packets = ctx->packets; urb 211 sound/usb/endpoint.c urb->transfer_buffer_length = offs * ep->stride + ctx->packets * extra; urb 220 sound/usb/endpoint.c struct urb *urb = ctx->urb; urb 221 sound/usb/endpoint.c unsigned char *cp = urb->transfer_buffer; urb 223 sound/usb/endpoint.c urb->dev = ep->chip->dev; /* we need to set this at each time */ urb 228 sound/usb/endpoint.c ep->prepare_data_urb(ep->data_subs, urb); urb 241 sound/usb/endpoint.c urb->iso_frame_desc[0].length = 4; urb 242 sound/usb/endpoint.c urb->iso_frame_desc[0].offset = 0; urb 252 sound/usb/endpoint.c urb->iso_frame_desc[0].length = 3; urb 253 sound/usb/endpoint.c urb->iso_frame_desc[0].offset = 0; urb 270 sound/usb/endpoint.c struct urb *urb = urb_ctx->urb; urb 272 sound/usb/endpoint.c urb->dev = ep->chip->dev; /* we need to set this at each time */ urb 278 sound/usb/endpoint.c urb->iso_frame_desc[i].offset = offs; urb 279 sound/usb/endpoint.c urb->iso_frame_desc[i].length = ep->curpacksize; urb 283 sound/usb/endpoint.c urb->transfer_buffer_length = offs; urb 284 sound/usb/endpoint.c urb->number_of_packets = urb_ctx->packets; urb 288 sound/usb/endpoint.c urb->iso_frame_desc[0].length = min(4u, ep->syncmaxsize); urb 289 sound/usb/endpoint.c urb->iso_frame_desc[0].offset = 0; urb 342 sound/usb/endpoint.c err = usb_submit_urb(ctx->urb, GFP_ATOMIC); urb 346 sound/usb/endpoint.c ctx->index, err, ctx->urb); urb 355 sound/usb/endpoint.c static void snd_complete_urb(struct urb *urb) urb 357 sound/usb/endpoint.c struct snd_urb_ctx *ctx = urb->context; urb 363 sound/usb/endpoint.c if (unlikely(urb->status == -ENOENT || /* unlinked */ urb 364 sound/usb/endpoint.c urb->status == -ENODEV || /* device removed */ urb 365 sound/usb/endpoint.c urb->status == -ECONNRESET || /* unlinked */ urb 366 sound/usb/endpoint.c urb->status == -ESHUTDOWN)) /* device disabled */ urb 403 sound/usb/endpoint.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 564 sound/usb/endpoint.c struct urb *u = ep->urb[i].urb; urb 589 sound/usb/endpoint.c release_urb_ctx(&ep->urb[i]); urb 762 sound/usb/endpoint.c struct snd_urb_ctx *u = &ep->urb[i]; urb 770 sound/usb/endpoint.c u->urb = usb_alloc_urb(u->packets, GFP_KERNEL); urb 771 sound/usb/endpoint.c if (!u->urb) urb 774 sound/usb/endpoint.c u->urb->transfer_buffer = urb 776 sound/usb/endpoint.c GFP_KERNEL, &u->urb->transfer_dma); urb 777 sound/usb/endpoint.c if (!u->urb->transfer_buffer) urb 779 sound/usb/endpoint.c u->urb->pipe = ep->pipe; urb 780 sound/usb/endpoint.c u->urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urb 781 sound/usb/endpoint.c u->urb->interval = 1 << ep->datainterval; urb 782 sound/usb/endpoint.c u->urb->context = u; urb 783 sound/usb/endpoint.c u->urb->complete = snd_complete_urb; urb 807 sound/usb/endpoint.c struct snd_urb_ctx *u = &ep->urb[i]; urb 811 sound/usb/endpoint.c u->urb = usb_alloc_urb(1, GFP_KERNEL); urb 812 sound/usb/endpoint.c if (!u->urb) urb 814 sound/usb/endpoint.c u->urb->transfer_buffer = ep->syncbuf + i * 4; urb 815 sound/usb/endpoint.c u->urb->transfer_dma = ep->sync_dma + i * 4; urb 816 sound/usb/endpoint.c u->urb->transfer_buffer_length = 4; urb 817 sound/usb/endpoint.c u->urb->pipe = ep->pipe; urb 818 sound/usb/endpoint.c u->urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urb 819 sound/usb/endpoint.c u->urb->number_of_packets = 1; urb 820 sound/usb/endpoint.c u->urb->interval = 1 << ep->syncinterval; urb 821 sound/usb/endpoint.c u->urb->context = u; urb 822 sound/usb/endpoint.c u->urb->complete = snd_complete_urb; urb 953 sound/usb/endpoint.c struct snd_urb_ctx *ctx = ep->urb + i; urb 961 sound/usb/endpoint.c struct urb *urb = ep->urb[i].urb; urb 963 sound/usb/endpoint.c if (snd_BUG_ON(!urb)) urb 967 sound/usb/endpoint.c prepare_outbound_urb(ep, urb->context); urb 969 sound/usb/endpoint.c prepare_inbound_urb(ep, urb->context); urb 972 sound/usb/endpoint.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 1078 sound/usb/endpoint.c const struct urb *urb) urb 1100 sound/usb/endpoint.c in_ctx = urb->context; urb 1104 sound/usb/endpoint.c if (urb->iso_frame_desc[i].status == 0) urb 1105 sound/usb/endpoint.c bytes += urb->iso_frame_desc[i].actual_length; urb 1129 sound/usb/endpoint.c if (urb->iso_frame_desc[i].status == 0) urb 1131 sound/usb/endpoint.c urb->iso_frame_desc[i].actual_length / sender->stride; urb 1159 sound/usb/endpoint.c if (urb->iso_frame_desc[0].status != 0 || urb 1160 sound/usb/endpoint.c urb->iso_frame_desc[0].actual_length < 3) urb 1163 sound/usb/endpoint.c f = le32_to_cpup(urb->transfer_buffer); urb 1164 sound/usb/endpoint.c if (urb->iso_frame_desc[0].actual_length == 3) urb 35 sound/usb/endpoint.h const struct urb *urb); urb 27 sound/usb/hiface/pcm.c struct urb instance; urb 257 sound/usb/hiface/pcm.c static bool hiface_pcm_playback(struct pcm_substream *sub, struct pcm_urb *urb) urb 260 sound/usb/hiface/pcm.c struct device *device = &urb->chip->dev->dev; urb 274 sound/usb/hiface/pcm.c memcpy_swahw32(urb->buffer, source, PCM_PACKET_SIZE); urb 286 sound/usb/hiface/pcm.c memcpy_swahw32(urb->buffer, source, len); urb 289 sound/usb/hiface/pcm.c memcpy_swahw32(urb->buffer + len, source, urb 304 sound/usb/hiface/pcm.c static void hiface_pcm_out_urb_handler(struct urb *usb_urb) urb 524 sound/usb/hiface/pcm.c static int hiface_pcm_init_urb(struct pcm_urb *urb, urb 527 sound/usb/hiface/pcm.c void (*handler)(struct urb *)) urb 529 sound/usb/hiface/pcm.c urb->chip = chip; urb 530 sound/usb/hiface/pcm.c usb_init_urb(&urb->instance); urb 532 sound/usb/hiface/pcm.c urb->buffer = kzalloc(PCM_PACKET_SIZE, GFP_KERNEL); urb 533 sound/usb/hiface/pcm.c if (!urb->buffer) urb 536 sound/usb/hiface/pcm.c usb_fill_bulk_urb(&urb->instance, chip->dev, urb 537 sound/usb/hiface/pcm.c usb_sndbulkpipe(chip->dev, ep), (void *)urb->buffer, urb 538 sound/usb/hiface/pcm.c PCM_PACKET_SIZE, handler, urb); urb 539 sound/usb/hiface/pcm.c if (usb_urb_ep_type_check(&urb->instance)) urb 541 sound/usb/hiface/pcm.c init_usb_anchor(&urb->submitted); urb 26 sound/usb/line6/capture.c struct urb *urb_in; urb 145 sound/usb/line6/capture.c static void audio_in_callback(struct urb *urb) urb 150 sound/usb/line6/capture.c struct snd_line6_pcm *line6pcm = (struct snd_line6_pcm *)urb->context; urb 152 sound/usb/line6/capture.c line6pcm->in.last_frame = urb->start_frame; urb 156 sound/usb/line6/capture.c if (urb == line6pcm->in.urbs[index]) urb 164 sound/usb/line6/capture.c struct usb_iso_packet_descriptor *fin = &urb->iso_frame_desc[i]; urb 171 sound/usb/line6/capture.c fbuf = urb->transfer_buffer + fin->offset; urb 263 sound/usb/line6/capture.c line6pcm->in.urbs = kcalloc(line6->iso_buffers, sizeof(struct urb *), urb 270 sound/usb/line6/capture.c struct urb *urb; urb 273 sound/usb/line6/capture.c urb = line6pcm->in.urbs[i] = urb 276 sound/usb/line6/capture.c if (urb == NULL) urb 279 sound/usb/line6/capture.c urb->dev = line6->usbdev; urb 280 sound/usb/line6/capture.c urb->pipe = urb 284 sound/usb/line6/capture.c urb->transfer_flags = URB_ISO_ASAP; urb 285 sound/usb/line6/capture.c urb->start_frame = -1; urb 286 sound/usb/line6/capture.c urb->number_of_packets = LINE6_ISO_PACKETS; urb 287 sound/usb/line6/capture.c urb->interval = LINE6_ISO_INTERVAL; urb 288 sound/usb/line6/capture.c urb->error_count = 0; urb 289 sound/usb/line6/capture.c urb->complete = audio_in_callback; urb 55 sound/usb/line6/driver.c static void line6_data_received(struct urb *urb); urb 57 sound/usb/line6/driver.c struct urb *urb); urb 139 sound/usb/line6/driver.c static void line6_async_request_sent(struct urb *urb) urb 141 sound/usb/line6/driver.c struct message *msg = (struct message *)urb->context; urb 144 sound/usb/line6/driver.c usb_free_urb(urb); urb 147 sound/usb/line6/driver.c line6_send_raw_message_async_part(msg, urb); urb 154 sound/usb/line6/driver.c struct urb *urb) urb 162 sound/usb/line6/driver.c usb_fill_int_urb(urb, line6->usbdev, urb 167 sound/usb/line6/driver.c usb_fill_bulk_urb(urb, line6->usbdev, urb 176 sound/usb/line6/driver.c retval = usb_urb_ep_type_check(urb); urb 180 sound/usb/line6/driver.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 189 sound/usb/line6/driver.c usb_free_urb(urb); urb 201 sound/usb/line6/driver.c struct urb *urb; urb 209 sound/usb/line6/driver.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 211 sound/usb/line6/driver.c if (urb == NULL) { urb 223 sound/usb/line6/driver.c return line6_send_raw_message_async_part(msg, urb); urb 284 sound/usb/line6/driver.c static void line6_data_received(struct urb *urb) urb 286 sound/usb/line6/driver.c struct usb_line6 *line6 = (struct usb_line6 *)urb->context; urb 290 sound/usb/line6/driver.c if (urb->status == -ESHUTDOWN) urb 295 sound/usb/line6/driver.c line6_midibuf_write(mb, urb->transfer_buffer, urb->actual_length); urb 297 sound/usb/line6/driver.c if (done < urb->actual_length) { urb 300 sound/usb/line6/driver.c done, urb->actual_length); urb 318 sound/usb/line6/driver.c line6->buffer_message = urb->transfer_buffer; urb 319 sound/usb/line6/driver.c line6->message_length = urb->actual_length; urb 150 sound/usb/line6/driver.h struct urb *urb_listen; urb 71 sound/usb/line6/midi.c static void midi_sent(struct urb *urb) urb 76 sound/usb/line6/midi.c struct usb_line6 *line6 = (struct usb_line6 *)urb->context; urb 78 sound/usb/line6/midi.c status = urb->status; urb 79 sound/usb/line6/midi.c kfree(urb->transfer_buffer); urb 80 sound/usb/line6/midi.c usb_free_urb(urb); urb 107 sound/usb/line6/midi.c struct urb *urb; urb 111 sound/usb/line6/midi.c urb = usb_alloc_urb(0, GFP_ATOMIC); urb 113 sound/usb/line6/midi.c if (urb == NULL) urb 119 sound/usb/line6/midi.c usb_free_urb(urb); urb 123 sound/usb/line6/midi.c usb_fill_int_urb(urb, line6->usbdev, urb 128 sound/usb/line6/midi.c urb->actual_length = 0; urb 129 sound/usb/line6/midi.c retval = usb_urb_ep_type_check(urb); urb 133 sound/usb/line6/midi.c retval = usb_submit_urb(urb, GFP_ATOMIC); urb 142 sound/usb/line6/midi.c usb_free_urb(urb); urb 89 sound/usb/line6/pcm.h struct urb **urbs; urb 21 sound/usb/line6/playback.c static void change_volume(struct urb *urb_out, int volume[], urb 66 sound/usb/line6/playback.c struct urb *urb_out, int bytes_per_frame) urb 108 sound/usb/line6/playback.c static void add_monitor_signal(struct urb *urb_out, unsigned char *signal, urb 153 sound/usb/line6/playback.c struct urb *urb_out; urb 302 sound/usb/line6/playback.c static void audio_out_callback(struct urb *urb) urb 306 sound/usb/line6/playback.c struct snd_line6_pcm *line6pcm = (struct snd_line6_pcm *)urb->context; urb 314 sound/usb/line6/playback.c memset(urb->transfer_buffer, 0, urb->transfer_buffer_length); urb 317 sound/usb/line6/playback.c line6pcm->out.last_frame = urb->start_frame; urb 321 sound/usb/line6/playback.c if (urb == line6pcm->out.urbs[index]) urb 328 sound/usb/line6/playback.c length += urb->iso_frame_desc[i].length; urb 345 sound/usb/line6/playback.c if (urb->iso_frame_desc[i].status == -EXDEV) { urb 408 sound/usb/line6/playback.c line6pcm->out.urbs = kcalloc(line6->iso_buffers, sizeof(struct urb *), urb 415 sound/usb/line6/playback.c struct urb *urb; urb 418 sound/usb/line6/playback.c urb = line6pcm->out.urbs[i] = urb 421 sound/usb/line6/playback.c if (urb == NULL) urb 424 sound/usb/line6/playback.c urb->dev = line6->usbdev; urb 425 sound/usb/line6/playback.c urb->pipe = urb 429 sound/usb/line6/playback.c urb->transfer_flags = URB_ISO_ASAP; urb 430 sound/usb/line6/playback.c urb->start_frame = -1; urb 431 sound/usb/line6/playback.c urb->number_of_packets = LINE6_ISO_PACKETS; urb 432 sound/usb/line6/playback.c urb->interval = LINE6_ISO_INTERVAL; urb 433 sound/usb/line6/playback.c urb->error_count = 0; urb 434 sound/usb/line6/playback.c urb->complete = audio_out_callback; urb 103 sound/usb/midi.c void (*output)(struct snd_usb_midi_out_endpoint *ep, struct urb *urb); urb 104 sound/usb/midi.c void (*output_packet)(struct urb*, uint8_t, uint8_t, uint8_t, uint8_t); urb 139 sound/usb/midi.c struct urb *urb; urb 171 sound/usb/midi.c struct urb *urbs[INPUT_URBS]; urb 192 sound/usb/midi.c static int snd_usbmidi_submit_urb(struct urb *urb, gfp_t flags) urb 194 sound/usb/midi.c int err = usb_submit_urb(urb, flags); urb 196 sound/usb/midi.c dev_err(&urb->dev->dev, "usb_submit_urb: %d\n", err); urb 203 sound/usb/midi.c static int snd_usbmidi_urb_error(const struct urb *urb) urb 205 sound/usb/midi.c switch (urb->status) { urb 218 sound/usb/midi.c dev_err(&urb->dev->dev, "urb status %d\n", urb->status); urb 255 sound/usb/midi.c static void snd_usbmidi_in_urb_complete(struct urb *urb) urb 257 sound/usb/midi.c struct snd_usb_midi_in_endpoint *ep = urb->context; urb 259 sound/usb/midi.c if (urb->status == 0) { urb 260 sound/usb/midi.c dump_urb("received", urb->transfer_buffer, urb->actual_length); urb 261 sound/usb/midi.c ep->umidi->usb_protocol_ops->input(ep, urb->transfer_buffer, urb 262 sound/usb/midi.c urb->actual_length); urb 264 sound/usb/midi.c int err = snd_usbmidi_urb_error(urb); urb 275 sound/usb/midi.c urb->dev = ep->umidi->dev; urb 276 sound/usb/midi.c snd_usbmidi_submit_urb(urb, GFP_ATOMIC); urb 279 sound/usb/midi.c static void snd_usbmidi_out_urb_complete(struct urb *urb) urb 281 sound/usb/midi.c struct out_urb_context *context = urb->context; urb 294 sound/usb/midi.c if (urb->status < 0) { urb 295 sound/usb/midi.c int err = snd_usbmidi_urb_error(urb); urb 313 sound/usb/midi.c struct urb *urb; urb 325 sound/usb/midi.c urb = ep->urbs[urb_index].urb; urb 326 sound/usb/midi.c urb->transfer_buffer_length = 0; urb 327 sound/usb/midi.c ep->umidi->usb_protocol_ops->output(ep, urb); urb 328 sound/usb/midi.c if (urb->transfer_buffer_length == 0) urb 331 sound/usb/midi.c dump_urb("sending", urb->transfer_buffer, urb 332 sound/usb/midi.c urb->transfer_buffer_length); urb 333 sound/usb/midi.c urb->dev = ep->umidi->dev; urb 334 sound/usb/midi.c if (snd_usbmidi_submit_urb(urb, GFP_ATOMIC) < 0) urb 392 sound/usb/midi.c if (ep->urbs[0].urb) urb 393 sound/usb/midi.c err = usb_bulk_msg(ep->umidi->dev, ep->urbs[0].urb->pipe, urb 523 sound/usb/midi.c static void snd_usbmidi_output_standard_packet(struct urb *urb, uint8_t p0, urb 529 sound/usb/midi.c (uint8_t *)urb->transfer_buffer + urb->transfer_buffer_length; urb 534 sound/usb/midi.c urb->transfer_buffer_length += 4; urb 540 sound/usb/midi.c static void snd_usbmidi_output_midiman_packet(struct urb *urb, uint8_t p0, urb 546 sound/usb/midi.c (uint8_t *)urb->transfer_buffer + urb->transfer_buffer_length; urb 551 sound/usb/midi.c urb->transfer_buffer_length += 4; urb 558 sound/usb/midi.c uint8_t b, struct urb *urb) urb 561 sound/usb/midi.c void (*output_packet)(struct urb*, uint8_t, uint8_t, uint8_t, uint8_t) = urb 565 sound/usb/midi.c output_packet(urb, p0 | 0x0f, b, 0, 0); urb 586 sound/usb/midi.c output_packet(urb, p0 | 0x05, 0xf6, 0, 0); urb 592 sound/usb/midi.c output_packet(urb, p0 | 0x05, 0xf7, 0, 0); urb 595 sound/usb/midi.c output_packet(urb, p0 | 0x06, port->data[0], urb 599 sound/usb/midi.c output_packet(urb, p0 | 0x07, port->data[0], urb 621 sound/usb/midi.c output_packet(urb, p0, port->data[0], b, 0); urb 635 sound/usb/midi.c output_packet(urb, p0, port->data[0], port->data[1], b); urb 646 sound/usb/midi.c output_packet(urb, p0 | 0x04, port->data[0], urb 655 sound/usb/midi.c struct urb *urb) urb 664 sound/usb/midi.c while (urb->transfer_buffer_length + 3 < ep->max_transfer) { urb 670 sound/usb/midi.c snd_usbmidi_transmit_byte(port, b, urb); urb 739 sound/usb/midi.c struct urb *urb) urb 749 sound/usb/midi.c msg = urb->transfer_buffer + urb->transfer_buffer_length; urb 753 sound/usb/midi.c while (urb->transfer_buffer_length < buf_end) { urb 786 sound/usb/midi.c urb->transfer_buffer_length += count + 1; urb 820 sound/usb/midi.c struct urb *urb) urb 827 sound/usb/midi.c transfer_buffer = urb->transfer_buffer; urb 837 sound/usb/midi.c urb->transfer_buffer_length = 2 + count; urb 856 sound/usb/midi.c struct urb *urb) urb 863 sound/usb/midi.c urb->transfer_buffer, urb 869 sound/usb/midi.c urb->transfer_buffer_length = count; urb 906 sound/usb/midi.c struct urb *urb) urb 922 sound/usb/midi.c urb->transfer_buffer, urb 929 sound/usb/midi.c memset(urb->transfer_buffer + count, 0xFD, ep->max_transfer - count); urb 930 sound/usb/midi.c urb->transfer_buffer_length = ep->max_transfer; urb 1020 sound/usb/midi.c struct urb *urb) urb 1023 sound/usb/midi.c uint8_t *buf = urb->transfer_buffer; urb 1063 sound/usb/midi.c urb->transfer_buffer_length = ep->max_transfer - buf_free; urb 1250 sound/usb/midi.c static void free_urb_and_buffer(struct snd_usb_midi *umidi, struct urb *urb, urb 1254 sound/usb/midi.c urb->transfer_buffer, urb->transfer_dma); urb 1255 sound/usb/midi.c usb_free_urb(urb); urb 1347 sound/usb/midi.c if (ep->urbs[i].urb) { urb 1348 sound/usb/midi.c free_urb_and_buffer(ep->umidi, ep->urbs[i].urb, urb 1350 sound/usb/midi.c ep->urbs[i].urb = NULL; urb 1380 sound/usb/midi.c ep->urbs[i].urb = usb_alloc_urb(0, GFP_KERNEL); urb 1381 sound/usb/midi.c if (!ep->urbs[i].urb) { urb 1419 sound/usb/midi.c &ep->urbs[i].urb->transfer_dma); urb 1425 sound/usb/midi.c usb_fill_int_urb(ep->urbs[i].urb, umidi->dev, urb 1430 sound/usb/midi.c usb_fill_bulk_urb(ep->urbs[i].urb, umidi->dev, urb 1434 sound/usb/midi.c err = usb_urb_ep_type_check(ep->urbs[i].urb); urb 1440 sound/usb/midi.c ep->urbs[i].urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; urb 1508 sound/usb/midi.c usb_kill_urb(ep->out->urbs[j].urb); urb 2292 sound/usb/midi.c struct urb *urb = ep->urbs[i]; urb 2293 sound/usb/midi.c urb->dev = ep->umidi->dev; urb 2294 sound/usb/midi.c snd_usbmidi_submit_urb(urb, GFP_KERNEL); urb 113 sound/usb/misc/ua101.c struct urb urb; urb 171 sound/usb/misc/ua101.c static void playback_urb_complete(struct urb *usb_urb) urb 173 sound/usb/misc/ua101.c struct ua101_urb *urb = (struct ua101_urb *)usb_urb; urb 174 sound/usb/misc/ua101.c struct ua101 *ua = urb->urb.context; urb 177 sound/usb/misc/ua101.c if (unlikely(urb->urb.status == -ENOENT || /* unlinked */ urb 178 sound/usb/misc/ua101.c urb->urb.status == -ENODEV || /* device removed */ urb 179 sound/usb/misc/ua101.c urb->urb.status == -ECONNRESET || /* unlinked */ urb 180 sound/usb/misc/ua101.c urb->urb.status == -ESHUTDOWN)) { /* device disabled */ urb 189 sound/usb/misc/ua101.c list_add_tail(&urb->ready_list, &ua->ready_playback_urbs); urb 193 sound/usb/misc/ua101.c urb->urb.iso_frame_desc[0].length / urb 199 sound/usb/misc/ua101.c static void first_playback_urb_complete(struct urb *urb) urb 201 sound/usb/misc/ua101.c struct ua101 *ua = urb->context; urb 203 sound/usb/misc/ua101.c urb->complete = playback_urb_complete; urb 204 sound/usb/misc/ua101.c playback_urb_complete(urb); urb 211 sound/usb/misc/ua101.c static bool copy_playback_data(struct ua101_stream *stream, struct urb *urb, urb 222 sound/usb/misc/ua101.c memcpy(urb->transfer_buffer, source, frames * frame_bytes); urb 226 sound/usb/misc/ua101.c memcpy(urb->transfer_buffer, source, frames1 * frame_bytes); urb 227 sound/usb/misc/ua101.c memcpy(urb->transfer_buffer + frames1 * frame_bytes, urb 255 sound/usb/misc/ua101.c struct ua101_urb *urb; urb 282 sound/usb/misc/ua101.c urb = list_first_entry(&ua->ready_playback_urbs, urb 284 sound/usb/misc/ua101.c list_del(&urb->ready_list); urb 287 sound/usb/misc/ua101.c urb->urb.iso_frame_desc[0].length = urb 291 sound/usb/misc/ua101.c &urb->urb, urb 294 sound/usb/misc/ua101.c memset(urb->urb.transfer_buffer, 0, urb 295 sound/usb/misc/ua101.c urb->urb.iso_frame_desc[0].length); urb 298 sound/usb/misc/ua101.c err = usb_submit_urb(&urb->urb, GFP_ATOMIC); urb 315 sound/usb/misc/ua101.c static bool copy_capture_data(struct ua101_stream *stream, struct urb *urb, urb 326 sound/usb/misc/ua101.c memcpy(dest, urb->transfer_buffer, frames * frame_bytes); urb 330 sound/usb/misc/ua101.c memcpy(dest, urb->transfer_buffer, frames1 * frame_bytes); urb 332 sound/usb/misc/ua101.c urb->transfer_buffer + frames1 * frame_bytes, urb 347 sound/usb/misc/ua101.c static void capture_urb_complete(struct urb *urb) urb 349 sound/usb/misc/ua101.c struct ua101 *ua = urb->context; urb 356 sound/usb/misc/ua101.c if (unlikely(urb->status == -ENOENT || /* unlinked */ urb 357 sound/usb/misc/ua101.c urb->status == -ENODEV || /* device removed */ urb 358 sound/usb/misc/ua101.c urb->status == -ECONNRESET || /* unlinked */ urb 359 sound/usb/misc/ua101.c urb->status == -ESHUTDOWN)) /* device disabled */ urb 362 sound/usb/misc/ua101.c if (urb->status >= 0 && urb->iso_frame_desc[0].status >= 0) urb 363 sound/usb/misc/ua101.c frames = urb->iso_frame_desc[0].actual_length / urb 371 sound/usb/misc/ua101.c do_period_elapsed = copy_capture_data(stream, urb, frames); urb 376 sound/usb/misc/ua101.c err = usb_submit_urb(urb, GFP_ATOMIC); urb 421 sound/usb/misc/ua101.c static void first_capture_urb_complete(struct urb *urb) urb 423 sound/usb/misc/ua101.c struct ua101 *ua = urb->context; urb 425 sound/usb/misc/ua101.c urb->complete = capture_urb_complete; urb 426 sound/usb/misc/ua101.c capture_urb_complete(urb); urb 437 sound/usb/misc/ua101.c int err = usb_submit_urb(&stream->urbs[i]->urb, GFP_KERNEL); urb 453 sound/usb/misc/ua101.c usb_kill_urb(&stream->urbs[i]->urb); urb 518 sound/usb/misc/ua101.c ua->capture.urbs[0]->urb.complete = first_capture_urb_complete; urb 543 sound/usb/misc/ua101.c struct urb *urb; urb 560 sound/usb/misc/ua101.c ua->playback.urbs[0]->urb.complete = urb 590 sound/usb/misc/ua101.c urb = &ua->playback.urbs[i]->urb; urb 591 sound/usb/misc/ua101.c urb->iso_frame_desc[0].length = urb 593 sound/usb/misc/ua101.c memset(urb->transfer_buffer, 0, urb 594 sound/usb/misc/ua101.c urb->iso_frame_desc[0].length); urb 1091 sound/usb/misc/ua101.c void (*urb_complete)(struct urb *)) urb 1094 sound/usb/misc/ua101.c struct ua101_urb *urb; urb 1105 sound/usb/misc/ua101.c urb = kmalloc(sizeof(*urb), GFP_KERNEL); urb 1106 sound/usb/misc/ua101.c if (!urb) urb 1108 sound/usb/misc/ua101.c usb_init_urb(&urb->urb); urb 1109 sound/usb/misc/ua101.c urb->urb.dev = ua->dev; urb 1110 sound/usb/misc/ua101.c urb->urb.pipe = stream->usb_pipe; urb 1111 sound/usb/misc/ua101.c urb->urb.transfer_flags = URB_NO_TRANSFER_DMA_MAP; urb 1112 sound/usb/misc/ua101.c urb->urb.transfer_buffer = addr; urb 1113 sound/usb/misc/ua101.c urb->urb.transfer_dma = dma; urb 1114 sound/usb/misc/ua101.c urb->urb.transfer_buffer_length = max_packet_size; urb 1115 sound/usb/misc/ua101.c urb->urb.number_of_packets = 1; urb 1116 sound/usb/misc/ua101.c urb->urb.interval = 1; urb 1117 sound/usb/misc/ua101.c urb->urb.context = ua; urb 1118 sound/usb/misc/ua101.c urb->urb.complete = urb_complete; urb 1119 sound/usb/misc/ua101.c urb->urb.iso_frame_desc[0].offset = 0; urb 1120 sound/usb/misc/ua101.c urb->urb.iso_frame_desc[0].length = max_packet_size; urb 1121 sound/usb/misc/ua101.c stream->urbs[u++] = urb; urb 2808 sound/usb/mixer.c if (mixer->urb) { urb 2809 sound/usb/mixer.c kfree(mixer->urb->transfer_buffer); urb 2810 sound/usb/mixer.c usb_free_urb(mixer->urb); urb 3331 sound/usb/mixer.c static void snd_usb_mixer_interrupt(struct urb *urb) urb 3333 sound/usb/mixer.c struct usb_mixer_interface *mixer = urb->context; urb 3334 sound/usb/mixer.c int len = urb->actual_length; urb 3335 sound/usb/mixer.c int ustatus = urb->status; urb 3343 sound/usb/mixer.c for (status = urb->transfer_buffer; urb 3346 sound/usb/mixer.c dev_dbg(&urb->dev->dev, "status interrupt: %02x %02x\n", urb 3363 sound/usb/mixer.c for (msg = urb->transfer_buffer; urb 3381 sound/usb/mixer.c urb->dev = mixer->chip->dev; urb 3382 sound/usb/mixer.c usb_submit_urb(urb, GFP_ATOMIC); urb 3406 sound/usb/mixer.c mixer->urb = usb_alloc_urb(0, GFP_KERNEL); urb 3407 sound/usb/mixer.c if (!mixer->urb) { urb 3411 sound/usb/mixer.c usb_fill_int_urb(mixer->urb, mixer->chip->dev, urb 3415 sound/usb/mixer.c usb_submit_urb(mixer->urb, GFP_KERNEL); urb 3541 sound/usb/mixer.c if (mixer->urb) urb 3542 sound/usb/mixer.c usb_kill_urb(mixer->urb); urb 3554 sound/usb/mixer.c usb_kill_urb(mixer->urb); urb 3562 sound/usb/mixer.c if (mixer->urb) { urb 3563 sound/usb/mixer.c err = usb_submit_urb(mixer->urb, GFP_NOIO); urb 21 sound/usb/mixer.h struct urb *urb; urb 35 sound/usb/mixer.h struct urb *rc_urb; urb 189 sound/usb/mixer_quirks.c static void snd_usb_soundblaster_remote_complete(struct urb *urb) urb 191 sound/usb/mixer_quirks.c struct usb_mixer_interface *mixer = urb->context; urb 195 sound/usb/mixer_quirks.c if (urb->status < 0 || urb->actual_length < rc->min_packet_length) urb 1938 sound/usb/mixer_scarlett_gen2.c static void scarlett2_mixer_interrupt(struct urb *urb) urb 1940 sound/usb/mixer_scarlett_gen2.c struct usb_mixer_interface *mixer = urb->context; urb 1941 sound/usb/mixer_scarlett_gen2.c int len = urb->actual_length; urb 1942 sound/usb/mixer_scarlett_gen2.c int ustatus = urb->status; urb 1949 sound/usb/mixer_scarlett_gen2.c data = le32_to_cpu(*(u32 *)urb->transfer_buffer); urb 1963 sound/usb/mixer_scarlett_gen2.c urb->dev = mixer->chip->dev; urb 1964 sound/usb/mixer_scarlett_gen2.c usb_submit_urb(urb, GFP_ATOMIC); urb 1975 sound/usb/mixer_scarlett_gen2.c if (mixer->urb) { urb 1984 sound/usb/mixer_scarlett_gen2.c mixer->urb = usb_alloc_urb(0, GFP_KERNEL); urb 1985 sound/usb/mixer_scarlett_gen2.c if (!mixer->urb) urb 1992 sound/usb/mixer_scarlett_gen2.c usb_fill_int_urb(mixer->urb, dev, pipe, urb 1997 sound/usb/mixer_scarlett_gen2.c return usb_submit_urb(mixer->urb, GFP_KERNEL); urb 1385 sound/usb/pcm.c struct urb *urb) urb 1399 sound/usb/pcm.c for (i = 0; i < urb->number_of_packets; i++) { urb 1400 sound/usb/pcm.c cp = (unsigned char *)urb->transfer_buffer + urb->iso_frame_desc[i].offset + subs->pkt_offset_adj; urb 1401 sound/usb/pcm.c if (urb->iso_frame_desc[i].status && printk_ratelimit()) { urb 1403 sound/usb/pcm.c i, urb->iso_frame_desc[i].status); urb 1406 sound/usb/pcm.c bytes = urb->iso_frame_desc[i].actual_length; urb 1455 sound/usb/pcm.c struct urb *urb, unsigned int bytes) urb 1462 sound/usb/pcm.c u8 *dst = urb->transfer_buffer; urb 1511 sound/usb/pcm.c static void copy_to_urb(struct snd_usb_substream *subs, struct urb *urb, urb 1520 sound/usb/pcm.c memcpy(urb->transfer_buffer + offset, urb 1522 sound/usb/pcm.c memcpy(urb->transfer_buffer + offset + bytes1, urb 1525 sound/usb/pcm.c memcpy(urb->transfer_buffer + offset, urb 1534 sound/usb/pcm.c struct urb *urb, int stride, urb 1541 sound/usb/pcm.c for (i = 0; i < urb->number_of_packets; i++) { urb 1542 sound/usb/pcm.c unsigned int length = urb->iso_frame_desc[i].length; urb 1543 sound/usb/pcm.c unsigned int offset = urb->iso_frame_desc[i].offset; urb 1547 sound/usb/pcm.c urb->iso_frame_desc[i].offset = offset; urb 1548 sound/usb/pcm.c urb->iso_frame_desc[i].length += sizeof(packet_length); urb 1549 sound/usb/pcm.c memcpy(urb->transfer_buffer + offset, urb 1551 sound/usb/pcm.c copy_to_urb(subs, urb, offset + sizeof(packet_length), urb 1555 sound/usb/pcm.c bytes += urb->number_of_packets * sizeof(packet_length); urb 1560 sound/usb/pcm.c struct urb *urb) urb 1564 sound/usb/pcm.c struct snd_urb_ctx *ctx = urb->context; urb 1572 sound/usb/pcm.c urb->number_of_packets = 0; urb 1582 sound/usb/pcm.c urb->iso_frame_desc[i].offset = frames * ep->stride; urb 1583 sound/usb/pcm.c urb->iso_frame_desc[i].length = counts * ep->stride; urb 1585 sound/usb/pcm.c urb->number_of_packets++; urb 1597 sound/usb/pcm.c urb->iso_frame_desc[i].length = urb 1604 sound/usb/pcm.c urb->iso_frame_desc[i].offset = urb 1606 sound/usb/pcm.c urb->iso_frame_desc[i].length = 0; urb 1607 sound/usb/pcm.c urb->number_of_packets++; urb 1622 sound/usb/pcm.c fill_playback_urb_dsd_dop(subs, urb, bytes); urb 1626 sound/usb/pcm.c u8 *buf = urb->transfer_buffer; urb 1639 sound/usb/pcm.c copy_to_urb(subs, urb, 0, stride, bytes); urb 1641 sound/usb/pcm.c bytes = copy_to_urb_quirk(subs, urb, stride, bytes); urb 1663 sound/usb/pcm.c urb->transfer_buffer_length = bytes; urb 1673 sound/usb/pcm.c struct urb *urb) urb 1678 sound/usb/pcm.c int processed = urb->transfer_buffer_length / ep->stride; urb 21 sound/usb/usx2y/usb_stream.c static void playback_prep_freqn(struct usb_stream_kernel *sk, struct urb *urb) urb 32 sound/usb/usx2y/usb_stream.c urb->iso_frame_desc[pack].offset = lb; urb 33 sound/usb/usx2y/usb_stream.c urb->iso_frame_desc[pack].length = l; urb 39 sound/usb/usx2y/usb_stream.c urb->number_of_packets = pack; urb 40 sound/usb/usx2y/usb_stream.c urb->transfer_buffer_length = lb; urb 47 sound/usb/usx2y/usb_stream.c struct urb **urbs, char *transfer, urb 57 sound/usb/usx2y/usb_stream.c struct urb *urb = urbs[u]; urb 59 sound/usb/usx2y/usb_stream.c urb->transfer_buffer = transfer; urb 60 sound/usb/usx2y/usb_stream.c urb->dev = dev; urb 61 sound/usb/usx2y/usb_stream.c urb->pipe = pipe; urb 62 sound/usb/usx2y/usb_stream.c urb->number_of_packets = sk->n_o_ps; urb 63 sound/usb/usx2y/usb_stream.c urb->context = sk; urb 64 sound/usb/usx2y/usb_stream.c urb->interval = 1; urb 67 sound/usb/usx2y/usb_stream.c if (usb_urb_ep_type_check(urb)) urb 70 sound/usb/usx2y/usb_stream.c urb->transfer_buffer_length = transfer_length; urb 71 sound/usb/usx2y/usb_stream.c desc = urb->iso_frame_desc; urb 237 sound/usb/usx2y/usb_stream.c static bool balance_check(struct usb_stream_kernel *sk, struct urb *urb) urb 240 sound/usb/usx2y/usb_stream.c if (unlikely(urb->status)) { urb 241 sound/usb/usx2y/usb_stream.c if (urb->status != -ESHUTDOWN && urb->status != -ENOENT) urb 242 sound/usb/usx2y/usb_stream.c snd_printk(KERN_WARNING "status=%i\n", urb->status); urb 248 sound/usb/usx2y/usb_stream.c sk->i_urb = urb; urb 252 sound/usb/usx2y/usb_stream.c static bool balance_playback(struct usb_stream_kernel *sk, struct urb *urb) urb 254 sound/usb/usx2y/usb_stream.c sk->iso_frame_balance += urb->number_of_packets; urb 255 sound/usb/usx2y/usb_stream.c return balance_check(sk, urb); urb 258 sound/usb/usx2y/usb_stream.c static bool balance_capture(struct usb_stream_kernel *sk, struct urb *urb) urb 260 sound/usb/usx2y/usb_stream.c sk->iso_frame_balance -= urb->number_of_packets; urb 261 sound/usb/usx2y/usb_stream.c return balance_check(sk, urb); urb 264 sound/usb/usx2y/usb_stream.c static void subs_set_complete(struct urb **urbs, void (*complete)(struct urb *)) urb 269 sound/usb/usx2y/usb_stream.c struct urb *urb = urbs[u]; urb 270 sound/usb/usx2y/usb_stream.c urb->complete = complete; urb 275 sound/usb/usx2y/usb_stream.c struct urb *inurb) urb 278 sound/usb/usx2y/usb_stream.c struct urb *io; urb 286 sound/usb/usx2y/usb_stream.c struct urb *ii = sk->completed_inurb; urb 335 sound/usb/usx2y/usb_stream.c static void prepare_inurb(int number_of_packets, struct urb *iu) urb 351 sound/usb/usx2y/usb_stream.c struct urb *inurb, struct urb *outurb) urb 382 sound/usb/usx2y/usb_stream.c struct urb *iu; urb 436 sound/usb/usx2y/usb_stream.c struct urb *inurb, struct urb *outurb) urb 503 sound/usb/usx2y/usb_stream.c static void i_capture_idle(struct urb *urb) urb 505 sound/usb/usx2y/usb_stream.c struct usb_stream_kernel *sk = urb->context; urb 506 sound/usb/usx2y/usb_stream.c if (balance_capture(sk, urb)) urb 507 sound/usb/usx2y/usb_stream.c stream_idle(sk, urb, sk->i_urb); urb 510 sound/usb/usx2y/usb_stream.c static void i_playback_idle(struct urb *urb) urb 512 sound/usb/usx2y/usb_stream.c struct usb_stream_kernel *sk = urb->context; urb 513 sound/usb/usx2y/usb_stream.c if (balance_playback(sk, urb)) urb 514 sound/usb/usx2y/usb_stream.c stream_idle(sk, sk->i_urb, urb); urb 518 sound/usb/usx2y/usb_stream.c struct urb *inurb, struct urb *outurb) urb 597 sound/usb/usx2y/usb_stream.c static void i_capture_start(struct urb *urb) urb 599 sound/usb/usx2y/usb_stream.c struct usb_iso_packet_descriptor *id = urb->iso_frame_desc; urb 600 sound/usb/usx2y/usb_stream.c struct usb_stream_kernel *sk = urb->context; urb 605 sound/usb/usx2y/usb_stream.c if (urb->status) { urb 606 sound/usb/usx2y/usb_stream.c snd_printk(KERN_WARNING "status=%i\n", urb->status); urb 610 sound/usb/usx2y/usb_stream.c for (p = 0; p < urb->number_of_packets; ++p) { urb 622 sound/usb/usx2y/usb_stream.c id[p].offset + (urb->transfer_buffer - (void *)s); urb 628 sound/usb/usx2y/usb_stream.c urb->iso_frame_desc[0].actual_length); urb 629 sound/usb/usx2y/usb_stream.c for (pack = 1; pack < urb->number_of_packets; ++pack) { urb 630 sound/usb/usx2y/usb_stream.c int l = urb->iso_frame_desc[pack].actual_length; urb 639 sound/usb/usx2y/usb_stream.c if (balance_capture(sk, urb)) urb 640 sound/usb/usx2y/usb_stream.c stream_start(sk, urb, sk->i_urb); urb 643 sound/usb/usx2y/usb_stream.c static void i_playback_start(struct urb *urb) urb 645 sound/usb/usx2y/usb_stream.c struct usb_stream_kernel *sk = urb->context; urb 646 sound/usb/usx2y/usb_stream.c if (balance_playback(sk, urb)) urb 647 sound/usb/usx2y/usb_stream.c stream_start(sk, sk->i_urb, urb); urb 672 sound/usb/usx2y/usb_stream.c struct urb *inurb = sk->inurb[u]; urb 673 sound/usb/usx2y/usb_stream.c struct urb *outurb = sk->outurb[u]; urb 17 sound/usb/usx2y/usb_stream.h struct urb *inurb[USB_STREAM_NURBS]; urb 18 sound/usb/usx2y/usb_stream.h struct urb *idle_inurb; urb 19 sound/usb/usx2y/usb_stream.h struct urb *completed_inurb; urb 20 sound/usb/usx2y/usb_stream.h struct urb *outurb[USB_STREAM_NURBS]; urb 21 sound/usb/usx2y/usb_stream.h struct urb *idle_outurb; urb 22 sound/usb/usx2y/usb_stream.h struct urb *completed_outurb; urb 23 sound/usb/usx2y/usb_stream.h struct urb *i_urb; urb 162 sound/usb/usx2y/usbusx2y.c static void i_usX2Y_Out04Int(struct urb *urb) urb 165 sound/usb/usx2y/usbusx2y.c if (urb->status) { urb 167 sound/usb/usx2y/usbusx2y.c struct usX2Ydev *usX2Y = urb->context; urb 168 sound/usb/usx2y/usbusx2y.c for (i = 0; i < 10 && usX2Y->AS04.urb[i] != urb; i++); urb 169 sound/usb/usx2y/usbusx2y.c snd_printdd("i_usX2Y_Out04Int() urb %i status=%i\n", i, urb->status); urb 174 sound/usb/usx2y/usbusx2y.c static void i_usX2Y_In04Int(struct urb *urb) urb 177 sound/usb/usx2y/usbusx2y.c struct usX2Ydev *usX2Y = urb->context; urb 182 sound/usb/usx2y/usbusx2y.c if (urb->status) { urb 183 sound/usb/usx2y/usbusx2y.c snd_printdd("Interrupt Pipe 4 came back with status=%i\n", urb->status); urb 219 sound/usb/usx2y/usbusx2y.c err = usb_submit_urb(usX2Y->US04->urb[usX2Y->US04->submitted++], GFP_ATOMIC); urb 228 sound/usb/usx2y/usbusx2y.c if (0 == usX2Y->AS04.urb[j]->status) { urb 230 sound/usb/usx2y/usbusx2y.c usb_fill_bulk_urb(usX2Y->AS04.urb[j], usX2Y->dev, urb 234 sound/usb/usx2y/usbusx2y.c err = usb_submit_urb(usX2Y->AS04.urb[j], GFP_ATOMIC); urb 244 sound/usb/usx2y/usbusx2y.c urb->dev = usX2Y->dev; urb 245 sound/usb/usx2y/usbusx2y.c usb_submit_urb(urb, GFP_ATOMIC); urb 262 sound/usb/usx2y/usbusx2y.c if (NULL == (usX2Y->AS04.urb[i] = usb_alloc_urb(0, GFP_KERNEL))) { urb 266 sound/usb/usx2y/usbusx2y.c usb_fill_bulk_urb( usX2Y->AS04.urb[i], usX2Y->dev, urb 271 sound/usb/usx2y/usbusx2y.c err = usb_urb_ep_type_check(usX2Y->AS04.urb[i]); urb 300 sound/usb/usx2y/usbusx2y.c usb_kill_urb(S->urb[i]); urb 301 sound/usb/usx2y/usbusx2y.c usb_free_urb(S->urb[i]); urb 302 sound/usb/usx2y/usbusx2y.c S->urb[i] = NULL; urb 14 sound/usb/usx2y/usbusx2y.h struct urb *urb[URBS_AsyncSeq]; urb 21 sound/usb/usx2y/usbusx2y.h struct urb *urb[0]; urb 30 sound/usb/usx2y/usbusx2y.h struct urb *In04urb; urb 74 sound/usb/usx2y/usbusx2y.h struct urb *urb[NRURBS]; /* data urb table */ urb 75 sound/usb/usx2y/usbusx2y.h struct urb *completed_urb; urb 59 sound/usb/usx2y/usbusx2yaudio.c struct urb *urb = subs->completed_urb; urb 66 sound/usb/usx2y/usbusx2yaudio.c cp = (unsigned char*)urb->transfer_buffer + urb->iso_frame_desc[i].offset; urb 67 sound/usb/usx2y/usbusx2yaudio.c if (urb->iso_frame_desc[i].status) { /* active? hmm, skip this */ urb 70 sound/usb/usx2y/usbusx2yaudio.c urb->iso_frame_desc[i].status); urb 71 sound/usb/usx2y/usbusx2yaudio.c return urb->iso_frame_desc[i].status; urb 73 sound/usb/usx2y/usbusx2yaudio.c len = urb->iso_frame_desc[i].actual_length / usX2Y->stride; urb 114 sound/usb/usx2y/usbusx2yaudio.c struct urb *cap_urb, urb 115 sound/usb/usx2y/usbusx2yaudio.c struct urb *urb) urb 131 sound/usb/usx2y/usbusx2yaudio.c urb->iso_frame_desc[pack].offset = pack ? urb 132 sound/usb/usx2y/usbusx2yaudio.c urb->iso_frame_desc[pack - 1].offset + urb 133 sound/usb/usx2y/usbusx2yaudio.c urb->iso_frame_desc[pack - 1].length : urb 135 sound/usb/usx2y/usbusx2yaudio.c urb->iso_frame_desc[pack].length = cap_urb->iso_frame_desc[pack].actual_length; urb 144 sound/usb/usx2y/usbusx2yaudio.c urb->transfer_buffer = subs->tmpbuf; urb 153 sound/usb/usx2y/usbusx2yaudio.c urb->transfer_buffer = runtime->dma_area + subs->hwptr * usX2Y->stride; urb 158 sound/usb/usx2y/usbusx2yaudio.c urb->transfer_buffer = subs->tmpbuf; urb 159 sound/usb/usx2y/usbusx2yaudio.c urb->transfer_buffer_length = count * usX2Y->stride; urb 168 sound/usb/usx2y/usbusx2yaudio.c static void usX2Y_urb_play_retire(struct snd_usX2Y_substream *subs, struct urb *urb) urb 171 sound/usb/usx2y/usbusx2yaudio.c int len = urb->actual_length / subs->usX2Y->stride; urb 183 sound/usb/usx2y/usbusx2yaudio.c static int usX2Y_urb_submit(struct snd_usX2Y_substream *subs, struct urb *urb, int frame) urb 186 sound/usb/usx2y/usbusx2yaudio.c if (!urb) urb 188 sound/usb/usx2y/usbusx2yaudio.c urb->start_frame = (frame + NRURBS * nr_of_packs()); // let hcd do rollover sanity checks urb 189 sound/usb/usx2y/usbusx2yaudio.c urb->hcpriv = NULL; urb 190 sound/usb/usx2y/usbusx2yaudio.c urb->dev = subs->usX2Y->dev; /* we need to set this at each time */ urb 191 sound/usb/usx2y/usbusx2yaudio.c if ((err = usb_submit_urb(urb, GFP_ATOMIC)) < 0) { urb 203 sound/usb/usx2y/usbusx2yaudio.c struct urb *urb = playbacksubs->completed_urb; urb 206 sound/usb/usx2y/usbusx2yaudio.c if (NULL != urb) { urb 208 sound/usb/usx2y/usbusx2yaudio.c usX2Y_urb_play_retire(playbacksubs, urb); urb 214 sound/usb/usx2y/usbusx2yaudio.c urb = playbacksubs->urb[0]; urb 218 sound/usb/usx2y/usbusx2yaudio.c urb = playbacksubs->urb[1]; urb 223 sound/usb/usx2y/usbusx2yaudio.c if (urb) { urb 224 sound/usb/usx2y/usbusx2yaudio.c if ((err = usX2Y_urb_play_prepare(playbacksubs, capsubs->completed_urb, urb)) || urb 225 sound/usb/usx2y/usbusx2yaudio.c (err = usX2Y_urb_submit(playbacksubs, urb, frame))) { urb 264 sound/usb/usx2y/usbusx2yaudio.c struct urb *urb = subs->urb[u]; urb 265 sound/usb/usx2y/usbusx2yaudio.c if (NULL != urb) urb 267 sound/usb/usx2y/usbusx2yaudio.c u, urb->status, urb->start_frame); urb 276 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs, struct urb *urb) urb 278 sound/usb/usx2y/usbusx2yaudio.c snd_printk(KERN_ERR "ep=%i stalled with status=%i\n", subs->endpoint, urb->status); urb 279 sound/usb/usx2y/usbusx2yaudio.c urb->status = 0; urb 283 sound/usb/usx2y/usbusx2yaudio.c static void i_usX2Y_urb_complete(struct urb *urb) urb 285 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = urb->context; urb 291 sound/usb/usx2y/usbusx2yaudio.c subs->endpoint, usb_pipein(urb->pipe) ? "in" : "out", urb 292 sound/usb/usx2y/usbusx2yaudio.c urb->status, urb->start_frame); urb 295 sound/usb/usx2y/usbusx2yaudio.c if (unlikely(urb->status)) { urb 296 sound/usb/usx2y/usbusx2yaudio.c usX2Y_error_urb_status(usX2Y, subs, urb); urb 300 sound/usb/usx2y/usbusx2yaudio.c subs->completed_urb = urb; urb 309 sound/usb/usx2y/usbusx2yaudio.c if (!usX2Y_usbframe_complete(capsubs, playbacksubs, urb->start_frame)) urb 320 sound/usb/usx2y/usbusx2yaudio.c void (*complete)(struct urb *)) urb 327 sound/usb/usx2y/usbusx2yaudio.c struct urb * urb = subs->urb[u]; urb 328 sound/usb/usx2y/usbusx2yaudio.c if (NULL != urb) urb 329 sound/usb/usx2y/usbusx2yaudio.c urb->complete = complete; urb 340 sound/usb/usx2y/usbusx2yaudio.c static void i_usX2Y_subs_startup(struct urb *urb) urb 342 sound/usb/usx2y/usbusx2yaudio.c struct snd_usX2Y_substream *subs = urb->context; urb 346 sound/usb/usx2y/usbusx2yaudio.c if (urb->start_frame == prepare_subs->urb[0]->start_frame) { urb 352 sound/usb/usx2y/usbusx2yaudio.c i_usX2Y_urb_complete(urb); urb 358 sound/usb/usx2y/usbusx2yaudio.c subs, subs->endpoint, subs->urb[0], subs->urb[1]); urb 366 sound/usb/usx2y/usbusx2yaudio.c static void usX2Y_urb_release(struct urb **urb, int free_tb) urb 368 sound/usb/usx2y/usbusx2yaudio.c if (*urb) { urb 369 sound/usb/usx2y/usbusx2yaudio.c usb_kill_urb(*urb); urb 371 sound/usb/usx2y/usbusx2yaudio.c kfree((*urb)->transfer_buffer); urb 372 sound/usb/usx2y/usbusx2yaudio.c usb_free_urb(*urb); urb 373 sound/usb/usx2y/usbusx2yaudio.c *urb = NULL; urb 384 sound/usb/usx2y/usbusx2yaudio.c usX2Y_urb_release(subs->urb + i, urb 413 sound/usb/usx2y/usbusx2yaudio.c struct urb **purb = subs->urb + i; urb 447 sound/usb/usx2y/usbusx2yaudio.c subs->urb[0]->start_frame = -1; urb 469 sound/usb/usx2y/usbusx2yaudio.c struct urb *urb = subs->urb[i]; urb 470 sound/usb/usx2y/usbusx2yaudio.c if (usb_pipein(urb->pipe)) { urb 474 sound/usb/usx2y/usbusx2yaudio.c urb->dev = usX2Y->dev; urb 476 sound/usb/usx2y/usbusx2yaudio.c urb->iso_frame_desc[pack].offset = subs->maxpacksize * pack; urb 477 sound/usb/usx2y/usbusx2yaudio.c urb->iso_frame_desc[pack].length = subs->maxpacksize; urb 479 sound/usb/usx2y/usbusx2yaudio.c urb->transfer_buffer_length = subs->maxpacksize * nr_of_packs(); urb 480 sound/usb/usx2y/usbusx2yaudio.c if ((err = usb_submit_urb(urb, GFP_ATOMIC)) < 0) { urb 486 sound/usb/usx2y/usbusx2yaudio.c usX2Y->wait_iso_frame = urb->start_frame; urb 487 sound/usb/usx2y/usbusx2yaudio.c urb->transfer_flags = 0; urb 630 sound/usb/usx2y/usbusx2yaudio.c static void i_usX2Y_04Int(struct urb *urb) urb 632 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *usX2Y = urb->context; urb 634 sound/usb/usx2y/usbusx2yaudio.c if (urb->status) urb 635 sound/usb/usx2y/usbusx2yaudio.c snd_printk(KERN_ERR "snd_usX2Y_04Int() urb->status=%i\n", urb->status); urb 648 sound/usb/usx2y/usbusx2yaudio.c us = kzalloc(sizeof(*us) + sizeof(struct urb*) * NOOF_SETRATE_URBS, GFP_KERNEL); urb 660 sound/usb/usx2y/usbusx2yaudio.c if (NULL == (us->urb[i] = usb_alloc_urb(0, GFP_KERNEL))) { urb 666 sound/usb/usx2y/usbusx2yaudio.c usb_fill_bulk_urb(us->urb[i], usX2Y->dev, usb_sndbulkpipe(usX2Y->dev, 4), urb 669 sound/usb/usx2y/usbusx2yaudio.c err = usb_urb_ep_type_check(us->urb[0]); urb 683 sound/usb/usx2y/usbusx2yaudio.c struct urb *urb = us->urb[i]; urb 684 sound/usb/usx2y/usbusx2yaudio.c if (!urb) urb 686 sound/usb/usx2y/usbusx2yaudio.c if (urb->status) { urb 689 sound/usb/usx2y/usbusx2yaudio.c usb_kill_urb(urb); urb 691 sound/usb/usx2y/usbusx2yaudio.c usb_free_urb(urb); urb 52 sound/usb/usx2y/usx2yhwdeppcm.c struct urb *urb = subs->completed_urb; urb 64 sound/usb/usx2y/usx2yhwdeppcm.c if (urb->iso_frame_desc[i].status) { /* active? hmm, skip this */ urb 65 sound/usb/usx2y/usx2yhwdeppcm.c snd_printk(KERN_ERR "active frame status %i. Most probably some hardware problem.\n", urb->iso_frame_desc[i].status); urb 66 sound/usb/usx2y/usx2yhwdeppcm.c return urb->iso_frame_desc[i].status; urb 68 sound/usb/usx2y/usx2yhwdeppcm.c lens += urb->iso_frame_desc[i].actual_length / usX2Y->stride; urb 99 sound/usb/usx2y/usx2yhwdeppcm.c struct urb *urb) urb 123 sound/usb/usx2y/usx2yhwdeppcm.c urb->iso_frame_desc[pack].offset = shm->captured_iso[shm->playback_iso_head].offset; urb 124 sound/usb/usx2y/usx2yhwdeppcm.c urb->iso_frame_desc[pack].length = shm->captured_iso[shm->playback_iso_head].length; urb 126 sound/usb/usx2y/usx2yhwdeppcm.c memset((char *)urb->transfer_buffer + urb->iso_frame_desc[pack].offset, 0, urb 127 sound/usb/usx2y/usx2yhwdeppcm.c urb->iso_frame_desc[pack].length); urb 132 sound/usb/usx2y/usx2yhwdeppcm.c urb->transfer_buffer_length = count * usX2Y->stride; urb 138 sound/usb/usx2y/usx2yhwdeppcm.c struct urb *urb) urb 142 sound/usb/usx2y/usx2yhwdeppcm.c struct usb_iso_packet_descriptor *desc = urb->iso_frame_desc + pack; urb 148 sound/usb/usx2y/usx2yhwdeppcm.c shm->captured_iso[head].frame = urb->start_frame + pack; urb 166 sound/usb/usx2y/usx2yhwdeppcm.c struct urb *urb = playbacksubs->completed_urb; urb 169 sound/usb/usx2y/usx2yhwdeppcm.c if (NULL != urb) { urb 171 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_urb_play_retire(playbacksubs, urb); urb 177 sound/usb/usx2y/usx2yhwdeppcm.c urb = playbacksubs->urb[0]; urb 181 sound/usb/usx2y/usx2yhwdeppcm.c urb = playbacksubs->urb[1]; urb 186 sound/usb/usx2y/usx2yhwdeppcm.c if (urb) { urb 187 sound/usb/usx2y/usx2yhwdeppcm.c if ((err = usX2Y_hwdep_urb_play_prepare(playbacksubs, urb)) || urb 188 sound/usb/usx2y/usx2yhwdeppcm.c (err = usX2Y_urb_submit(playbacksubs, urb, frame))) { urb 218 sound/usb/usx2y/usx2yhwdeppcm.c static void i_usX2Y_usbpcm_urb_complete(struct urb *urb) urb 220 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = urb->context; urb 227 sound/usb/usx2y/usx2yhwdeppcm.c subs->endpoint, usb_pipein(urb->pipe) ? "in" : "out", urb 228 sound/usb/usx2y/usx2yhwdeppcm.c urb->status, urb->start_frame); urb 231 sound/usb/usx2y/usx2yhwdeppcm.c if (unlikely(urb->status)) { urb 232 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_error_urb_status(usX2Y, subs, urb); urb 236 sound/usb/usx2y/usx2yhwdeppcm.c subs->completed_urb = urb; urb 243 sound/usb/usx2y/usx2yhwdeppcm.c if (!usX2Y_usbpcm_usbframe_complete(capsubs, capsubs2, playbacksubs, urb->start_frame)) urb 253 sound/usb/usx2y/usx2yhwdeppcm.c static void usX2Y_hwdep_urb_release(struct urb **urb) urb 255 sound/usb/usx2y/usx2yhwdeppcm.c usb_kill_urb(*urb); urb 256 sound/usb/usx2y/usx2yhwdeppcm.c usb_free_urb(*urb); urb 257 sound/usb/usx2y/usx2yhwdeppcm.c *urb = NULL; urb 268 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y_hwdep_urb_release(subs->urb + i); urb 277 sound/usb/usx2y/usx2yhwdeppcm.c static void i_usX2Y_usbpcm_subs_startup(struct urb *urb) urb 279 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_usX2Y_substream *subs = urb->context; urb 283 sound/usb/usx2y/usx2yhwdeppcm.c urb->start_frame == prepare_subs->urb[0]->start_frame) { urb 294 sound/usb/usx2y/usx2yhwdeppcm.c i_usX2Y_usbpcm_urb_complete(urb); urb 315 sound/usb/usx2y/usx2yhwdeppcm.c struct urb **purb = subs->urb + i; urb 386 sound/usb/usx2y/usx2yhwdeppcm.c subs->urb[0]->start_frame = -1; urb 423 sound/usb/usx2y/usx2yhwdeppcm.c struct urb *urb = subs->urb[u]; urb 424 sound/usb/usx2y/usx2yhwdeppcm.c if (usb_pipein(urb->pipe)) { urb 428 sound/usb/usx2y/usx2yhwdeppcm.c urb->dev = usX2Y->dev; urb 430 sound/usb/usx2y/usx2yhwdeppcm.c urb->iso_frame_desc[pack].offset = subs->maxpacksize * (pack + u * nr_of_packs()); urb 431 sound/usb/usx2y/usx2yhwdeppcm.c urb->iso_frame_desc[pack].length = subs->maxpacksize; urb 433 sound/usb/usx2y/usx2yhwdeppcm.c urb->transfer_buffer_length = subs->maxpacksize * nr_of_packs(); urb 434 sound/usb/usx2y/usx2yhwdeppcm.c if ((err = usb_submit_urb(urb, GFP_KERNEL)) < 0) { urb 439 sound/usb/usx2y/usx2yhwdeppcm.c snd_printdd("%i\n", urb->start_frame); urb 441 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y->wait_iso_frame = urb->start_frame; urb 443 sound/usb/usx2y/usx2yhwdeppcm.c urb->transfer_flags = 0;