Lines Matching refs:rid
304 int dlen, havedata, i, match, r, rid, use_rid; in dumpdata() local
309 rid = -1; in dumpdata()
313 if (++rid >= 256) { in dumpdata()
314 rid = 0; in dumpdata()
318 rid = -1; in dumpdata()
320 if (rid == var->h.report_ID && in dumpdata()
327 dlen = hid_report_size(rd, kind < 3 ? kind : hid_input, rid); in dumpdata()
333 dbuf[0] = rid; in dumpdata()
336 warn("hid_get_report(rid %d)", rid); in dumpdata()
337 havedata = !r && (rid == 0 || dbuf[0] == rid); in dumpdata()
338 if (rid != 0) in dumpdata()
339 dbuf[0] = rid; in dumpdata()
381 int dlen, i, r, rid; in writedata() local
386 rid = 0; in writedata()
388 for (rid = 0; rid < 256; rid ++) { in writedata()
390 if (rid == var->h.report_ID && kind == var->h.kind) in writedata()
395 dlen = hid_report_size(rd, kind, rid); in writedata()
400 dbuf[0] = rid; in writedata()
406 rid, dlen); in writedata()
412 warn("hid_get_report(rid %d)", rid); in writedata()
418 rid, dlen); in writedata()
422 if (rid != var->h.report_ID || kind != var->h.kind) in writedata()
430 rid, dlen); in writedata()
437 warn("hid_set_report(rid %d)", rid); in writedata()