Lines Matching refs:hdesc
101 struct i2c_hid_desc hdesc; /* the HID Descriptor */ member
247 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wCommandRegister; in i2c_hid_get_report()
258 put_unaligned_le16(le16_to_cpu(ihid->hdesc.wDataRegister), in i2c_hid_get_report()
333 if (!do_set && le16_to_cpu(ihid->hdesc.wMaxOutputLength) == 0) in i2c_hid_set_or_send_report()
338 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wCommandRegister; in i2c_hid_set_or_send_report()
349 put_unaligned_le16(le16_to_cpu(ihid->hdesc.wDataRegister), in i2c_hid_set_or_send_report()
357 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister; in i2c_hid_set_or_send_report()
379 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wCommandRegister; in i2c_hid_set_power_command()
440 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wCommandRegister; in i2c_hid_execute_reset()
509 u16 size = le16_to_cpu(ihid->hdesc.wMaxInputLength); in i2c_hid_get_input()
733 struct i2c_hid_desc *hdesc = &ihid->hdesc; in i2c_hid_parse() local
742 rsize = le16_to_cpu(hdesc->wReportDescLength); in i2c_hid_parse()
774 ihid->hdesc.wReportDescRegister, in i2c_hid_parse()
883 struct i2c_hid_desc *hdesc = &ihid->hdesc; in i2c_hid_fetch_hid_descriptor() local
890 ihid->hdesc = in i2c_hid_fetch_hid_descriptor()
896 &ihid->hdesc, in i2c_hid_fetch_hid_descriptor()
897 sizeof(ihid->hdesc)); in i2c_hid_fetch_hid_descriptor()
910 if (le16_to_cpu(hdesc->bcdVersion) != 0x0100) { in i2c_hid_fetch_hid_descriptor()
913 le16_to_cpu(hdesc->bcdVersion)); in i2c_hid_fetch_hid_descriptor()
918 dsize = le16_to_cpu(hdesc->wHIDDescLength); in i2c_hid_fetch_hid_descriptor()
924 i2c_hid_dbg(ihid, "HID Descriptor: %*ph\n", dsize, &ihid->hdesc); in i2c_hid_fetch_hid_descriptor()
1033 hid->version = le16_to_cpu(ihid->hdesc.bcdVersion); in i2c_hid_core_probe()
1034 hid->vendor = le16_to_cpu(ihid->hdesc.wVendorID); in i2c_hid_core_probe()
1035 hid->product = le16_to_cpu(ihid->hdesc.wProductID); in i2c_hid_core_probe()