Home
last modified time | relevance | path

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

123

/linux-5.19.10/drivers/net/wireless/
Drndis_wlan.c407 struct usbnet *usbdev; member
831 static int rndis_reset(struct usbnet *usbdev) in rndis_reset() argument
833 struct rndis_wlan_private *priv = get_rndis_wlan_priv(usbdev); in rndis_reset()
844 ret = rndis_command(usbdev, (void *)reset, CONTROL_BUFFER_SIZE); in rndis_reset()
955 static int set_infra_mode(struct usbnet *usbdev, int mode);
956 static void restore_keys(struct usbnet *usbdev);
957 static int rndis_check_bssid_list(struct usbnet *usbdev, u8 *match_bssid,
960 static int rndis_start_bssid_list_scan(struct usbnet *usbdev) in rndis_start_bssid_list_scan() argument
966 return rndis_set_oid(usbdev, RNDIS_OID_802_11_BSSID_LIST_SCAN, &tmp, in rndis_start_bssid_list_scan()
970 static int set_essid(struct usbnet *usbdev, struct ndis_80211_ssid *ssid) in set_essid() argument
[all …]
/linux-5.19.10/drivers/usb/misc/
Duss720.c48 struct usb_device *usbdev; member
72 dev_dbg(&priv->usbdev->dev, "destroying priv datastructure\n"); in destroy_priv()
73 usb_put_dev(priv->usbdev); in destroy_priv()
74 priv->usbdev = NULL; in destroy_priv()
112 dev_dbg(&priv->usbdev->dev, "async_complete regs %7ph\n", in async_complete()
127 struct usb_device *usbdev; in submit_async_request() local
134 usbdev = priv->usbdev; in submit_async_request()
135 if (!usbdev) in submit_async_request()
160 …usb_fill_control_urb(rq->urb, usbdev, (requesttype & 0x80) ? usb_rcvctrlpipe(usbdev, 0) : usb_sndc… in submit_async_request()
172 dev_err(&usbdev->dev, "submit_async_request submit_urb failed with %d\n", ret); in submit_async_request()
[all …]
/linux-5.19.10/drivers/media/usb/go7007/
Dgo7007-loader.c37 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 …]
Dgo7007-usb.c56 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-5.19.10/sound/usb/line6/
Ddriver.c67 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 …]
Dtoneport.c62 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-5.19.10/drivers/media/radio/
Ddsbr100.c66 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 …]
Dradio-shark2.c58 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()
307 shark->usbdev = interface_to_usbdev(intf); in usb_shark_probe()
[all …]
Dradio-shark.c62 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()
341 shark->usbdev = interface_to_usbdev(intf); in usb_shark_probe()
[all …]
Dradio-raremono.c105 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()
Dradio-ma901.c73 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()
/linux-5.19.10/drivers/net/usb/
Dcatc.c151 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 …]
/linux-5.19.10/drivers/i2c/busses/
Di2c-cp2615.c128 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 strncpy(adap->name, usbdev->serial, sizeof(adap->name) - 1); in cp2615_i2c_probe()
/linux-5.19.10/drivers/staging/gdm724x/
Dgdm_mux.c275 struct usb_device *usbdev = mux_dev->usbdev; in gdm_mux_recv() local
281 if (!usbdev) { in gdm_mux_recv()
298 usbdev, in gdm_mux_recv()
299 usb_rcvbulkpipe(usbdev, 0x86), in gdm_mux_recv()
321 usb_mark_last_busy(usbdev); in gdm_mux_recv()
346 struct usb_device *usbdev = mux_dev->usbdev; in gdm_mux_send() local
386 usbdev, in gdm_mux_send()
387 usb_sndbulkpipe(usbdev, 5), in gdm_mux_send()
400 usb_mark_last_busy(usbdev); in gdm_mux_send()
409 struct usb_device *usbdev = mux_dev->usbdev; in gdm_mux_send_control() local
[all …]
Dgdm_usb.c60 struct usb_device *usbdev = udev->usbdev; in request_mac_address() local
72 ret = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 2), hci, 5, in request_mac_address()
463 struct usb_device *usbdev = udev->usbdev; in gdm_usb_rcv_complete() local
480 usb_mark_last_busy(usbdev); in gdm_usb_rcv_complete()
490 struct usb_device *usbdev = udev->usbdev; in gdm_usb_recv() local
497 if (!udev->usbdev) { in gdm_usb_recv()
515 usbdev, in gdm_usb_recv()
516 usb_rcvbulkpipe(usbdev, 0x83), in gdm_usb_recv()
566 static int send_tx_packet(struct usb_device *usbdev, struct usb_tx *t, u32 len) in send_tx_packet() argument
574 usbdev, in send_tx_packet()
[all …]
/linux-5.19.10/drivers/hid/
Dhid-corsair.c151 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-5.19.10/drivers/media/rc/
Dstreamzap.c226 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 …]
/linux-5.19.10/drivers/net/wireless/rsi/
Drsi_91x_usb.c56 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-5.19.10/drivers/input/touchscreen/
Dsur40.c207 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-5.19.10/drivers/media/radio/si4713/
Dradio-usb-si4713.c49 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-5.19.10/drivers/media/usb/au0828/
Dau0828-core.c70 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()
655 struct usb_device *usbdev = interface_to_usbdev(interface); in au0828_usb_probe() local
663 le16_to_cpu(usbdev->descriptor.idVendor), in au0828_usb_probe()
[all …]
/linux-5.19.10/drivers/usb/core/
Ddevices.c392 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()
439 index, count, usbdev->devnum, in usb_device_dump()
440 speed, usbdev->maxchild); in usb_device_dump()
452 if (usbdev->speed == USB_SPEED_HIGH || in usb_device_dump()
453 usbdev->speed >= USB_SPEED_SUPER) in usb_device_dump()
471 usbdev); in usb_device_dump()
497 usb_hub_for_each_child(usbdev, chix, childdev) { in usb_device_dump()
/linux-5.19.10/drivers/input/tablet/
Dpegasus_notetaker.c78 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()
227 pegasus->irq->dev = pegasus->usbdev; in pegasus_open()
294 pegasus->usbdev = dev; in pegasus_probe()
/linux-5.19.10/net/caif/
Dcaif_usb.c134 struct usb_device *usbdev; in cfusbl_device_notify() local
143 usbdev = usbnet->udev; in cfusbl_device_notify()
146 le16_to_cpu(usbdev->descriptor.idVendor), in cfusbl_device_notify()
147 le16_to_cpu(usbdev->descriptor.idProduct)); in cfusbl_device_notify()
150 if (!(le16_to_cpu(usbdev->descriptor.idVendor) == STE_USB_VID && in cfusbl_device_notify()
151 le16_to_cpu(usbdev->descriptor.idProduct) == STE_USB_PID_CAIF)) in cfusbl_device_notify()
/linux-5.19.10/drivers/hid/usbhid/
Dusbmouse.c41 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()

123