Home
last modified time | relevance | path

Searched refs:usb_dev (Results 1 – 25 of 73) sorted by relevance

123

/drivers/usb/atm/
Dspeedtch.c147 struct usb_device *usb_dev = usbatm->usb_dev; in speedtch_set_swbuff() local
150 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_set_swbuff()
163 struct usb_device *usb_dev = usbatm->usb_dev; in speedtch_test_sequence() local
170 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence()
178 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence()
187 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence()
196 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence()
205 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence()
214 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence()
224 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence()
[all …]
Dxusbatm.c38 static struct usb_interface *xusbatm_find_intf(struct usb_device *usb_dev, int altsetting, u8 ep) in xusbatm_find_intf() argument
44 for (i = 0; i < usb_dev->actconfig->desc.bNumInterfaces; i++) in xusbatm_find_intf()
45 …if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting)… in xusbatm_find_intf()
52 static int xusbatm_capture_intf(struct usbatm_data *usbatm, struct usb_device *usb_dev, in xusbatm_capture_intf() argument
62 ret = usb_set_interface(usb_dev, ifnum, altsetting); in xusbatm_capture_intf()
70 static void xusbatm_release_intf(struct usb_device *usb_dev, struct usb_interface *intf, int claime… in xusbatm_release_intf() argument
81 struct usb_device *usb_dev = interface_to_usbdev(intf); in xusbatm_bind() local
85 struct usb_interface *rx_intf = xusbatm_find_intf(usb_dev, rx_alt, rx_endpoint[drv_ix]); in xusbatm_bind()
86 struct usb_interface *tx_intf = xusbatm_find_intf(usb_dev, tx_alt, tx_endpoint[drv_ix]); in xusbatm_bind()
118 ret = xusbatm_capture_intf(usbatm, usb_dev, rx_intf, rx_alt, rx_intf != intf); in xusbatm_bind()
[all …]
Dcxacru.c935 static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw, in cxacru_fw() argument
965 ret = usb_bulk_msg(usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_CMD), in cxacru_fw()
968 dev_dbg(&usb_dev->dev, "sending fw %#x failed\n", fw); in cxacru_fw()
974 dev_dbg(&usb_dev->dev, "sent fw %#x\n", fw); in cxacru_fw()
989 struct usb_device *usb_dev = usbatm->usb_dev; in cxacru_upload_firmware() local
990 __le16 signature[] = { usb_dev->descriptor.idVendor, in cxacru_upload_firmware()
991 usb_dev->descriptor.idProduct }; in cxacru_upload_firmware()
998 ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4); in cxacru_upload_firmware()
1006 ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4); in cxacru_upload_firmware()
1014 ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4); in cxacru_upload_firmware()
[all …]
/drivers/net/ieee802154/
Datusb.c47 struct usb_device *usb_dev; member
88 struct usb_device *usb_dev = atusb->usb_dev; in atusb_control_msg() local
94 ret = usb_control_msg(usb_dev, pipe, request, requesttype, in atusb_control_msg()
100 dev_err(&usb_dev->dev, in atusb_control_msg()
109 struct usb_device *usb_dev = atusb->usb_dev; in atusb_command() local
111 dev_dbg(&usb_dev->dev, "%s: cmd = 0x%x\n", __func__, cmd); in atusb_command()
112 return atusb_control_msg(atusb, usb_sndctrlpipe(usb_dev, 0), in atusb_command()
118 struct usb_device *usb_dev = atusb->usb_dev; in atusb_write_reg() local
120 dev_dbg(&usb_dev->dev, "%s: 0x%02x <- 0x%02x\n", __func__, reg, value); in atusb_write_reg()
121 return atusb_control_msg(atusb, usb_sndctrlpipe(usb_dev, 0), in atusb_write_reg()
[all …]
/drivers/hid/
Dhid-roccat-kone.c53 static int kone_receive(struct usb_device *usb_dev, uint usb_command, in kone_receive() argument
63 len = usb_control_msg(usb_dev, usb_rcvctrlpipe(usb_dev, 0), in kone_receive()
73 static int kone_send(struct usb_device *usb_dev, uint usb_command, in kone_send() argument
83 len = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in kone_send()
111 static int kone_check_write(struct usb_device *usb_dev) in kone_check_write() argument
123 retval = kone_receive(usb_dev, in kone_check_write()
139 dev_err(&usb_dev->dev, "got retval %d when checking write\n", data); in kone_check_write()
148 static int kone_get_settings(struct usb_device *usb_dev, in kone_get_settings() argument
151 return kone_receive(usb_dev, kone_command_settings, buf, in kone_get_settings()
160 static int kone_set_settings(struct usb_device *usb_dev, in kone_set_settings() argument
[all …]
Dhid-roccat-common.c21 int roccat_common2_receive(struct usb_device *usb_dev, uint report_id, in roccat_common2_receive() argument
31 len = usb_control_msg(usb_dev, usb_rcvctrlpipe(usb_dev, 0), in roccat_common2_receive()
43 int roccat_common2_send(struct usb_device *usb_dev, uint report_id, in roccat_common2_send() argument
53 len = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in roccat_common2_send()
72 static int roccat_common2_receive_control_status(struct usb_device *usb_dev) in roccat_common2_receive_control_status() argument
79 retval = roccat_common2_receive(usb_dev, in roccat_common2_receive_control_status()
97 dev_err(&usb_dev->dev, in roccat_common2_receive_control_status()
107 int roccat_common2_send_with_status(struct usb_device *usb_dev, in roccat_common2_send_with_status() argument
112 retval = roccat_common2_send(usb_dev, command, buf, size); in roccat_common2_send_with_status()
118 return roccat_common2_receive_control_status(usb_dev); in roccat_common2_send_with_status()
[all …]
Dhid-roccat-kovaplus.c45 static int kovaplus_send_control(struct usb_device *usb_dev, uint value, in kovaplus_send_control() argument
60 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control()
66 static int kovaplus_select_profile(struct usb_device *usb_dev, uint number, in kovaplus_select_profile() argument
69 return kovaplus_send_control(usb_dev, number, request); in kovaplus_select_profile()
72 static int kovaplus_get_profile_settings(struct usb_device *usb_dev, in kovaplus_get_profile_settings() argument
77 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings()
82 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_SETTINGS, in kovaplus_get_profile_settings()
86 static int kovaplus_get_profile_buttons(struct usb_device *usb_dev, in kovaplus_get_profile_buttons() argument
91 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons()
96 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_BUTTONS, in kovaplus_get_profile_buttons()
[all …]
Dhid-roccat-pyra.c41 static int pyra_send_control(struct usb_device *usb_dev, int value, in pyra_send_control() argument
55 return roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in pyra_send_control()
59 static int pyra_get_profile_settings(struct usb_device *usb_dev, in pyra_get_profile_settings() argument
63 retval = pyra_send_control(usb_dev, number, in pyra_get_profile_settings()
67 return roccat_common2_receive(usb_dev, PYRA_COMMAND_PROFILE_SETTINGS, in pyra_get_profile_settings()
71 static int pyra_get_settings(struct usb_device *usb_dev, in pyra_get_settings() argument
74 return roccat_common2_receive(usb_dev, PYRA_COMMAND_SETTINGS, in pyra_get_settings()
78 static int pyra_set_settings(struct usb_device *usb_dev, in pyra_set_settings() argument
81 return roccat_common2_send_with_status(usb_dev, in pyra_set_settings()
92 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in pyra_sysfs_read() local
[all …]
Dhid-roccat-koneplus.c37 static int koneplus_send_control(struct usb_device *usb_dev, uint value, in koneplus_send_control() argument
51 return roccat_common2_send_with_status(usb_dev, in koneplus_send_control()
58 static int koneplus_get_actual_profile(struct usb_device *usb_dev) in koneplus_get_actual_profile() argument
63 retval = roccat_common2_receive(usb_dev, KONEPLUS_COMMAND_ACTUAL_PROFILE, in koneplus_get_actual_profile()
69 static int koneplus_set_actual_profile(struct usb_device *usb_dev, in koneplus_set_actual_profile() argument
78 return roccat_common2_send_with_status(usb_dev, in koneplus_set_actual_profile()
89 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_read() local
99 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in koneplus_sysfs_read()
114 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_write() local
121 retval = roccat_common2_send_with_status(usb_dev, command, in koneplus_sysfs_write()
[all …]
Dhid-roccat-arvo.c33 struct usb_device *usb_dev = in arvo_sysfs_show_mode_key() local
39 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key()
53 struct usb_device *usb_dev = in arvo_sysfs_set_mode_key() local
67 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key()
83 struct usb_device *usb_dev = in arvo_sysfs_show_key_mask() local
89 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_show_key_mask()
103 struct usb_device *usb_dev = in arvo_sysfs_set_key_mask() local
117 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_set_key_mask()
129 static int arvo_get_actual_profile(struct usb_device *usb_dev) in arvo_get_actual_profile() argument
134 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_ACTUAL_PROFILE, in arvo_get_actual_profile()
[all …]
Dhid-roccat-isku.c33 static int isku_receive(struct usb_device *usb_dev, uint command, in isku_receive() argument
36 return roccat_common2_receive(usb_dev, command, buf, size); in isku_receive()
39 static int isku_get_actual_profile(struct usb_device *usb_dev) in isku_get_actual_profile() argument
44 retval = isku_receive(usb_dev, ISKU_COMMAND_ACTUAL_PROFILE, in isku_get_actual_profile()
49 static int isku_set_actual_profile(struct usb_device *usb_dev, int new_profile) in isku_set_actual_profile() argument
56 return roccat_common2_send_with_status(usb_dev, in isku_set_actual_profile()
73 struct usb_device *usb_dev; in isku_sysfs_set_actual_profile() local
80 usb_dev = interface_to_usbdev(to_usb_interface(dev)); in isku_sysfs_set_actual_profile()
91 retval = isku_set_actual_profile(usb_dev, profile); in isku_sysfs_set_actual_profile()
123 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in isku_sysfs_read() local
[all …]
/drivers/usb/host/
Dbcma-hcd.c179 static int bcma_hcd_usb20_old_arm_init(struct bcma_hcd_device *usb_dev) in bcma_hcd_usb20_old_arm_init() argument
181 struct bcma_device *core = usb_dev->core; in bcma_hcd_usb20_old_arm_init()
286 struct bcma_hcd_device *usb_dev = bcma_get_drvdata(dev); in bcma_hci_platform_power_gpio() local
288 if (!usb_dev->gpio_desc) in bcma_hci_platform_power_gpio()
291 gpiod_set_value(usb_dev->gpio_desc, val); in bcma_hci_platform_power_gpio()
344 static int bcma_hcd_usb20_init(struct bcma_hcd_device *usb_dev) in bcma_hcd_usb20_init() argument
346 struct bcma_device *dev = usb_dev->core; in bcma_hcd_usb20_init()
363 usb_dev->ohci_dev = bcma_hcd_create_pdev(dev, "ohci-platform", in bcma_hcd_usb20_init()
366 if (IS_ERR(usb_dev->ohci_dev)) in bcma_hcd_usb20_init()
367 return PTR_ERR(usb_dev->ohci_dev); in bcma_hcd_usb20_init()
[all …]
Dssb-hcd.c156 struct ssb_hcd_device *usb_dev; in ssb_hcd_probe() local
168 usb_dev = devm_kzalloc(dev->dev, sizeof(struct ssb_hcd_device), in ssb_hcd_probe()
170 if (!usb_dev) in ssb_hcd_probe()
177 usb_dev->enable_flags = ssb_hcd_init_chip(dev); in ssb_hcd_probe()
183 usb_dev->ohci_dev = ssb_hcd_create_pdev(dev, true, start, len); in ssb_hcd_probe()
184 if (IS_ERR(usb_dev->ohci_dev)) in ssb_hcd_probe()
185 return PTR_ERR(usb_dev->ohci_dev); in ssb_hcd_probe()
189 usb_dev->ehci_dev = ssb_hcd_create_pdev(dev, false, start, len); in ssb_hcd_probe()
190 if (IS_ERR(usb_dev->ehci_dev)) { in ssb_hcd_probe()
191 err = PTR_ERR(usb_dev->ehci_dev); in ssb_hcd_probe()
[all …]
/drivers/media/usb/as102/
Das102_usb_drv.c84 ret = usb_control_msg(bus_adap->usb_dev, in as102_usb_xfer_cmd()
85 usb_sndctrlpipe(bus_adap->usb_dev, 0), in as102_usb_xfer_cmd()
94 dev_dbg(&bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
100 dev_dbg(&bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
108 dev_dbg(bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
111 ret = usb_control_msg(bus_adap->usb_dev, in as102_usb_xfer_cmd()
112 usb_rcvctrlpipe(bus_adap->usb_dev, 0), in as102_usb_xfer_cmd()
121 dev_dbg(&bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
126 dev_dbg(bus_adap->usb_dev->dev, in as102_usb_xfer_cmd()
141 ret = usb_bulk_msg(bus_adap->usb_dev, in as102_send_ep1()
[all …]
/drivers/usb/core/
Dledtrig-usbport.c41 struct usb_device *usb_dev) in usbport_trig_usb_dev_observed() argument
45 if (!usb_dev->parent) in usbport_trig_usb_dev_observed()
49 if (usb_dev->parent == port->hub && in usbport_trig_usb_dev_observed()
50 usb_dev->portnum == port->portnum) in usbport_trig_usb_dev_observed()
57 static int usbport_trig_usb_dev_check(struct usb_device *usb_dev, void *data) in usbport_trig_usb_dev_check() argument
61 if (usbport_trig_usb_dev_observed(usbport_data, usb_dev)) in usbport_trig_usb_dev_check()
130 struct usb_device *usb_dev, int port1) in usbport_trig_port_observed() argument
146 port_np = usb_of_get_device_node(usb_dev, port1); in usbport_trig_port_observed()
184 struct usb_device *usb_dev, in usbport_trig_add_port() argument
199 port->hub = usb_dev; in usbport_trig_add_port()
[all …]
/drivers/i2c/busses/
Di2c-robotfuzz-osif.c30 struct usb_device *usb_dev; member
41 return usb_control_msg(priv->usb_dev, usb_rcvctrlpipe(priv->usb_dev, 0), in osif_usb_read()
52 return usb_control_msg(priv->usb_dev, usb_sndctrlpipe(priv->usb_dev, 0), in osif_usb_write()
139 priv->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in osif_probe()
150 priv->usb_dev->bus->busnum, priv->usb_dev->devnum); in osif_probe()
160 usb_put_dev(priv->usb_dev); in osif_probe()
166 version = le16_to_cpu(priv->usb_dev->descriptor.bcdDevice); in osif_probe()
170 priv->usb_dev->bus->busnum, priv->usb_dev->devnum); in osif_probe()
181 usb_put_dev(priv->usb_dev); in osif_disconnect()
Di2c-viperboard.c45 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_i2c_status()
65 static int vprbrd_i2c_receive(struct usb_device *usb_dev, in vprbrd_i2c_receive() argument
72 ret = usb_bulk_msg(usb_dev, in vprbrd_i2c_receive()
73 usb_sndbulkpipe(usb_dev, VPRBRD_EP_OUT), rmsg, in vprbrd_i2c_receive()
79 dev_err(&usb_dev->dev, "failure transmitting usb\n"); in vprbrd_i2c_receive()
84 ret = usb_bulk_msg(usb_dev, in vprbrd_i2c_receive()
85 usb_rcvbulkpipe(usb_dev, VPRBRD_EP_IN), rmsg, in vprbrd_i2c_receive()
89 dev_err(&usb_dev->dev, "failure receiving usb\n"); in vprbrd_i2c_receive()
95 static int vprbrd_i2c_addr(struct usb_device *usb_dev, in vprbrd_i2c_addr() argument
100 ret = usb_bulk_msg(usb_dev, in vprbrd_i2c_addr()
[all …]
Di2c-tiny-usb.c168 struct usb_device *usb_dev; /* the usb device for this device */ member
184 ret = usb_control_msg(dev->usb_dev, usb_rcvctrlpipe(dev->usb_dev, 0), in usb_read()
204 ret = usb_control_msg(dev->usb_dev, usb_sndctrlpipe(dev->usb_dev, 0), in usb_write()
214 usb_put_dev(dev->usb_dev); in i2c_tiny_usb_free()
232 dev->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in i2c_tiny_usb_probe()
238 version = le16_to_cpu(dev->usb_dev->descriptor.bcdDevice); in i2c_tiny_usb_probe()
242 dev->usb_dev->bus->busnum, dev->usb_dev->devnum); in i2c_tiny_usb_probe()
251 dev->usb_dev->bus->busnum, dev->usb_dev->devnum); in i2c_tiny_usb_probe()
Di2c-diolan-u2c.c81 struct usb_device *usb_dev; /* the usb device for this device */ member
105 ret = usb_bulk_msg(dev->usb_dev, in diolan_usb_transfer()
106 usb_sndbulkpipe(dev->usb_dev, dev->ep_out), in diolan_usb_transfer()
113 tmpret = usb_bulk_msg(dev->usb_dev, in diolan_usb_transfer()
114 usb_rcvbulkpipe(dev->usb_dev, in diolan_usb_transfer()
206 ret = usb_bulk_msg(dev->usb_dev, in diolan_flush_input()
207 usb_rcvbulkpipe(dev->usb_dev, dev->ep_in), in diolan_flush_input()
315 dev->usb_dev->bus->busnum, dev->usb_dev->devnum, frequency); in diolan_init()
432 usb_put_dev(dev->usb_dev); in diolan_u2c_free()
456 dev->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in diolan_u2c_probe()
[all …]
/drivers/mmc/host/
Dushc.c90 struct usb_device *usb_dev; member
121 return usb_control_msg(ushc->usb_dev, usb_sndctrlpipe(ushc->usb_dev, 0), in ushc_hw_reset()
131 ret = usb_control_msg(ushc->usb_dev, usb_rcvctrlpipe(ushc->usb_dev, 0), in ushc_hw_get_caps()
141 dev_err(&ushc->usb_dev->dev, "controller version %d is not supported\n", version); in ushc_hw_get_caps()
154 ret = usb_control_msg(ushc->usb_dev, usb_sndctrlpipe(ushc->usb_dev, 0), in ushc_hw_set_host_ctrl()
294 pipe = usb_rcvbulkpipe(ushc->usb_dev, 6); in ushc_request()
296 pipe = usb_sndbulkpipe(ushc->usb_dev, 2); in ushc_request()
298 usb_fill_bulk_urb(ushc->data_urb, ushc->usb_dev, pipe, in ushc_request()
337 return usb_control_msg(ushc->usb_dev, usb_sndctrlpipe(ushc->usb_dev, 0), in ushc_set_power()
361 ret = usb_control_msg(ushc->usb_dev, usb_sndctrlpipe(ushc->usb_dev, 0), in ushc_set_bus_freq()
[all …]
/drivers/mfd/
Dviperboard.c62 vb->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in vprbrd_probe()
69 pipe = usb_rcvctrlpipe(vb->usb_dev, 0); in vprbrd_probe()
70 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MAJOR, in vprbrd_probe()
76 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MINOR, in vprbrd_probe()
87 vb->usb_dev->bus->busnum, vb->usb_dev->devnum); in vprbrd_probe()
100 usb_put_dev(vb->usb_dev); in vprbrd_probe()
113 usb_put_dev(vb->usb_dev); in vprbrd_disconnect()
/drivers/net/wireless/mediatek/mt7601u/
Dusb.c38 struct usb_device *usb_dev = mt7601u_to_usb_dev(dev); in mt7601u_usb_alloc_buf() local
42 buf->buf = usb_alloc_coherent(usb_dev, buf->len, GFP_KERNEL, &buf->dma); in mt7601u_usb_alloc_buf()
49 struct usb_device *usb_dev = mt7601u_to_usb_dev(dev); in mt7601u_usb_free_buf() local
51 usb_free_coherent(usb_dev, buf->len, buf->buf, buf->dma); in mt7601u_usb_free_buf()
59 struct usb_device *usb_dev = mt7601u_to_usb_dev(dev); in mt7601u_usb_submit_buf() local
64 pipe = usb_rcvbulkpipe(usb_dev, dev->in_eps[ep_idx]); in mt7601u_usb_submit_buf()
66 pipe = usb_sndbulkpipe(usb_dev, dev->out_eps[ep_idx]); in mt7601u_usb_submit_buf()
68 usb_fill_bulk_urb(buf->urb, usb_dev, pipe, buf->buf, buf->len, in mt7601u_usb_submit_buf()
93 struct usb_device *usb_dev = mt7601u_to_usb_dev(dev); in mt7601u_vendor_request() local
96 usb_rcvctrlpipe(usb_dev, 0) : usb_sndctrlpipe(usb_dev, 0); in mt7601u_vendor_request()
[all …]
/drivers/gpio/
Dgpio-viperboard.c107 ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get()
114 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get()
159 ret = usb_control_msg(vb->usb_dev, in vprbrd_gpioa_set()
160 usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_set()
196 ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_direction_input()
237 ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_direction_output()
264 ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpiob_setdir()
290 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_gpiob_get()
327 ret = usb_control_msg(vb->usb_dev, in vprbrd_gpiob_set()
328 usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpiob_set()
/drivers/net/wireless/ralink/rt2x00/
Drt2x00usb.c51 struct usb_device *usb_dev = to_usb_device_intf(rt2x00dev->dev); in rt2x00usb_vendor_request() local
55 usb_rcvctrlpipe(usb_dev, 0) : usb_sndctrlpipe(usb_dev, 0); in rt2x00usb_vendor_request()
62 status = usb_control_msg(usb_dev, pipe, request, requesttype, in rt2x00usb_vendor_request()
195 struct usb_device *usb_dev = to_usb_device_intf(rt2x00dev->dev); in rt2x00usb_register_read_async() local
217 usb_fill_control_urb(urb, usb_dev, usb_rcvctrlpipe(usb_dev, 0), in rt2x00usb_register_read_async()
299 struct usb_device *usb_dev = to_usb_device_intf(rt2x00dev->dev); in rt2x00usb_kick_tx_entry() local
325 usb_fill_bulk_urb(entry_priv->urb, usb_dev, in rt2x00usb_kick_tx_entry()
326 usb_sndbulkpipe(usb_dev, entry->queue->usb_endpoint), in rt2x00usb_kick_tx_entry()
402 struct usb_device *usb_dev = to_usb_device_intf(rt2x00dev->dev); in rt2x00usb_kick_rx_entry() local
411 usb_fill_bulk_urb(entry_priv->urb, usb_dev, in rt2x00usb_kick_rx_entry()
[all …]
/drivers/usb/class/
Dusbtmc.c75 struct usb_device *usb_dev; member
159 usb_put_dev(data->usb_dev); in usbtmc_delete()
279 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in_tag()
280 usb_rcvctrlpipe(data->usb_dev, 0), in usbtmc_ioctl_abort_bulk_in_tag()
325 rv = usb_bulk_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in_tag()
326 usb_rcvbulkpipe(data->usb_dev, in usbtmc_ioctl_abort_bulk_in_tag()
352 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in_tag()
353 usb_rcvctrlpipe(data->usb_dev, 0), in usbtmc_ioctl_abort_bulk_in_tag()
408 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_out_tag()
409 usb_rcvctrlpipe(data->usb_dev, 0), in usbtmc_ioctl_abort_bulk_out_tag()
[all …]

123