Home
last modified time | relevance | path

Searched refs:report_id (Results 1 – 25 of 60) sorted by relevance

123

/linux-6.6.21/drivers/hid/amd-sfh-hid/hid_descriptor/
Damd_sfh_hid_desc.c128 static void get_common_features(struct common_feature_property *common, int report_id) in get_common_features() argument
130 common->report_id = report_id; in get_common_features()
138 static u8 get_feature_report(int sensor_idx, int report_id, u8 *feature_report) in get_feature_report() argument
152 get_common_features(&acc_feature.common_property, report_id); in get_feature_report()
160 get_common_features(&gyro_feature.common_property, report_id); in get_feature_report()
168 get_common_features(&magno_feature.common_property, report_id); in get_feature_report()
180 get_common_features(&als_feature.common_property, report_id); in get_feature_report()
188 get_common_features(&hpd_feature.common_property, report_id); in get_feature_report()
199 static void get_common_inputs(struct common_input_property *common, int report_id) in get_common_inputs() argument
201 common->report_id = report_id; in get_common_inputs()
[all …]
/linux-6.6.21/drivers/hid/amd-sfh-hid/sfh1_1/
Damd_sfh_desc.c61 static void get_common_features(struct common_feature_property *common, int report_id) in get_common_features() argument
63 common->report_id = report_id; in get_common_features()
71 static u8 get_feature_rep(int sensor_idx, int report_id, u8 *feature_report) in get_feature_rep() argument
85 get_common_features(&acc_feature.common_property, report_id); in get_feature_rep()
93 get_common_features(&gyro_feature.common_property, report_id); in get_feature_rep()
101 get_common_features(&magno_feature.common_property, report_id); in get_feature_rep()
112 get_common_features(&als_feature.common_property, report_id); in get_feature_rep()
120 get_common_features(&hpd_feature.common_property, report_id); in get_feature_rep()
128 static void get_common_inputs(struct common_input_property *common, int report_id) in get_common_inputs() argument
130 common->report_id = report_id; in get_common_inputs()
[all …]
/linux-6.6.21/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c160 st->poll.report_id, in hid_sensor_read_poll_value()
181 st->poll.report_id, in hid_sensor_read_samp_freq_value()
219 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value()
225 st->poll.report_id, in hid_sensor_write_samp_freq_value()
243 st->sensitivity.report_id, in hid_sensor_read_raw_hyst_value()
266 st->sensitivity_rel.report_id, in hid_sensor_read_raw_hyst_rel_value()
294 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value()
301 st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value()
325 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity_rel.report_id, in hid_sensor_write_raw_hyst_rel_value()
332 st->sensitivity_rel.report_id, in hid_sensor_write_raw_hyst_rel_value()
[all …]
Dhid-sensor-trigger.c97 st->power_state.report_id, in _hid_sensor_power_state()
101 st->report_state.report_id, in _hid_sensor_power_state()
115 st->power_state.report_id, in _hid_sensor_power_state()
119 st->report_state.report_id, in _hid_sensor_power_state()
126 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
133 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state()
142 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
187 sensor_hub_set_feature(attrb->hsdev, attrb->poll.report_id, in hid_sensor_set_power_work()
194 attrb->sensitivity.report_id, in hid_sensor_set_power_work()
/linux-6.6.21/drivers/input/touchscreen/
Dsis_i2c.c112 u8 report_id; in sis_read_packet() local
129 report_id = buf[SIS_PKT_REPORT_OFFSET]; in sis_read_packet()
133 if (report_id != SIS_ALL_IN_ONE_PACKAGE) { in sis_read_packet()
134 if (SIS_PKT_IS_TOUCH(report_id)) { in sis_read_packet()
152 } else if (!SIS_PKT_IS_HIDI2C(report_id)) { in sis_read_packet()
155 __func__, report_id); in sis_read_packet()
159 if (SIS_PKT_HAS_SCANTIME(report_id)) in sis_read_packet()
162 if (SIS_PKT_HAS_AREA(report_id)) in sis_read_packet()
164 if (SIS_PKT_HAS_PRESSURE(report_id)) in sis_read_packet()
231 u8 report_id; in sis_ts_handle_packet() local
[all …]
/linux-6.6.21/drivers/hid/amd-sfh-hid/
Damd_sfh_hid.h21 u8 report_id; member
49 u8 report_id[MAX_HID_DEVICES]; member
76 void hid_amdtp_set_feature(struct hid_device *hid, char *buf, u32 len, int report_id);
77 void hid_amdtp_get_report(struct hid_device *hid, int report_id, int report_type);
80 int amd_sfh_get_report(struct hid_device *hid, int report_id, int report_type);
81 void amd_sfh_set_report(struct hid_device *hid, int report_id, int report_type);
Damd_sfh_client.c21 void amd_sfh_set_report(struct hid_device *hid, int report_id, in amd_sfh_set_report() argument
37 int amd_sfh_get_report(struct hid_device *hid, int report_id, int report_type) in amd_sfh_get_report() argument
55 new->report_id = report_id; in amd_sfh_get_report()
56 cli_data->report_id[i] = report_id; in amd_sfh_get_report()
75 u8 report_id, node_type; in amd_sfh_work() local
82 report_id = req_node->report_id; in amd_sfh_work()
89 report_size = mp2_ops->get_feat_rep(sensor_index, report_id, in amd_sfh_work()
99 report_size = mp2_ops->get_in_rep(current_index, sensor_index, report_id, in_data); in amd_sfh_work()
124 cli_data->report_id[i], in_data); in amd_sfh_work_buffer()
/linux-6.6.21/drivers/hid/
Dhid-roccat-common.c16 static inline uint16_t roccat_common2_feature_report(uint8_t report_id) in roccat_common2_feature_report() argument
18 return 0x300 | report_id; in roccat_common2_feature_report()
21 int roccat_common2_receive(struct usb_device *usb_dev, uint report_id, in roccat_common2_receive() argument
34 roccat_common2_feature_report(report_id), in roccat_common2_receive()
43 int roccat_common2_send(struct usb_device *usb_dev, uint report_id, in roccat_common2_send() argument
56 roccat_common2_feature_report(report_id), in roccat_common2_send()
Dhid-sensor-custom.c29 int report_id; member
189 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
194 sensor_inst->report_state->attribute.report_id, in set_power_report_state()
202 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
217 sensor_inst->report_state->attribute.report_id, in set_power_report_state()
300 u32 report_id; in show_value() local
304 report_id = attribute->report_id; in show_value()
312 report_id, in show_value()
353 usage, report_id, in show_value()
400 u32 report_id; in store_value() local
[all …]
Dhid-sensor-hub.c86 s32 index, s32 report_id, struct hid_field *field) in sensor_hub_fill_attr_info() argument
89 info->report_id = report_id; in sensor_hub_fill_attr_info()
190 int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, in sensor_hub_set_feature() argument
202 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in sensor_hub_set_feature()
238 int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, in sensor_hub_get_feature() argument
252 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in sensor_hub_get_feature()
292 u32 attr_usage_id, u32 report_id, in sensor_hub_input_attr_get_raw_value() argument
301 report = sensor_hub_report(report_id, hsdev->hdev, in sensor_hub_input_attr_get_raw_value()
353 u32 report_id, int field_index, u32 usage_id) in hid_sensor_get_usage_index() argument
359 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in hid_sensor_get_usage_index()
[all …]
/linux-6.6.21/include/linux/
Dhid-sensor-hub.h29 s32 report_id; member
180 u32 attr_usage_id, u32 report_id,
196 int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
212 int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
269 u32 report_id, int field_index, u32 usage_id);
/linux-6.6.21/drivers/rtc/
Drtc-hid-sensor-time.c139 int report_id, i; in hid_time_parse_report() local
148 report_id = time_state->info[0].report_id; in hid_time_parse_report()
149 if (report_id < 0) { in hid_time_parse_report()
154 if (time_state->info[i].report_id != report_id) { in hid_time_parse_report()
202 time_state->info[0].report_id, SENSOR_HUB_SYNC, false); in hid_rtc_read_time()
/linux-6.6.21/drivers/iio/gyro/
Dhid-sensor-gyro-3d.c103 int report_id = -1; in gyro_3d_read_raw() local
113 report_id = gyro_state->gyro[chan->scan_index].report_id; in gyro_3d_read_raw()
116 if (report_id >= 0) in gyro_3d_read_raw()
120 report_id, in gyro_3d_read_raw()
267 st->gyro[0].report_id, in gyro_3d_parse_report()
268 st->gyro[1].index, st->gyro[1].report_id, in gyro_3d_parse_report()
269 st->gyro[2].index, st->gyro[2].report_id); in gyro_3d_parse_report()
/linux-6.6.21/drivers/staging/greybus/
Dhid.c74 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_id = report_id; 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
116 request->report_id = report_id; in gb_hid_set_report()
244 int report_id = buf[0]; in __gb_hid_output_raw_report() local
250 if (report_id) { 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()
256 if (report_id && ret >= 0) in __gb_hid_output_raw_report()
/linux-6.6.21/drivers/hid/i2c-hid/
Di2c-hid-core.c217 int report_type, int report_id) in i2c_hid_encode_command() argument
221 if (report_id < 0x0F) { in i2c_hid_encode_command()
222 buf[length++] = report_type << 4 | report_id; in i2c_hid_encode_command()
227 buf[length++] = report_id; in i2c_hid_encode_command()
234 u8 report_type, u8 report_id, in i2c_hid_get_report() argument
249 report_type, report_id); in i2c_hid_get_report()
281 if (report_id && recv_len != 0 && recv_buf[0] != report_id) { in i2c_hid_get_report()
284 recv_buf[0], report_id); in i2c_hid_get_report()
291 static size_t i2c_hid_format_report(u8 *buf, int report_id, in i2c_hid_format_report() argument
296 if (report_id) in i2c_hid_format_report()
[all …]
/linux-6.6.21/drivers/iio/light/
Dhid-sensor-prox.c65 int report_id = -1; in prox_read_raw() local
76 report_id = prox_state->prox_attr.report_id; in prox_read_raw()
82 report_id = -1; in prox_read_raw()
85 if (report_id >= 0) { in prox_read_raw()
89 hsdev, hsdev->usage, address, report_id, in prox_read_raw()
228 st->prox_attr.report_id); in prox_parse_report()
Dhid-sensor-als.c90 int report_id = -1; in als_read_raw() local
102 report_id = als_state->als_illum.report_id; in als_read_raw()
107 report_id = -1; in als_read_raw()
110 if (report_id >= 0) { in als_read_raw()
114 hsdev, hsdev->usage, address, report_id, in als_read_raw()
259 st->als_illum.report_id); in als_parse_report()
/linux-6.6.21/drivers/iio/pressure/
Dhid-sensor-press.c74 int report_id = -1; in press_read_raw() local
85 report_id = press_state->press_attr.report_id; in press_read_raw()
90 report_id = -1; in press_read_raw()
93 if (report_id >= 0) { in press_read_raw()
99 report_id, in press_read_raw()
231 st->press_attr.report_id); in press_parse_report()
/linux-6.6.21/drivers/iio/orientation/
Dhid-sensor-incl-3d.c106 int report_id = -1; in incl_3d_read_raw() local
116 report_id = incl_state->incl[chan->scan_index].report_id; in incl_3d_read_raw()
119 if (report_id >= 0) in incl_3d_read_raw()
123 report_id, in incl_3d_read_raw()
287 st->incl[0].report_id, in incl_3d_parse_report()
288 st->incl[1].index, st->incl[1].report_id, in incl_3d_parse_report()
289 st->incl[2].index, st->incl[2].report_id); in incl_3d_parse_report()
/linux-6.6.21/drivers/hid/usbhid/
Dhiddev.c58 unsigned int flags = rinfo->report_id & ~HID_REPORT_ID_MASK; in hiddev_lookup_report()
59 unsigned int rid = rinfo->report_id & HID_REPORT_ID_MASK; in hiddev_lookup_report()
81 rinfo->report_id = report->id; in hiddev_lookup_report()
94 rinfo->report_id = report->id; in hiddev_lookup_report()
101 return report_enum->report_id_hash[rinfo->report_id]; in hiddev_lookup_report()
128 uref->report_id = report->id; in hiddev_lookup_usage()
176 uref.report_id = field->report->id; in hiddev_hid_event()
196 uref.report_id = report->id; in hiddev_report_event()
453 rinfo.report_id = uref->report_id; in hiddev_ioctl_usage()
481 if (uref->report_id == HID_REPORT_ID_UNKNOWN) { in hiddev_ioctl_usage()
[all …]
/linux-6.6.21/drivers/iio/accel/
Dhid-sensor-accel-3d.c140 int report_id = -1; in accel_3d_read_raw() local
152 report_id = accel_state->accel[chan->scan_index].report_id; in accel_3d_read_raw()
155 if (report_id >= 0) in accel_3d_read_raw()
158 hsdev->usage, address, report_id, in accel_3d_read_raw()
316 st->accel[0].report_id, in accel_3d_parse_report()
317 st->accel[1].index, st->accel[1].report_id, in accel_3d_parse_report()
318 st->accel[2].index, st->accel[2].report_id); in accel_3d_parse_report()
/linux-6.6.21/drivers/iio/magnetometer/
Dhid-sensor-magn-3d.c153 int report_id = -1; in magn_3d_read_raw() local
163 report_id = magn_state->magn[chan->address].report_id; in magn_3d_read_raw()
166 if (report_id >= 0) in magn_3d_read_raw()
170 report_id, in magn_3d_read_raw()
385 st->magn[0].report_id, in magn_3d_parse_report()
386 st->magn[1].index, st->magn[1].report_id, in magn_3d_parse_report()
387 st->magn[2].index, st->magn[2].report_id); in magn_3d_parse_report()
460 st->rot_attributes.sensitivity.report_id); in magn_3d_parse_report()
/linux-6.6.21/drivers/hid/intel-ish-hid/
Dishtp-hid.h38 uint8_t report_id; member
169 int report_id);
170 void hid_ishtp_get_report(struct hid_device *hid, int report_id,
/linux-6.6.21/include/uapi/linux/
Dhiddev.h68 __u32 report_id; member
93 __u32 report_id; member
123 __u32 report_id; member
/linux-6.6.21/drivers/iio/position/
Dhid-sensor-custom-intel-hinge.c115 int report_id; in hinge_read_raw() local
122 report_id = st->hinge[chan->scan_index].report_id; in hinge_read_raw()
124 if (report_id < 0) { in hinge_read_raw()
132 report_id, in hinge_read_raw()

123