Home
last modified time | relevance | path

Searched refs:report_type (Results 1 – 23 of 23) sorted by relevance

/Linux-v4.19/drivers/staging/greybus/
Dhid.c75 static int gb_hid_get_report(struct gb_hid *ghid, u8 report_type, u8 report_id, in gb_hid_get_report() argument
85 request.report_type = report_type; in gb_hid_get_report()
96 static int gb_hid_set_report(struct gb_hid *ghid, u8 report_type, u8 report_id, in gb_hid_set_report() argument
116 request->report_type = report_type; in gb_hid_set_report()
224 unsigned char report_type) in __gb_hid_get_raw_report() argument
229 if (report_type == HID_OUTPUT_REPORT) in __gb_hid_get_raw_report()
232 ret = gb_hid_get_report(ghid, report_type, report_number, buf, count); in __gb_hid_get_raw_report()
240 size_t len, unsigned char report_type) in __gb_hid_output_raw_report() argument
246 if (report_type == HID_INPUT_REPORT) in __gb_hid_output_raw_report()
254 ret = gb_hid_set_report(ghid, report_type, report_id, buf, len); in __gb_hid_output_raw_report()
Dgreybus_protocols.h681 __u8 report_type; member
687 __u8 report_type; member
/Linux-v4.19/drivers/hid/usbhid/
Dhiddev.c77 if (rinfo->report_type < HID_REPORT_TYPE_MIN || in hiddev_lookup_report()
78 rinfo->report_type > HID_REPORT_TYPE_MAX) in hiddev_lookup_report()
82 (rinfo->report_type - HID_REPORT_TYPE_MIN); in hiddev_lookup_report()
129 if (uref->report_type < HID_REPORT_TYPE_MIN || in hiddev_lookup_usage()
130 uref->report_type > HID_REPORT_TYPE_MAX) in hiddev_lookup_usage()
134 (uref->report_type - HID_REPORT_TYPE_MIN); in hiddev_lookup_usage()
182 unsigned type = field->report_type; in hiddev_hid_event()
185 uref.report_type = in hiddev_hid_event()
205 uref.report_type = in hiddev_report_event()
466 rinfo.report_type = uref->report_type; in hiddev_ioctl_usage()
[all …]
Dhid-pidff.c824 static void pidff_find_reports(struct hid_device *hid, int report_type, in pidff_find_reports() argument
831 &hid->report_enum[report_type].report_list, list) { in pidff_find_reports()
Dhid-core.c865 unsigned char report_type) in usbhid_get_raw_report() argument
886 ((report_type + 1) << 8) | report_number, in usbhid_get_raw_report()
/Linux-v4.19/drivers/hid/
Dhid-led.c80 enum hidled_report_type report_type; member
128 if (ldev->config->report_type == RAW_REQUEST) in hidled_send()
133 else if (ldev->config->report_type == OUTPUT_REPORT) in hidled_send()
152 if (ldev->config->report_type != RAW_REQUEST) in hidled_recv()
262 .report_type = RAW_REQUEST,
365 .report_type = OUTPUT_REPORT,
375 .report_type = RAW_REQUEST,
386 .report_type = RAW_REQUEST,
397 .report_type = RAW_REQUEST,
408 .report_type = OUTPUT_REPORT,
Dhid-logitech-dj.c107 u8 report_type; member
485 switch (dj_report.report_type) { in delayedwork_callback()
563 if ((dj_report->report_type > ARRAY_SIZE(hid_reportid_size_map) - 1) || in logi_dj_recv_forward_report()
564 (hid_reportid_size_map[dj_report->report_type] == 0)) { in logi_dj_recv_forward_report()
565 dbg_hid("invalid report type:%x\n", dj_report->report_type); in logi_dj_recv_forward_report()
570 HID_INPUT_REPORT, &dj_report->report_type, in logi_dj_recv_forward_report()
571 hid_reportid_size_map[dj_report->report_type], 1)) { in logi_dj_recv_forward_report()
623 dj_report->report_type = REPORT_TYPE_CMD_GET_PAIRED_DEVICES; in logi_dj_recv_query_paired_devices()
643 dj_report->report_type = REPORT_TYPE_CMD_SWITCH; in logi_dj_recv_switch_to_dj_mode()
704 size_t count, unsigned char report_type, in logi_dj_ll_raw_request() argument
[all …]
Dhidraw.c113 …_send_report(struct file *file, const char __user *buffer, size_t count, unsigned char report_type) in hidraw_send_report() argument
147 if ((report_type == HID_OUTPUT_REPORT) && in hidraw_send_report()
159 ret = hid_hw_raw_request(dev, buf[0], buf, count, report_type, in hidraw_send_report()
187 … hidraw_get_report(struct file *file, char __user *buffer, size_t count, unsigned char report_type) in hidraw_get_report() argument
236 ret = hid_hw_raw_request(dev, report_number, buf, count, report_type, in hidraw_get_report()
Dhid-sensor-custom.c483 int index, int report_type, in hid_sensor_custom_add_field() argument
513 if (report_type == HID_FEATURE_REPORT) in hid_sensor_custom_add_field()
518 else if (report_type == HID_INPUT_REPORT) { in hid_sensor_custom_add_field()
537 int report_type) in hid_sensor_custom_add_fields() argument
556 report_type, in hid_sensor_custom_add_fields()
Duhid.c52 u32 report_type; member
173 uhid->report_type = ev->type + 1; in __uhid_report_queue_and_wait()
201 if (uhid->report_type != ev->type || uhid->report_id != id) in uhid_report_wake_up()
329 unsigned char report_type) in uhid_hid_output_raw() argument
336 switch (report_type) { in uhid_hid_output_raw()
Dhid-cp2112.c328 u8 *data, size_t count, unsigned char report_type) in cp2112_hid_get() argument
338 report_type, HID_REQ_GET_REPORT); in cp2112_hid_get()
345 unsigned char report_type) in cp2112_hid_output() argument
354 if (report_type == HID_OUTPUT_REPORT) in cp2112_hid_output()
357 ret = hid_hw_raw_request(hdev, buf[0], buf, count, report_type, in cp2112_hid_output()
Dhid-input.c437 static int hidinput_setup_battery(struct hid_device *dev, unsigned report_type, struct hid_field *f… in hidinput_setup_battery() argument
483 report_type = HID_FEATURE_REPORT; in hidinput_setup_battery()
487 dev->battery_report_type = report_type; in hidinput_setup_battery()
495 dev->battery_avoid_query = report_type == HID_INPUT_REPORT && in hidinput_setup_battery()
550 static int hidinput_setup_battery(struct hid_device *dev, unsigned report_type, in hidinput_setup_battery() argument
583 if (field->report_type == HID_OUTPUT_REPORT && in hidinput_configure_usage()
Dhid-core.c236 static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsigned flags) in hid_add_field() argument
247 report = hid_register_report(parser->device, report_type, in hid_add_field()
298 field->report_type = report_type; in hid_add_field()
1222 for (; id->report_type != HID_TERMINATOR; id++) in hid_match_report()
1223 if (id->report_type == HID_ANY_ID || in hid_match_report()
1224 id->report_type == report->type) in hid_match_report()
Dhid-steam.c623 size_t count, unsigned char report_type, in steam_client_ll_raw_request() argument
629 report_type, reqtype); in steam_client_ll_raw_request()
/Linux-v4.19/include/uapi/linux/
Dhiddev.h67 __u32 report_type; member
92 __u32 report_type; member
122 __u32 report_type; member
/Linux-v4.19/drivers/hid/intel-ish-hid/
Dishtp-hid-client.c73 int report_type; in process_recv() local
213 report_type = HID_FEATURE_REPORT; in process_recv()
217 report_type = HID_INPUT_REPORT; in process_recv()
227 report_type, payload, in process_recv()
252 report_type = HID_INPUT_REPORT; in process_recv()
260 report_type, payload, in process_recv()
265 report_type = HID_INPUT_REPORT; in process_recv()
286 report_type, in process_recv()
411 int report_type) in hid_ishtp_get_report() argument
427 msg.hdr.command = (report_type == HID_FEATURE_REPORT) ? in hid_ishtp_get_report()
Dishtp-hid.h175 int report_type);
/Linux-v4.19/drivers/input/rmi4/
Drmi_f54.c101 enum rmi_f54_report_type report_type; member
173 static int rmi_f54_request_report(struct rmi_function *fn, u8 report_type) in rmi_f54_request_report() argument
180 if (f54->report_type != report_type) { in rmi_f54_request_report()
182 report_type); in rmi_f54_request_report()
185 f54->report_type = report_type; in rmi_f54_request_report()
542 f54->report_type); in rmi_f54_work()
/Linux-v4.19/net/bluetooth/hidp/
Dcore.c231 unsigned char report_type) in hidp_get_raw_report() argument
236 int numbered_reports = hid->report_enum[report_type].numbered; in hidp_get_raw_report()
242 switch (report_type) { in hidp_get_raw_report()
244 report_type = HIDP_TRANS_GET_REPORT | HIDP_DATA_RTYPE_FEATURE; in hidp_get_raw_report()
247 report_type = HIDP_TRANS_GET_REPORT | HIDP_DATA_RTYPE_INPUT; in hidp_get_raw_report()
250 report_type = HIDP_TRANS_GET_REPORT | HIDP_DATA_RTYPE_OUPUT; in hidp_get_raw_report()
260 session->waiting_report_type = report_type & HIDP_DATA_RTYPE_MASK; in hidp_get_raw_report()
264 ret = hidp_send_ctrl_message(session, report_type, data, 1); in hidp_get_raw_report()
315 unsigned char report_type) in hidp_set_raw_report() argument
320 switch (report_type) { in hidp_set_raw_report()
[all …]
/Linux-v4.19/drivers/hid/i2c-hid/
Di2c-hid.c575 unsigned char report_type) in i2c_hid_get_raw_report() argument
582 if (report_type == HID_OUTPUT_REPORT) in i2c_hid_get_raw_report()
589 report_type == HID_FEATURE_REPORT ? 0x03 : 0x01, in i2c_hid_get_raw_report()
610 size_t count, unsigned char report_type, bool use_data) in i2c_hid_output_raw_report() argument
617 if (report_type == HID_INPUT_REPORT) in i2c_hid_output_raw_report()
628 report_type == HID_FEATURE_REPORT ? 0x03 : 0x02, in i2c_hid_output_raw_report()
/Linux-v4.19/Documentation/hid/
Dhiddev.txt162 report_type in this structure, as above. The field_index should also
174 choose to fill in the report_type field and specify the report_id as
203 to read() filled in with the report_type and report_id, but
/Linux-v4.19/include/linux/
Dhid.h459 unsigned report_type; /* (input,output,feature) */ member
682 .report_type = (rep)
689 __u32 report_type; member
/Linux-v4.19/drivers/input/tablet/
Daiptek.c865 unsigned char report_type, in aiptek_set_report() argument
874 USB_DIR_OUT, (report_type << 8) + report_id, in aiptek_set_report()
880 unsigned char report_type, in aiptek_get_report() argument
889 USB_DIR_IN, (report_type << 8) + report_id, in aiptek_get_report()