Lines Matching defs:buf
542 hid_report_size(const void *buf, usb_size_t len, enum hid_kind k, uint8_t *id)
555 for (d = hid_start_parse(buf, len, 1 << k); hid_get_item(d, &h);) {
629 hid_get_data_sub(const uint8_t *buf, usb_size_t len, struct hid_location *loc,
654 data |= buf[rpos] << (8 * n);
673 hid_get_data(const uint8_t *buf, usb_size_t len, struct hid_location *loc)
675 return (hid_get_data_sub(buf, len, loc, 1));
679 hid_get_data_unsigned(const uint8_t *buf, usb_size_t len, struct hid_location *loc)
681 return (hid_get_data_sub(buf, len, loc, 0));
688 hid_put_data_unsigned(uint8_t *buf, usb_size_t len,
715 buf[rpos] &= ~(mask >> (8 * n));
716 buf[rpos] |= (data >> (8 * n));