Home
last modified time | relevance | path

Searched refs:sensor_idx (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_init.c79 switch (cl_data->sensor_idx[i]) { in amd_sfh_hid_client_deinit()
92 privdata->mp2_ops->stop(privdata, cl_data->sensor_idx[i]); in amd_sfh_hid_client_deinit()
94 (privdata, cl_data->sensor_idx[i], DISABLE_SENSOR); in amd_sfh_hid_client_deinit()
98 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh_hid_client_deinit()
127 cl_data->num_hid_devices = amd_sfh_get_sensor_num(privdata, &cl_data->sensor_idx[0]); in amd_sfh1_1_hid_client_init()
140 if (cl_data->sensor_idx[i] == SRA_IDX) { in amd_sfh1_1_hid_client_init()
141 info.sensor_idx = cl_data->sensor_idx[i]; in amd_sfh1_1_hid_client_init()
145 (privdata, cl_data->sensor_idx[i], ENABLE_SENSOR); in amd_sfh1_1_hid_client_init()
157 cl_idx = cl_data->sensor_idx[i]; in amd_sfh1_1_hid_client_init()
185 info.sensor_idx = cl_idx; in amd_sfh1_1_hid_client_init()
[all …]
H A Damd_sfh_desc.c29 static int get_report_desc(int sensor_idx, u8 *rep_desc) in get_report_desc() argument
31 switch (sensor_idx) { in get_report_desc()
71 static u8 get_feature_rep(int sensor_idx, int report_id, u8 *feature_report) in get_feature_rep() argument
83 switch (sensor_idx) { in get_feature_rep()
176 static u8 get_input_rep(u8 current_index, int sensor_idx, int report_id, in get_input_rep() argument
198 switch (sensor_idx) { in get_input_rep()
263 static u32 get_desc_size(int sensor_idx, int descriptor_name) in get_desc_size() argument
265 switch (sensor_idx) { in get_desc_size()
H A Damd_sfh_interface.c43 cmd_base.cmd.sensor_id = info.sensor_idx; in amd_start_sensor()
48 static void amd_stop_sensor(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor() argument
56 cmd_base.cmd.sensor_id = sensor_idx; in amd_stop_sensor()
/linux/drivers/hid/amd-sfh-hid/hid_descriptor/
H A Damd_sfh_hid_desc.c32 static int get_report_descriptor(int sensor_idx, u8 *rep_desc) in get_report_descriptor() argument
34 switch (sensor_idx) { in get_report_descriptor()
67 static u32 get_descr_sz(int sensor_idx, int descriptor_name) in get_descr_sz() argument
69 switch (sensor_idx) { in get_descr_sz()
138 static u8 get_feature_report(int sensor_idx, int report_id, u8 *feature_report) in get_feature_report() argument
150 switch (sensor_idx) { in get_feature_report()
206 static u8 get_input_report(u8 current_index, int sensor_idx, int report_id, in get_input_report() argument
224 switch (sensor_idx) { in get_input_report()
261 if (sensor_idx == ACS_IDX) { in get_input_report()
/linux/drivers/thermal/
H A Dairoha_thermal.c298 int tdac_idx, int sensor_idx) in airoha_set_thermal_mux() argument
313 if (sensor_idx != AIROHA_THERMAL_NO_MUX_SENSOR) in airoha_set_thermal_mux()
315 sensor_idx); in airoha_set_thermal_mux()
600 int sensor_idx; in an7583_thermal_get_temp() local
607 sensor_idx = AN7583_BGP_TEMP_SENSOR; in an7583_thermal_get_temp()
609 coeff = an7583_thermal_coeff[sensor_idx]; in an7583_thermal_get_temp()
610 slope = an7583_thermal_slope[sensor_idx]; in an7583_thermal_get_temp()
611 offset = an7583_thermal_offset[sensor_idx]; in an7583_thermal_get_temp()
613 airoha_set_thermal_mux(priv, AN7583_ZERO_TADC, sensor_idx); in an7583_thermal_get_temp()
615 airoha_set_thermal_mux(priv, AN7583_D0_TADC, sensor_idx); in an7583_thermal_get_temp()
[all …]
/linux/drivers/hid/amd-sfh-hid/
H A Damd_sfh_hid.h22 u8 sensor_idx; member
50 u8 sensor_idx[MAX_HID_DEVICES]; member
H A Damd_sfh_pcie.h78 enum sensor_idx { enum