Lines Matching refs:pos
121 while (!found && (parser->pos < parser->report_desc_size)) in hid_parse()
128 printk("\n %02X ", parser->report_desc[parser->pos]); in hid_parse()
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()
140 printk("%02X ", parser->report_desc[parser->pos + i]); in hid_parse()
146 parser->pos += item_size[parser->item & HID_SIZE_MASK]; in hid_parse()
500 int pos = 0; in __get_report_offset() local
502 while ((pos < HID_MAX_REPORT) && (parser->offset_table[pos][0] != 0)) // 当offset的id不为0时 in __get_report_offset()
504 … if ((parser->offset_table[pos][0] == report_id) && (parser->offset_table[pos][1] == report_type)) in __get_report_offset()
505 return &parser->offset_table[pos][2]; in __get_report_offset()
506 ++pos; in __get_report_offset()
509 if (pos < HID_MAX_REPORT) in __get_report_offset()
512 parser->offset_table[pos][0] = report_id; in __get_report_offset()
513 parser->offset_table[pos][1] = report_type; in __get_report_offset()
514 parser->offset_table[pos][2] = 0; in __get_report_offset()
515 return &parser->offset_table[pos][2]; in __get_report_offset()