/Linux-v4.19/drivers/usb/core/ |
D | hub.c | 108 static int usb_reset_and_verify_device(struct usb_device *udev); 133 int usb_device_supports_lpm(struct usb_device *udev) in usb_device_supports_lpm() argument 136 if (udev->quirks & USB_QUIRK_NO_LPM) in usb_device_supports_lpm() 142 if (udev->speed == USB_SPEED_HIGH || udev->speed == USB_SPEED_FULL) { in usb_device_supports_lpm() 143 if (udev->bos->ext_cap && in usb_device_supports_lpm() 145 le32_to_cpu(udev->bos->ext_cap->bmAttributes))) in usb_device_supports_lpm() 155 if (!udev->bos->ss_cap) { in usb_device_supports_lpm() 156 dev_info(&udev->dev, "No LPM exit latency info found, disabling LPM.\n"); in usb_device_supports_lpm() 160 if (udev->bos->ss_cap->bU1devExitLat == 0 && in usb_device_supports_lpm() 161 udev->bos->ss_cap->bU2DevExitLat == 0) { in usb_device_supports_lpm() [all …]
|
D | sysfs.c | 27 struct usb_device *udev; \ 31 udev = to_usb_device(dev); \ 32 rc = usb_lock_device_interruptible(udev); \ 35 actconfig = udev->actconfig; \ 39 usb_unlock_device(udev); \ 53 struct usb_device *udev; in bMaxPower_show() local 57 udev = to_usb_device(dev); in bMaxPower_show() 58 rc = usb_lock_device_interruptible(udev); in bMaxPower_show() 61 actconfig = udev->actconfig; in bMaxPower_show() 63 rc = sprintf(buf, "%dmA\n", usb_get_max_power(udev, actconfig)); in bMaxPower_show() [all …]
|
D | driver.c | 252 struct usb_device *udev = to_usb_device(dev); in usb_probe_device() local 263 error = usb_autoresume_device(udev); in usb_probe_device() 266 error = udriver->probe(udev); in usb_probe_device() 273 struct usb_device *udev = to_usb_device(dev); in usb_unbind_device() local 276 udriver->disconnect(udev); in usb_unbind_device() 278 usb_autosuspend_device(udev); in usb_unbind_device() 287 struct usb_device *udev = interface_to_usbdev(intf); in usb_probe_interface() local 296 if (usb_device_is_owned(udev)) in usb_probe_interface() 299 if (udev->authorized == 0) { in usb_probe_interface() 316 error = usb_autoresume_device(udev); in usb_probe_interface() [all …]
|
D | generic.c | 45 int usb_choose_configuration(struct usb_device *udev) in usb_choose_configuration() argument 52 if (usb_device_is_owned(udev)) in usb_choose_configuration() 56 c = udev->config; in usb_choose_configuration() 57 num_configs = udev->descriptor.bNumConfigurations; in usb_choose_configuration() 105 if (usb_get_max_power(udev, c) > udev->bus_mA) { in usb_choose_configuration() 128 else if (udev->descriptor.bDeviceClass != in usb_choose_configuration() 143 dev_info(&udev->dev, "rejected %d configuration%s " in usb_choose_configuration() 149 dev_dbg(&udev->dev, in usb_choose_configuration() 154 dev_warn(&udev->dev, in usb_choose_configuration() 162 static int generic_probe(struct usb_device *udev) in generic_probe() argument [all …]
|
D | usb.h | 20 struct usb_device *udev); 37 extern void usb_detect_quirks(struct usb_device *udev); 38 extern void usb_detect_interface_quirks(struct usb_device *udev); 40 extern int usb_remove_device(struct usb_device *udev); 47 extern char *usb_cache_string(struct usb_device *udev, int index); 49 extern int usb_choose_configuration(struct usb_device *udev); 51 static inline unsigned usb_get_max_power(struct usb_device *udev, in usb_get_max_power() argument 55 unsigned mul = (udev->speed >= USB_SPEED_SUPER ? 8 : 2); in usb_get_max_power() 67 extern void usb_unbind_and_rebind_marked_interfaces(struct usb_device *udev); 71 extern bool usb_device_is_owned(struct usb_device *udev); [all …]
|
D | quirks.c | 447 static bool usb_match_any_interface(struct usb_device *udev, in usb_match_any_interface() argument 452 for (i = 0; i < udev->descriptor.bNumConfigurations; ++i) { in usb_match_any_interface() 453 struct usb_host_config *cfg = &udev->config[i]; in usb_match_any_interface() 465 if (usb_match_one_id_intf(udev, intf, id)) in usb_match_any_interface() 473 static int usb_amd_resume_quirk(struct usb_device *udev) in usb_amd_resume_quirk() argument 477 hcd = bus_to_hcd(udev->bus); in usb_amd_resume_quirk() 479 if (udev->level == 1 && hcd->amd_resume_bug == 1) in usb_amd_resume_quirk() 485 static u32 usb_detect_static_quirks(struct usb_device *udev, in usb_detect_static_quirks() argument 491 if (!usb_match_device(udev, id)) in usb_detect_static_quirks() 495 !usb_match_any_interface(udev, id)) in usb_detect_static_quirks() [all …]
|
/Linux-v4.19/drivers/leds/ |
D | uleds.c | 51 struct uleds_device *udev = container_of(led_cdev, struct uleds_device, in uleds_brightness_set() local 54 if (udev->brightness != brightness) { in uleds_brightness_set() 55 udev->brightness = brightness; in uleds_brightness_set() 56 udev->new_data = true; in uleds_brightness_set() 57 wake_up_interruptible(&udev->waitq); in uleds_brightness_set() 63 struct uleds_device *udev; in uleds_open() local 65 udev = kzalloc(sizeof(*udev), GFP_KERNEL); in uleds_open() 66 if (!udev) in uleds_open() 69 udev->led_cdev.name = udev->user_dev.name; in uleds_open() 70 udev->led_cdev.brightness_set = uleds_brightness_set; in uleds_open() [all …]
|
/Linux-v4.19/drivers/target/ |
D | target_core_user.c | 116 struct tcmu_dev *udev; member 295 struct tcmu_dev *udev = nl_cmd->udev; in tcmu_fail_netlink_cmd() local 303 pr_debug("Aborting nl cmd %d on %s\n", nl_cmd->cmd, udev->name); in tcmu_fail_netlink_cmd() 364 struct tcmu_dev *udev = NULL; in tcmu_genl_cmd_done() local 379 if (nl_cmd->udev->se_dev.dev_index == dev_id) { in tcmu_genl_cmd_done() 380 udev = nl_cmd->udev; in tcmu_genl_cmd_done() 385 if (!udev) { in tcmu_genl_cmd_done() 394 udev->name, dev_id, nl_cmd->cmd, completed_cmd, rc, in tcmu_genl_cmd_done() 399 udev->name, completed_cmd, nl_cmd->cmd); in tcmu_genl_cmd_done() 487 struct tcmu_dev *udev = tcmu_cmd->tcmu_dev; in tcmu_cmd_free_data() local [all …]
|
/Linux-v4.19/drivers/input/misc/ |
D | uinput.c | 86 struct uinput_device *udev = input_get_drvdata(dev); in uinput_dev_event() local 89 udev->buff[udev->head].type = type; in uinput_dev_event() 90 udev->buff[udev->head].code = code; in uinput_dev_event() 91 udev->buff[udev->head].value = value; in uinput_dev_event() 93 udev->buff[udev->head].input_event_sec = ts.tv_sec; in uinput_dev_event() 94 udev->buff[udev->head].input_event_usec = ts.tv_nsec / NSEC_PER_USEC; in uinput_dev_event() 95 udev->head = (udev->head + 1) % UINPUT_BUFFER_SIZE; in uinput_dev_event() 97 wake_up_interruptible(&udev->waitq); in uinput_dev_event() 103 static bool uinput_request_alloc_id(struct uinput_device *udev, in uinput_request_alloc_id() argument 109 spin_lock(&udev->requests_lock); in uinput_request_alloc_id() [all …]
|
/Linux-v4.19/drivers/usb/usbip/ |
D | stub_dev.c | 153 dev_dbg(&sdev->udev->dev, "shutdown sockfd %d\n", ud->sockfd); in stub_shutdown_connection() 204 struct usb_device *udev = sdev->udev; in stub_device_reset() local 207 dev_dbg(&udev->dev, "device reset"); in stub_device_reset() 209 ret = usb_lock_device_for_reset(udev, NULL); in stub_device_reset() 211 dev_err(&udev->dev, "lock for reset\n"); in stub_device_reset() 219 ret = usb_reset_device(udev); in stub_device_reset() 220 usb_unlock_device(udev); in stub_device_reset() 224 dev_err(&udev->dev, "device reset\n"); in stub_device_reset() 227 dev_info(&udev->dev, "device reset\n"); in stub_device_reset() 246 static struct stub_device *stub_device_alloc(struct usb_device *udev) in stub_device_alloc() argument [all …]
|
/Linux-v4.19/drivers/staging/gdm724x/ |
D | gdm_usb.c | 57 static int request_mac_address(struct lte_udev *udev) in request_mac_address() argument 61 struct usb_device *usbdev = udev->usbdev; in request_mac_address() 65 hci->cmd_evt = gdm_cpu_to_dev16(udev->gdm_ed, LTE_GET_INFORMATION); in request_mac_address() 66 hci->len = gdm_cpu_to_dev16(udev->gdm_ed, 1); in request_mac_address() 72 udev->request_mac_addr = 1; in request_mac_address() 244 static void release_usb(struct lte_udev *udev) in release_usb() argument 246 struct rx_cxt *rx = &udev->rx; in release_usb() 247 struct tx_cxt *tx = &udev->tx; in release_usb() 288 if (r->index == (void *)udev) { in release_usb() 296 static int init_usb(struct lte_udev *udev) in init_usb() argument [all …]
|
/Linux-v4.19/tools/usb/usbip/libsrc/ |
D | usbip_common.c | 17 extern struct udev *udev_context; 94 dbg("%-20s = %x", to_string(name), (int) udev->name) 110 void dump_usb_device(struct usbip_usb_device *udev) in dump_usb_device() argument 114 dbg("%-20s = %s", "path", udev->path); in dump_usb_device() 115 dbg("%-20s = %s", "busid", udev->busid); in dump_usb_device() 118 udev->bDeviceClass, in dump_usb_device() 119 udev->bDeviceSubClass, in dump_usb_device() 120 udev->bDeviceProtocol); in dump_usb_device() 126 udev->idVendor, in dump_usb_device() 127 udev->idProduct); in dump_usb_device() [all …]
|
/Linux-v4.19/drivers/usb/storage/ |
D | uas-detect.h | 60 struct usb_device *udev = interface_to_usbdev(intf); in uas_use_uas_driver() local 61 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in uas_use_uas_driver() 98 if (le16_to_cpu(udev->descriptor.idVendor) == 0x174c && in uas_use_uas_driver() 99 (le16_to_cpu(udev->descriptor.idProduct) == 0x5106 || in uas_use_uas_driver() 100 le16_to_cpu(udev->descriptor.idProduct) == 0x55aa)) { in uas_use_uas_driver() 101 if (udev->actconfig->desc.bMaxPower == 0) { in uas_use_uas_driver() 103 } else if (udev->speed < USB_SPEED_SUPER) { in uas_use_uas_driver() 116 if (le16_to_cpu(udev->descriptor.idVendor) == 0x0bc2) in uas_use_uas_driver() 119 usb_stor_adjust_quirks(udev, &flags); in uas_use_uas_driver() 122 dev_warn(&udev->dev, in uas_use_uas_driver() [all …]
|
D | onetouch.c | 39 struct usb_device *udev; /* usb device */ member 114 "retval %d\n", onetouch->udev->bus->bus_name, in usb_onetouch_irq() 115 onetouch->udev->devpath, retval); in usb_onetouch_irq() 123 onetouch->irq->dev = onetouch->udev; in usb_onetouch_open() 164 struct usb_device *udev = ss->pusb_dev; in onetouch_connect_input() local 181 pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress); in onetouch_connect_input() 182 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in onetouch_connect_input() 190 onetouch->data = usb_alloc_coherent(udev, ONETOUCH_PKT_LEN, in onetouch_connect_input() 199 onetouch->udev = udev; in onetouch_connect_input() 202 if (udev->manufacturer) in onetouch_connect_input() [all …]
|
/Linux-v4.19/drivers/bluetooth/ |
D | ath3k.c | 218 static int ath3k_load_firmware(struct usb_device *udev, in ath3k_load_firmware() argument 226 BT_DBG("udev %p", udev); in ath3k_load_firmware() 228 pipe = usb_sndctrlpipe(udev, 0); in ath3k_load_firmware() 237 err = usb_control_msg(udev, pipe, USB_REQ_DFU_DNLOAD, USB_TYPE_VENDOR, in ath3k_load_firmware() 247 pipe = usb_sndbulkpipe(udev, 0x02); in ath3k_load_firmware() 256 err = usb_bulk_msg(udev, pipe, send_buf, size, in ath3k_load_firmware() 273 static int ath3k_get_state(struct usb_device *udev, unsigned char *state) in ath3k_get_state() argument 282 pipe = usb_rcvctrlpipe(udev, 0); in ath3k_get_state() 283 ret = usb_control_msg(udev, pipe, ATH3K_GETSTATE, in ath3k_get_state() 293 static int ath3k_get_version(struct usb_device *udev, in ath3k_get_version() argument [all …]
|
/Linux-v4.19/drivers/usb/serial/ |
D | ipw.c | 134 struct usb_device *udev = port->serial->dev; in ipw_open() local 148 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in ipw_open() 160 usb_clear_halt(udev, usb_rcvbulkpipe(udev, port->bulk_in_endpointAddress)); in ipw_open() 161 usb_clear_halt(udev, usb_sndbulkpipe(udev, port->bulk_out_endpointAddress)); in ipw_open() 169 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in ipw_open() 182 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in ipw_open() 220 struct usb_device *udev = port->serial->dev; in ipw_dtr_rts() local 226 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in ipw_dtr_rts() 237 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in ipw_dtr_rts() 251 struct usb_device *udev = port->serial->dev; in ipw_close() local [all …]
|
/Linux-v4.19/tools/usb/usbip/src/ |
D | usbip_list.c | 61 struct usbip_usb_device udev; in get_exported_devices() local 99 memset(&udev, 0, sizeof(udev)); in get_exported_devices() 100 rc = usbip_net_recv(sockfd, &udev, sizeof(udev)); in get_exported_devices() 105 usbip_net_pack_usb_device(0, &udev); in get_exported_devices() 108 udev.idVendor, udev.idProduct); in get_exported_devices() 110 udev.bDeviceClass, udev.bDeviceSubClass, in get_exported_devices() 111 udev.bDeviceProtocol); in get_exported_devices() 112 printf("%11s: %s\n", udev.busid, product_name); in get_exported_devices() 113 printf("%11s: %s\n", "", udev.path); in get_exported_devices() 116 for (j = 0; j < udev.bNumInterfaces; j++) { in get_exported_devices() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | user.c | 103 nvkm_udevice_info(struct nvkm_udevice *udev, void *data, u32 size) in nvkm_udevice_info() argument 105 struct nvkm_object *object = &udev->object; in nvkm_udevice_info() 106 struct nvkm_device *device = udev->device; in nvkm_udevice_info() 198 nvkm_udevice_time(struct nvkm_udevice *udev, void *data, u32 size) in nvkm_udevice_time() argument 200 struct nvkm_object *object = &udev->object; in nvkm_udevice_time() 201 struct nvkm_device *device = udev->device; in nvkm_udevice_time() 219 struct nvkm_udevice *udev = nvkm_udevice(object); in nvkm_udevice_mthd() local 223 return nvkm_udevice_info(udev, data, size); in nvkm_udevice_mthd() 225 return nvkm_udevice_time(udev, data, size); in nvkm_udevice_mthd() 235 struct nvkm_udevice *udev = nvkm_udevice(object); in nvkm_udevice_rd08() local [all …]
|
/Linux-v4.19/drivers/media/usb/dvb-usb-v2/ |
D | dvb_usb_core.c | 40 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_download_firmware() 47 ret = request_firmware(&fw, name, &d->udev->dev); in dvb_usbv2_download_firmware() 49 dev_err(&d->udev->dev, in dvb_usbv2_download_firmware() 55 dev_info(&d->udev->dev, "%s: downloading firmware from file '%s'\n", in dvb_usbv2_download_firmware() 65 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret); in dvb_usbv2_download_firmware() 72 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_i2c_init() 79 d->i2c_adap.dev.parent = &d->udev->dev; in dvb_usbv2_i2c_init() 90 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret); in dvb_usbv2_i2c_init() 96 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_i2c_exit() 122 dev_err(&d->udev->dev, "%s: rc.query() failed=%d\n", in dvb_usb_read_remote_control() [all …]
|
/Linux-v4.19/drivers/net/wireless/marvell/libertas_tf/ |
D | if_usb.c | 145 struct usb_device *udev; in if_usb_probe() local 153 udev = interface_to_usbdev(intf); in if_usb_probe() 162 cardp->udev = udev; in if_usb_probe() 165 lbtf_deb_usbd(&udev->dev, "bcdUSB = 0x%X bDeviceClass = 0x%X" in if_usb_probe() 167 le16_to_cpu(udev->descriptor.bcdUSB), in if_usb_probe() 168 udev->descriptor.bDeviceClass, in if_usb_probe() 169 udev->descriptor.bDeviceSubClass, in if_usb_probe() 170 udev->descriptor.bDeviceProtocol); in if_usb_probe() 179 lbtf_deb_usbd(&udev->dev, "in_endpoint = %d\n", in if_usb_probe() 181 lbtf_deb_usbd(&udev->dev, "Bulk in size is %d\n", in if_usb_probe() [all …]
|
/Linux-v4.19/Documentation/aoe/ |
D | udev.txt | 1 # These rules tell udev what device nodes to create for aoe support. 3 # 8 udev manpage to see whether your udev supports SUBSYSTEM, and 8 # bash# find /etc -type f -name udev.conf 9 # /etc/udev/udev.conf 10 # bash# grep udev_rules= /etc/udev/udev.conf 11 # udev_rules="/etc/udev/rules.d/" 12 # bash# ls /etc/udev/rules.d/ 13 # 10-wacom.rules 50-udev.rules 14 # bash# cp /path/to/linux-2.6.xx/Documentation/aoe/udev.txt \ 15 # /etc/udev/rules.d/60-aoe.rules
|
/Linux-v4.19/drivers/media/usb/stk1160/ |
D | stk1160-core.c | 68 int pipe = usb_rcvctrlpipe(dev->udev, 0); in stk1160_read_reg() 76 ret = usb_control_msg(dev->udev, pipe, 0x00, in stk1160_read_reg() 94 int pipe = usb_sndctrlpipe(dev->udev, 0); in stk1160_write_reg() 96 ret = usb_control_msg(dev->udev, pipe, 0x01, in stk1160_write_reg() 184 static int stk1160_scan_usb(struct usb_interface *intf, struct usb_device *udev, in stk1160_scan_usb() argument 205 if (udev->speed == USB_SPEED_HIGH) in stk1160_scan_usb() 225 dev_err(&udev->dev, "no audio or video endpoints found\n"); in stk1160_scan_usb() 229 switch (udev->speed) { in stk1160_scan_usb() 243 dev_info(&udev->dev, "New device %s %s @ %s Mbps (%04x:%04x, interface %d, class %d)\n", in stk1160_scan_usb() 244 udev->manufacturer ? udev->manufacturer : "", in stk1160_scan_usb() [all …]
|
/Linux-v4.19/drivers/net/wireless/marvell/libertas/ |
D | if_usb.c | 194 struct usb_device *udev; in if_usb_probe() local 202 udev = interface_to_usbdev(intf); in if_usb_probe() 211 cardp->udev = udev; in if_usb_probe() 215 lbs_deb_usbd(&udev->dev, "bcdUSB = 0x%X bDeviceClass = 0x%X" in if_usb_probe() 217 le16_to_cpu(udev->descriptor.bcdUSB), in if_usb_probe() 218 udev->descriptor.bDeviceClass, in if_usb_probe() 219 udev->descriptor.bDeviceSubClass, in if_usb_probe() 220 udev->descriptor.bDeviceProtocol); in if_usb_probe() 228 lbs_deb_usbd(&udev->dev, "in_endpoint = %d\n", cardp->ep_in); in if_usb_probe() 229 lbs_deb_usbd(&udev->dev, "Bulk in size is %d\n", cardp->ep_in_size); in if_usb_probe() [all …]
|
/Linux-v4.19/drivers/usb/misc/ |
D | adutux.c | 72 struct usb_device *udev; /* save off the usb device pointer */ member 119 if (dev->udev == NULL) in adu_abort_transfers() 160 adu_debug_data(&dev->udev->dev, __func__, in adu_interrupt_in_callback() 168 dev_dbg(&dev->udev->dev, in adu_interrupt_in_callback() 184 dev_dbg(&dev->udev->dev,"%s reading %d\n", __func__, in adu_interrupt_in_callback() 187 dev_dbg(&dev->udev->dev,"%s : read_buffer overflow\n", in adu_interrupt_in_callback() 205 adu_debug_data(&dev->udev->dev, __func__, in adu_interrupt_out_callback() 211 dev_dbg(&dev->udev->dev, in adu_interrupt_out_callback() 246 if (!dev || !dev->udev) { in adu_open() 258 dev_dbg(&dev->udev->dev, "%s: open count %d\n", __func__, in adu_open() [all …]
|
/Linux-v4.19/drivers/usb/host/ |
D | xhci.c | 1287 static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev, in xhci_check_args() argument 1293 if (!hcd || (check_ep && !ep) || !udev) { in xhci_check_args() 1297 if (!udev->parent) { in xhci_check_args() 1304 if (!udev->slot_id || !xhci->devs[udev->slot_id]) { in xhci_check_args() 1310 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args() 1311 if (virt_dev->udev != udev) { in xhci_check_args() 1325 struct usb_device *udev, struct xhci_command *command, 1678 static int xhci_drop_endpoint(struct usb_hcd *hcd, struct usb_device *udev, in xhci_drop_endpoint() argument 1690 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_drop_endpoint() 1697 xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev); in xhci_drop_endpoint() [all …]
|