Home
last modified time | relevance | path

Searched refs:bcdDevice (Results 1 – 25 of 59) sorted by relevance

123

/Linux-v4.19/include/linux/usb/
Dcomposite.h538 u16 bcdDevice; member
552 module_param_named(bcdDevice, coverwrite.bcdDevice, ushort, S_IRUGO); \
553 MODULE_PARM_DESC(bcdDevice, "USB Device version (BCD)"); \
571 u16 bcdDevice; in get_default_bcdDevice() local
573 bcdDevice = bin2bcd((LINUX_VERSION_CODE >> 16 & 0xff)) << 8; in get_default_bcdDevice()
574 bcdDevice |= bin2bcd((LINUX_VERSION_CODE >> 8 & 0xff)); in get_default_bcdDevice()
575 return bcdDevice; in get_default_bcdDevice()
Dinput.h23 id->version = le16_to_cpu(dev->descriptor.bcdDevice); in usb_to_input_id()
/Linux-v4.19/drivers/usb/misc/
Dusblcd.c167 u16 bcdDevice; in lcd_ioctl() local
177 bcdDevice = le16_to_cpu((dev->udev)->descriptor.bcdDevice); in lcd_ioctl()
179 (bcdDevice & 0xF000)>>12, in lcd_ioctl()
180 (bcdDevice & 0xF00)>>8, in lcd_ioctl()
181 (bcdDevice & 0xF0)>>4, in lcd_ioctl()
182 (bcdDevice & 0xF)); in lcd_ioctl()
372 i = le16_to_cpu(dev->udev->descriptor.bcdDevice); in lcd_probe()
/Linux-v4.19/drivers/usb/core/
Dotg_whitelist.h74 (id->bcdDevice_lo > le16_to_cpu(dev->descriptor.bcdDevice))) in is_targeted()
78 (id->bcdDevice_hi < le16_to_cpu(dev->descriptor.bcdDevice))) in is_targeted()
Ddevices.c353 u16 bcdDevice = le16_to_cpu(desc->bcdDevice); in usb_dump_device_descriptor() local
370 bcdDevice >> 8, bcdDevice & 0xff); in usb_dump_device_descriptor()
/Linux-v4.19/drivers/usb/storage/
Dusb.c280 u16 bcdDevice = le16_to_cpu(us->pusb_dev->descriptor.bcdDevice); in fill_inquiry_response() local
288 data[32] = 0x30 + ((bcdDevice>>12) & 0x0F); in fill_inquiry_response()
289 data[33] = 0x30 + ((bcdDevice>>8) & 0x0F); in fill_inquiry_response()
290 data[34] = 0x30 + ((bcdDevice>>4) & 0x0F); in fill_inquiry_response()
291 data[35] = 0x30 + ((bcdDevice) & 0x0F); in fill_inquiry_response()
449 le16_to_cpu(us->pusb_dev->descriptor.bcdDevice)); in associate_dev()
652 le16_to_cpu(ddesc->bcdDevice), in get_device_info()
Dusual-tables.c100 bcd = le16_to_cpu(udev->descriptor.bcdDevice); in usb_usual_ignore_device()
/Linux-v4.19/drivers/hid/
Dhid-lg4ff.c1186 …dentify_multimode_wheel(struct hid_device *hid, const u16 reported_product_id, const u16 bcdDevice) in lg4ff_identify_multimode_wheel() argument
1209 (bcdDevice & mask) == result) { in lg4ff_identify_multimode_wheel()
1217 …ith bcdDevice %X was not recognized as multimode wheel, leaving in its current mode\n", bcdDevice); in lg4ff_identify_multimode_wheel()
1221 …int lg4ff_handle_multimode_wheel(struct hid_device *hid, u16 *real_product_id, const u16 bcdDevice) in lg4ff_handle_multimode_wheel() argument
1226 *real_product_id = lg4ff_identify_multimode_wheel(hid, reported_product_id, bcdDevice); in lg4ff_handle_multimode_wheel()
1267 const u16 bcdDevice = le16_to_cpu(udesc->bcdDevice); in lg4ff_init() local
1293 mmode_ret = lg4ff_handle_multimode_wheel(hid, &real_product_id, bcdDevice); in lg4ff_init()
1355 if ((bcdDevice >> 8) == LG4FF_FFEX_REV_MAJ && in lg4ff_init()
1356 (bcdDevice & 0xff) == LG4FF_FFEX_REV_MIN) in lg4ff_init()
Dhid-elo.c194 u16 fw_lvl = le16_to_cpu(dev->descriptor.bcdDevice); in elo_broken_firmware()
/Linux-v4.19/tools/usb/usbip/libsrc/
Dusbip_common.c123 DBG_UDEV_INTEGER(bcdDevice); in dump_usb_device()
217 READ_ATTR(udev, uint16_t, sdev, bcdDevice, "%04x\n"); in read_usb_device()
Dusbip_common.h121 uint16_t bcdDevice; member
Dusbip_device_driver.c104 copy_descr_attr16(dev, &descr, bcdDevice); in read_usb_vudc_device()
/Linux-v4.19/drivers/usb/gadget/
Dconfigfs.c183 GI_DEVICE_DESC_SIMPLE_R_u16(bcdDevice);
201 u16 bcdDevice; in gadget_dev_desc_bcdDevice_store() local
204 ret = kstrtou16(page, 0, &bcdDevice); in gadget_dev_desc_bcdDevice_store()
207 ret = is_valid_bcd(bcdDevice); in gadget_dev_desc_bcdDevice_store()
211 to_gadget_info(item)->cdev.desc.bcdDevice = cpu_to_le16(bcdDevice); in gadget_dev_desc_bcdDevice_store()
300 CONFIGFS_ATTR(gadget_dev_desc_, bcdDevice);
1454 gi->cdev.desc.bcdDevice = cpu_to_le16(get_default_bcdDevice()); in gadgets_make()
Dcomposite.c2040 __le16 bcdDevice; in update_unchanged_dev_desc() local
2051 bcdDevice = new->bcdDevice; in update_unchanged_dev_desc()
2061 if (bcdDevice) in update_unchanged_dev_desc()
2062 new->bcdDevice = bcdDevice; in update_unchanged_dev_desc()
2064 new->bcdDevice = cpu_to_le16(get_default_bcdDevice()); in update_unchanged_dev_desc()
2412 if (covr->bcdDevice) in usb_composite_overwrite_options()
2413 desc->bcdDevice = cpu_to_le16(covr->bcdDevice); in usb_composite_overwrite_options()
/Linux-v4.19/drivers/usb/atm/
Dspeedtch.c351 const u16 bcdDevice = le16_to_cpu(interface_to_usbdev(intf)->descriptor.bcdDevice); in speedtch_find_firmware() local
352 const u8 major_revision = bcdDevice >> 8; in speedtch_find_firmware()
353 const u8 minor_revision = bcdDevice & 0xff; in speedtch_find_firmware()
/Linux-v4.19/drivers/usb/serial/
Dbelkin_sa.c127 (le16_to_cpu(dev->descriptor.bcdDevice) <= 0x0206) ? 1 : 0; in belkin_sa_port_probe()
129 le16_to_cpu(dev->descriptor.bcdDevice), in belkin_sa_port_probe()
/Linux-v4.19/drivers/i2c/busses/
Di2c-robotfuzz-osif.c169 version = le16_to_cpu(priv->usb_dev->descriptor.bcdDevice); in osif_probe()
Di2c-tiny-usb.c244 version = le16_to_cpu(dev->usb_dev->descriptor.bcdDevice); in i2c_tiny_usb_probe()
/Linux-v4.19/drivers/usb/gadget/legacy/
Dserial.c72 .bcdDevice = cpu_to_le16(GS_VERSION_NUM),
Dnokia.c93 .bcdDevice = cpu_to_le16(NOKIA_VERSION_NUM),
/Linux-v4.19/tools/usb/usbip/src/
Dusbip_network.c97 usbip_net_pack_uint16_t(pack, &udev->bcdDevice); in usbip_net_pack_usb_device()
/Linux-v4.19/drivers/net/wireless/zydas/zd1211rw/
Dzd_usb.c137 return le16_to_cpu(udev->descriptor.bcdDevice); in get_bcdDevice()
274 u16 bcdDevice; in upload_firmware() local
280 bcdDevice = get_bcdDevice(udev); in upload_firmware()
290 if (fw_bcdDevice != bcdDevice) { in upload_firmware()
293 "%#06x differ\n", fw_bcdDevice, bcdDevice); in upload_firmware()
294 if (bcdDevice <= 0x4313) in upload_firmware()
/Linux-v4.19/Documentation/ABI/testing/
Dconfigfs-usb-gadget23 bcdDevice - bcd device release number
/Linux-v4.19/Documentation/usb/
Dusbip_protocol.txt140 0x13C | 2 | | bcdDevice
222 0x138 | 2 | | bcdDevice
/Linux-v4.19/drivers/bluetooth/
Dbtusb.c2953 if (le16_to_cpu(udev->descriptor.bcdDevice) <= 0x0001 && in btusb_probe()
3168 u16 bcdDevice = le16_to_cpu(udev->descriptor.bcdDevice); in btusb_probe() local
3171 if (bcdDevice < 0x117) in btusb_probe()
3175 if (bcdDevice <= 0x100 || bcdDevice == 0x134) in btusb_probe()
3185 if (le16_to_cpu(udev->descriptor.bcdDevice) > 0x997) in btusb_probe()

123