Lines Matching defs:len
34 static int ssam_kbd_get_descriptor(struct surface_hid_device *shid, u8 entry, u8 *buf, size_t len)
48 rsp.capacity = len;
56 if (rsp.length != len) {
58 rsp.length, len);
81 static int ssam_kbd_get_feature_report(struct surface_hid_device *shid, u8 *buf, size_t len)
96 rsp.capacity = len;
104 if (rsp.length != len) {
106 rsp.length, len);
152 static int skbd_get_caps_led_value(struct hid_device *hid, u8 rprt_id, u8 *buf, size_t len)
164 if (len != hid_report_len(field->report))
184 static int skbd_output_report(struct surface_hid_device *shid, u8 rprt_id, u8 *buf, size_t len)
189 caps_led = skbd_get_caps_led_value(shid->hid, rprt_id, buf, len);
197 return len;
200 static int skbd_get_feature_report(struct surface_hid_device *shid, u8 rprt_id, u8 *buf, size_t len)
211 if (len < ARRAY_SIZE(report))
222 return len;
225 static int skbd_set_feature_report(struct surface_hid_device *shid, u8 rprt_id, u8 *buf, size_t len)