Lines Matching refs:value

21 static const char *hid_get_collection_str(const int value);
61 static __always_inline uint32_t __format_value(uint32_t value, uint8_t size) in __format_value() argument
66 value = (uint32_t)(uint8_t)value; in __format_value()
69 value = (uint32_t)(uint16_t)value; in __format_value()
72 return value; in __format_value()
131 parser->value = 0; in hid_parse()
133 …memcpy(&parser->value, &parser->report_desc[parser->pos], item_size[parser->item & HID_SIZE_MASK]); in hid_parse()
153 parser->u_page = (int)parser->value; in hid_parse()
163 parser->usage_table[parser->usage_size].u_page = (int)(parser->value >> 16); in hid_parse()
169 hid_get_usage_type_str(parser->u_page, parser->value & 0xffff)); in hid_parse()
175 printk("%sUsage min (%i=%s)", __spaces(space_cnt), parser->value, in hid_parse()
176 hid_get_usage_type_str(parser->u_page, parser->value)); in hid_parse()
181 printk("%sUsage max (%i=%s)", __spaces(space_cnt), parser->value, in hid_parse()
182 hid_get_usage_type_str(parser->u_page, parser->value)); in hid_parse()
194 if (parser->value >= 0x80) in hid_parse()
198 parser->data.path.node[parser->data.path.size].usage = parser->value & 0x7f; in hid_parse()
203 … printk("%sCollection (%s)", __spaces(space_cnt), hid_get_collection_str(parser->value)); in hid_parse()
242 parser->data.attribute = (uint8_t)parser->value; in hid_parse()
277 … printk("(%s,%s,%s" /* ",%s,%s,%s,%s" */ ")", !(parser->value & (1 << 0)) ? "Data" : "Constant", in hid_parse()
278 !(parser->value & (1 << 1)) ? "Array" : "Variable", in hid_parse()
279 !(parser->value & (1 << 2)) ? "Absolute" : "Relative" /*, in hid_parse()
293 parser->data.report_id = (uint8_t)parser->value; in hid_parse()
298 parser->data.size = parser->value; in hid_parse()
303 parser->report_count = parser->value; in hid_parse()
308 parser->data.unit_exp = (int8_t)parser->value; in hid_parse()
315 parser->data.unit = parser->value; 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()
377 while ((hid_usage_page_strings[i].value < u_page) && (hid_usage_page_strings[i].value < 0xffff)) in hid_get_usage_page()
379 if ((hid_usage_page_strings[i].value != u_page) || (hid_usage_page_strings[i].value == 0xffff)) in hid_get_usage_page()
402 while ((types[i].value < type) && (types[i].value != 0xffff)) in hid_get_usage_type()
405 if ((types[i].value != type) || (types[i].value == 0xffff)) in hid_get_usage_type()
478 static const char *hid_get_collection_str(const int value) in hid_get_collection_str() argument
480 if (value <= 0x06) in hid_get_collection_str()
481 return hid_collection_str[value]; in hid_get_collection_str()
482 else if (value <= 0x7f) in hid_get_collection_str()
484 else if (value <= 0xff) in hid_get_collection_str()