Lines Matching refs:u_page

19 static const char *hid_get_usage_page_str(const int u_page);
23 static __always_inline const struct hid_usage_pages_string *hid_get_usage_page(const int u_page);
153 parser->u_page = (int)parser->value; in hid_parse()
155 … printk("%sUsage Page (%s)", __spaces(space_cnt), hid_get_usage_page_str(parser->u_page)); in hid_parse()
157 parser->usage_table[parser->usage_size].u_page = parser->u_page; in hid_parse()
163 parser->usage_table[parser->usage_size].u_page = (int)(parser->value >> 16); in hid_parse()
165 parser->usage_table[parser->usage_size].u_page = parser->u_page; in hid_parse()
169 hid_get_usage_type_str(parser->u_page, parser->value & 0xffff)); in hid_parse()
176 hid_get_usage_type_str(parser->u_page, parser->value)); in hid_parse()
182 hid_get_usage_type_str(parser->u_page, parser->value)); in hid_parse()
186 parser->data.path.node[parser->data.path.size].u_page = parser->usage_table[0].u_page; in hid_parse()
197 parser->data.path.node[parser->data.path.size].u_page = 0xff; in hid_parse()
210 if (parser->data.path.node[parser->data.path.size].u_page == 0xff) in hid_parse()
233 parser->data.path.node[parser->data.path.size].u_page = parser->usage_table[0].u_page; in hid_parse()
374 static __always_inline const struct hid_usage_pages_string *hid_get_usage_page(const int u_page) in hid_get_usage_page() argument
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()
417 static const char *hid_get_usage_page_str(const int u_page) in hid_get_usage_page_str() argument
420 const struct hid_usage_pages_string *upage = hid_get_usage_page(u_page); in hid_get_usage_page_str()
423 sprintk(__tmp_usage_page_str, "Unknown Usage Page: %#04x", u_page); in hid_get_usage_page_str()
529 found_data.report_id, found_data.path.node[0].u_page, found_data.path.node[0].usage); in __find_object()