Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/hid/amd-sfh-hid/sfh1_1/
Damd_sfh_init.c77 privdata->mp2_ops->stop(privdata, cl_data->sensor_idx[i]); in amd_sfh_hid_client_deinit()
79 (privdata, cl_data->sensor_idx[i], DISABLE_SENSOR); in amd_sfh_hid_client_deinit()
83 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh_hid_client_deinit()
112 cl_data->num_hid_devices = amd_sfh_get_sensor_num(privdata, &cl_data->sensor_idx[0]); in amd_sfh1_1_hid_client_init()
125 cl_idx = cl_data->sensor_idx[i]; in amd_sfh1_1_hid_client_init()
153 info.sensor_idx = cl_idx; in amd_sfh1_1_hid_client_init()
168 (privdata, cl_data->sensor_idx[i], ENABLE_SENSOR); in amd_sfh1_1_hid_client_init()
176 mp2_ops->stop(privdata, cl_data->sensor_idx[i]); in amd_sfh1_1_hid_client_init()
178 (privdata, cl_data->sensor_idx[i], DISABLE_SENSOR); in amd_sfh1_1_hid_client_init()
184 cl_data->sensor_idx[i], in amd_sfh1_1_hid_client_init()
[all …]
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()
160 static u8 get_input_rep(u8 current_index, int sensor_idx, int report_id, in get_input_rep() argument
181 switch (sensor_idx) { in get_input_rep()
236 static u32 get_desc_size(int sensor_idx, int descriptor_name) in get_desc_size() argument
238 switch (sensor_idx) { in get_desc_size()
Damd_sfh_interface.c36 cmd_base.cmd.sensor_id = info.sensor_idx; in amd_start_sensor()
41 static void amd_stop_sensor(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor() argument
48 cmd_base.cmd.sensor_id = sensor_idx; in amd_stop_sensor()
/linux-6.1.9/drivers/hid/amd-sfh-hid/
Damd_sfh_client.c52 new->sensor_idx = cli_data->sensor_idx[i]; in amd_sfh_get_report()
81 sensor_index = req_node->sensor_idx; in amd_sfh_work()
123 report_size = mp2->mp2_ops->get_in_rep(i, cli_data->sensor_idx[i], in amd_sfh_work_buffer()
167 info.sensor_idx = cl_data->sensor_idx[i]; in amd_sfh_resume()
171 (mp2, cl_data->sensor_idx[i], SENSOR_ENABLED); in amd_sfh_resume()
175 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh_resume()
190 if (cl_data->sensor_idx[i] != HPD_IDX && in amd_sfh_suspend()
192 mp2->mp2_ops->stop(mp2, cl_data->sensor_idx[i]); in amd_sfh_suspend()
194 (mp2, cl_data->sensor_idx[i], SENSOR_DISABLED); in amd_sfh_suspend()
198 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh_suspend()
[all …]
Damd_sfh_common.h35 u8 sensor_idx; member
54 void (*stop)(struct amd_mp2_dev *privdata, u16 sensor_idx);
63 int (*get_rep_desc)(int sensor_idx, u8 rep_desc[]);
64 u32 (*get_desc_sz)(int sensor_idx, int descriptor_name);
65 u8 (*get_feat_rep)(int sensor_idx, int report_id, u8 *feature_report);
66 u8 (*get_in_rep)(u8 current_index, int sensor_idx, int report_id,
Damd_sfh_pcie.c59 cmd_base.cmd_v2.sensor_id = info.sensor_idx; in amd_start_sensor_v2()
62 if (info.sensor_idx == als_idx) in amd_start_sensor_v2()
69 static void amd_stop_sensor_v2(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor_v2() argument
77 cmd_base.cmd_v2.sensor_id = sensor_idx; in amd_stop_sensor_v2()
149 cmd_base.s.sensor_id = info.sensor_idx; in amd_start_sensor()
161 static void amd_stop_sensor(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor() argument
169 cmd_base.s.sensor_id = sensor_idx; in amd_stop_sensor()
Damd_sfh_hid.h22 u8 sensor_idx; member
49 u8 sensor_idx[MAX_HID_DEVICES]; member
Damd_sfh_pcie.h77 enum sensor_idx { enum
/linux-6.1.9/drivers/hid/amd-sfh-hid/hid_descriptor/
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()
66 static u32 get_descr_sz(int sensor_idx, int descriptor_name) in get_descr_sz() argument
68 switch (sensor_idx) { in get_descr_sz()
136 static u8 get_feature_report(int sensor_idx, int report_id, u8 *feature_report) in get_feature_report() argument
148 switch (sensor_idx) { in get_feature_report()
203 static u8 get_input_report(u8 current_index, int sensor_idx, int report_id, in get_input_report() argument
221 switch (sensor_idx) { in get_input_report()