Lines Matching refs:item
130 parser->item = parser->report_desc[parser->pos++]; in hid_parse()
133 …memcpy(&parser->value, &parser->report_desc[parser->pos], item_size[parser->item & HID_SIZE_MASK]); in hid_parse()
139 if (i < item_size[parser->item & HID_SIZE_MASK]) in hid_parse()
146 parser->pos += item_size[parser->item & HID_SIZE_MASK]; in hid_parse()
149 switch (parser->item & HID_ITEM_MASK) in hid_parse()
162 if ((parser->item & HID_SIZE_MASK) > 2) // item大小为32字节 in hid_parse()
241 parser->data.type = (uint8_t)(parser->item & HID_ITEM_MASK); in hid_parse()
244 … __get_report_offset(parser, parser->data.report_id, (uint8_t)(parser->item & HID_ITEM_MASK)); in hid_parse()
270 if ((parser->item & HID_ITEM_MASK) == HID_ITEM_FEATURE) in hid_parse()
272 else if ((parser->item & HID_ITEM_MASK) == HID_ITEM_INPUT) in hid_parse()
274 else if ((parser->item & HID_ITEM_MASK) == HID_ITEM_OUTPUT) in hid_parse()
320 … parser->data.logical_min = __format_value(parser->value, item_size[parser->item & HID_SIZE_MASK]); in hid_parse()
325 … parser->data.logical_max = __format_value(parser->value, item_size[parser->item & HID_SIZE_MASK]); in hid_parse()
330 … parser->data.phys_min = __format_value(parser->value, item_size[parser->item & HID_SIZE_MASK]); in hid_parse()
335 … parser->data.phys_max = __format_value(parser->value, item_size[parser->item & HID_SIZE_MASK]); in hid_parse()
340 printk("\n Found unknown item %#02X\n", parser->item & HID_ITEM_MASK); in hid_parse()