/linux/drivers/media/usb/go7007/ |
H A D | go7007-loader.c | 37 struct usb_device *usbdev; in go7007_loader_probe() local 44 usbdev = usb_get_dev(interface_to_usbdev(interface)); in go7007_loader_probe() 45 if (!usbdev) in go7007_loader_probe() 48 if (usbdev->descriptor.bNumConfigurations != 1) { in go7007_loader_probe() 53 vendor = le16_to_cpu(usbdev->descriptor.idVendor); in go7007_loader_probe() 54 product = le16_to_cpu(usbdev->descriptor.idProduct); in go7007_loader_probe() 70 if (request_firmware(&fw, fw1, &usbdev->dev)) { in go7007_loader_probe() 75 ret = cypress_load_firmware(usbdev, fw, CYPRESS_FX2); in go7007_loader_probe() 85 if (request_firmware(&fw, fw2, &usbdev->dev)) { in go7007_loader_probe() 90 ret = cypress_load_firmware(usbdev, fw, CYPRESS_FX2); in go7007_loader_probe() [all …]
|
H A D | go7007-usb.c | 56 struct usb_device *usbdev; member 629 return usb_control_msg(usb->usbdev, in go7007_usb_vendor_request() 630 usb_rcvctrlpipe(usb->usbdev, 0), request, in go7007_usb_vendor_request() 634 return usb_control_msg(usb->usbdev, in go7007_usb_vendor_request() 635 usb_sndctrlpipe(usb->usbdev, 0), request, in go7007_usb_vendor_request() 686 r = usb_control_msg(usb->usbdev, in go7007_usb_ezusb_write_interrupt() 687 usb_rcvctrlpipe(usb->usbdev, 0), 0x14, in go7007_usb_ezusb_write_interrupt() 704 r = usb_control_msg(usb->usbdev, usb_sndctrlpipe(usb->usbdev, 0), 0x12, in go7007_usb_ezusb_write_interrupt() 709 r = usb_control_msg(usb->usbdev, usb_sndctrlpipe(usb->usbdev, 0), in go7007_usb_ezusb_write_interrupt() 735 r = usb_control_msg(usb->usbdev, usb_sndctrlpipe(usb->usbdev, 2), 0x00, in go7007_usb_onboard_write_interrupt() [all …]
|
/linux/sound/usb/line6/ |
H A D | driver.c | 67 usb_fill_int_urb(line6->urb_listen, line6->usbdev, in line6_start_listen() 68 usb_rcvintpipe(line6->usbdev, line6->properties->ep_ctrl_r), in line6_start_listen() 72 usb_fill_bulk_urb(line6->urb_listen, line6->usbdev, in line6_start_listen() 73 usb_rcvbulkpipe(line6->usbdev, line6->properties->ep_ctrl_r), in line6_start_listen() 113 retval = usb_interrupt_msg(line6->usbdev, in line6_send_raw_message() 114 usb_sndintpipe(line6->usbdev, properties->ep_ctrl_w), in line6_send_raw_message() 118 retval = usb_bulk_msg(line6->usbdev, in line6_send_raw_message() 119 usb_sndbulkpipe(line6->usbdev, properties->ep_ctrl_w), in line6_send_raw_message() 163 usb_fill_int_urb(urb, line6->usbdev, in line6_send_raw_message_async_part() 164 usb_sndintpipe(line6->usbdev, line6->properties->ep_ctrl_w), in line6_send_raw_message_async_part() [all …]
|
H A D | toneport.c | 62 static int toneport_send_cmd(struct usb_device *usbdev, int cmd1, int cmd2); 125 static int toneport_send_cmd(struct usb_device *usbdev, int cmd1, int cmd2) in toneport_send_cmd() argument 129 ret = usb_control_msg_send(usbdev, 0, 0x67, in toneport_send_cmd() 135 dev_err(&usbdev->dev, "send failed (error %d)\n", ret); in toneport_send_cmd() 234 toneport_send_cmd(toneport->line6.usbdev, in snd_toneport_source_put() 291 toneport_send_cmd(toneport->line6.usbdev, in toneport_update_led() 306 struct device *dev = &toneport->line6.usbdev->dev; in toneport_init_leds() 364 struct usb_device *usbdev = line6->usbdev; in toneport_setup() local 377 toneport_send_cmd(usbdev, 0x0301, 0x0000); in toneport_setup() 381 toneport_send_cmd(usbdev, in toneport_setup()
|
/linux/drivers/net/usb/ |
H A D | catc.c | 151 struct usb_device *usbdev; member 267 urb->dev = catc->usbdev; in catc_rx_done() 330 catc->rx_urb->dev = catc->usbdev; in catc_irq_done() 332 dev_err(&catc->usbdev->dev, in catc_irq_done() 340 dev_err(&catc->usbdev->dev, in catc_irq_done() 342 catc->usbdev->bus->bus_name, in catc_irq_done() 343 catc->usbdev->devpath, res); in catc_irq_done() 359 catc->tx_urb->dev = catc->usbdev; in catc_tx_run() 362 dev_err(&catc->usbdev->dev, "submit(tx_urb), status %d\n", in catc_tx_run() 464 int retval = usb_control_msg(catc->usbdev, in catc_ctrl_msg() [all …]
|
H A D | cdc-phonet.c | 321 struct usb_device *usbdev = interface_to_usbdev(intf); in usbpn_probe() local 338 data_intf = usb_ifnum_to_if(usbdev, union_header->bSlaveInterface0); in usbpn_probe() 363 pnd->usb = usbdev; in usbpn_probe() 370 pnd->rx_pipe = usb_rcvbulkpipe(usbdev, in usbpn_probe() 372 pnd->tx_pipe = usb_sndbulkpipe(usbdev, in usbpn_probe() 375 pnd->rx_pipe = usb_rcvbulkpipe(usbdev, in usbpn_probe() 377 pnd->tx_pipe = usb_sndbulkpipe(usbdev, in usbpn_probe() 387 usb_set_interface(usbdev, union_header->bSlaveInterface0, in usbpn_probe()
|
/linux/drivers/media/radio/ |
H A D | dsbr100.c | 66 struct usb_device *usbdev; member 87 retval = usb_control_msg(radio->usbdev, in dsbr100_setfreq() 88 usb_rcvctrlpipe(radio->usbdev, 0), in dsbr100_setfreq() 101 dev_err(&radio->usbdev->dev, in dsbr100_setfreq() 110 int retval = usb_control_msg(radio->usbdev, in dsbr100_start() 111 usb_rcvctrlpipe(radio->usbdev, 0), in dsbr100_start() 118 dev_err(&radio->usbdev->dev, in dsbr100_start() 128 int retval = usb_control_msg(radio->usbdev, in dsbr100_stop() 129 usb_rcvctrlpipe(radio->usbdev, 0), in dsbr100_stop() 136 dev_err(&radio->usbdev->dev, in dsbr100_stop() [all …]
|
H A D | radio-shark2.c | 58 struct usb_device *usbdev; member 88 res = usb_interrupt_msg(shark->usbdev, in shark_write_reg() 89 usb_sndintpipe(shark->usbdev, SHARK_OUT_EP), in shark_write_reg() 108 res = usb_interrupt_msg(shark->usbdev, in shark_read_reg() 109 usb_sndintpipe(shark->usbdev, SHARK_OUT_EP), in shark_read_reg() 117 res = usb_interrupt_msg(shark->usbdev, in shark_read_reg() 118 usb_rcvintpipe(shark->usbdev, SHARK_IN_EP), in shark_read_reg() 156 res = usb_interrupt_msg(shark->usbdev, in shark_led_work() 157 usb_sndintpipe(shark->usbdev, in shark_led_work() 317 shark->usbdev = interface_to_usbdev(intf); in usb_shark_probe() [all …]
|
H A D | radio-shark.c | 62 struct usb_device *usbdev; member 94 res = usb_interrupt_msg(shark->usbdev, in shark_write_val() 95 usb_sndintpipe(shark->usbdev, SHARK_OUT_EP), in shark_write_val() 112 res = usb_interrupt_msg(shark->usbdev, in shark_read_val() 113 usb_sndintpipe(shark->usbdev, SHARK_OUT_EP), in shark_read_val() 121 res = usb_interrupt_msg(shark->usbdev, in shark_read_val() 122 usb_rcvintpipe(shark->usbdev, SHARK_IN_EP), in shark_read_val() 172 res = usb_interrupt_msg(shark->usbdev, in shark_led_work() 173 usb_sndintpipe(shark->usbdev, 0x05), in shark_led_work() 351 shark->usbdev = interface_to_usbdev(intf); in usb_shark_probe() [all …]
|
H A D | radio-raremono.c | 105 struct usb_device *usbdev; member 143 ret = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in raremono_cmd_main() 186 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info)); in vidioc_querycap() 222 ret = usb_control_msg(radio->usbdev, usb_rcvctrlpipe(radio->usbdev, 0), in vidioc_g_tuner() 313 radio->usbdev = interface_to_usbdev(intf); in usb_raremono_probe() 326 retval = usb_control_msg(radio->usbdev, in usb_raremono_probe() 327 usb_rcvctrlpipe(radio->usbdev, 0), in usb_raremono_probe()
|
H A D | radio-ma901.c | 73 struct usb_device *usbdev; member 107 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901radio_set_freq() 130 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901radio_set_volume() 153 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901_set_stereo() 193 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info)); in vidioc_querycap() 401 radio->usbdev = interface_to_usbdev(intf); in usb_ma901radio_probe()
|
H A D | radio-keene.c | 48 struct usb_device *usbdev; member 90 ret = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in keene_cmd_main() 119 ret = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in keene_cmd_set() 170 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info)); in vidioc_querycap() 364 radio->usbdev = interface_to_usbdev(intf); in usb_keene_probe()
|
/linux/drivers/i2c/busses/ |
H A D | i2c-cp2615.c | 128 struct usb_device *usbdev = interface_to_usbdev(usbif); in cp2615_i2c_send() local 132 res = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, IOP_EP_OUT), in cp2615_i2c_send() 141 struct usb_device *usbdev = interface_to_usbdev(usbif); in cp2615_i2c_recv() local 150 res = usb_bulk_msg(usbdev, usb_rcvbulkpipe(usbdev, IOP_EP_IN), msg, in cp2615_i2c_recv() 176 struct usb_device *usbdev = interface_to_usbdev(usbif); in cp2615_check_iop() local 182 res = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, IOP_EP_OUT), in cp2615_check_iop() 187 res = usb_bulk_msg(usbdev, usb_rcvbulkpipe(usbdev, IOP_EP_IN), in cp2615_check_iop() 287 struct usb_device *usbdev = interface_to_usbdev(usbif); in cp2615_i2c_probe() local 289 ret = usb_set_interface(usbdev, IOP_IFN, IOP_ALTSETTING); in cp2615_i2c_probe() 301 strscpy(adap->name, usbdev->serial, sizeof(adap->name)); in cp2615_i2c_probe()
|
/linux/drivers/hid/ |
H A D | hid-corsair.c | 151 struct usb_device *usbdev = interface_to_usbdev(usbif); in k90_backlight_get() local 159 ret = usb_control_msg(usbdev, usb_rcvctrlpipe(usbdev, 0), in k90_backlight_get() 207 struct usb_device *usbdev; in k90_backlight_work() local 214 usbdev = interface_to_usbdev(usbif); in k90_backlight_work() 216 ret = usb_control_msg(usbdev, usb_sndctrlpipe(usbdev, 0), in k90_backlight_work() 232 struct usb_device *usbdev; in k90_record_led_work() local 240 usbdev = interface_to_usbdev(usbif); in k90_record_led_work() 247 ret = usb_control_msg(usbdev, usb_sndctrlpipe(usbdev, 0), in k90_record_led_work() 266 struct usb_device *usbdev = interface_to_usbdev(usbif); in k90_show_macro_mode() local 274 ret = usb_control_msg(usbdev, usb_rcvctrlpipe(usbdev, 0), in k90_show_macro_mode() [all …]
|
/linux/drivers/net/wireless/rsi/ |
H A D | rsi_91x_usb.c | 56 status = usb_bulk_msg(dev->usbdev, in rsi_usb_card_write() 57 usb_sndbulkpipe(dev->usbdev, ep), in rsi_usb_card_write() 175 static int rsi_usb_reg_read(struct usb_device *usbdev, in rsi_usb_reg_read() argument 190 status = usb_control_msg(usbdev, in rsi_usb_reg_read() 191 usb_rcvctrlpipe(usbdev, 0), in rsi_usb_reg_read() 220 static int rsi_usb_reg_write(struct usb_device *usbdev, in rsi_usb_reg_write() argument 240 status = usb_control_msg(usbdev, in rsi_usb_reg_write() 241 usb_sndctrlpipe(usbdev, 0), in rsi_usb_reg_write() 345 dev->usbdev, in rsi_rx_urb_submit() 346 usb_rcvbulkpipe(dev->usbdev, in rsi_rx_urb_submit() [all …]
|
/linux/drivers/media/rc/ |
H A D | streamzap.c | 226 struct usb_device *usbdev) in streamzap_init_rc_dev() argument 236 usb_make_path(usbdev, sz->phys, sizeof(sz->phys)); in streamzap_init_rc_dev() 241 usb_to_input_id(usbdev, &rdev->input_id); in streamzap_init_rc_dev() 272 struct usb_device *usbdev = interface_to_usbdev(intf); in streamzap_probe() local 309 pipe = usb_rcvintpipe(usbdev, endpoint->bEndpointAddress); in streamzap_probe() 310 maxp = usb_maxpacket(usbdev, pipe); in streamzap_probe() 320 sz->buf_in = usb_alloc_coherent(usbdev, maxp, GFP_ATOMIC, &sz->dma_in); in streamzap_probe() 331 sz->rdev = streamzap_init_rc_dev(sz, usbdev); in streamzap_probe() 346 usb_fill_int_urb(sz->urb_in, usbdev, pipe, sz->buf_in, in streamzap_probe() 361 usb_free_coherent(usbdev, maxp, sz->buf_in, sz->dma_in); in streamzap_probe() [all …]
|
H A D | ir_toy.c | 58 struct usb_device *usbdev; member 395 struct usb_device *usbdev = interface_to_usbdev(intf); in irtoy_probe() local 441 pipe = usb_rcvbulkpipe(usbdev, ep_in->bEndpointAddress); in irtoy_probe() 442 usb_fill_bulk_urb(urb, usbdev, pipe, irtoy->in, MAX_PACKET, in irtoy_probe() 450 pipe = usb_sndbulkpipe(usbdev, ep_out->bEndpointAddress); in irtoy_probe() 451 usb_fill_bulk_urb(urb, usbdev, pipe, irtoy->out, MAX_PACKET, in irtoy_probe() 455 irtoy->usbdev = usbdev; in irtoy_probe() 481 usb_make_path(usbdev, irtoy->phys, sizeof(irtoy->phys)); in irtoy_probe() 486 usb_to_input_id(usbdev, &rc->input_id); in irtoy_probe()
|
/linux/drivers/input/touchscreen/ |
H A D | sur40.c | 207 struct usb_device *usbdev; member 258 return usb_control_msg(dev->usbdev, usb_rcvctrlpipe(dev->usbdev, 0), in sur40_command() 270 result = usb_control_msg(dev->usbdev, usb_sndctrlpipe(dev->usbdev, 0), in sur40_poke() 277 result = usb_control_msg(dev->usbdev, usb_sndctrlpipe(dev->usbdev, 0), in sur40_poke() 284 result = usb_control_msg(dev->usbdev, usb_sndctrlpipe(dev->usbdev, 0), in sur40_poke() 304 result = usb_control_msg(dev->usbdev, usb_sndctrlpipe(dev->usbdev, 0), in sur40_set_preprocessor() 311 result = usb_control_msg(dev->usbdev, usb_sndctrlpipe(dev->usbdev, 0), in sur40_set_preprocessor() 469 result = usb_bulk_msg(sur40->usbdev, in sur40_poll() 470 usb_rcvbulkpipe(sur40->usbdev, sur40->bulk_in_epaddr), in sur40_poll() 554 result = usb_bulk_msg(sur40->usbdev, in sur40_process_video() [all …]
|
/linux/drivers/media/usb/au0828/ |
H A D | au0828-core.c | 70 if (dev->usbdev) { in send_control_msg() 73 status = usb_control_msg(dev->usbdev, in send_control_msg() 74 usb_sndctrlpipe(dev->usbdev, 0), in send_control_msg() 97 if (dev->usbdev) { in recv_control_msg() 98 status = usb_control_msg(dev->usbdev, in recv_control_msg() 99 usb_rcvctrlpipe(dev->usbdev, 0), in recv_control_msg() 183 dev->usbdev = NULL; in au0828_usb_disconnect() 260 dev_err(&dev->usbdev->dev, in au0828_media_graph_notify() 650 struct usb_device *usbdev = interface_to_usbdev(interface); in au0828_usb_probe() local 658 le16_to_cpu(usbdev->descriptor.idVendor), in au0828_usb_probe() [all …]
|
/linux/drivers/media/radio/si4713/ |
H A D | radio-usb-si4713.c | 49 struct usb_device *usbdev; member 72 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info)); in vidioc_querycap() 159 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in si4713_send_startup_command() 167 retval = usb_control_msg(radio->usbdev, usb_rcvctrlpipe(radio->usbdev, 0), in si4713_send_startup_command() 305 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in send_command() 319 retval = usb_control_msg(radio->usbdev, in si4713_i2c_read() 320 usb_rcvctrlpipe(radio->usbdev, 0), in si4713_i2c_read() 404 radio->i2c_adapter.dev.parent = &radio->usbdev->dev; in si4713_register_i2c_adapter() 435 radio->usbdev = interface_to_usbdev(intf); in usb_si4713_probe()
|
/linux/drivers/usb/core/ |
H A D | devices.c | 392 struct usb_device *usbdev, struct usb_bus *bus, in usb_device_dump() argument 415 if (usbdev->parent && usbdev->parent->devnum != -1) in usb_device_dump() 416 parent_devnum = usbdev->parent->devnum; in usb_device_dump() 421 switch (usbdev->speed) { in usb_device_dump() 438 index, count, usbdev->devnum, in usb_device_dump() 439 speed, usbdev->maxchild); in usb_device_dump() 451 if (usbdev->speed == USB_SPEED_HIGH || in usb_device_dump() 452 usbdev->speed >= USB_SPEED_SUPER) in usb_device_dump() 470 usbdev); in usb_device_dump() 496 usb_hub_for_each_child(usbdev, chix, childdev) { in usb_device_dump()
|
/linux/drivers/input/tablet/ |
H A D | pegasus_notetaker.c | 78 struct usb_device *usbdev; member 106 result = usb_control_msg(pegasus->usbdev, in pegasus_control_msg() 107 usb_sndctrlpipe(pegasus->usbdev, 0), in pegasus_control_msg() 117 dev_err(&pegasus->usbdev->dev, "control msg error: %d\n", in pegasus_control_msg() 170 dev_warn_once(&pegasus->usbdev->dev, in pegasus_parse_packet() 178 struct usb_device *dev = pegasus->usbdev; in pegasus_irq() 184 usb_mark_last_busy(pegasus->usbdev); in pegasus_irq() 213 dev_err(&pegasus->usbdev->dev, "pegasus_set_mode error: %d\n", in pegasus_init() 223 pegasus->irq->dev = pegasus->usbdev; in __pegasus_open() 302 pegasus->usbdev = dev; in pegasus_probe()
|
/linux/net/caif/ |
H A D | caif_usb.c | 135 struct usb_device *usbdev; in cfusbl_device_notify() local 147 usbdev = usbnet->udev; in cfusbl_device_notify() 150 le16_to_cpu(usbdev->descriptor.idVendor), in cfusbl_device_notify() 151 le16_to_cpu(usbdev->descriptor.idProduct)); in cfusbl_device_notify() 154 if (!(le16_to_cpu(usbdev->descriptor.idVendor) == STE_USB_VID && in cfusbl_device_notify() 155 le16_to_cpu(usbdev->descriptor.idProduct) == STE_USB_PID_CAIF)) in cfusbl_device_notify()
|
/linux/drivers/hid/usbhid/ |
H A D | usbmouse.c | 41 struct usb_device *usbdev; member 82 dev_err(&mouse->usbdev->dev, in usb_mouse_irq() 84 mouse->usbdev->bus->bus_name, in usb_mouse_irq() 85 mouse->usbdev->devpath, status); in usb_mouse_irq() 92 mouse->irq->dev = mouse->usbdev; in usb_mouse_open() 141 mouse->usbdev = dev; in usb_mouse_probe()
|
/linux/drivers/media/radio/si470x/ |
H A D | radio-si470x-usb.c | 203 retval = usb_control_msg(radio->usbdev, in si470x_get_report() 204 usb_rcvctrlpipe(radio->usbdev, 0), in si470x_get_report() 226 retval = usb_control_msg(radio->usbdev, in si470x_set_report() 227 usb_sndctrlpipe(radio->usbdev, 0), in si470x_set_report() 464 if (radio->int_in_running && radio->usbdev) { in si470x_int_in_callback() 515 usb_make_path(radio->usbdev, capability->bus_info, in si470x_vidioc_querycap() 526 usb_fill_int_urb(radio->int_in_urb, radio->usbdev, in si470x_start_usb() 527 usb_rcvintpipe(radio->usbdev, in si470x_start_usb() 583 radio->usbdev = interface_to_usbdev(intf); in si470x_usb_driver_probe() 635 retval = usb_control_msg(radio->usbdev, in si470x_usb_driver_probe() [all …]
|