Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 25 of 185) sorted by relevance

12345678

/drivers/usb/core/
Dotg_whitelist.h54 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a && in is_targeted()
55 le16_to_cpu(dev->descriptor.idProduct) == 0xbadd)) in is_targeted()
59 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a && in is_targeted()
60 le16_to_cpu(dev->descriptor.idProduct) == 0x0200)) in is_targeted()
68 id->idVendor != le16_to_cpu(dev->descriptor.idVendor)) in is_targeted()
72 id->idProduct != le16_to_cpu(dev->descriptor.idProduct)) in is_targeted()
78 (id->bcdDevice_lo > le16_to_cpu(dev->descriptor.bcdDevice))) in is_targeted()
82 (id->bcdDevice_hi < le16_to_cpu(dev->descriptor.bcdDevice))) in is_targeted()
86 (id->bDeviceClass != dev->descriptor.bDeviceClass)) in is_targeted()
90 (id->bDeviceSubClass != dev->descriptor.bDeviceSubClass)) in is_targeted()
[all …]
Dhub.h60 struct usb_hub_descriptor *descriptor; /* class descriptor */ member
134 hcs = hub->descriptor->wHubCharacteristics; in hub_is_port_power_switchable()
140 return hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS; in hub_is_superspeed()
145 return (hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS && in hub_is_superspeedplus()
146 le16_to_cpu(hdev->descriptor.bcdUSB) >= 0x0310 && in hub_is_superspeedplus()
152 unsigned delay = hub->descriptor->bPwrOn2PwrGood * 2; in hub_power_on_good_delay()
Dsysfs.c201 bcdUSB = le16_to_cpu(udev->descriptor.bcdUSB); in version_show()
315 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB) in persist_store()
340 if (udev->descriptor.bDeviceClass != USB_CLASS_HUB) in add_persist_attributes()
679 le16_to_cpu(udev->descriptor.field)); \
695 return sprintf(buf, format_string, udev->descriptor.field); \
853 for (cfgno = -1; cfgno < udev->descriptor.bNumConfigurations && in read_descriptors()
856 src = &udev->descriptor; in read_descriptors()
979 le16_to_cpu(udev->descriptor.idVendor), in modalias_show()
980 le16_to_cpu(udev->descriptor.idProduct), in modalias_show()
981 le16_to_cpu(udev->descriptor.bcdDevice), in modalias_show()
[all …]
Dhub.c194 (hub->descriptor->u.ss.bHubHdrDecLat * 100); in usb_set_lpm_mel()
1323 hub->descriptor = kzalloc(sizeof(*hub->descriptor), GFP_KERNEL); in hub_configure()
1324 if (!hub->descriptor) { in hub_configure()
1333 ret = get_hub_descriptor(hdev, hub->descriptor); in hub_configure()
1343 if (hub->descriptor->bNbrPorts > maxchild) { in hub_configure()
1347 } else if (hub->descriptor->bNbrPorts == 0) { in hub_configure()
1353 maxchild = hub->descriptor->bNbrPorts; in hub_configure()
1363 wHubCharacteristics = le16_to_cpu(hub->descriptor->wHubCharacteristics); in hub_configure()
1378 portstr[i] = hub->descriptor->u.hs.DeviceRemovable in hub_configure()
1415 switch (hdev->descriptor.bDeviceProtocol) { in hub_configure()
[all …]
Ddriver.c615 id->idVendor != le16_to_cpu(dev->descriptor.idVendor)) in usb_match_device()
619 id->idProduct != le16_to_cpu(dev->descriptor.idProduct)) in usb_match_device()
625 (id->bcdDevice_lo > le16_to_cpu(dev->descriptor.bcdDevice))) in usb_match_device()
629 (id->bcdDevice_hi < le16_to_cpu(dev->descriptor.bcdDevice))) in usb_match_device()
633 (id->bDeviceClass != dev->descriptor.bDeviceClass)) in usb_match_device()
637 (id->bDeviceSubClass != dev->descriptor.bDeviceSubClass)) in usb_match_device()
641 (id->bDeviceProtocol != dev->descriptor.bDeviceProtocol)) in usb_match_device()
655 if (dev->descriptor.bDeviceClass == USB_CLASS_VENDOR_SPEC && in usb_match_one_id_intf()
860 le16_to_cpu(usb_dev->descriptor.idVendor), in usb_uevent()
861 le16_to_cpu(usb_dev->descriptor.idProduct), in usb_uevent()
[all …]
/drivers/staging/greybus/
Dmanifest.c46 static void release_manifest_descriptor(struct manifest_desc *descriptor) in release_manifest_descriptor() argument
48 list_del(&descriptor->links); in release_manifest_descriptor()
49 kfree(descriptor); in release_manifest_descriptor()
54 struct manifest_desc *descriptor; in release_manifest_descriptors() local
57 list_for_each_entry_safe(descriptor, next, &intf->manifest_descs, links) in release_manifest_descriptors()
58 release_manifest_descriptor(descriptor); in release_manifest_descriptors()
79 struct manifest_desc *descriptor; in get_next_bundle_desc() local
82 list_for_each_entry_safe(descriptor, next, &intf->manifest_descs, links) in get_next_bundle_desc()
83 if (descriptor->type == GREYBUS_TYPE_BUNDLE) in get_next_bundle_desc()
84 return descriptor; in get_next_bundle_desc()
[all …]
/drivers/acpi/acpica/
Duttrack.c577 union acpi_descriptor *descriptor; in acpi_ut_dump_allocations() local
599 descriptor = in acpi_ut_dump_allocations()
607 descriptor, element->size, in acpi_ut_dump_allocations()
612 if (ACPI_GET_DESCRIPTOR_TYPE(descriptor) != in acpi_ut_dump_allocations()
616 descriptor, element->size, in acpi_ut_dump_allocations()
619 (descriptor)); in acpi_ut_dump_allocations()
626 (descriptor)) { in acpi_ut_dump_allocations()
672 (descriptor->object.common. in acpi_ut_dump_allocations()
674 descriptor->object.common. in acpi_ut_dump_allocations()
682 descriptor->op.asl. in acpi_ut_dump_allocations()
[all …]
/drivers/usb/misc/
Dlvstest.c34 struct usb_hub_descriptor descriptor; member
244 struct usb_device_descriptor *descriptor; in get_dev_desc_store() local
247 descriptor = kmalloc(sizeof(*descriptor), GFP_KERNEL); in get_dev_desc_store()
248 if (!descriptor) in get_dev_desc_store()
260 0, descriptor, sizeof(*descriptor), in get_dev_desc_store()
268 kfree(descriptor); in get_dev_desc_store()
297 struct usb_hub_descriptor *descriptor = &lvs->descriptor; in lvs_rh_work() local
303 for (i = 1; i <= descriptor->bNbrPorts; i++) { in lvs_rh_work()
376 if (hdev->descriptor.bDeviceProtocol != USB_HUB_PR_SS || hdev->parent) { in lvs_rh_probe()
391 USB_DT_SS_HUB << 8, 0, &lvs->descriptor, in lvs_rh_probe()
/drivers/media/usb/dvb-usb/
Ddibusb-mc-common.c89 if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON && in dibusb_dib3000mc_frontend_attach()
90 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == in dibusb_dib3000mc_frontend_attach()
128 if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON && in dibusb_dib3000mc_tuner_attach()
129 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_LITEON_DVB_T_WARM) { in dibusb_dib3000mc_tuner_attach()
141 } else if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_DIBCOM && in dibusb_dib3000mc_tuner_attach()
142 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_DIBCOM_MOD3001_WARM) { in dibusb_dib3000mc_tuner_attach()
Dgp8psk.c190 int gp_product_id = le16_to_cpu(d->udev->descriptor.idProduct); in gp8psk_power_ctrl()
235 int gp_product_id = le16_to_cpu(d->udev->descriptor.idProduct); in gp8psk_bcm4500_reload()
291 int id = le16_to_cpu(d->udev->descriptor.idProduct); in gp8psk_frontend_attach()
312 le16_to_cpu(udev->descriptor.idProduct)); in gp8psk_usb_probe()
Ddvb-usb-init.c188 if (props->devices[i].cold_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && in dvb_usb_find_device()
189 props->devices[i].cold_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { in dvb_usb_find_device()
201 if (props->devices[i].warm_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && in dvb_usb_find_device()
202 props->devices[i].warm_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { in dvb_usb_find_device()
/drivers/usb/storage/
Duas-detect.h97 if (le16_to_cpu(udev->descriptor.idVendor) == 0x174c && in uas_use_uas_driver()
98 (le16_to_cpu(udev->descriptor.idProduct) == 0x5106 || in uas_use_uas_driver()
99 le16_to_cpu(udev->descriptor.idProduct) == 0x55aa)) { in uas_use_uas_driver()
115 if (le16_to_cpu(udev->descriptor.idVendor) == 0x0bc2) in uas_use_uas_driver()
Dusual-tables.c114 vid = le16_to_cpu(udev->descriptor.idVendor); in usb_usual_ignore_device()
115 pid = le16_to_cpu(udev->descriptor.idProduct); in usb_usual_ignore_device()
116 bcd = le16_to_cpu(udev->descriptor.bcdDevice); in usb_usual_ignore_device()
Dusb.c297 u16 bcdDevice = le16_to_cpu(us->pusb_dev->descriptor.bcdDevice); in fill_inquiry_response()
458 le16_to_cpu(us->pusb_dev->descriptor.idVendor), in associate_dev()
459 le16_to_cpu(us->pusb_dev->descriptor.idProduct), in associate_dev()
460 le16_to_cpu(us->pusb_dev->descriptor.bcdDevice)); in associate_dev()
489 u16 vid = le16_to_cpu(udev->descriptor.idVendor); in usb_stor_adjust_quirks()
490 u16 pid = le16_to_cpu(udev->descriptor.idProduct); in usb_stor_adjust_quirks()
629 le16_to_cpu(dev->descriptor.idVendor), in get_device_info()
630 le16_to_cpu(dev->descriptor.idProduct), in get_device_info()
644 struct usb_device_descriptor *ddesc = &dev->descriptor; in get_device_info()
Dcypress_atacb.c271 if (device->descriptor.iManufacturer != 0x38 || in cypress_probe()
272 device->descriptor.iProduct != 0x4e || in cypress_probe()
273 device->descriptor.iSerialNumber != 0x64) { in cypress_probe()
/drivers/gpu/drm/qxl/
Dqxl_image.c193 image->descriptor.id = 0; in qxl_image_init_helper()
194 image->descriptor.type = SPICE_IMAGE_TYPE_BITMAP; in qxl_image_init_helper()
196 image->descriptor.flags = 0; in qxl_image_init_helper()
197 image->descriptor.width = width; in qxl_image_init_helper()
198 image->descriptor.height = height; in qxl_image_init_helper()
/drivers/vme/bridges/
Dvme_ca91cx42.c1048 if ((unsigned long)&entry->descriptor & CA91CX42_DCPP_M) { in ca91cx42_dma_list_add()
1050 "required: %p\n", &entry->descriptor); in ca91cx42_dma_list_add()
1055 memset(&entry->descriptor, 0, sizeof(struct ca91cx42_dma_descriptor)); in ca91cx42_dma_list_add()
1058 entry->descriptor.dctl |= CA91CX42_DCTL_L2V; in ca91cx42_dma_list_add()
1095 entry->descriptor.dctl |= CA91CX42_DCTL_VCT_BLT; in ca91cx42_dma_list_add()
1100 entry->descriptor.dctl |= CA91CX42_DCTL_VDW_D8; in ca91cx42_dma_list_add()
1103 entry->descriptor.dctl |= CA91CX42_DCTL_VDW_D16; in ca91cx42_dma_list_add()
1106 entry->descriptor.dctl |= CA91CX42_DCTL_VDW_D32; in ca91cx42_dma_list_add()
1109 entry->descriptor.dctl |= CA91CX42_DCTL_VDW_D64; in ca91cx42_dma_list_add()
1119 entry->descriptor.dctl |= CA91CX42_DCTL_VAS_A16; in ca91cx42_dma_list_add()
[all …]
Dvme_tsi148.c1653 if ((unsigned long)&entry->descriptor & 0x7) { in tsi148_dma_list_add()
1656 &entry->descriptor); in tsi148_dma_list_add()
1664 memset(&entry->descriptor, 0, sizeof(struct tsi148_dma_descriptor)); in tsi148_dma_list_add()
1671 entry->descriptor.dsal = cpu_to_be32(pattern_attr->pattern); in tsi148_dma_list_add()
1682 entry->descriptor.dsat = cpu_to_be32(val); in tsi148_dma_list_add()
1689 entry->descriptor.dsau = cpu_to_be32(address_high); in tsi148_dma_list_add()
1690 entry->descriptor.dsal = cpu_to_be32(address_low); in tsi148_dma_list_add()
1691 entry->descriptor.dsat = cpu_to_be32(TSI148_LCSR_DSAT_TYP_PCI); in tsi148_dma_list_add()
1698 entry->descriptor.dsau = cpu_to_be32(address_high); in tsi148_dma_list_add()
1699 entry->descriptor.dsal = cpu_to_be32(address_low); in tsi148_dma_list_add()
[all …]
/drivers/media/usb/go7007/
Dgo7007-loader.c56 if (usbdev->descriptor.bNumConfigurations != 1) { in go7007_loader_probe()
61 vendor = le16_to_cpu(usbdev->descriptor.idVendor); in go7007_loader_probe()
62 product = le16_to_cpu(usbdev->descriptor.idProduct); in go7007_loader_probe()
/drivers/thunderbolt/
Dnhi.c137 struct ring_desc *descriptor; in ring_write_descriptors() local
142 descriptor = &ring->descriptors[ring->head]; in ring_write_descriptors()
143 descriptor->phys = frame->buffer_phy; in ring_write_descriptors()
144 descriptor->time = 0; in ring_write_descriptors()
145 descriptor->flags = RING_DESC_POSTED | RING_DESC_INTERRUPT; in ring_write_descriptors()
147 descriptor->length = frame->size; in ring_write_descriptors()
148 descriptor->eof = frame->eof; in ring_write_descriptors()
149 descriptor->sof = frame->sof; in ring_write_descriptors()
/drivers/media/rc/
Dstreamzap.c302 le16_to_cpu(sz->usbdev->descriptor.idVendor), in streamzap_init_rc_dev()
303 le16_to_cpu(sz->usbdev->descriptor.idProduct)); in streamzap_init_rc_dev()
402 if (usbdev->descriptor.iManufacturer in streamzap_probe()
403 && usb_string(usbdev, usbdev->descriptor.iManufacturer, in streamzap_probe()
407 if (usbdev->descriptor.iProduct in streamzap_probe()
408 && usb_string(usbdev, usbdev->descriptor.iProduct, in streamzap_probe()
/drivers/firewire/
Dohci.c77 struct descriptor { struct
104 struct descriptor *descriptors; argument
115 struct descriptor *d,
116 struct descriptor *last);
127 struct descriptor buffer[0];
155 struct descriptor *last;
161 struct descriptor *prev;
672 struct descriptor *d; in ar_context_link_page()
991 struct descriptor *d; in ar_context_init()
1030 ar_next_buffer_index(i) * sizeof(struct descriptor)); in ar_context_init()
[all …]
/drivers/input/tablet/
Dacecad.c213 le16_to_cpu(dev->descriptor.idVendor), in usb_acecad_probe()
214 le16_to_cpu(dev->descriptor.idProduct)); in usb_acecad_probe()
224 le16_to_cpu(dev->descriptor.idVendor), in usb_acecad_probe()
225 le16_to_cpu(dev->descriptor.idProduct)); in usb_acecad_probe()
/drivers/media/common/siano/
Dsmsir.c84 dev->input_id.vendor = le16_to_cpu(dev->udev->descriptor.idVendor); in sms_ir_init()
85 dev->input_id.product = le16_to_cpu(dev->udev->descriptor.idProduct); in sms_ir_init()
/drivers/hid/
Dhid-elo.c194 u16 fw_lvl = le16_to_cpu(dev->descriptor.bcdDevice); in elo_broken_firmware()
205 child_vid = le16_to_cpu(child->descriptor.idVendor); in elo_broken_firmware()
206 child_pid = le16_to_cpu(child->descriptor.idProduct); in elo_broken_firmware()

12345678