Home
last modified time | relevance | path

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

1234

/linux-6.1.9/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 …]
/linux-6.1.9/drivers/net/ieee802154/
Datusb.c47 struct usb_device *usb_dev; member
80 struct usb_device *usb_dev = atusb->usb_dev; in atusb_write_subreg() local
84 dev_dbg(&usb_dev->dev, "%s: 0x%02x <- 0x%02x\n", __func__, reg, value); in atusb_write_subreg()
86 ret = usb_control_msg_recv(usb_dev, 0, ATUSB_REG_READ, ATUSB_REQ_FROM_DEV, in atusb_write_subreg()
98 ret = usb_control_msg_send(usb_dev, 0, ATUSB_REG_WRITE, ATUSB_REQ_TO_DEV, in atusb_write_subreg()
110 ret = usb_control_msg_recv(lp->usb_dev, 0, ATUSB_REG_READ, ATUSB_REQ_FROM_DEV, in atusb_read_subreg()
139 struct usb_device *usb_dev = atusb->usb_dev; in atusb_submit_rx_urb() local
146 dev_warn_ratelimited(&usb_dev->dev, in atusb_submit_rx_urb()
154 usb_fill_bulk_urb(urb, usb_dev, usb_rcvbulkpipe(usb_dev, 1), in atusb_submit_rx_urb()
171 struct usb_device *usb_dev = atusb->usb_dev; in atusb_work_urbs() local
[all …]
/linux-6.1.9/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-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-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-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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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()
234 dev->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in i2c_tiny_usb_probe()
240 version = le16_to_cpu(dev->usb_dev->descriptor.bcdDevice); in i2c_tiny_usb_probe()
244 dev->usb_dev->bus->busnum, dev->usb_dev->devnum); in i2c_tiny_usb_probe()
253 dev->usb_dev->bus->busnum, dev->usb_dev->devnum); in i2c_tiny_usb_probe()
/linux-6.1.9/sound/usb/caiaq/
Ddevice.c196 struct usb_device *usb_dev = cdev->chip.dev; in snd_usb_caiaq_send_command() local
198 if (!usb_dev) in snd_usb_caiaq_send_command()
208 return usb_bulk_msg(usb_dev, usb_sndbulkpipe(usb_dev, 1), in snd_usb_caiaq_send_command()
219 struct usb_device *usb_dev = cdev->chip.dev; in snd_usb_caiaq_send_command_bank() local
221 if (!usb_dev) in snd_usb_caiaq_send_command_bank()
233 return usb_bulk_msg(usb_dev, usb_sndbulkpipe(usb_dev, 1), in snd_usb_caiaq_send_command_bank()
379 static int create_card(struct usb_device *usb_dev, in create_card() argument
402 cdev->chip.dev = usb_dev; in create_card()
404 cdev->chip.usb_id = USB_ID(le16_to_cpu(usb_dev->descriptor.idVendor), in create_card()
405 le16_to_cpu(usb_dev->descriptor.idProduct)); in create_card()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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()
/linux-6.1.9/arch/arm/mach-davinci/
Dusb.c53 static struct platform_device usb_dev = { variable
72 usb_dev.resource[1].start = DAVINCI_INTC_IRQ(IRQ_DM646X_USBINT); in davinci_setup_usb()
73 usb_dev.resource[2].start = DAVINCI_INTC_IRQ( in davinci_setup_usb()
76 usb_dev.num_resources = 2; in davinci_setup_usb()
78 platform_device_register(&usb_dev); in davinci_setup_usb()
/linux-6.1.9/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 …]

1234