Searched refs:item_size (Results 1 – 1 of 1) sorted by relevance
118 static int item_size[4] = {0, 1, 2, 4}; in hid_parse() local133 …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()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()