Lines Matching +full:10 +full:k
1 /* $NetBSD: usage.c,v 1.8 2000/10/10 19:23:58 is Exp $ */
113 curpage->pagesizemax += 10; in hid_init()
143 curpage->pagesizemax = 10; in hid_init()
160 static char b[10]; in hid_usage_page()
161 int k; in hid_usage_page() local
166 for (k = 0; k < npages; k++) in hid_usage_page()
167 if (pages[k].usage == i) in hid_usage_page()
168 return pages[k].name; in hid_usage_page()
179 int j, k, us; in hid_usage_in_page() local
181 for (k = 0; k < npages; k++) in hid_usage_in_page()
182 if (pages[k].usage == page) in hid_usage_in_page()
184 if (k >= npages) in hid_usage_in_page()
186 for (j = 0; j < pages[k].pagesize; j++) { in hid_usage_in_page()
187 us = pages[k].page_contents[j].usage; in hid_usage_in_page()
190 fmtcheck(pages[k].page_contents[j].name, "%d"), in hid_usage_in_page()
195 return pages[k].page_contents[j].name; in hid_usage_in_page()
205 int k; in hid_parse_usage_page() local
210 for (k = 0; k < npages; k++) in hid_parse_usage_page()
211 if (strcmp(pages[k].name, name) == 0) in hid_parse_usage_page()
212 return pages[k].usage; in hid_parse_usage_page()
221 int k, j; in hid_parse_usage_in_page() local
228 for (k = 0; k < npages; k++) in hid_parse_usage_in_page()
229 if (strncmp(pages[k].name, name, l) == 0) in hid_parse_usage_in_page()
234 for (j = 0; j < pages[k].pagesize; j++) in hid_parse_usage_in_page()
235 if (strcmp(pages[k].page_contents[j].name, sep) == 0) in hid_parse_usage_in_page()
236 return (pages[k].usage << 16) | pages[k].page_contents[j].usage; in hid_parse_usage_in_page()