/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/ |
H A D | af9005.c | 558 static int af9005_boot_packet(struct usb_device *udev, int type, u8 *reply, in af9005_boot_packet() argument 608 ret = usb_bulk_msg(udev, in af9005_boot_packet() 609 usb_sndbulkpipe(udev, 0x02), in af9005_boot_packet() 619 ret = usb_bulk_msg(udev, in af9005_boot_packet() 620 usb_rcvbulkpipe(udev, 0x01), buf, 9, &act_len, 2000); in af9005_boot_packet() 713 static int af9005_download_firmware(struct usb_device *udev, const struct firmware *fw) in af9005_download_firmware() argument 724 ret = af9005_boot_packet(udev, FW_CONFIG, &reply, buf, in af9005_download_firmware() 741 ret = usb_bulk_msg(udev, in af9005_download_firmware() 742 usb_sndbulkpipe(udev, 0x02), in af9005_download_firmware() 749 ret = af9005_boot_packet(udev, FW_CONFIR in af9005_download_firmware() 814 struct usb_device *udev = adap->dev->udev; af9005_frontend_attach() local 962 af9005_identify_state(struct usb_device *udev, const struct dvb_usb_device_properties *props, const struct dvb_usb_device_description **desc, int *cold) af9005_identify_state() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb/ |
H A D | af9005.c | 558 static int af9005_boot_packet(struct usb_device *udev, int type, u8 *reply, in af9005_boot_packet() argument 608 ret = usb_bulk_msg(udev, in af9005_boot_packet() 609 usb_sndbulkpipe(udev, 0x02), in af9005_boot_packet() 619 ret = usb_bulk_msg(udev, in af9005_boot_packet() 620 usb_rcvbulkpipe(udev, 0x01), buf, 9, &act_len, 2000); in af9005_boot_packet() 713 static int af9005_download_firmware(struct usb_device *udev, const struct firmware *fw) in af9005_download_firmware() argument 724 ret = af9005_boot_packet(udev, FW_CONFIG, &reply, buf, in af9005_download_firmware() 741 ret = usb_bulk_msg(udev, in af9005_download_firmware() 742 usb_sndbulkpipe(udev, 0x02), in af9005_download_firmware() 749 ret = af9005_boot_packet(udev, FW_CONFIR in af9005_download_firmware() 814 struct usb_device *udev = adap->dev->udev; af9005_frontend_attach() local 962 af9005_identify_state(struct usb_device *udev, const struct dvb_usb_device_properties *props, const struct dvb_usb_device_description **desc, int *cold) af9005_identify_state() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/misc/ |
H A D | iowarrior.c | 75 struct usb_device *udev; /* save off the usb device pointer */ member 420 buf = usb_alloc_coherent(dev->udev, dev->report_size, in iowarrior_write() 428 usb_fill_int_urb(int_out_urb, dev->udev, in iowarrior_write() 429 usb_sndintpipe(dev->udev, in iowarrior_write() 460 usb_free_coherent(dev->udev, dev->report_size, buf, in iowarrior_write() 533 io_res = usb_get_report(dev->udev, in iowarrior_ioctl() 549 struct usb_config_descriptor *cfg_descriptor = &dev->udev->actconfig->desc; in iowarrior_ioctl() 553 info.vendor = le16_to_cpu(dev->udev->descriptor.idVendor); in iowarrior_ioctl() 555 info.revision = le16_to_cpu(dev->udev->descriptor.bcdDevice); in iowarrior_ioctl() 558 info.speed = dev->udev in iowarrior_ioctl() 748 struct usb_device *udev = interface_to_usbdev(interface); iowarrior_probe() local [all...] |
/third_party/eudev/src/libudev/ |
H A D | libudev-util.c | 52 int util_resolve_subsys_kernel(struct udev *udev, const char *string, in util_resolve_subsys_kernel() argument 87 dev = udev_device_new_from_subsystem_sysname(udev, subsys, sysname); in util_resolve_subsys_kernel() 114 ssize_t util_get_sys_core_link_value(struct udev *udev, const char *slink, const char *syspath, char *value, size_t size) in util_get_sys_core_link_value() argument 133 int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size) in util_resolve_sys_link() argument
|
/kernel/linux/linux-5.10/drivers/net/can/usb/ |
H A D | esd_usb2.c | 190 struct usb_device *udev; member 400 dev_info(dev->udev->dev.parent, in esd_usb2_read_bulk_callback() 413 dev_err(dev->udev->dev.parent, "format error\n"); in esd_usb2_read_bulk_callback() 422 dev_err(dev->udev->dev.parent, "format error\n"); in esd_usb2_read_bulk_callback() 434 dev_err(dev->udev->dev.parent, "format error\n"); in esd_usb2_read_bulk_callback() 440 usb_fill_bulk_urb(urb, dev->udev, usb_rcvbulkpipe(dev->udev, 1), in esd_usb2_read_bulk_callback() 451 dev_err(dev->udev->dev.parent, in esd_usb2_read_bulk_callback() 526 return usb_bulk_msg(dev->udev, in esd_usb2_send_msg() 527 usb_sndbulkpipe(dev->udev, in esd_usb2_send_msg() [all...] |
/kernel/linux/linux-6.6/drivers/net/can/usb/ |
H A D | esd_usb.c | 269 struct usb_device *udev; member 498 dev_info(dev->udev->dev.parent, in esd_usb_read_bulk_callback() 511 dev_err(dev->udev->dev.parent, "format error\n"); in esd_usb_read_bulk_callback() 520 dev_err(dev->udev->dev.parent, "format error\n"); in esd_usb_read_bulk_callback() 532 dev_err(dev->udev->dev.parent, "format error\n"); in esd_usb_read_bulk_callback() 538 usb_fill_bulk_urb(urb, dev->udev, usb_rcvbulkpipe(dev->udev, 1), in esd_usb_read_bulk_callback() 549 dev_err(dev->udev->dev.parent, in esd_usb_read_bulk_callback() 620 return usb_bulk_msg(dev->udev, in esd_usb_send_msg() 621 usb_sndbulkpipe(dev->udev, in esd_usb_send_msg() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/ |
H A D | usb.c | 36 static int _usbctrl_vendorreq_async_write(struct usb_device *udev, u8 request, in _usbctrl_vendorreq_async_write() argument 51 pipe = usb_sndctrlpipe(udev, 0); /* write_out */ in _usbctrl_vendorreq_async_write() 78 usb_fill_control_urb(urb, udev, pipe, in _usbctrl_vendorreq_async_write() 90 static int _usbctrl_vendorreq_sync_read(struct usb_device *udev, u8 request, in _usbctrl_vendorreq_sync_read() argument 100 pipe = usb_rcvctrlpipe(udev, 0); /* read_in */ in _usbctrl_vendorreq_sync_read() 104 status = usb_control_msg(udev, pipe, request, reqtype, value, in _usbctrl_vendorreq_sync_read() 125 struct usb_device *udev = to_usb_device(dev); in _usb_read_sync() local 141 _usbctrl_vendorreq_sync_read(udev, request, wvalue, index, data, len); in _usb_read_sync() 160 static void _usb_write_async(struct usb_device *udev, u32 addr, u32 val, in _usb_write_async() argument 174 ret = _usbctrl_vendorreq_async_write(udev, reques in _usb_write_async() 992 struct usb_device *udev; rtl_usb_probe() local [all...] |
/third_party/eudev/src/udev/ |
H A D | udev-builtin-path_id.c | 33 #include "udev.h" 93 struct udev *udev = udev_device_get_udev(parent); in handle_scsi_fibre_channel() local 103 fcdev = udev_device_new_from_subsystem_sysname(udev, "fc_transport", udev_device_get_sysname(targetdev)); in handle_scsi_fibre_channel() 122 struct udev *udev = udev_device_get_udev(parent); in handle_scsi_sas_wide_port() local 137 sasdev = udev_device_new_from_subsystem_sysname(udev, "sas_device", in handle_scsi_sas_wide_port() 159 struct udev *udev = udev_device_get_udev(parent); in handle_scsi_sas() local 181 target_sasdev = udev_device_new_from_subsystem_sysname(udev, in handle_scsi_sas() 252 struct udev *udev = udev_device_get_udev(parent); handle_scsi_iscsi() local [all...] |
/kernel/linux/linux-5.10/drivers/net/usb/ |
H A D | cdc_subset.c | 78 struct usb_device *udev = dev->udev; in m5632_recover() local 82 r = usb_lock_device_for_reset(udev, intf); in m5632_recover() 86 usb_reset_device(udev); in m5632_recover() 87 usb_unlock_device(udev); in m5632_recover()
|
/kernel/linux/linux-6.6/drivers/net/wireless/purelifi/plfxlc/ |
H A D | chip.c | 46 struct usb_device *udev = interface_to_usbdev(chip->usb.intf); in plfxlc_chip_init_hw() local 49 le16_to_cpu(udev->descriptor.idVendor), in plfxlc_chip_init_hw() 50 le16_to_cpu(udev->descriptor.idProduct), in plfxlc_chip_init_hw() 51 le16_to_cpu(udev->descriptor.bcdDevice), in plfxlc_chip_init_hw() 53 plfxlc_speed(udev->speed)); in plfxlc_chip_init_hw()
|
/kernel/linux/linux-6.6/drivers/net/usb/ |
H A D | cdc_subset.c | 78 struct usb_device *udev = dev->udev; in m5632_recover() local 82 r = usb_lock_device_for_reset(udev, intf); in m5632_recover() 86 usb_reset_device(udev); in m5632_recover() 87 usb_unlock_device(udev); in m5632_recover()
|
/kernel/linux/linux-5.10/drivers/bluetooth/ |
H A D | bpa10x.c | 38 struct usb_device *udev; member 140 pipe = usb_rcvintpipe(data->udev, 0x81); in bpa10x_submit_intr_urb() 142 usb_fill_int_urb(urb, data->udev, pipe, buf, size, in bpa10x_submit_intr_urb() 180 pipe = usb_rcvbulkpipe(data->udev, 0x82); in bpa10x_submit_bulk_urb() 182 usb_fill_bulk_urb(urb, data->udev, pipe, in bpa10x_submit_bulk_urb() 298 pipe = usb_sndctrlpipe(data->udev, 0x00); in bpa10x_send_frame() 300 usb_fill_control_urb(urb, data->udev, pipe, (void *) dr, in bpa10x_send_frame() 307 pipe = usb_sndbulkpipe(data->udev, 0x02); in bpa10x_send_frame() 309 usb_fill_bulk_urb(urb, data->udev, pipe, in bpa10x_send_frame() 316 pipe = usb_sndbulkpipe(data->udev, in bpa10x_send_frame() [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/b2c2/ |
H A D | flexcop-usb.c | 82 ret = usb_control_msg(fc_usb->udev, in flexcop_usb_readwrite_dw() 151 ret = usb_control_msg(fc_usb->udev, pipe, in flexcop_usb_v8_memory_req() 278 ret = usb_control_msg(fc_usb->udev, pipe, in flexcop_usb_i2c_req() 422 usb_free_coherent(fc_usb->udev, fc_usb->buffer_size, in flexcop_usb_transfer_exit() 439 fc_usb->iso_buffer = usb_alloc_coherent(fc_usb->udev, in flexcop_usb_transfer_init() 464 urb->dev = fc_usb->udev; in flexcop_usb_transfer_init() 506 int ret = usb_set_interface(fc_usb->udev, 0, 1); in flexcop_usb_init() 518 switch (fc_usb->udev->speed) { in flexcop_usb_init() 546 struct usb_device *udev = interface_to_usbdev(intf); in flexcop_usb_probe() local 571 fc->dev = &udev in flexcop_usb_probe() [all...] |
H A D | flexcop-usb.h | 16 #define B2C2_USB_CTRL_PIPE_IN usb_rcvctrlpipe(fc_usb->udev, 0) 17 #define B2C2_USB_CTRL_PIPE_OUT usb_sndctrlpipe(fc_usb->udev, 0) 18 #define B2C2_USB_DATA_PIPE usb_rcvisocpipe(fc_usb->udev, 1) 21 struct usb_device *udev; member
|
/kernel/linux/linux-6.6/drivers/bluetooth/ |
H A D | bpa10x.c | 38 struct usb_device *udev; member 140 pipe = usb_rcvintpipe(data->udev, 0x81); in bpa10x_submit_intr_urb() 142 usb_fill_int_urb(urb, data->udev, pipe, buf, size, in bpa10x_submit_intr_urb() 180 pipe = usb_rcvbulkpipe(data->udev, 0x82); in bpa10x_submit_bulk_urb() 182 usb_fill_bulk_urb(urb, data->udev, pipe, in bpa10x_submit_bulk_urb() 298 pipe = usb_sndctrlpipe(data->udev, 0x00); in bpa10x_send_frame() 300 usb_fill_control_urb(urb, data->udev, pipe, (void *) dr, in bpa10x_send_frame() 307 pipe = usb_sndbulkpipe(data->udev, 0x02); in bpa10x_send_frame() 309 usb_fill_bulk_urb(urb, data->udev, pipe, in bpa10x_send_frame() 316 pipe = usb_sndbulkpipe(data->udev, in bpa10x_send_frame() [all...] |
/kernel/linux/linux-5.10/drivers/input/misc/ |
H A D | yealink.c | 87 struct usb_device *udev; /* usb device */ member 256 return usb_control_msg(yld->udev, in yealink_cmd() 257 usb_sndctrlpipe(yld->udev, 0), in yealink_cmd() 832 usb_free_coherent(yld->udev, USB_PKT_LEN, yld->ctl_data, yld->ctl_dma); in usb_cleanup() 833 usb_free_coherent(yld->udev, USB_PKT_LEN, yld->irq_data, yld->irq_dma); in usb_cleanup() 854 struct usb_device *udev = interface_to_usbdev (intf); in usb_probe() local 875 yld->udev = udev; in usb_probe() 883 yld->irq_data = usb_alloc_coherent(udev, USB_PKT_LEN, in usb_probe() 888 yld->ctl_data = usb_alloc_coherent(udev, USB_PKT_LE in usb_probe() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/tiny/ |
H A D | gm12u320.c | 48 DRM_DEV_ERROR(&gm12u320->udev->dev, fmt, ##__VA_ARGS__) 89 struct usb_device *udev; member 206 ret = usb_bulk_msg(gm12u320->udev, in gm12u320_misc_request() 207 usb_sndbulkpipe(gm12u320->udev, MISC_SND_EPT), in gm12u320_misc_request() 215 ret = usb_bulk_msg(gm12u320->udev, in gm12u320_misc_request() 216 usb_rcvbulkpipe(gm12u320->udev, MISC_RCV_EPT), in gm12u320_misc_request() 226 ret = usb_bulk_msg(gm12u320->udev, in gm12u320_misc_request() 227 usb_rcvbulkpipe(gm12u320->udev, MISC_RCV_EPT), in gm12u320_misc_request() 354 ret = usb_bulk_msg(gm12u320->udev, in gm12u320_fb_update_work() 355 usb_sndbulkpipe(gm12u320->udev, DATA_SND_EP in gm12u320_fb_update_work() [all...] |
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | yealink.c | 87 struct usb_device *udev; /* usb device */ member 256 return usb_control_msg(yld->udev, in yealink_cmd() 257 usb_sndctrlpipe(yld->udev, 0), in yealink_cmd() 832 usb_free_coherent(yld->udev, USB_PKT_LEN, yld->ctl_data, yld->ctl_dma); in usb_cleanup() 833 usb_free_coherent(yld->udev, USB_PKT_LEN, yld->irq_data, yld->irq_dma); in usb_cleanup() 854 struct usb_device *udev = interface_to_usbdev (intf); in usb_probe() local 875 yld->udev = udev; in usb_probe() 883 yld->irq_data = usb_alloc_coherent(udev, USB_PKT_LEN, in usb_probe() 888 yld->ctl_data = usb_alloc_coherent(udev, USB_PKT_LE in usb_probe() [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/uvc/ |
H A D | uvc_debugfs.c | 75 struct usb_device *udev = stream->dev->udev; in uvc_debugfs_init_stream() local 81 snprintf(dir_name, sizeof(dir_name), "%u-%u-%u", udev->bus->busnum, in uvc_debugfs_init_stream() 82 udev->devnum, stream->intfnum); in uvc_debugfs_init_stream()
|
/kernel/linux/linux-6.6/drivers/media/usb/b2c2/ |
H A D | flexcop-usb.h | 16 #define B2C2_USB_CTRL_PIPE_IN usb_rcvctrlpipe(fc_usb->udev, 0) 17 #define B2C2_USB_CTRL_PIPE_OUT usb_sndctrlpipe(fc_usb->udev, 0) 18 #define B2C2_USB_DATA_PIPE usb_rcvisocpipe(fc_usb->udev, 1) 21 struct usb_device *udev; member
|
/kernel/linux/linux-6.6/drivers/media/usb/uvc/ |
H A D | uvc_debugfs.c | 75 struct usb_device *udev = stream->dev->udev; in uvc_debugfs_init_stream() local 81 snprintf(dir_name, sizeof(dir_name), "%u-%u-%u", udev->bus->busnum, in uvc_debugfs_init_stream() 82 udev->devnum, stream->intfnum); in uvc_debugfs_init_stream()
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
H A D | hcd.c | 1616 struct usb_device *udev = urb->dev; in usb_hcd_unlink_urb() local 1628 usb_get_dev(udev); in usb_hcd_unlink_urb() 1637 dev_dbg(&udev->dev, "hcd_unlink_urb %pK fail %d\n", in usb_hcd_unlink_urb() 1639 usb_put_dev(udev); in usb_hcd_unlink_urb() 1783 void usb_hcd_flush_endpoint(struct usb_device *udev, in usb_hcd_flush_endpoint() argument 1792 hcd = bus_to_hcd(udev->bus); in usb_hcd_flush_endpoint() 1844 * @udev: target &usb_device 1862 int usb_hcd_alloc_bandwidth(struct usb_device *udev, in usb_hcd_alloc_bandwidth() argument 1873 hcd = bus_to_hcd(udev->bus); in usb_hcd_alloc_bandwidth() 1880 ep = udev in usb_hcd_alloc_bandwidth() 1984 usb_hcd_disable_endpoint(struct usb_device *udev, struct usb_host_endpoint *ep) usb_hcd_disable_endpoint() argument 2003 usb_hcd_reset_endpoint(struct usb_device *udev, struct usb_host_endpoint *ep) usb_hcd_reset_endpoint() argument 2120 usb_hcd_synchronize_unlinks(struct usb_device *udev) usb_hcd_synchronize_unlinks() argument 2129 usb_hcd_get_frame_number(struct usb_device *udev) usb_hcd_get_frame_number() argument 2227 struct usb_device *udev; hcd_bus_resume() local 2268 struct usb_device *udev = hcd->self.root_hub; hcd_resume_work() local [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/zr364xx/ |
H A D | zr364xx.c | 157 struct usb_device *udev; /* save off the usb device pointer */ member 194 static int send_control_msg(struct usb_device *udev, u8 request, u16 value, in send_control_msg() argument 203 status = usb_control_msg(udev, in send_control_msg() 204 usb_sndctrlpipe(udev, 0), in send_control_msg() 585 dev_info(&cam->udev->dev, in zr364xx_read_video_callback() 619 dev_info(&cam->udev->dev, in zr364xx_read_video_callback() 689 if (cam->udev->product) in zr364xx_vidioc_querycap() 690 strscpy(cap->card, cam->udev->product, sizeof(cap->card)); in zr364xx_vidioc_querycap() 691 strscpy(cap->bus_info, dev_name(&cam->udev->dev), in zr364xx_vidioc_querycap() 730 send_control_msg(cam->udev, in zr364xx_s_ctrl() 1222 struct usb_device *udev; zr364xx_close() local 1405 struct usb_device *udev = interface_to_usbdev(intf); zr364xx_probe() local [all...] |
/third_party/pulseaudio/src/modules/ |
H A D | module-udev-detect.c | 76 struct udev* udev; member 122 struct udev *udev; in card_get_sysattr() local 130 if (!(udev = udev_new())) { in card_get_sysattr() 131 pa_log_error("Failed to allocate udev context."); in card_get_sysattr() 136 card = udev_device_new_from_syspath(udev, t); in card_get_sysattr() 152 if (udev) in card_get_sysattr() 153 udev_unref(udev); in card_get_sysattr() 418 "card_properties=\"module-udev in card_changed() [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb-v2/ |
H A D | anysee.c | 47 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, slen, state->buf); in anysee_ctrl_msg() 70 ret = usb_bulk_msg(d->udev, usb_rcvbulkpipe(d->udev, in anysee_ctrl_msg() 74 dev_dbg(&d->udev->dev, in anysee_ctrl_msg() 78 dev_dbg(&d->udev->dev, "%s: <<< %*ph\n", __func__, in anysee_ctrl_msg() 82 dev_dbg(&d->udev->dev, in anysee_ctrl_msg() 90 dev_err(&d->udev->dev, "%s: recv bulk message failed=%d\n", in anysee_ctrl_msg() 109 dev_dbg(&d->udev->dev, "%s: reg=%04x val=%02x\n", __func__, reg, *val); in anysee_read_reg() 116 dev_dbg(&d->udev->dev, "%s: reg=%04x val=%02x\n", __func__, reg, val); in anysee_write_reg() 173 dev_dbg(&fe_to_d(fe)->udev in anysee_streaming_ctrl() [all...] |