| /drivers/target/ |
| A D | target_core_user.c | 305 struct tcmu_dev *udev = nl_cmd->udev; in tcmu_fail_netlink_cmd() local 390 udev = nl_cmd->udev; in tcmu_genl_cmd_done() 615 (udev->data_off + dbi * udev->data_blk_size); in new_block_to_iov() 842 udev->cmdr_last_cleaned, udev->cmdr_size); in is_ring_space_avail() 866 (udev->max_blocks - udev->dbi_thresh) + space; in tcmu_alloc_data_space() 876 if (udev->dbi_thresh > udev->max_blocks) in tcmu_alloc_data_space() 877 udev->dbi_thresh = udev->max_blocks; in tcmu_alloc_data_space() 1741 tcmu_blocks_release(udev, 0, udev->dbi_max); in tcmu_dev_kref_release() 2031 nl_cmd->udev = udev; in tcmu_init_genl_cmd_reply() 2183 udev->name, udev->dev_config); in tcmu_update_uio_info() [all …]
|
| /drivers/usb/core/ |
| A D | hub.c | 408 usb_set_lpm_sel(udev, &udev->u1_params); in usb_set_lpm_parameters() 409 usb_set_lpm_sel(udev, &udev->u2_params); in usb_set_lpm_parameters() 2536 udev->product = usb_cache_string(udev, udev->descriptor.iProduct); in usb_enumerate_device() 2539 udev->serial = usb_cache_string(udev, udev->descriptor.iSerialNumber); in usb_enumerate_device() 2668 udev->devnum, udev->bus->busnum, in usb_new_device() 2724 (void) usb_create_ep_devs(&udev->dev, &udev->ep0, udev); in usb_new_device() 3972 if (udev && udev->can_submit) { in hub_suspend() 4114 if (!udev->parent || udev->speed < USB_SPEED_SUPER || !udev->lpm_capable) in usb_req_set_sel() 4444 if (!udev || !udev->parent || in usb_disable_lpm() 4508 if (!udev || !udev->parent || in usb_enable_lpm() [all …]
|
| A D | driver.c | 1260 if (udev->dev.driver) in usb_suspend_device() 1293 if (!PMSG_IS_AUTO(msg) && udev->parent && udev->bus->hs_companion) in usb_resume_device() 1424 if (udev->actconfig) { in usb_suspend_both() 1460 dev_err(&udev->dev, in usb_suspend_both() 1482 udev->can_submit = 0; in usb_suspend_both() 1484 usb_hcd_flush_endpoint(udev, udev->ep_out[i]); in usb_suspend_both() 1485 usb_hcd_flush_endpoint(udev, udev->ep_in[i]); in usb_suspend_both() 1524 udev->can_submit = 1; in usb_resume_both() 1527 if (udev->state == USB_STATE_SUSPENDED || udev->reset_resume) in usb_resume_both() 1570 if (udev->state == USB_STATE_SUSPENDED && w != udev->do_remote_wakeup) in choose_wakeup() [all …]
|
| A D | generic.c | 65 if (!udev->dev.driver) in usb_choose_configuration() 69 if (usb_device_is_owned(udev)) in usb_choose_configuration() 79 c = udev->config; in usb_choose_configuration() 128 if (usb_get_max_power(udev, c) > udev->bus_mA) { in usb_choose_configuration() 197 dev_dbg(&udev->dev, in usb_choose_configuration() 202 dev_warn(&udev->dev, in usb_choose_configuration() 245 if (udev->authorized == 0) in usb_generic_driver_probe() 271 if (udev->actconfig) in usb_generic_driver_disconnect() 286 if (!udev->parent) in usb_generic_driver_suspend() 314 if (!udev->parent) in usb_generic_driver_resume() [all …]
|
| A D | sysfs.c | 55 struct usb_device *udev; in bMaxPower_show() local 59 udev = to_usb_device(dev); in bMaxPower_show() 66 usb_unlock_device(udev); in bMaxPower_show() 74 struct usb_device *udev; in configuration_show() local 85 usb_unlock_device(udev); in configuration_show() 106 usb_unlock_device(udev); in bConfigurationValue_store() 148 struct usb_device *udev; in speed_show() local 153 switch (udev->speed) { in speed_show() 183 struct usb_device *udev; in rx_lanes_show() local 193 struct usb_device *udev; in tx_lanes_show() local [all …]
|
| A D | usb.h | 21 struct usb_device *udev); 38 extern void usb_detect_quirks(struct usb_device *udev); 44 extern int usb_remove_device(struct usb_device *udev); 47 struct usb_device *udev); 64 unsigned mul = (udev->speed >= USB_SPEED_SUPER ? 8 : 2); in usb_get_max_power() 84 extern bool usb_device_is_owned(struct usb_device *udev); 91 extern int usb_port_disable(struct usb_device *udev); 112 extern void usbfs_notify_resume(struct usb_device *udev); 126 #define usb_autosuspend_device(udev) do {} while (0) argument 173 static inline int is_root_hub(struct usb_device *udev) in is_root_hub() argument [all …]
|
| A D | quirks.c | 630 if (!usb_match_device(udev, id)) in usb_endpoint_is_ignored() 674 hcd = bus_to_hcd(udev->bus); in usb_amd_resume_quirk() 726 udev->quirks = usb_detect_static_quirks(udev, usb_quirk_list); in usb_detect_quirks() 732 if (usb_amd_resume_quirk(udev)) in usb_detect_quirks() 733 udev->quirks |= usb_detect_static_quirks(udev, in usb_detect_quirks() 736 udev->quirks ^= usb_detect_dynamic_quirks(udev); in usb_detect_quirks() 738 if (udev->quirks) in usb_detect_quirks() 740 udev->quirks); in usb_detect_quirks() 744 udev->persist_enabled = 1; in usb_detect_quirks() 748 udev->persist_enabled = 1; in usb_detect_quirks() [all …]
|
| A D | usb-acpi.c | 164 if (!udev->parent || udev->parent->parent) in usb_acpi_add_usb4_devlink() 167 hub = usb_hub_to_struct_hub(udev->parent); in usb_acpi_add_usb4_devlink() 170 port_dev = hub->ports[udev->portnum - 1]; in usb_acpi_add_usb4_devlink() 191 udev->usb4_link = link; in usb_acpi_add_usb4_devlink() 251 struct usb_device *udev; in usb_acpi_get_companion_for_port() local 264 if (!udev->parent) { in usb_acpi_get_companion_for_port() 265 adev = ACPI_COMPANION(&udev->dev); in usb_acpi_get_companion_for_port() 270 udev->portnum); in usb_acpi_get_companion_for_port() 302 if (!udev->parent) { in usb_acpi_find_companion_for_device() 317 if (udev->speed >= USB_SPEED_SUPER && in usb_acpi_find_companion_for_device() [all …]
|
| /drivers/leds/ |
| A D | uleds.c | 47 udev->new_data = true; in uleds_brightness_set() 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() 63 mutex_init(&udev->mutex); in uleds_open() 114 udev->led_cdev.max_brightness = udev->user_dev.max_brightness; in uleds_write() 117 &udev->led_cdev); in uleds_write() 121 udev->new_data = true; in uleds_write() 163 udev->new_data || in uleds_read() 176 if (udev->new_data) in uleds_poll() [all …]
|
| /drivers/input/misc/ |
| A D | uinput.c | 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() 363 input_set_drvdata(udev->dev, udev); in uinput_create_device() 476 dev = udev->dev; in uinput_dev_setup() 676 have_event = udev->head != udev->tail; in uinput_fetch_next_event() 678 *event = udev->buff[udev->tail]; in uinput_fetch_next_event() 679 udev->tail = (udev->tail + 1) % UINPUT_BUFFER_SIZE; in uinput_fetch_next_event() 721 else if (udev->head == udev->tail && in uinput_read() 734 udev->head != udev->tail || in uinput_read() 748 if (udev->head != udev->tail) in uinput_poll() [all …]
|
| /drivers/usb/usbip/ |
| A D | stub_dev.c | 215 struct usb_device *udev = sdev->udev; in stub_device_reset() local 231 usb_unlock_device(udev); in stub_device_reset() 270 sdev->udev = usb_get_dev(udev); in stub_device_alloc() 331 dev_info(&udev->dev, in stub_probe() 355 dev_dbg(&udev->dev, in stub_probe() 364 dev_info(&udev->dev, in stub_probe() 366 udev->bus->busnum, udev->devnum); in stub_probe() 374 busid_priv->udev = udev; in stub_probe() 387 rc = usb_hub_claim_port(udev->parent, udev->portnum, in stub_probe() 412 usb_put_dev(udev); in stub_probe() [all …]
|
| /drivers/usb/storage/ |
| A D | uas-detect.h | 61 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in uas_use_uas_driver() 101 if (udev->actconfig->desc.bMaxPower == 0) { in uas_use_uas_driver() 128 (udev->manufacturer && !strcmp(udev->manufacturer, "HIKSEMI")) && in uas_use_uas_driver() 129 (udev->product && !strcmp(udev->product, "MD202"))) in uas_use_uas_driver() 132 usb_stor_adjust_quirks(udev, &flags); in uas_use_uas_driver() 135 dev_warn(&udev->dev, in uas_use_uas_driver() 140 if (udev->bus->sg_tablesize == 0) { in uas_use_uas_driver() 141 dev_warn(&udev->dev, in uas_use_uas_driver() 144 dev_warn(&udev->dev, in uas_use_uas_driver() 150 dev_warn(&udev->dev, in uas_use_uas_driver() [all …]
|
| A D | onetouch.c | 40 struct usb_device *udev; /* usb device */ member 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 183 maxp = usb_maxpacket(udev, pipe); in onetouch_connect_input() 200 onetouch->udev = udev; in onetouch_connect_input() 203 if (udev->manufacturer) in onetouch_connect_input() 206 if (udev->product) { in onetouch_connect_input() 207 if (udev->manufacturer) in onetouch_connect_input() 223 usb_to_input_id(udev, &input_dev->id); in onetouch_connect_input() [all …]
|
| /drivers/usb/misc/ |
| A D | apple-mfi-fastcharge.c | 45 struct usb_device *udev; member 76 retval = usb_control_msg(mfi->udev, usb_sndctrlpipe(mfi->udev, 0), in apple_mfi_fc_set_charge_type() 123 ret = pm_runtime_get_sync(&mfi->udev->dev); in apple_mfi_fc_set_property() 125 pm_runtime_put_noidle(&mfi->udev->dev); in apple_mfi_fc_set_property() 185 if (!mfi_fc_match(udev)) in mfi_fc_probe() 193 udev->bus->busnum, udev->devnum); in mfi_fc_probe() 214 mfi->udev = usb_get_dev(udev); in mfi_fc_probe() 215 dev_set_drvdata(&udev->dev, mfi); in mfi_fc_probe() 230 mfi = dev_get_drvdata(&udev->dev); in mfi_fc_disconnect() 234 dev_set_drvdata(&udev->dev, NULL); in mfi_fc_disconnect() [all …]
|
| A D | cytherm.c | 99 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store() 104 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store() 134 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in temp_show() 140 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in temp_show() 169 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in button_show() 197 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port0_show() 227 retval = vendor_command(cytherm->udev, WRITE_PORT, 0, in port0_store() 230 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port0_store() 282 retval = vendor_command(cytherm->udev, WRITE_PORT, 1, in port1_store() 314 dev->udev = usb_get_dev(udev); in cytherm_probe() [all …]
|
| /drivers/media/usb/dvb-usb-v2/ |
| A D | dvb_usb_core.c | 36 dev_err(&d->udev->dev, in dvb_usbv2_download_firmware() 169 dev_info(&d->udev->dev, in dvb_usbv2_remote_init() 226 adap->stream.udev = adap_to_d(adap)->udev; in dvb_usbv2_adapter_stream_init() 247 dev_dbg(&d->udev->dev, in dvb_usb_start_feed() 273 dev_err(&d->udev->dev, in dvb_usb_start_feed() 300 dev_err(&d->udev->dev, in dvb_usb_start_feed() 309 dev_err(&d->udev->dev, in dvb_usb_start_feed() 334 dev_dbg(&d->udev->dev, in dvb_usb_stop_feed() 360 dev_err(&d->udev->dev, in dvb_usb_stop_feed() 393 struct usb_device *udev = d->udev; in dvb_usbv2_media_device_init() local [all …]
|
| /drivers/bluetooth/ |
| A D | ath3k.c | 210 BT_DBG("udev %p", udev); in ath3k_load_firmware() 228 pipe = usb_sndbulkpipe(udev, 0x02); in ath3k_load_firmware() 301 pipe = usb_sndbulkpipe(udev, 0x02); in ath3k_load_fwfile() 336 ret = ath3k_get_state(udev, &fw_state); in ath3k_set_normal_mode() 361 ret = ath3k_get_state(udev, &fw_state); in ath3k_load_patch() 399 ret = ath3k_load_fwfile(udev, firmware); in ath3k_load_patch() 413 ret = ath3k_get_state(udev, &fw_state); in ath3k_load_syscfg() 482 ret = ath3k_load_patch(udev); in ath3k_probe() 487 ret = ath3k_load_syscfg(udev); in ath3k_probe() 492 ret = ath3k_set_normal_mode(udev); in ath3k_probe() [all …]
|
| /drivers/net/wireless/purelifi/plfxlc/ |
| A D | firmware.c | 15 return usb_control_msg(udev, in send_vendor_request() 16 usb_rcvctrlpipe(udev, 0), in send_vendor_request() 24 return usb_control_msg(udev, in send_vendor_command() 25 usb_sndctrlpipe(udev, 0), in send_vendor_command() 32 struct usb_device *udev = interface_to_usbdev(intf); in plfxlc_download_fpga() local 41 if ((le16_to_cpu(udev->descriptor.idVendor) == in plfxlc_download_fpga() 43 (le16_to_cpu(udev->descriptor.idProduct) == in plfxlc_download_fpga() 48 } else if ((le16_to_cpu(udev->descriptor.idVendor)) == in plfxlc_download_fpga() 50 (le16_to_cpu(udev->descriptor.idProduct) == in plfxlc_download_fpga() 71 send_vendor_request(udev, PLF_VNDR_FPGA_SET_REQ, in plfxlc_download_fpga() [all …]
|
| /drivers/net/wireless/marvell/libertas_tf/ |
| A 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() 226 usb_get_dev(udev); in if_usb_probe() 314 lbtf_deb_usb2(&cardp->udev->dev, in if_usb_send_fw_pkt() 318 lbtf_deb_usb2(&cardp->udev->dev, in if_usb_send_fw_pkt() 391 usb_sndbulkpipe(cardp->udev, in usb_tx_block() 398 lbtf_deb_usbd(&cardp->udev->dev, in usb_tx_block() 439 lbtf_deb_usbd(&cardp->udev->dev, in __if_usb_submit_rx_urb() 471 lbtf_deb_usbd(&cardp->udev->dev, in if_usb_receive_fwload() [all …]
|
| /drivers/usb/serial/ |
| A 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() 257 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in ipw_close() [all …]
|
| /drivers/net/wireless/marvell/libertas/ |
| A 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() 279 usb_get_dev(udev); in if_usb_probe() 290 usb_put_dev(udev); in if_usb_probe() 430 usb_sndbulkpipe(cardp->udev, in usb_tx_block() 500 lbs_deb_usbd(&cardp->udev->dev, in if_usb_receive_fwload() 529 lbs_deb_usbd(&cardp->udev->dev, in if_usb_receive_fwload() 627 lbs_deb_usbd(&cardp->udev->dev, in process_cmdrequest() 645 lbs_deb_usbd(&cardp->udev->dev, in process_cmdrequest() [all …]
|
| /drivers/usb/host/ |
| A D | xhci.c | 1510 if (!udev->slot_id || !xhci->devs[udev->slot_id]) { in xhci_check_args() 1517 if (virt_dev->udev != udev) { in xhci_check_args() 3235 if (!udev || !udev->slot_id) in xhci_endpoint_disable() 3300 if (udev->speed != USB_SPEED_FULL || !udev->slot_id) in xhci_endpoint_reset() 3304 if (!vdev || vdev->udev != udev) in xhci_endpoint_reset() 3909 if (virt_dev->udev != udev) { in xhci_discover_or_reset_device() 4039 udev, in xhci_discover_or_reset_device() 4418 udev->slot_id, in xhci_setup_device() 4630 if (!udev->parent || udev->parent->parent || in xhci_set_usb2_hardware_lpm() 4730 if (!udev->parent || udev->parent->parent || in xhci_update_device() [all …]
|
| /drivers/media/usb/stk1160/ |
| A D | stk1160-core.c | 58 int pipe = usb_rcvctrlpipe(dev->udev, 0); in stk1160_read_reg() 84 int pipe = usb_sndctrlpipe(dev->udev, 0); in stk1160_write_reg() 195 if (udev->speed == USB_SPEED_HIGH) in stk1160_scan_usb() 219 switch (udev->speed) { in stk1160_scan_usb() 234 udev->manufacturer ? udev->manufacturer : "", in stk1160_scan_usb() 235 udev->product ? udev->product : "", in stk1160_scan_usb() 257 if (udev->speed != USB_SPEED_HIGH) in stk1160_scan_usb() 270 struct usb_device *udev; in stk1160_probe() local 273 udev = interface_to_usbdev(interface); in stk1160_probe() 306 dev->udev = udev; in stk1160_probe() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/engine/device/ |
| A D | user.c | 75 struct nvkm_object *object = &udev->object; in nvkm_udevice_info() 76 struct nvkm_device *device = udev->device; in nvkm_udevice_info() 177 struct nvkm_device *device = udev->device; in nvkm_udevice_time() 213 struct nvkm_device *device = udev->device; in nvkm_udevice_map() 224 struct nvkm_device *device = udev->device; in nvkm_udevice_fini() 245 struct nvkm_device *device = udev->device; in nvkm_udevice_init() 276 struct nvkm_device *device = udev->device; in nvkm_udevice_child_get() 328 struct nvkm_udevice *udev; in nvkm_udevice_new() local 330 if (!(udev = kzalloc(sizeof(*udev), GFP_KERNEL))) in nvkm_udevice_new() 333 *pobject = &udev->object; in nvkm_udevice_new() [all …]
|
| /drivers/hid/bpf/progs/ |
| A D | README | 9 They should be loaded in the kernel by `udev-hid-bpf`: 11 https://gitlab.freedesktop.org/libevdev/udev-hid-bpf 20 land in distributions when they update `udev-hid-bpf` 30 Just run `sudo udev-hid-bpf install ./my-awesome-fix.bpf.o` 34 - copy the `.bpf.o` you want in `/etc/udev-hid-bpf/` 35 - create a new udev rule to automatically load it 41 $> cp xppen-ArtistPro16Gen2.bpf.o /etc/udev-hid-bpf/ 42 $> udev-hid-bpf inspect xppen-ArtistPro16Gen2.bpf.o 81 ### udev rule 83 You can check that the udev rule is correctly working by issuing [all …]
|