Home
last modified time | relevance | path

Searched refs:report_size (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.15/drivers/hid/amd-sfh-hid/hid_descriptor/
Damd_sfh_hid_desc.c141 u8 report_size = 0; in get_feature_report() local
144 return report_size; in get_feature_report()
153 report_size = sizeof(acc_feature); in get_feature_report()
161 report_size = sizeof(gyro_feature); in get_feature_report()
172 report_size = sizeof(magno_feature); in get_feature_report()
180 report_size = sizeof(als_feature); in get_feature_report()
185 report_size = sizeof(hpd_feature); in get_feature_report()
191 return report_size; in get_feature_report()
213 u8 report_size = 0; in get_input_report() local
216 return report_size; in get_input_report()
[all …]
/Linux-v5.15/drivers/usb/misc/
Diowarrior.c93 int report_size; /* number of bytes in a report */ member
188 offset = aux_idx * (dev->report_size + 1); in iowarrior_callback()
191 dev->report_size)) { in iowarrior_callback()
207 offset = intr_idx * (dev->report_size + 1); in iowarrior_callback()
209 dev->report_size); in iowarrior_callback()
210 *(dev->read_queue + offset + (dev->report_size)) = dev->serial_number++; in iowarrior_callback()
295 if ((count != dev->report_size) in iowarrior_read()
296 && (count != (dev->report_size + 1))) in iowarrior_read()
329 offset = read_idx * (dev->report_size + 1); in iowarrior_read()
368 if (count != dev->report_size) { in iowarrior_write()
[all …]
/Linux-v5.15/drivers/hid/
Dhid-led.c76 size_t report_size; member
123 memcpy(ldev->buf, buf, ldev->config->report_size); in hidled_send()
127 ldev->config->report_size, in hidled_send()
132 ldev->config->report_size); in hidled_send()
141 return ret == ldev->config->report_size ? 0 : -EMSGSIZE; in hidled_send()
154 memcpy(ldev->buf, buf, ldev->config->report_size); in hidled_recv()
157 ldev->config->report_size, in hidled_recv()
164 ldev->config->report_size, in hidled_recv()
168 memcpy(buf, ldev->buf, ldev->config->report_size); in hidled_recv()
258 .report_size = 9,
[all …]
Dhid-roccat.c41 int report_size; member
123 len = device->report_size > count ? count : device->report_size; in roccat_read()
256 new_value = kmemdup(data, device->report_size, GFP_ATOMIC); in roccat_report_event()
294 int roccat_connect(struct class *klass, struct hid_device *hid, int report_size) in roccat_connect() argument
342 device->report_size = report_size; in roccat_connect()
393 if (put_user(device->report_size, (int __user *)arg)) in roccat_ioctl()
Dhid-sensor-hub.c92 info->size = (field->report_size * field->report_count)/8; in sensor_hub_fill_attr_info()
243 int report_size; in sensor_hub_get_feature() local
262 report_size = DIV_ROUND_UP(report->field[field_index]->report_size, in sensor_hub_get_feature()
265 if (!report_size) { in sensor_hub_get_feature()
269 ret = min(report_size, buffer_size); in sensor_hub_get_feature()
277 report->field[field_index]->report_size / 8); in sensor_hub_get_feature()
279 buffer_index += (report->field[field_index]->report_size / 8); in sensor_hub_get_feature()
499 (report->field[i]->report_size * in sensor_hub_raw_event()
501 sz = (report->field[i]->report_size * in sensor_hub_raw_event()
Dhid-sensor-custom.c501 sensor_field->attribute.size = (field->report_size / 8); in hid_sensor_custom_add_field()
516 sensor_inst->input_report_size += (field->report_size * in hid_sensor_custom_add_field()
773 int report_size; in get_known_custom_sensor_index() local
789 report_size = in get_known_custom_sensor_index()
793 if (report_size <= 0) { in get_known_custom_sensor_index()
796 report_size); in get_known_custom_sensor_index()
818 report_size = sensor_hub_get_feature(hsdev, sensor_luid_info.report_id, in get_known_custom_sensor_index()
821 if (report_size <= 0) { in get_known_custom_sensor_index()
823 report_size); in get_known_custom_sensor_index()
Dhid-asus.c111 int report_size; member
137 .report_size = 28 /* 2 byte header + 5 * 5 + 1 byte footer */,
147 .report_size = 28 /* 2 byte header + 5 * 5 + 1 byte footer */,
157 .report_size = 28 /* 2 byte header + 5 * 5 + 1 byte footer */,
167 .report_size = 28 /* 2 byte header + 5 * 5 + 1 byte footer */,
177 .report_size = 15 /* 2 byte header + 3 * 4 + 1 byte footer */,
187 .report_size = 32 /* 2 byte header + 5 * 5 + 5 byte footer */,
255 if (size != drvdat->tp->report_size) in asus_report_input()
Dhid-picolcd_lcd.c63 report->field[0]->report_size != 8) { in picolcd_init_lcd()
Dhid-core.c289 report->size += parser->global.report_size * parser->global.report_count; in hid_add_field()
327 field->report_size = parser->global.report_size; in hid_add_field()
436 parser->global.report_size = item_udata(item); in hid_parser_global()
437 if (parser->global.report_size > 256) { in hid_parser_global()
439 parser->global.report_size); in hid_parser_global()
788 parser->global.report_size == 8) in hid_scan_feature_usage()
792 parser->global.report_size == 8) in hid_scan_feature_usage()
1539 unsigned size = field->report_size; in hid_input_field()
1597 unsigned size = field->report_size; in hid_output_field()
1668 size = field->report_size; in hid_set_field()
Dhid-picolcd_backlight.c61 report->field[0]->report_size != 8) { in picolcd_init_backlight()
Dhid-picolcd_leds.c107 report->field[0]->report_size != 8) { in picolcd_init_leds()
Dwacom_sys.c91 struct hid_report *report, u8 *raw_data, int report_size) in wacom_wac_pen_serial_enforce() argument
120 size = field->report_size; in wacom_wac_pen_serial_enforce()
153 raw_data, report_size); in wacom_wac_pen_serial_enforce()
262 field->report_size == 16 && in wacom_hid_usage_quirk()
269 a->report_size == 32 && in wacom_hid_usage_quirk()
272 b->report_size == 8) { in wacom_hid_usage_quirk()
2202 size_t report_size = hid_report_len(report); in wacom_compute_pktlen() local
2203 if (report_size > size) in wacom_compute_pktlen()
2204 size = report_size; in wacom_compute_pktlen()
Dhid-google-hammer.c504 field->report_offset, field->report_size); in hammer_get_folded_state()
Dhid-picolcd_core.c417 report->field[0]->report_size != 8) { in picolcd_init_keys()
Dhid-debug.c603 tab(n, f); seq_printf(f, "Report Size(%u)\n", field->report_size); in hid_dump_field()
Dhid-picolcd_debugfs.c858 if (flash_r && flash_r->maxfield == 1 && flash_r->field[0]->report_size == 8) in picolcd_init_devfs()
/Linux-v5.15/drivers/hid/amd-sfh-hid/
Damd_sfh_client.c83 u8 report_size = 0; in amd_sfh_work() local
94 report_size = get_feature_report(sensor_index, report_id, in amd_sfh_work()
96 if (report_size) in amd_sfh_work()
99 cli_data->feature_report[current_index], report_size, 0); in amd_sfh_work()
104 report_size = get_input_report(current_index, sensor_index, report_id, in_data); in amd_sfh_work()
105 if (report_size) in amd_sfh_work()
108 in_data->input_report[current_index], report_size, 0); in amd_sfh_work()
121 u8 report_size; in amd_sfh_work_buffer() local
126 report_size = get_input_report in amd_sfh_work_buffer()
129 in_data->input_report[i], report_size, 0); in amd_sfh_work_buffer()
/Linux-v5.15/drivers/input/rmi4/
Drmi_f54.c107 int report_size; member
349 memcpy(ptr, f54->report_data, f54->report_size); in rmi_f54_buffer_queue()
538 int report_size; in rmi_f54_work() local
543 report_size = rmi_f54_get_report_size(f54); in rmi_f54_work()
544 if (report_size == 0) { in rmi_f54_work()
568 report_size = 0; in rmi_f54_work()
574 for (i = 0; i < report_size; i += F54_REPORT_DATA_SIZE) { in rmi_f54_work()
575 int size = min(F54_REPORT_DATA_SIZE, report_size - i); in rmi_f54_work()
598 f54->report_size = error ? 0 : report_size; in rmi_f54_work()
601 report_size = 0; in rmi_f54_work()
[all …]
/Linux-v5.15/include/linux/
Dhid-roccat.h20 int report_size);
Dhid.h404 unsigned report_size; member
463 unsigned report_size; /* size of this field in the report */ member
/Linux-v5.15/include/linux/usb/
Diowarrior.h34 __u32 report_size; member
/Linux-v5.15/drivers/gpu/drm/i915/
Di915_perf.c459 int report_size = stream->oa_buffer.format_size; in oa_buffer_check_unlocked() local
476 hw_tail &= ~(report_size - 1); in oa_buffer_check_unlocked()
511 while (OA_TAKEN(tail, aged_tail) >= report_size) { in oa_buffer_check_unlocked()
517 tail = (tail - report_size) & (OA_BUFFER_SIZE - 1); in oa_buffer_check_unlocked()
520 if (OA_TAKEN(hw_tail, tail) > report_size && in oa_buffer_check_unlocked()
532 stream->oa_buffer.head - gtt_offset) >= report_size; in oa_buffer_check_unlocked()
596 int report_size = stream->oa_buffer.format_size; in append_oa_sample() local
611 if (copy_to_user(buf, report, report_size)) in append_oa_sample()
646 int report_size = stream->oa_buffer.format_size; in gen8_append_oa_reports() local
681 head > OA_BUFFER_SIZE || head % report_size || in gen8_append_oa_reports()
[all …]
/Linux-v5.15/drivers/input/touchscreen/
Draydium_i2c_ts.c131 u8 report_size; member
318 ts->report_size = ts->pkg_size - RM_PACKET_CRC_SIZE; in raydium_i2c_query_ts_info()
326 ts->data_bank_addr, ts->report_size, ts->contact_size); in raydium_i2c_query_ts_info()
834 for (i = 0; i < ts->report_size / ts->contact_size; i++) { in raydium_mt_event()
878 fw_crc = get_unaligned_le16(&ts->report_data[ts->report_size]); in raydium_i2c_irq()
879 calc_crc = raydium_calc_chksum(ts->report_data, ts->report_size); in raydium_i2c_irq()
/Linux-v5.15/drivers/hid/i2c-hid/
Di2c-hid-core.c581 static int i2c_hid_alloc_buffers(struct i2c_hid *ihid, size_t report_size) in i2c_hid_alloc_buffers() argument
589 report_size; /* report */ in i2c_hid_alloc_buffers()
591 ihid->inbuf = kzalloc(report_size, GFP_KERNEL); in i2c_hid_alloc_buffers()
592 ihid->rawbuf = kzalloc(report_size, GFP_KERNEL); in i2c_hid_alloc_buffers()
601 ihid->bufsize = report_size; in i2c_hid_alloc_buffers()
/Linux-v5.15/drivers/hid/surface-hid/
Dsurface_kbd.c179 size = field->report_size; in skbd_get_caps_led_value()

12