| /linux/drivers/usb/atm/ |
| H A D | speedtch.c | 148 struct usb_device *usb_dev = usbatm->usb_dev; in speedtch_set_swbuff() local 151 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_set_swbuff() 164 struct usb_device *usb_dev = usbatm->usb_dev; in speedtch_test_sequence() local 171 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 179 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 188 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 197 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 206 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 215 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() 225 ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in speedtch_test_sequence() [all …]
|
| H A D | cxacru.c | 937 static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw, in cxacru_fw() argument 967 ret = usb_bulk_msg(usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_CMD), in cxacru_fw() 970 dev_dbg(&usb_dev->dev, "sending fw %#x failed\n", fw); in cxacru_fw() 976 dev_dbg(&usb_dev->dev, "sent fw %#x\n", fw); in cxacru_fw() 1012 struct usb_device *usb_dev = usbatm->usb_dev; in cxacru_heavy_init() local 1013 __le16 signature[] = { usb_dev->descriptor.idVendor, in cxacru_heavy_init() 1014 usb_dev->descriptor.idProduct }; in cxacru_heavy_init() 1035 ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4); in cxacru_heavy_init() 1043 ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4); in cxacru_heavy_init() 1051 ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4); in cxacru_heavy_init() [all …]
|
| H A D | ueagle-atm.c | 39 #define uea_dbg(usb_dev, format, args...) \ argument 42 dev_dbg(&(usb_dev)->dev, \ 47 #define uea_vdbg(usb_dev, format, args...) \ argument 50 dev_dbg(&(usb_dev)->dev, \ 54 #define uea_err(usb_dev, format, args...) \ argument 55 dev_err(&(usb_dev)->dev , "[UEAGLE-ATM] " format , ##args) 57 #define uea_warn(usb_dev, format, args...) \ argument 58 dev_warn(&(usb_dev)->dev , "[Ueagle-atm] " format, ##args) 60 #define uea_info(usb_dev, format, args...) \ argument 61 dev_info(&(usb_dev)->dev , "[ueagle-atm] " format, ##args) [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-roccat-common.c | 21 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 …]
|
| H A D | hid-roccat-kovaplus.c | 43 static int kovaplus_send_control(struct usb_device *usb_dev, uint value, in kovaplus_send_control() argument 58 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control() 64 static int kovaplus_select_profile(struct usb_device *usb_dev, uint number, in kovaplus_select_profile() argument 67 return kovaplus_send_control(usb_dev, number, request); in kovaplus_select_profile() 70 static int kovaplus_get_profile_settings(struct usb_device *usb_dev, in kovaplus_get_profile_settings() argument 75 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings() 80 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_SETTINGS, in kovaplus_get_profile_settings() 84 static int kovaplus_get_profile_buttons(struct usb_device *usb_dev, in kovaplus_get_profile_buttons() argument 89 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons() 94 return roccat_common2_receive(usb_dev, KOVAPLUS_COMMAND_PROFILE_BUTTONS, in kovaplus_get_profile_buttons() [all …]
|
| H A D | hid-roccat-pyra.c | 38 static int pyra_send_control(struct usb_device *usb_dev, int value, in pyra_send_control() argument 52 return roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in pyra_send_control() 56 static int pyra_get_profile_settings(struct usb_device *usb_dev, in pyra_get_profile_settings() argument 60 retval = pyra_send_control(usb_dev, number, in pyra_get_profile_settings() 64 return roccat_common2_receive(usb_dev, PYRA_COMMAND_PROFILE_SETTINGS, in pyra_get_profile_settings() 68 static int pyra_get_settings(struct usb_device *usb_dev, in pyra_get_settings() argument 71 return roccat_common2_receive(usb_dev, PYRA_COMMAND_SETTINGS, in pyra_get_settings() 75 static int pyra_set_settings(struct usb_device *usb_dev, in pyra_set_settings() argument 78 return roccat_common2_send_with_status(usb_dev, in pyra_set_settings() 89 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in pyra_sysfs_read() local [all …]
|
| H A D | hid-roccat-koneplus.c | 35 static int koneplus_send_control(struct usb_device *usb_dev, uint value, in koneplus_send_control() argument 49 return roccat_common2_send_with_status(usb_dev, in koneplus_send_control() 56 static int koneplus_get_actual_profile(struct usb_device *usb_dev) in koneplus_get_actual_profile() argument 61 retval = roccat_common2_receive(usb_dev, KONEPLUS_COMMAND_ACTUAL_PROFILE, in koneplus_get_actual_profile() 67 static int koneplus_set_actual_profile(struct usb_device *usb_dev, in koneplus_set_actual_profile() argument 76 return roccat_common2_send_with_status(usb_dev, in koneplus_set_actual_profile() 87 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_read() local 97 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in koneplus_sysfs_read() 112 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in koneplus_sysfs_write() local 119 retval = roccat_common2_send_with_status(usb_dev, command, in koneplus_sysfs_write() [all …]
|
| H A D | hid-roccat-arvo.c | 31 struct usb_device *usb_dev = in arvo_sysfs_show_mode_key() local 37 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key() 51 struct usb_device *usb_dev = in arvo_sysfs_set_mode_key() local 65 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key() 81 struct usb_device *usb_dev = in arvo_sysfs_show_key_mask() local 87 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_show_key_mask() 101 struct usb_device *usb_dev = in arvo_sysfs_set_key_mask() local 115 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_KEY_MASK, in arvo_sysfs_set_key_mask() 127 static int arvo_get_actual_profile(struct usb_device *usb_dev) in arvo_get_actual_profile() argument 132 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_ACTUAL_PROFILE, in arvo_get_actual_profile() [all …]
|
| H A D | hid-roccat-isku.c | 31 static int isku_receive(struct usb_device *usb_dev, uint command, in isku_receive() argument 34 return roccat_common2_receive(usb_dev, command, buf, size); in isku_receive() 37 static int isku_get_actual_profile(struct usb_device *usb_dev) in isku_get_actual_profile() argument 42 retval = isku_receive(usb_dev, ISKU_COMMAND_ACTUAL_PROFILE, in isku_get_actual_profile() 47 static int isku_set_actual_profile(struct usb_device *usb_dev, int new_profile) in isku_set_actual_profile() argument 54 return roccat_common2_send_with_status(usb_dev, in isku_set_actual_profile() 71 struct usb_device *usb_dev; in isku_sysfs_set_actual_profile() local 78 usb_dev = interface_to_usbdev(to_usb_interface(dev)); in isku_sysfs_set_actual_profile() 89 retval = isku_set_actual_profile(usb_dev, profile); in isku_sysfs_set_actual_profile() 121 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in isku_sysfs_read() local [all …]
|
| H A D | hid-roccat-lua.c | 32 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in lua_sysfs_read() local 42 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in lua_sysfs_read() 54 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in lua_sysfs_write() local 61 retval = roccat_common2_send(usb_dev, command, buf, real_size); in lua_sysfs_write() 107 static int lua_init_lua_device_struct(struct usb_device *usb_dev, in lua_init_lua_device_struct() argument 118 struct usb_device *usb_dev = interface_to_usbdev(intf); in lua_init_specials() local 129 retval = lua_init_lua_device_struct(usb_dev, lua); in lua_init_specials()
|
| H A D | hid-roccat-common.h | 25 int roccat_common2_receive(struct usb_device *usb_dev, uint report_id, 27 int roccat_common2_send(struct usb_device *usb_dev, uint report_id, 29 int roccat_common2_send_with_status(struct usb_device *usb_dev, 38 int roccat_common2_device_init_struct(struct usb_device *usb_dev,
|
| H A D | hid-thrustmaster.c | 119 struct usb_device *usb_dev; member 256 tm_wheel->usb_dev, in thrustmaster_model_handler() 257 usb_sndctrlpipe(tm_wheel->usb_dev, 0), in thrustmaster_model_handler() 345 tm_wheel->usb_dev = interface_to_usbdev(to_usb_interface(hdev->dev.parent)); in thrustmaster_probe() 352 tm_wheel->usb_dev, in thrustmaster_probe() 353 usb_rcvctrlpipe(tm_wheel->usb_dev, 0), in thrustmaster_probe()
|
| /linux/drivers/usb/core/ |
| H A 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() 131 struct usb_device *usb_dev, int port1) in usbport_trig_port_observed() argument 147 port_np = usb_of_get_device_node(usb_dev, port1); in usbport_trig_port_observed() 185 struct usb_device *usb_dev, in usbport_trig_add_port() argument 200 port->hub = usb_dev; in usbport_trig_add_port() [all …]
|
| H A D | file.c | 150 intf->usb_dev = device_create(&usbmisc_class, &intf->dev, in usb_register_dev() 153 if (IS_ERR(intf->usb_dev)) { in usb_register_dev() 156 retval = PTR_ERR(intf->usb_dev); in usb_register_dev() 190 intf->usb_dev = NULL; in usb_deregister_dev()
|
| H A D | message.c | 101 static int usb_internal_control_msg(struct usb_device *usb_dev, in usb_internal_control_msg() argument 114 usb_fill_control_urb(urb, usb_dev, pipe, (unsigned char *)cmd, data, in usb_internal_control_msg() 312 * @usb_dev: pointer to the usb device to send the message to 335 int usb_interrupt_msg(struct usb_device *usb_dev, unsigned int pipe, in usb_interrupt_msg() argument 338 return usb_bulk_msg(usb_dev, pipe, data, len, actual_length, timeout); in usb_interrupt_msg() 344 * @usb_dev: pointer to the usb device to send the message to 373 int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe, in usb_bulk_msg() argument 379 ep = usb_pipe_endpoint(usb_dev, pipe); in usb_bulk_msg() 390 usb_fill_int_urb(urb, usb_dev, pipe, data, len, in usb_bulk_msg() 394 usb_fill_bulk_urb(urb, usb_dev, pip in usb_bulk_msg() 422 usb_bulk_msg_killable(struct usb_device * usb_dev,unsigned int pipe,void * data,int len,int * actual_length,int timeout) usb_bulk_msg_killable() argument 1883 const struct usb_device *usb_dev; usb_if_uevent() local [all...] |
| /linux/drivers/usb/host/ |
| H A D | ssb-hcd.c | 156 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/sound/usb/caiaq/ |
| H A D | device.c | 207 struct usb_device *usb_dev = cdev->chip.dev; in snd_usb_caiaq_send_command() local 209 if (!usb_dev) in snd_usb_caiaq_send_command() 219 return usb_bulk_msg(usb_dev, usb_sndbulkpipe(usb_dev, 1), in snd_usb_caiaq_send_command() 230 struct usb_device *usb_dev = cdev->chip.dev; in snd_usb_caiaq_send_command_bank() local 232 if (!usb_dev) in snd_usb_caiaq_send_command_bank() 244 return usb_bulk_msg(usb_dev, usb_sndbulkpipe(usb_dev, 1), in snd_usb_caiaq_send_command_bank() 417 static int create_card(struct usb_device *usb_dev, in create_card() argument 440 cdev->chip.dev = usb_get_dev(usb_dev); in create_card() 454 struct usb_device *usb_dev = cdev->chip.dev; init_card() local 554 struct usb_device *usb_dev = interface_to_usbdev(intf); snd_probe() local [all...] |
| /linux/drivers/mmc/host/ |
| H A D | ushc.c | 90 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/drivers/mfd/ |
| H A D | viperboard.c | 62 vb->usb_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()
|
| /linux/drivers/media/usb/as102/ |
| H A D | as102_drv.c | 62 dev_dbg(&dev->bus_adap.usb_dev->dev, in as102_stop_stream() 101 dev_dbg(&dev->bus_adap.usb_dev->dev, in as10x_pid_filter() 109 dev_dbg(&dev->bus_adap.usb_dev->dev, in as10x_pid_filter() 122 dev_dbg(&dev->bus_adap.usb_dev->dev, in as10x_pid_filter() 183 dev_dbg(&bus_adap->usb_dev->dev, in as102_set_tune() 218 dev_dbg(&bus_adap->usb_dev->dev, in as102_get_status() 239 dev_dbg(&bus_adap->usb_dev->dev, in as102_get_stats() 242 dev_dbg(&bus_adap->usb_dev->dev, in as102_get_stats() 287 struct device *dev = &as102_dev->bus_adap.usb_dev->dev; in as102_dvb_register()
|
| /linux/drivers/most/ |
| H A D | most_usb.c | 183 static inline int start_sync_ep(struct usb_device *usb_dev, u16 ep) in start_sync_ep() argument 185 return drci_wr_reg(usb_dev, DRCI_REG_BASE + DRCI_COMMAND + ep * 16, 1); in start_sync_ep() 856 struct usb_device *usb_dev = dci_obj->usb_device; in value_store() local 869 err = drci_wr_reg(usb_dev, dci_obj->reg_addr, val); in value_store() 871 err = start_sync_ep(usb_dev, val); in value_store() 873 err = drci_wr_reg(usb_dev, reg_addr, val); in value_store() 954 struct usb_device *usb_dev = interface_to_usbdev(interface); in hdm_probe() local 955 struct device *dev = &usb_dev->dev; in hdm_probe() 977 mdev->usb_device = usb_dev; in hdm_probe() 995 usb_dev->bus->busnum, in hdm_probe() [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | viperboard_adc.c | 68 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw() 69 usb_sndctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw() 79 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw() 80 usb_rcvctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw()
|
| /linux/drivers/greybus/ |
| H A D | es2.c | 101 struct usb_device *usb_dev; member 149 struct usb_device *udev = es2->usb_dev; in output_sync() 181 struct usb_device *udev = es2->usb_dev; in output_async() 240 dev_err(&es2->usb_dev->dev, in es2_cport_in_enable() 280 dev_err(&es2->usb_dev->dev, in es2_arpc_in_enable() 333 dev_dbg(&es2->usb_dev->dev, in next_free_urb() 394 struct usb_device *udev = es2->usb_dev; in message_send() 545 struct usb_device *udev = es2->usb_dev; in cport_enable() 586 struct device *dev = &es2->usb_dev->dev; in es2_cport_connected() 605 struct device *dev = &es2->usb_dev->dev; in es2_cport_flush() [all …]
|
| /linux/drivers/usb/misc/ |
| H A D | usb-ljca.c | 131 struct usb_device *usb_dev; member 343 ret = usb_bulk_msg(adap->usb_dev, adap->tx_pipe, header, in ljca_send() 759 struct usb_device *usb_dev = interface_to_usbdev(interface); in ljca_probe() local 782 adap->usb_dev = usb_dev; in ljca_probe() 794 adap->rx_pipe = usb_rcvbulkpipe(usb_dev, usb_endpoint_num(ep_in)); in ljca_probe() 795 adap->tx_pipe = usb_sndbulkpipe(usb_dev, usb_endpoint_num(ep_out)); in ljca_probe() 811 usb_fill_bulk_urb(adap->rx_urb, usb_dev, adap->rx_pipe, in ljca_probe() 833 pm_runtime_set_autosuspend_delay(&usb_dev->dev, 10); in ljca_probe() 835 usb_enable_autosuspend(usb_dev); in ljca_probe()
|
| /linux/drivers/usb/class/ |
| H A D | cdc-acm.c | 1212 struct usb_device *usb_dev = interface_to_usbdev(intf); in acm_probe() 1240 data_interface = usb_ifnum_to_if(usb_dev, 1); in acm_probe() 1241 control_interface = usb_ifnum_to_if(usb_dev, 0); in acm_probe() 1247 data_interface = usb_ifnum_to_if(usb_dev, 2); in acm_probe() 1248 control_interface = usb_ifnum_to_if(usb_dev, 1); in acm_probe() 1290 data_interface = usb_ifnum_to_if(usb_dev, data_intf_num); in acm_probe() 1300 control_interface = usb_ifnum_to_if(usb_dev, union_header->bMasterInterface0); in acm_probe() 1301 data_interface = usb_ifnum_to_if(usb_dev, data_intf_num); in acm_probe() 1404 acm->dev = usb_dev; in acm_probe() 1421 acm->in = usb_rcvintpipe(usb_dev, eprea in acm_probe() 1207 struct usb_device *usb_dev = interface_to_usbdev(intf); acm_probe() local [all...] |