Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/staging/greybus/
H A Dhid.c74 static int gb_hid_get_report(struct gb_hid *ghid, u8 report_type, u8 report_id, in gb_hid_get_report() argument
84 request.report_type = report_type; in gb_hid_get_report()
95 static int gb_hid_set_report(struct gb_hid *ghid, u8 report_type, u8 report_id, in gb_hid_set_report() argument
115 request->report_type = report_type; in gb_hid_set_report()
225 unsigned char report_type) in __gb_hid_get_raw_report() argument
230 if (report_type == HID_OUTPUT_REPORT) in __gb_hid_get_raw_report()
233 ret = gb_hid_get_report(ghid, report_type, report_number, buf, count); in __gb_hid_get_raw_report()
241 size_t len, unsigned char report_type) in __gb_hid_output_raw_report() argument
247 if (report_type == HID_INPUT_REPORT) in __gb_hid_output_raw_report()
255 ret = gb_hid_set_report(ghid, report_type, report_id, buf, len); in __gb_hid_output_raw_report()
/OK3568_Linux_fs/kernel/drivers/hid/usbhid/
H A Dhiddev.c64 if (rinfo->report_type < HID_REPORT_TYPE_MIN || in hiddev_lookup_report()
65 rinfo->report_type > HID_REPORT_TYPE_MAX) in hiddev_lookup_report()
69 (rinfo->report_type - HID_REPORT_TYPE_MIN); in hiddev_lookup_report()
116 if (uref->report_type < HID_REPORT_TYPE_MIN || in hiddev_lookup_usage()
117 uref->report_type > HID_REPORT_TYPE_MAX) in hiddev_lookup_usage()
121 (uref->report_type - HID_REPORT_TYPE_MIN); in hiddev_lookup_usage()
169 unsigned type = field->report_type; in hiddev_hid_event()
172 uref.report_type = in hiddev_hid_event()
192 uref.report_type = in hiddev_report_event()
452 rinfo.report_type = uref->report_type; in hiddev_ioctl_usage()
[all …]
/OK3568_Linux_fs/kernel/drivers/hid/
H A Dhid-led.c77 enum hidled_report_type report_type; member
125 if (ldev->config->report_type == RAW_REQUEST) in hidled_send()
130 else if (ldev->config->report_type == OUTPUT_REPORT) in hidled_send()
149 if (ldev->config->report_type != RAW_REQUEST) in hidled_recv()
259 .report_type = RAW_REQUEST,
362 .report_type = OUTPUT_REPORT,
372 .report_type = RAW_REQUEST,
383 .report_type = RAW_REQUEST,
394 .report_type = RAW_REQUEST,
405 .report_type = OUTPUT_REPORT,
H A Dhid-logitech-dj.c125 u8 report_type; member
839 switch (dj_report->report_type) { in logi_dj_recv_queue_notification()
857 if (dj_report->report_type == REPORT_TYPE_NOTIF_DEVICE_UNPAIRED) in logi_dj_recv_queue_notification()
1066 if ((dj_report->report_type > ARRAY_SIZE(hid_reportid_size_map) - 1) || in logi_dj_recv_forward_dj()
1067 (hid_reportid_size_map[dj_report->report_type] == 0)) { in logi_dj_recv_forward_dj()
1068 dbg_hid("invalid report type:%x\n", dj_report->report_type); in logi_dj_recv_forward_dj()
1073 HID_INPUT_REPORT, &dj_report->report_type, in logi_dj_recv_forward_dj()
1074 hid_reportid_size_map[dj_report->report_type], 1)) { in logi_dj_recv_forward_dj()
1184 dj_report->report_type = REPORT_TYPE_CMD_GET_PAIRED_DEVICES; in logi_dj_recv_query_paired_devices()
1206 dj_report->report_type = REPORT_TYPE_CMD_SWITCH; in logi_dj_recv_switch_to_dj_mode()
[all …]
H A Dhidraw.c103 …_send_report(struct file *file, const char __user *buffer, size_t count, unsigned char report_type) in hidraw_send_report() argument
139 if ((report_type == HID_OUTPUT_REPORT) && in hidraw_send_report()
151 ret = hid_hw_raw_request(dev, buf[0], buf, count, report_type, in hidraw_send_report()
177 … hidraw_get_report(struct file *file, char __user *buffer, size_t count, unsigned char report_type) in hidraw_get_report() argument
228 ret = hid_hw_raw_request(dev, report_number, buf, count, report_type, in hidraw_get_report()
H A Dhid-u2fzero.c49 u8 report_type; member
154 .report_type = 0, in u2fzero_blink()
182 .report_type = 0, in u2fzero_rng_read()
H A Dhid-sensor-custom.c471 int index, int report_type, in hid_sensor_custom_add_field() argument
501 if (report_type == HID_FEATURE_REPORT) in hid_sensor_custom_add_field()
506 else if (report_type == HID_INPUT_REPORT) { in hid_sensor_custom_add_field()
525 int report_type) in hid_sensor_custom_add_fields() argument
544 report_type, in hid_sensor_custom_add_fields()
H A Duhid.c61 u32 report_type; member
191 uhid->report_type = ev->type + 1; in __uhid_report_queue_and_wait()
219 if (uhid->report_type != ev->type || uhid->report_id != id) in uhid_report_wake_up()
347 unsigned char report_type) in uhid_hid_output_raw() argument
354 switch (report_type) { in uhid_hid_output_raw()
H A Dhid-google-hammer.c425 static bool hammer_has_usage(struct hid_device *hdev, unsigned int report_type, in hammer_has_usage() argument
428 struct hid_report_enum *re = &hdev->report_enum[report_type]; in hammer_has_usage()
H A Dhid-cp2112.c322 u8 *data, size_t count, unsigned char report_type) in cp2112_hid_get() argument
332 report_type, HID_REQ_GET_REPORT); in cp2112_hid_get()
339 unsigned char report_type) in cp2112_hid_output() argument
348 if (report_type == HID_OUTPUT_REPORT) in cp2112_hid_output()
351 ret = hid_hw_raw_request(hdev, buf[0], buf, count, report_type, in cp2112_hid_output()
H A Dhid-input.c438 static int hidinput_setup_battery(struct hid_device *dev, unsigned report_type, struct hid_field *f… in hidinput_setup_battery() argument
484 report_type = HID_FEATURE_REPORT; in hidinput_setup_battery()
488 dev->battery_report_type = report_type; in hidinput_setup_battery()
496 dev->battery_avoid_query = report_type == HID_INPUT_REPORT && in hidinput_setup_battery()
551 static int hidinput_setup_battery(struct hid_device *dev, unsigned report_type, in hidinput_setup_battery() argument
584 if (field->report_type == HID_OUTPUT_REPORT && in hidinput_configure_usage()
H A Dhid-core.c257 static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsigned flags) in hid_add_field() argument
268 report = hid_register_report(parser->device, report_type, in hid_add_field()
326 field->report_type = report_type; in hid_add_field()
1471 for (; id->report_type != HID_TERMINATOR; id++) in hid_match_report()
1472 if (id->report_type == HID_ANY_ID || in hid_match_report()
1473 id->report_type == report->type) in hid_match_report()
/OK3568_Linux_fs/kernel/drivers/hid/intel-ish-hid/
H A Dishtp-hid-client.c66 int report_type; in process_recv() local
208 report_type = HID_FEATURE_REPORT; in process_recv()
212 report_type = HID_INPUT_REPORT; in process_recv()
234 (hid, report_type, in process_recv()
260 report_type = HID_INPUT_REPORT; in process_recv()
268 report_type, payload, in process_recv()
273 report_type = HID_INPUT_REPORT; in process_recv()
294 report_type, in process_recv()
408 int report_type) in hid_ishtp_get_report() argument
424 msg.hdr.command = (report_type == HID_FEATURE_REPORT) ? in hid_ishtp_get_report()
H A Dishtp-hid.h175 int report_type);
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dhiddev.h67 __u32 report_type; member
92 __u32 report_type; member
122 __u32 report_type; member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dhiddev.h67 __u32 report_type; member
92 __u32 report_type; member
122 __u32 report_type; member
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dhiddev.h67 __u32 report_type; member
92 __u32 report_type; member
122 __u32 report_type; member
/OK3568_Linux_fs/kernel/drivers/input/rmi4/
H A Drmi_f54.c99 enum rmi_f54_report_type report_type; member
171 static int rmi_f54_request_report(struct rmi_function *fn, u8 report_type) in rmi_f54_request_report() argument
178 if (f54->report_type != report_type) { in rmi_f54_request_report()
180 report_type); in rmi_f54_request_report()
183 f54->report_type = report_type; in rmi_f54_request_report()
540 f54->report_type); in rmi_f54_work()
/OK3568_Linux_fs/kernel/net/bluetooth/hidp/
H A Dcore.c236 unsigned char report_type) in hidp_get_raw_report() argument
241 int numbered_reports = hid->report_enum[report_type].numbered; in hidp_get_raw_report()
247 switch (report_type) { in hidp_get_raw_report()
249 report_type = HIDP_TRANS_GET_REPORT | HIDP_DATA_RTYPE_FEATURE; in hidp_get_raw_report()
252 report_type = HIDP_TRANS_GET_REPORT | HIDP_DATA_RTYPE_INPUT; in hidp_get_raw_report()
255 report_type = HIDP_TRANS_GET_REPORT | HIDP_DATA_RTYPE_OUPUT; in hidp_get_raw_report()
265 session->waiting_report_type = report_type & HIDP_DATA_RTYPE_MASK; in hidp_get_raw_report()
269 ret = hidp_send_ctrl_message(session, report_type, data, 1); in hidp_get_raw_report()
320 unsigned char report_type) in hidp_set_raw_report() argument
325 switch (report_type) { in hidp_set_raw_report()
[all …]
/OK3568_Linux_fs/kernel/drivers/hid/i2c-hid/
H A Di2c-hid-core.c613 unsigned char report_type) in i2c_hid_get_raw_report() argument
620 if (report_type == HID_OUTPUT_REPORT) in i2c_hid_get_raw_report()
638 report_type == HID_FEATURE_REPORT ? 0x03 : 0x01, in i2c_hid_get_raw_report()
662 size_t count, unsigned char report_type, bool use_data) in i2c_hid_output_raw_report() argument
669 if (report_type == HID_INPUT_REPORT) in i2c_hid_output_raw_report()
682 report_type == HID_FEATURE_REPORT ? 0x03 : 0x02, in i2c_hid_output_raw_report()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/elan/
H A Delan_ts.c1006 if (ts->report_type == PROTOCOL_TYPE_B) { in elan_ts_hid_report()
1024 if (ts->report_type == PROTOCOL_TYPE_B) { in elan_ts_normal_report()
1104 if (ts->report_type == PROTOCOL_TYPE_B) { in elan_request_pen_input_dev()
1174 if (ts->report_type == PROTOCOL_TYPE_B) { in elan_request_finger_input_dev()
1779 ts->report_type = data; in elan_parse_dt()
1780 …dev_info(&ts->client->dev,"[elan]:report protocol_type=%s", ts->report_type == 1?"B protocol":"A p… in elan_parse_dt()
1842 ts->report_type = 1; /*1:B protocol, 0:A protocol*/ in elan_ts_hw_initial()
2105 if (private_ts->report_type == PROTOCOL_TYPE_B) { in elan_release_point()
H A Delan_ts.h184 int report_type; /*report protocol*/ member
/OK3568_Linux_fs/kernel/include/linux/
H A Dhid.h463 unsigned report_type; /* (input,output,feature) */ member
686 .report_type = (rep)
693 __u32 report_type; member
/OK3568_Linux_fs/kernel/Documentation/hid/
H A Dhiddev.rst195 report_type in this structure, as above. The field_index should also
211 choose to fill in the report_type field and specify the report_id as
249 to read() filled in with the report_type and report_id, but
/OK3568_Linux_fs/kernel/drivers/input/tablet/
H A Daiptek.c852 unsigned char report_type, in aiptek_set_report() argument
861 USB_DIR_OUT, (report_type << 8) + report_id, in aiptek_set_report()
867 unsigned char report_type, in aiptek_get_report() argument
876 USB_DIR_IN, (report_type << 8) + report_id, in aiptek_get_report()

12