Home
last modified time | relevance | path

Searched refs:field_index (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/hid/usbhid/
Dhiddev.c129 uref->field_index = i; in hiddev_lookup_usage()
149 if (uref->field_index != HID_FIELD_INDEX_NONE || in hiddev_send_event()
177 uref.field_index = field->index; in hiddev_hid_event()
197 uref.field_index = HID_FIELD_INDEX_NONE; in hiddev_report_event()
377 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE) { in hiddev_read()
389 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE || in hiddev_read()
457 if (uref->field_index >= report->maxfield) in hiddev_ioctl_usage()
459 uref->field_index = array_index_nospec(uref->field_index, in hiddev_ioctl_usage()
462 field = report->field[uref->field_index]; in hiddev_ioctl_usage()
491 if (uref->field_index >= report->maxfield) in hiddev_ioctl_usage()
[all …]
/linux-6.1.9/drivers/hid/
Dhid-sensor-hub.c191 u32 field_index, int buffer_size, void *buffer) in sensor_hub_set_feature() argument
203 if (!report || (field_index >= report->maxfield)) { in sensor_hub_set_feature()
212 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
223 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
239 u32 field_index, int buffer_size, void *buffer) in sensor_hub_get_feature() argument
253 if (!report || (field_index >= report->maxfield) || in sensor_hub_get_feature()
254 report->field[field_index]->report_count < 1) { in sensor_hub_get_feature()
262 report_size = DIV_ROUND_UP(report->field[field_index]->report_size, in sensor_hub_get_feature()
264 report->field[field_index]->report_count; in sensor_hub_get_feature()
271 val_ptr = (u8 *)report->field[field_index]->value; in sensor_hub_get_feature()
[all …]
Dhid-sensor-custom.c281 int index, usage, field_index; in show_value() local
290 field_index = index + sensor_inst->input_field_count; in show_value()
294 field_index = index; in show_value()
302 attribute = &sensor_inst->fields[field_index].attribute; in show_value()
355 value = sensor_inst->fields[field_index].attribute.units; in show_value()
357 value = sensor_inst->fields[field_index].attribute.unit_expo; in show_value()
359 value = sensor_inst->fields[field_index].attribute.size; in show_value()
361 value = sensor_inst->fields[field_index].attribute. in show_value()
364 value = sensor_inst->fields[field_index].attribute. in show_value()
388 int index, field_index, usage; in store_value() local
[all …]
Dhid-core.c971 unsigned int field_index, in hid_validate_values() argument
1006 if (report->maxfield <= field_index) { in hid_validate_values()
1011 if (report->field[field_index]->report_count < report_counts) { in hid_validate_values()
1013 hid_report_names[type], id, field_index); in hid_validate_values()
Dwacom_wac.c2893 int field_index) in wacom_report_events() argument
2897 for (r = field_index; r < report->maxfield; r++) { in wacom_report_events()
2919 int field_index) in wacom_wac_collection() argument
2923 wacom_report_events(hdev, report, collection_index, field_index); in wacom_wac_collection()
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dfirmware.c1899 int field_index, u32 *data) in get_integrated_platform_config_field() argument
1907 if (field_index == SYSTEM_TABLE_QSFP_POWER_CLASS_MAX) in get_integrated_platform_config_field()
1909 else if (field_index == SYSTEM_TABLE_QSFP_ATTENUATION_DEFAULT_25G) in get_integrated_platform_config_field()
1913 if (field_index == PORT_TABLE_PORT_TYPE) in get_integrated_platform_config_field()
1915 else if (field_index == PORT_TABLE_LOCAL_ATTEN_25G) in get_integrated_platform_config_field()
1917 else if (field_index == PORT_TABLE_REMOTE_ATTEN_25G) in get_integrated_platform_config_field()
1921 if (field_index == RX_PRESET_TABLE_QSFP_RX_CDR_APPLY) in get_integrated_platform_config_field()
1924 else if (field_index == RX_PRESET_TABLE_QSFP_RX_EMP_APPLY) in get_integrated_platform_config_field()
1927 else if (field_index == RX_PRESET_TABLE_QSFP_RX_AMP_APPLY) in get_integrated_platform_config_field()
1930 else if (field_index == RX_PRESET_TABLE_QSFP_RX_CDR) in get_integrated_platform_config_field()
[all …]
Dhfi.h2169 table_type, int table_index, int field_index,
/linux-6.1.9/include/linux/
Dhid-sensor-hub.h197 u32 field_index, int buffer_size, void *buffer);
213 u32 field_index, int buffer_size, void *buffer);
269 u32 report_id, int field_index, u32 usage_id);
Dhid.h935 unsigned int field_index,
/linux-6.1.9/include/uapi/linux/
Dhiddev.h94 __u32 field_index; member
124 __u32 field_index; member
/linux-6.1.9/drivers/gpu/drm/radeon/
Dsumo_dpm.c477 u32 field_index = index % 4; in sumo_set_divider_value() local
479 if (field_index == 0) in sumo_set_divider_value()
482 else if (field_index == 1) in sumo_set_divider_value()
485 else if (field_index == 2) in sumo_set_divider_value()
488 else if (field_index == 3) in sumo_set_divider_value()
583 u32 field_index = index % 4; in sumo_power_level_enable() local
585 if (field_index == 0) in sumo_power_level_enable()
588 else if (field_index == 1) in sumo_power_level_enable()
591 else if (field_index == 2) in sumo_power_level_enable()
594 else if (field_index == 3) in sumo_power_level_enable()
/linux-6.1.9/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_cls.c396 int field_index) in mvpp2_cls_flow_hek_get() argument
398 return (fe->data[2] >> MVPP2_CLS_FLOW_TBL2_FLD_OFFS(field_index)) & in mvpp2_cls_flow_hek_get()
403 int field_index, int field_id) in mvpp2_cls_flow_hek_set() argument
405 fe->data[2] &= ~MVPP2_CLS_FLOW_TBL2_FLD(field_index, in mvpp2_cls_flow_hek_set()
407 fe->data[2] |= MVPP2_CLS_FLOW_TBL2_FLD(field_index, field_id); in mvpp2_cls_flow_hek_set()
/linux-6.1.9/Documentation/hid/
Dhid-sensor.rst124 u32 field_index, s32 value);
133 u32 field_index, s32 *value);
Dhiddev.rst195 report_type in this structure, as above. The field_index should also
250 with field_index set to FIELD_INDEX_NONE. This serves as
/linux-6.1.9/drivers/media/dvb-frontends/
Dstv0900_core.c883 field_index; in stv0900_activate_s2_modcod() local
895 field_index = mod_code % 2; in stv0900_activate_s2_modcod()
915 if (field_index == 0) in stv0900_activate_s2_modcod()