/drivers/target/ |
D | target_core_user.c | 106 struct tcmu_dev *udev; member 305 struct tcmu_dev *udev = nl_cmd->udev; in tcmu_fail_netlink_cmd() local 313 pr_debug("Aborting nl cmd %d on %s\n", nl_cmd->cmd, udev->name); in tcmu_fail_netlink_cmd() 374 struct tcmu_dev *udev = NULL; in tcmu_genl_cmd_done() local 389 if (nl_cmd->udev->se_dev.dev_index == dev_id) { in tcmu_genl_cmd_done() 390 udev = nl_cmd->udev; in tcmu_genl_cmd_done() 395 if (!udev) { in tcmu_genl_cmd_done() 404 udev->name, dev_id, nl_cmd->cmd, completed_cmd, rc, in tcmu_genl_cmd_done() 409 udev->name, completed_cmd, nl_cmd->cmd); in tcmu_genl_cmd_done() 498 struct tcmu_dev *udev = tcmu_cmd->tcmu_dev; in tcmu_cmd_free_data() local [all …]
|
/drivers/usb/core/ |
D | hub.c | 121 static int usb_reset_and_verify_device(struct usb_device *udev); 148 int usb_device_supports_lpm(struct usb_device *udev) in usb_device_supports_lpm() argument 151 if (udev->quirks & USB_QUIRK_NO_LPM) in usb_device_supports_lpm() 155 if (!udev->bos) in usb_device_supports_lpm() 161 if (udev->speed == USB_SPEED_HIGH || udev->speed == USB_SPEED_FULL) { in usb_device_supports_lpm() 162 if (udev->bos->ext_cap && in usb_device_supports_lpm() 164 le32_to_cpu(udev->bos->ext_cap->bmAttributes))) in usb_device_supports_lpm() 174 if (!udev->bos->ss_cap) { in usb_device_supports_lpm() 175 dev_info(&udev->dev, "No LPM exit latency info found, disabling LPM.\n"); in usb_device_supports_lpm() 179 if (udev->bos->ss_cap->bU1devExitLat == 0 && in usb_device_supports_lpm() [all …]
|
D | driver.c | 253 struct usb_device *udev = to_usb_device(dev); in usb_probe_device() local 264 error = usb_autoresume_device(udev); in usb_probe_device() 269 error = usb_generic_driver_probe(udev); in usb_probe_device() 294 error = udriver->probe(udev); in usb_probe_device() 297 udev->use_generic_driver = 1; in usb_probe_device() 306 struct usb_device *udev = to_usb_device(dev); in usb_unbind_device() local 310 udriver->disconnect(udev); in usb_unbind_device() 312 usb_generic_driver_disconnect(udev); in usb_unbind_device() 314 usb_autosuspend_device(udev); in usb_unbind_device() 323 struct usb_device *udev = interface_to_usbdev(intf); in usb_probe_interface() local [all …]
|
D | sysfs.c | 28 struct usb_device *udev; \ 32 udev = to_usb_device(dev); \ 33 rc = usb_lock_device_interruptible(udev); \ 36 actconfig = udev->actconfig; \ 40 usb_unlock_device(udev); \ 54 struct usb_device *udev; in bMaxPower_show() local 58 udev = to_usb_device(dev); in bMaxPower_show() 59 rc = usb_lock_device_interruptible(udev); in bMaxPower_show() 62 actconfig = udev->actconfig; in bMaxPower_show() 64 rc = sprintf(buf, "%dmA\n", usb_get_max_power(udev, actconfig)); in bMaxPower_show() [all …]
|
D | generic.c | 56 int usb_choose_configuration(struct usb_device *udev) in usb_choose_configuration() argument 63 if (usb_device_is_owned(udev)) in usb_choose_configuration() 67 c = udev->config; in usb_choose_configuration() 68 num_configs = udev->descriptor.bNumConfigurations; in usb_choose_configuration() 116 if (usb_get_max_power(udev, c) > udev->bus_mA) { in usb_choose_configuration() 164 else if (udev->descriptor.bDeviceClass != in usb_choose_configuration() 179 dev_info(&udev->dev, "rejected %d configuration%s " in usb_choose_configuration() 185 dev_dbg(&udev->dev, in usb_choose_configuration() 190 dev_warn(&udev->dev, in usb_choose_configuration() 200 struct usb_device *udev = data; in __check_for_non_generic_match() local [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 bool usb_endpoint_is_ignored(struct usb_device *udev, 43 extern int usb_remove_device(struct usb_device *udev); 46 struct usb_device *udev); 50 extern char *usb_cache_string(struct usb_device *udev, int index); 52 extern int usb_choose_configuration(struct usb_device *udev); 53 extern int usb_generic_driver_probe(struct usb_device *udev); 54 extern void usb_generic_driver_disconnect(struct usb_device *udev); [all …]
|
D | quirks.c | 586 bool usb_endpoint_is_ignored(struct usb_device *udev, in usb_endpoint_is_ignored() argument 594 if (!usb_match_device(udev, id)) in usb_endpoint_is_ignored() 597 if (!usb_match_one_id_intf(udev, intf, id)) in usb_endpoint_is_ignored() 608 static bool usb_match_any_interface(struct usb_device *udev, in usb_match_any_interface() argument 613 for (i = 0; i < udev->descriptor.bNumConfigurations; ++i) { in usb_match_any_interface() 614 struct usb_host_config *cfg = &udev->config[i]; in usb_match_any_interface() 626 if (usb_match_one_id_intf(udev, intf, id)) in usb_match_any_interface() 634 static int usb_amd_resume_quirk(struct usb_device *udev) in usb_amd_resume_quirk() argument 638 hcd = bus_to_hcd(udev->bus); in usb_amd_resume_quirk() 640 if (udev->level == 1 && hcd->amd_resume_bug == 1) in usb_amd_resume_quirk() [all …]
|
/drivers/leds/ |
D | uleds.c | 42 struct uleds_device *udev = container_of(led_cdev, struct uleds_device, in uleds_brightness_set() local 45 if (udev->brightness != brightness) { in uleds_brightness_set() 46 udev->brightness = brightness; in uleds_brightness_set() 47 udev->new_data = true; in uleds_brightness_set() 48 wake_up_interruptible(&udev->waitq); in uleds_brightness_set() 54 struct uleds_device *udev; in uleds_open() local 56 udev = kzalloc(sizeof(*udev), GFP_KERNEL); in uleds_open() 57 if (!udev) in uleds_open() 60 udev->led_cdev.name = udev->user_dev.name; in uleds_open() 61 udev->led_cdev.brightness_set = uleds_brightness_set; in uleds_open() [all …]
|
/drivers/input/misc/ |
D | uinput.c | 75 struct uinput_device *udev = input_get_drvdata(dev); in uinput_dev_event() local 80 udev->buff[udev->head] = (struct input_event) { in uinput_dev_event() 88 udev->head = (udev->head + 1) % UINPUT_BUFFER_SIZE; in uinput_dev_event() 90 wake_up_interruptible(&udev->waitq); in uinput_dev_event() 96 static bool uinput_request_alloc_id(struct uinput_device *udev, in uinput_request_alloc_id() argument 102 spin_lock(&udev->requests_lock); in uinput_request_alloc_id() 105 if (!udev->requests[id]) { in uinput_request_alloc_id() 107 udev->requests[id] = request; in uinput_request_alloc_id() 113 spin_unlock(&udev->requests_lock); in uinput_request_alloc_id() 117 static struct uinput_request *uinput_request_find(struct uinput_device *udev, in uinput_request_find() argument [all …]
|
/drivers/staging/gdm724x/ |
D | gdm_usb.c | 57 static int request_mac_address(struct lte_udev *udev) in request_mac_address() argument 60 struct usb_device *usbdev = udev->usbdev; in request_mac_address() 68 hci->cmd_evt = gdm_cpu_to_dev16(udev->gdm_ed, LTE_GET_INFORMATION); in request_mac_address() 69 hci->len = gdm_cpu_to_dev16(udev->gdm_ed, 1); in request_mac_address() 75 udev->request_mac_addr = 1; in request_mac_address() 248 static void release_usb(struct lte_udev *udev) in release_usb() argument 250 struct rx_cxt *rx = &udev->rx; in release_usb() 251 struct tx_cxt *tx = &udev->tx; in release_usb() 292 if (r->index == (void *)udev) { in release_usb() 300 static int init_usb(struct lte_udev *udev) in init_usb() argument [all …]
|
/drivers/usb/usbip/ |
D | stub_dev.c | 162 dev_dbg(&sdev->udev->dev, "shutdown sockfd %d\n", ud->sockfd); in stub_shutdown_connection() 213 struct usb_device *udev = sdev->udev; in stub_device_reset() local 216 dev_dbg(&udev->dev, "device reset"); in stub_device_reset() 218 ret = usb_lock_device_for_reset(udev, NULL); in stub_device_reset() 220 dev_err(&udev->dev, "lock for reset\n"); in stub_device_reset() 228 ret = usb_reset_device(udev); in stub_device_reset() 229 usb_unlock_device(udev); in stub_device_reset() 233 dev_err(&udev->dev, "device reset\n"); in stub_device_reset() 236 dev_info(&udev->dev, "device reset\n"); in stub_device_reset() 255 static struct stub_device *stub_device_alloc(struct usb_device *udev) in stub_device_alloc() argument [all …]
|
/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() 126 if (le16_to_cpu(udev->descriptor.idVendor) == 0x0bda && in uas_use_uas_driver() 127 le16_to_cpu(udev->descriptor.idProduct) == 0x9210 && in uas_use_uas_driver() [all …]
|
D | onetouch.c | 40 struct usb_device *udev; /* usb device */ member 115 "retval %d\n", onetouch->udev->bus->bus_name, in usb_onetouch_irq() 116 onetouch->udev->devpath, retval); in usb_onetouch_irq() 124 onetouch->irq->dev = onetouch->udev; in usb_onetouch_open() 165 struct usb_device *udev = ss->pusb_dev; in onetouch_connect_input() local 182 pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress); in onetouch_connect_input() 183 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in onetouch_connect_input() 191 onetouch->data = usb_alloc_coherent(udev, ONETOUCH_PKT_LEN, in onetouch_connect_input() 200 onetouch->udev = udev; in onetouch_connect_input() 203 if (udev->manufacturer) in onetouch_connect_input() [all …]
|
/drivers/usb/misc/ |
D | apple-mfi-fastcharge.c | 45 struct usb_device *udev; member 58 dev_dbg(&mfi->udev->dev, "charge type %d already set\n", in apple_mfi_fc_set_charge_type() 75 retval = usb_control_msg(mfi->udev, usb_sndctrlpipe(mfi->udev, 0), in apple_mfi_fc_set_charge_type() 82 dev_dbg(&mfi->udev->dev, "retval = %d\n", retval); in apple_mfi_fc_set_charge_type() 97 dev_dbg(&mfi->udev->dev, "prop: %d\n", psp); in apple_mfi_fc_get_property() 120 dev_dbg(&mfi->udev->dev, "prop: %d\n", psp); in apple_mfi_fc_set_property() 122 ret = pm_runtime_get_sync(&mfi->udev->dev); in apple_mfi_fc_set_property() 124 pm_runtime_put_noidle(&mfi->udev->dev); in apple_mfi_fc_set_property() 136 pm_runtime_mark_last_busy(&mfi->udev->dev); in apple_mfi_fc_set_property() 137 pm_runtime_put_autosuspend(&mfi->udev->dev); in apple_mfi_fc_set_property() [all …]
|
D | cytherm.c | 33 struct usb_device *udev; /* save off the usb device pointer */ member 96 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS, in brightness_store() 99 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store() 101 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS_SEM, in brightness_store() 104 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store() 132 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8); in temp_show() 134 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in temp_show() 138 retval = vendor_command(cytherm->udev, READ_RAM, SIGN, 0, buffer, 8); in temp_show() 140 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in temp_show() 167 retval = vendor_command(cytherm->udev, READ_RAM, BUTTON, 0, buffer, 8); in button_show() [all …]
|
D | adutux.c | 72 struct usb_device *udev; /* save off the usb device pointer */ member 152 usb_put_dev(dev->udev); in adu_delete() 162 adu_debug_data(&dev->udev->dev, __func__, in adu_interrupt_in_callback() 170 dev_dbg(&dev->udev->dev, in adu_interrupt_in_callback() 186 dev_dbg(&dev->udev->dev, "%s reading %d\n", __func__, in adu_interrupt_in_callback() 189 dev_dbg(&dev->udev->dev, "%s : read_buffer overflow\n", in adu_interrupt_in_callback() 207 adu_debug_data(&dev->udev->dev, __func__, in adu_interrupt_out_callback() 214 dev_dbg(&dev->udev->dev, in adu_interrupt_out_callback() 261 dev_dbg(&dev->udev->dev, "%s: open count %d\n", __func__, in adu_open() 271 usb_fill_int_urb(dev->interrupt_in_urb, dev->udev, in adu_open() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | user.c | 73 nvkm_udevice_info(struct nvkm_udevice *udev, void *data, u32 size) in nvkm_udevice_info() argument 75 struct nvkm_object *object = &udev->object; in nvkm_udevice_info() 76 struct nvkm_device *device = udev->device; in nvkm_udevice_info() 170 nvkm_udevice_time(struct nvkm_udevice *udev, void *data, u32 size) in nvkm_udevice_time() argument 172 struct nvkm_object *object = &udev->object; in nvkm_udevice_time() 173 struct nvkm_device *device = udev->device; in nvkm_udevice_time() 191 struct nvkm_udevice *udev = nvkm_udevice(object); in nvkm_udevice_mthd() local 195 return nvkm_udevice_info(udev, data, size); in nvkm_udevice_mthd() 197 return nvkm_udevice_time(udev, data, size); in nvkm_udevice_mthd() 207 struct nvkm_udevice *udev = nvkm_udevice(object); in nvkm_udevice_rd08() local [all …]
|
/drivers/media/usb/dvb-usb-v2/ |
D | dvb_usb_core.c | 27 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_download_firmware() 34 ret = request_firmware(&fw, name, &d->udev->dev); in dvb_usbv2_download_firmware() 36 dev_err(&d->udev->dev, in dvb_usbv2_download_firmware() 42 dev_info(&d->udev->dev, "%s: downloading firmware from file '%s'\n", in dvb_usbv2_download_firmware() 52 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret); in dvb_usbv2_download_firmware() 59 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_i2c_init() 66 d->i2c_adap.dev.parent = &d->udev->dev; in dvb_usbv2_i2c_init() 77 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret); in dvb_usbv2_i2c_init() 83 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_i2c_exit() 109 dev_err(&d->udev->dev, "%s: rc.query() failed=%d\n", in dvb_usb_read_remote_control() [all …]
|
/drivers/bluetooth/ |
D | ath3k.c | 205 static int ath3k_load_firmware(struct usb_device *udev, in ath3k_load_firmware() argument 213 BT_DBG("udev %p", udev); in ath3k_load_firmware() 221 err = usb_control_msg_send(udev, 0, USB_REQ_DFU_DNLOAD, USB_TYPE_VENDOR, in ath3k_load_firmware() 231 pipe = usb_sndbulkpipe(udev, 0x02); in ath3k_load_firmware() 240 err = usb_bulk_msg(udev, pipe, send_buf, size, in ath3k_load_firmware() 257 static int ath3k_get_state(struct usb_device *udev, unsigned char *state) in ath3k_get_state() argument 259 return usb_control_msg_recv(udev, 0, ATH3K_GETSTATE, in ath3k_get_state() 265 static int ath3k_get_version(struct usb_device *udev, in ath3k_get_version() argument 268 return usb_control_msg_recv(udev, 0, ATH3K_GETVERSION, in ath3k_get_version() 274 static int ath3k_load_fwfile(struct usb_device *udev, in ath3k_load_fwfile() argument [all …]
|
/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 …]
|
/drivers/net/wireless/marvell/libertas_tf/ |
D | if_usb.c | 147 struct usb_device *udev; in if_usb_probe() local 155 udev = interface_to_usbdev(intf); in if_usb_probe() 164 cardp->udev = udev; in if_usb_probe() 167 lbtf_deb_usbd(&udev->dev, "bcdUSB = 0x%X bDeviceClass = 0x%X" in if_usb_probe() 169 le16_to_cpu(udev->descriptor.bcdUSB), in if_usb_probe() 170 udev->descriptor.bDeviceClass, in if_usb_probe() 171 udev->descriptor.bDeviceSubClass, in if_usb_probe() 172 udev->descriptor.bDeviceProtocol); in if_usb_probe() 181 lbtf_deb_usbd(&udev->dev, "in_endpoint = %d\n", in if_usb_probe() 183 lbtf_deb_usbd(&udev->dev, "Bulk in size is %d\n", in if_usb_probe() [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | if_usb.c | 196 struct usb_device *udev; in if_usb_probe() local 204 udev = interface_to_usbdev(intf); in if_usb_probe() 213 cardp->udev = udev; in if_usb_probe() 217 lbs_deb_usbd(&udev->dev, "bcdUSB = 0x%X bDeviceClass = 0x%X" in if_usb_probe() 219 le16_to_cpu(udev->descriptor.bcdUSB), in if_usb_probe() 220 udev->descriptor.bDeviceClass, in if_usb_probe() 221 udev->descriptor.bDeviceSubClass, in if_usb_probe() 222 udev->descriptor.bDeviceProtocol); in if_usb_probe() 230 lbs_deb_usbd(&udev->dev, "in_endpoint = %d\n", cardp->ep_in); in if_usb_probe() 231 lbs_deb_usbd(&udev->dev, "Bulk in size is %d\n", cardp->ep_in_size); in if_usb_probe() [all …]
|
/drivers/media/usb/stk1160/ |
D | stk1160-core.c | 58 int pipe = usb_rcvctrlpipe(dev->udev, 0); in stk1160_read_reg() 66 ret = usb_control_msg(dev->udev, pipe, 0x00, in stk1160_read_reg() 84 int pipe = usb_sndctrlpipe(dev->udev, 0); in stk1160_write_reg() 86 ret = usb_control_msg(dev->udev, pipe, 0x01, in stk1160_write_reg() 174 static int stk1160_scan_usb(struct usb_interface *intf, struct usb_device *udev, in stk1160_scan_usb() argument 195 if (udev->speed == USB_SPEED_HIGH) in stk1160_scan_usb() 215 dev_err(&udev->dev, "no audio or video endpoints found\n"); in stk1160_scan_usb() 219 switch (udev->speed) { in stk1160_scan_usb() 233 dev_info(&udev->dev, "New device %s %s @ %s Mbps (%04x:%04x, interface %d, class %d)\n", in stk1160_scan_usb() 234 udev->manufacturer ? udev->manufacturer : "", in stk1160_scan_usb() [all …]
|
/drivers/usb/host/ |
D | xhci-mtk-sch.c | 124 get_bw_info(struct xhci_hcd_mtk *mtk, struct usb_device *udev, in get_bw_info() argument 131 virt_dev = xhci->devs[udev->slot_id]; in get_bw_info() 133 WARN_ONCE(1, "%s invalid real_port\n", dev_name(&udev->dev)); in get_bw_info() 137 if (udev->speed >= USB_SPEED_SUPER) { in get_bw_info() 161 static struct mu3h_sch_tt *find_tt(struct usb_device *udev) in find_tt() argument 163 struct usb_tt *utt = udev->tt; in find_tt() 186 ptt = &tt_index[udev->ttport - 1]; in find_tt() 209 static void drop_tt(struct usb_device *udev) in drop_tt() argument 211 struct usb_tt *utt = udev->tt; in drop_tt() 221 ptt = &tt_index[udev->ttport - 1]; in drop_tt() [all …]
|
D | xhci.c | 1522 static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev, in xhci_check_args() argument 1528 if (!hcd || (check_ep && !ep) || !udev) { in xhci_check_args() 1532 if (!udev->parent) { in xhci_check_args() 1539 if (!udev->slot_id || !xhci->devs[udev->slot_id]) { in xhci_check_args() 1545 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args() 1546 if (virt_dev->udev != udev) { in xhci_check_args() 1560 struct usb_device *udev, struct xhci_command *command, 1923 int xhci_drop_endpoint(struct usb_hcd *hcd, struct usb_device *udev, in xhci_drop_endpoint() argument 1935 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_drop_endpoint() 1942 xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev); in xhci_drop_endpoint() [all …]
|