/drivers/net/ieee802154/ |
D | atusb.c | 47 struct usb_device *usb_dev; member 74 struct usb_device *usb_dev = atusb->usb_dev; in atusb_control_msg() local 80 ret = usb_control_msg(usb_dev, pipe, request, requesttype, in atusb_control_msg() 84 dev_err(&usb_dev->dev, in atusb_control_msg() 93 struct usb_device *usb_dev = atusb->usb_dev; in atusb_command() local 95 dev_dbg(&usb_dev->dev, "atusb_command: cmd = 0x%x\n", cmd); in atusb_command() 96 return atusb_control_msg(atusb, usb_sndctrlpipe(usb_dev, 0), in atusb_command() 102 struct usb_device *usb_dev = atusb->usb_dev; in atusb_write_reg() local 104 dev_dbg(&usb_dev->dev, "atusb_write_reg: 0x%02x <- 0x%02x\n", in atusb_write_reg() 106 return atusb_control_msg(atusb, usb_sndctrlpipe(usb_dev, 0), in atusb_write_reg() [all …]
|
/drivers/usb/atm/ |
D | speedtch.c | 162 struct usb_device *usb_dev = usbatm->usb_dev; in speedtch_set_swbuff() local 165 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_set_swbuff() 178 struct usb_device *usb_dev = usbatm->usb_dev; in speedtch_test_sequence() local 185 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 193 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 202 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 211 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 220 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 229 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 239 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() [all …]
|
D | xusbatm.c | 52 static struct usb_interface *xusbatm_find_intf(struct usb_device *usb_dev, int altsetting, u8 ep) in xusbatm_find_intf() argument 58 for (i = 0; i < usb_dev->actconfig->desc.bNumInterfaces; i++) in xusbatm_find_intf() 59 …if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting)… in xusbatm_find_intf() 66 static int xusbatm_capture_intf(struct usbatm_data *usbatm, struct usb_device *usb_dev, in xusbatm_capture_intf() argument 76 ret = usb_set_interface(usb_dev, ifnum, altsetting); in xusbatm_capture_intf() 84 static void xusbatm_release_intf(struct usb_device *usb_dev, struct usb_interface *intf, int claime… in xusbatm_release_intf() argument 95 struct usb_device *usb_dev = interface_to_usbdev(intf); in xusbatm_bind() local 99 struct usb_interface *rx_intf = xusbatm_find_intf(usb_dev, rx_alt, rx_endpoint[drv_ix]); in xusbatm_bind() 100 struct usb_interface *tx_intf = xusbatm_find_intf(usb_dev, tx_alt, tx_endpoint[drv_ix]); in xusbatm_bind() 132 ret = xusbatm_capture_intf(usbatm, usb_dev, rx_intf, rx_alt, rx_intf != intf); in xusbatm_bind() [all …]
|
/drivers/hid/ |
D | hid-roccat-kone.c | 56 static int kone_receive(struct usb_device *usb_dev, uint usb_command, in kone_receive() argument 66 len = usb_control_msg(usb_dev, usb_rcvctrlpipe(usb_dev, 0), in kone_receive() 76 static int kone_send(struct usb_device *usb_dev, uint usb_command, in kone_send() argument 86 len = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in kone_send() 114 static int kone_check_write(struct usb_device *usb_dev) in kone_check_write() argument 126 retval = kone_receive(usb_dev, in kone_check_write() 142 dev_err(&usb_dev->dev, "got retval %d when checking write\n", data); in kone_check_write() 151 static int kone_get_settings(struct usb_device *usb_dev, in kone_get_settings() argument 154 return kone_receive(usb_dev, kone_command_settings, buf, in kone_get_settings() 163 static int kone_set_settings(struct usb_device *usb_dev, in kone_set_settings() argument [all …]
|
D | hid-roccat-common.c | 24 int roccat_common2_receive(struct usb_device *usb_dev, uint report_id, in roccat_common2_receive() argument 34 len = usb_control_msg(usb_dev, usb_rcvctrlpipe(usb_dev, 0), in roccat_common2_receive() 46 int roccat_common2_send(struct usb_device *usb_dev, uint report_id, in roccat_common2_send() argument 56 len = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in roccat_common2_send() 75 static int roccat_common2_receive_control_status(struct usb_device *usb_dev) in roccat_common2_receive_control_status() argument 82 retval = roccat_common2_receive(usb_dev, in roccat_common2_receive_control_status() 100 dev_err(&usb_dev->dev, in roccat_common2_receive_control_status() 110 int roccat_common2_send_with_status(struct usb_device *usb_dev, in roccat_common2_send_with_status() argument 115 retval = roccat_common2_send(usb_dev, command, buf, size); in roccat_common2_send_with_status() 121 return roccat_common2_receive_control_status(usb_dev); in roccat_common2_send_with_status() [all …]
|
D | hid-roccat-kovaplus.c | 46 static int kovaplus_send_control(struct usb_device *usb_dev, uint value, in kovaplus_send_control() argument 61 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control() 67 static int kovaplus_select_profile(struct usb_device *usb_dev, uint number, in kovaplus_select_profile() argument 70 return kovaplus_send_control(usb_dev, number, request); in kovaplus_select_profile() 73 static int kovaplus_get_profile_settings(struct usb_device *usb_dev, in kovaplus_get_profile_settings() argument 78 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings() 83 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_SETTINGS, in kovaplus_get_profile_settings() 87 static int kovaplus_get_profile_buttons(struct usb_device *usb_dev, in kovaplus_get_profile_buttons() argument 92 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons() 97 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_BUTTONS, in kovaplus_get_profile_buttons() [all …]
|
D | hid-roccat-pyra.c | 44 static int pyra_send_control(struct usb_device *usb_dev, int value, in pyra_send_control() argument 58 return roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in pyra_send_control() 62 static int pyra_get_profile_settings(struct usb_device *usb_dev, in pyra_get_profile_settings() argument 66 retval = pyra_send_control(usb_dev, number, in pyra_get_profile_settings() 70 return roccat_common2_receive(usb_dev, PYRA_COMMAND_PROFILE_SETTINGS, in pyra_get_profile_settings() 74 static int pyra_get_settings(struct usb_device *usb_dev, in pyra_get_settings() argument 77 return roccat_common2_receive(usb_dev, PYRA_COMMAND_SETTINGS, in pyra_get_settings() 81 static int pyra_set_settings(struct usb_device *usb_dev, in pyra_set_settings() argument 84 return roccat_common2_send_with_status(usb_dev, in pyra_set_settings() 95 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in pyra_sysfs_read() local [all …]
|
D | hid-roccat-koneplus.c | 40 static int koneplus_send_control(struct usb_device *usb_dev, uint value, in koneplus_send_control() argument 54 return roccat_common2_send_with_status(usb_dev, in koneplus_send_control() 61 static int koneplus_get_actual_profile(struct usb_device *usb_dev) in koneplus_get_actual_profile() argument 66 retval = roccat_common2_receive(usb_dev, KONEPLUS_COMMAND_ACTUAL_PROFILE, in koneplus_get_actual_profile() 72 static int koneplus_set_actual_profile(struct usb_device *usb_dev, in koneplus_set_actual_profile() argument 81 return roccat_common2_send_with_status(usb_dev, in koneplus_set_actual_profile() 92 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_read() local 102 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in koneplus_sysfs_read() 117 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_write() local 124 retval = roccat_common2_send_with_status(usb_dev, command, in koneplus_sysfs_write() [all …]
|
D | hid-roccat-arvo.c | 36 struct usb_device *usb_dev = in arvo_sysfs_show_mode_key() local 42 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key() 56 struct usb_device *usb_dev = in arvo_sysfs_set_mode_key() local 70 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key() 86 struct usb_device *usb_dev = in arvo_sysfs_show_key_mask() local 92 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_show_key_mask() 106 struct usb_device *usb_dev = in arvo_sysfs_set_key_mask() local 120 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_set_key_mask() 132 static int arvo_get_actual_profile(struct usb_device *usb_dev) in arvo_get_actual_profile() argument 137 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_ACTUAL_PROFILE, in arvo_get_actual_profile() [all …]
|
/drivers/usb/wusbcore/ |
D | security.c | 168 static int wusb_dev_set_encryption(struct usb_device *usb_dev, int value) in wusb_dev_set_encryption() argument 171 struct device *dev = &usb_dev->dev; in wusb_dev_set_encryption() 172 struct wusb_dev *wusb_dev = usb_dev->wusb_dev; in wusb_dev_set_encryption() 181 result = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in wusb_dev_set_encryption() 200 struct usb_device *usb_dev = wusb_dev->usb_dev; in wusb_dev_set_gtk() local 205 usb_dev, usb_sndctrlpipe(usb_dev, 0), in wusb_dev_set_gtk() 216 struct usb_device *usb_dev, struct wusb_dev *wusb_dev) in wusb_dev_sec_add() argument 219 struct device *dev = &usb_dev->dev; in wusb_dev_sec_add() 231 result = usb_get_descriptor(usb_dev, USB_DT_SECURITY, in wusb_dev_sec_add() 246 result = usb_get_descriptor(usb_dev, USB_DT_SECURITY, in wusb_dev_sec_add() [all …]
|
D | dev-sysfs.c | 35 struct usb_device *usb_dev; in wusb_disconnect_store() local 44 usb_dev = to_usb_device(dev); in wusb_disconnect_store() 45 wusbhc = wusbhc_get_by_usb_dev(usb_dev); in wusb_disconnect_store() 50 port_idx = wusb_port_no_to_idx(usb_dev->portnum); in wusb_disconnect_store() 79 struct usb_device *usb_dev; in wusb_ck_store() local 99 usb_dev = to_usb_device(dev); in wusb_ck_store() 100 wusbhc = wusbhc_get_by_usb_dev(usb_dev); in wusb_ck_store() 103 result = wusb_dev_4way_handshake(wusbhc, usb_dev->wusb_dev, &ck); in wusb_ck_store() 122 int wusb_dev_sysfs_add(struct wusbhc *wusbhc, struct usb_device *usb_dev, in wusb_dev_sysfs_add() argument 125 int result = sysfs_create_group(&usb_dev->dev.kobj, in wusb_dev_sysfs_add() [all …]
|
D | devconnect.c | 424 if (wusb_dev->usb_dev == NULL) in __wusbhc_keep_alive() 702 static int wusb_dev_bos_grok(struct usb_device *usb_dev, in wusb_dev_bos_grok() argument 707 struct device *dev = &usb_dev->dev; in wusb_dev_bos_grok() 773 static int wusb_dev_bos_add(struct usb_device *usb_dev, in wusb_dev_bos_add() argument 777 struct device *dev = &usb_dev->dev; in wusb_dev_bos_add() 784 result = usb_get_descriptor(usb_dev, USB_DT_BOS, 0, bos, desc_size); in wusb_dev_bos_add() 798 result = usb_get_descriptor(usb_dev, USB_DT_BOS, 0, bos, desc_size); in wusb_dev_bos_add() 811 result = wusb_dev_bos_grok(usb_dev, wusb_dev, bos, result); in wusb_dev_bos_add() 852 static void wusb_dev_add_ncb(struct usb_device *usb_dev) in wusb_dev_add_ncb() argument 857 struct device *dev = &usb_dev->dev; in wusb_dev_add_ncb() [all …]
|
D | wusbhc.h | 111 struct usb_device *usb_dev; member 336 struct usb_hcd *usb_hcd_get_by_usb_dev(struct usb_device *usb_dev) in usb_hcd_get_by_usb_dev() argument 339 usb_hcd = bus_to_hcd(usb_dev->bus); in usb_hcd_get_by_usb_dev() 363 static inline struct wusbhc *wusbhc_get_by_usb_dev(struct usb_device *usb_dev) in wusbhc_get_by_usb_dev() argument 367 if (usb_dev->devnum > 1 && !usb_dev->wusb) { in wusbhc_get_by_usb_dev() 369 dev_err(&usb_dev->dev, "devnum %d wusb %d\n", usb_dev->devnum, in wusbhc_get_by_usb_dev() 370 usb_dev->wusb); in wusbhc_get_by_usb_dev() 371 BUG_ON(usb_dev->devnum > 1 && !usb_dev->wusb); in wusbhc_get_by_usb_dev() 373 usb_hcd = usb_hcd_get_by_usb_dev(usb_dev); in wusbhc_get_by_usb_dev() 484 struct wusb_dev *wusb_dev_get_by_usb_dev(struct usb_device *usb_dev) in wusb_dev_get_by_usb_dev() argument [all …]
|
/drivers/usb/host/ |
D | bcma-hcd.c | 180 static int bcma_hcd_usb20_old_arm_init(struct bcma_hcd_device *usb_dev) in bcma_hcd_usb20_old_arm_init() argument 182 struct bcma_device *core = usb_dev->core; in bcma_hcd_usb20_old_arm_init() 287 struct bcma_hcd_device *usb_dev = bcma_get_drvdata(dev); in bcma_hci_platform_power_gpio() local 289 if (IS_ERR_OR_NULL(usb_dev->gpio_desc)) in bcma_hci_platform_power_gpio() 292 gpiod_set_value(usb_dev->gpio_desc, val); in bcma_hci_platform_power_gpio() 345 static int bcma_hcd_usb20_init(struct bcma_hcd_device *usb_dev) in bcma_hcd_usb20_init() argument 347 struct bcma_device *dev = usb_dev->core; in bcma_hcd_usb20_init() 364 usb_dev->ohci_dev = bcma_hcd_create_pdev(dev, "ohci-platform", in bcma_hcd_usb20_init() 367 if (IS_ERR(usb_dev->ohci_dev)) in bcma_hcd_usb20_init() 368 return PTR_ERR(usb_dev->ohci_dev); in bcma_hcd_usb20_init() [all …]
|
D | ssb-hcd.c | 157 struct ssb_hcd_device *usb_dev; in ssb_hcd_probe() local 169 usb_dev = devm_kzalloc(dev->dev, sizeof(struct ssb_hcd_device), in ssb_hcd_probe() 171 if (!usb_dev) in ssb_hcd_probe() 178 usb_dev->enable_flags = ssb_hcd_init_chip(dev); in ssb_hcd_probe() 184 usb_dev->ohci_dev = ssb_hcd_create_pdev(dev, true, start, len); in ssb_hcd_probe() 185 if (IS_ERR(usb_dev->ohci_dev)) in ssb_hcd_probe() 186 return PTR_ERR(usb_dev->ohci_dev); in ssb_hcd_probe() 190 usb_dev->ehci_dev = ssb_hcd_create_pdev(dev, false, start, len); in ssb_hcd_probe() 191 if (IS_ERR(usb_dev->ehci_dev)) { in ssb_hcd_probe() 192 err = PTR_ERR(usb_dev->ehci_dev); in ssb_hcd_probe() [all …]
|
D | hwa-hc.c | 83 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_set_cluster_id() 103 return usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_op_set_num_dnts() 208 return usb_get_current_frame_number(wa->usb_dev); in hwahc_op_get_frame_number() 273 result = usb_control_msg(hwahc->wa.usb_dev, in __hwahc_op_wusbhc_start() 274 usb_sndctrlpipe(hwahc->wa.usb_dev, 0), in __hwahc_op_wusbhc_start() 314 ret = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_op_wusbhc_stop() 343 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_op_bwa_set() 355 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_op_bwa_set() 388 return usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_op_mmcie_add() 406 return usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_op_mmcie_rm() [all …]
|
/drivers/media/usb/as102/ |
D | as102_usb_drv.c | 93 ret = usb_control_msg(bus_adap->usb_dev, in as102_usb_xfer_cmd() 94 usb_sndctrlpipe(bus_adap->usb_dev, 0), in as102_usb_xfer_cmd() 103 dev_dbg(&bus_adap->usb_dev->dev, in as102_usb_xfer_cmd() 109 dev_dbg(&bus_adap->usb_dev->dev, in as102_usb_xfer_cmd() 117 dev_dbg(bus_adap->usb_dev->dev, in as102_usb_xfer_cmd() 120 ret = usb_control_msg(bus_adap->usb_dev, in as102_usb_xfer_cmd() 121 usb_rcvctrlpipe(bus_adap->usb_dev, 0), in as102_usb_xfer_cmd() 130 dev_dbg(&bus_adap->usb_dev->dev, in as102_usb_xfer_cmd() 135 dev_dbg(bus_adap->usb_dev->dev, in as102_usb_xfer_cmd() 150 ret = usb_bulk_msg(bus_adap->usb_dev, in as102_send_ep1() [all …]
|
/drivers/usb/core/ |
D | ledtrig-usbport.c | 42 struct usb_device *usb_dev) in usbport_trig_usb_dev_observed() argument 46 if (!usb_dev->parent) in usbport_trig_usb_dev_observed() 50 if (usb_dev->parent == port->hub && in usbport_trig_usb_dev_observed() 51 usb_dev->portnum == port->portnum) in usbport_trig_usb_dev_observed() 58 static int usbport_trig_usb_dev_check(struct usb_device *usb_dev, void *data) in usbport_trig_usb_dev_check() argument 62 if (usbport_trig_usb_dev_observed(usbport_data, usb_dev)) in usbport_trig_usb_dev_check() 127 struct usb_device *usb_dev, in usbport_trig_add_port() argument 142 port->hub = usb_dev; in usbport_trig_add_port() 175 static int usbport_trig_add_usb_dev_ports(struct usb_device *usb_dev, in usbport_trig_add_usb_dev_ports() argument 181 for (i = 1; i <= usb_dev->maxchild; i++) in usbport_trig_add_usb_dev_ports() [all …]
|
/drivers/i2c/busses/ |
D | i2c-viperboard.c | 50 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_i2c_status() 70 static int vprbrd_i2c_receive(struct usb_device *usb_dev, in vprbrd_i2c_receive() argument 77 ret = usb_bulk_msg(usb_dev, in vprbrd_i2c_receive() 78 usb_sndbulkpipe(usb_dev, VPRBRD_EP_OUT), rmsg, in vprbrd_i2c_receive() 84 dev_err(&usb_dev->dev, "failure transmitting usb\n"); in vprbrd_i2c_receive() 89 ret = usb_bulk_msg(usb_dev, in vprbrd_i2c_receive() 90 usb_rcvbulkpipe(usb_dev, VPRBRD_EP_IN), rmsg, in vprbrd_i2c_receive() 94 dev_err(&usb_dev->dev, "failure receiving usb\n"); in vprbrd_i2c_receive() 100 static int vprbrd_i2c_addr(struct usb_device *usb_dev, in vprbrd_i2c_addr() argument 105 ret = usb_bulk_msg(usb_dev, in vprbrd_i2c_addr() [all …]
|
D | i2c-robotfuzz-osif.c | 33 struct usb_device *usb_dev; member 44 return usb_control_msg(priv->usb_dev, usb_rcvctrlpipe(priv->usb_dev, 0), in osif_usb_read() 55 return usb_control_msg(priv->usb_dev, usb_sndctrlpipe(priv->usb_dev, 0), in osif_usb_write() 145 priv->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in osif_probe() 156 priv->usb_dev->bus->busnum, priv->usb_dev->devnum); in osif_probe() 166 usb_put_dev(priv->usb_dev); in osif_probe() 172 version = le16_to_cpu(priv->usb_dev->descriptor.bcdDevice); in osif_probe() 176 priv->usb_dev->bus->busnum, priv->usb_dev->devnum); in osif_probe() 187 usb_put_dev(priv->usb_dev); in osif_disconnect()
|
D | i2c-tiny-usb.c | 172 struct usb_device *usb_dev; /* the usb device for this device */ member 188 ret = usb_control_msg(dev->usb_dev, usb_rcvctrlpipe(dev->usb_dev, 0), in usb_read() 208 ret = usb_control_msg(dev->usb_dev, usb_sndctrlpipe(dev->usb_dev, 0), in usb_write() 218 usb_put_dev(dev->usb_dev); in i2c_tiny_usb_free() 238 dev->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in i2c_tiny_usb_probe() 244 version = le16_to_cpu(dev->usb_dev->descriptor.bcdDevice); in i2c_tiny_usb_probe() 248 dev->usb_dev->bus->busnum, dev->usb_dev->devnum); in i2c_tiny_usb_probe() 257 dev->usb_dev->bus->busnum, dev->usb_dev->devnum); in i2c_tiny_usb_probe()
|
/drivers/usb/class/ |
D | usbtmc.c | 81 struct usb_device *usb_dev; member 143 usb_put_dev(data->usb_dev); in usbtmc_delete() 191 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in() 192 usb_rcvctrlpipe(data->usb_dev, 0), in usbtmc_ioctl_abort_bulk_in() 237 rv = usb_bulk_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in() 238 usb_rcvbulkpipe(data->usb_dev, in usbtmc_ioctl_abort_bulk_in() 262 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in() 263 usb_rcvctrlpipe(data->usb_dev, 0), in usbtmc_ioctl_abort_bulk_in() 291 rv = usb_bulk_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in() 292 usb_rcvbulkpipe(data->usb_dev, in usbtmc_ioctl_abort_bulk_in() [all …]
|
/drivers/mmc/host/ |
D | ushc.c | 94 struct usb_device *usb_dev; member 125 return usb_control_msg(ushc->usb_dev, usb_sndctrlpipe(ushc->usb_dev, 0), in ushc_hw_reset() 135 ret = usb_control_msg(ushc->usb_dev, usb_rcvctrlpipe(ushc->usb_dev, 0), in ushc_hw_get_caps() 145 dev_err(&ushc->usb_dev->dev, "controller version %d is not supported\n", version); in ushc_hw_get_caps() 158 ret = usb_control_msg(ushc->usb_dev, usb_sndctrlpipe(ushc->usb_dev, 0), in ushc_hw_set_host_ctrl() 298 pipe = usb_rcvbulkpipe(ushc->usb_dev, 6); in ushc_request() 300 pipe = usb_sndbulkpipe(ushc->usb_dev, 2); in ushc_request() 302 usb_fill_bulk_urb(ushc->data_urb, ushc->usb_dev, pipe, in ushc_request() 341 return usb_control_msg(ushc->usb_dev, usb_sndctrlpipe(ushc->usb_dev, 0), in ushc_set_power() 365 ret = usb_control_msg(ushc->usb_dev, usb_sndctrlpipe(ushc->usb_dev, 0), in ushc_set_bus_freq() [all …]
|
/drivers/uwb/i1480/dfu/ |
D | usb.c | 49 struct usb_device *usb_dev; member 65 struct usb_device *usb_dev = interface_to_usbdev(iface); in i1480_usb_create() local 68 i1480_usb->usb_dev = usb_get_dev(usb_dev); /* bind the USB device */ in i1480_usb_create() 79 usb_put_dev(usb_dev); in i1480_usb_create() 91 usb_put_dev(i1480_usb->usb_dev); in i1480_usb_destroy() 122 i1480_usb->usb_dev, usb_sndctrlpipe(i1480_usb->usb_dev, 0), in i1480_usb_write() 167 i1480_usb->usb_dev, usb_rcvctrlpipe(i1480_usb->usb_dev, 0), in i1480_usb_read() 246 usb_fill_int_urb(i1480_usb->neep_urb, i1480_usb->usb_dev, in i1480_usb_wait_init_done() 247 usb_rcvintpipe(i1480_usb->usb_dev, epd->bEndpointAddress), in i1480_usb_wait_init_done() 304 i1480_usb->neep_urb, i1480_usb->usb_dev, in i1480_usb_cmd() [all …]
|
/drivers/mfd/ |
D | viperboard.c | 69 vb->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in vprbrd_probe() 76 pipe = usb_rcvctrlpipe(vb->usb_dev, 0); in vprbrd_probe() 77 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MAJOR, in vprbrd_probe() 83 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MINOR, in vprbrd_probe() 94 vb->usb_dev->bus->busnum, vb->usb_dev->devnum); in vprbrd_probe() 107 usb_put_dev(vb->usb_dev); in vprbrd_probe() 120 usb_put_dev(vb->usb_dev); in vprbrd_disconnect()
|