/openbmc/linux/drivers/hid/amd-sfh-hid/ |
H A D | amd_sfh_client.c | 52 new->sensor_idx = cli_data->sensor_idx[i]; in amd_sfh_get_report() 81 sensor_index = req_node->sensor_idx; in amd_sfh_work() 168 info.sensor_idx = cl_data->sensor_idx[i]; in amd_sfh_resume() 172 (mp2, cl_data->sensor_idx[i], SENSOR_ENABLED); in amd_sfh_resume() 176 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh_resume() 191 if (cl_data->sensor_idx[i] != HPD_IDX && in amd_sfh_suspend() 199 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh_suspend() 249 cl_idx = cl_data->sensor_idx[i]; in amd_sfh_hid_client_init() 276 info.sensor_idx = cl_idx; in amd_sfh_hid_client_init() 314 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh_hid_client_init() [all …]
|
H A D | amd_sfh_common.h | 35 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,
|
H A D | amd_sfh_pcie.c | 62 cmd_base.cmd_v2.sensor_id = info.sensor_idx; in amd_start_sensor_v2() 65 if (info.sensor_idx == als_idx) in amd_start_sensor_v2() 72 static void amd_stop_sensor_v2(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor_v2() argument 80 cmd_base.cmd_v2.sensor_id = sensor_idx; in amd_stop_sensor_v2() 152 cmd_base.s.sensor_id = info.sensor_idx; in amd_start_sensor() 164 static void amd_stop_sensor(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor() argument 172 cmd_base.s.sensor_id = sensor_idx; in amd_stop_sensor()
|
H A D | amd_sfh_hid.h | 22 u8 sensor_idx; member 50 u8 sensor_idx[MAX_HID_DEVICES]; member
|
H A D | amd_sfh_pcie.h | 78 enum sensor_idx { enum
|
/openbmc/linux/drivers/hid/amd-sfh-hid/sfh1_1/ |
H A D | amd_sfh_init.c | 83 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh_hid_client_deinit() 126 cl_idx = cl_data->sensor_idx[i]; in amd_sfh1_1_hid_client_init() 154 info.sensor_idx = cl_idx; in amd_sfh1_1_hid_client_init() 183 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh1_1_hid_client_init() 220 info.sensor_idx = cl_data->sensor_idx[i]; in amd_sfh_resume() 223 (mp2, cl_data->sensor_idx[i], ENABLE_SENSOR); in amd_sfh_resume() 229 cl_data->sensor_idx[i], get_sensor_name(cl_data->sensor_idx[i]), in amd_sfh_resume() 249 if (cl_data->sensor_idx[i] != HPD_IDX && in amd_sfh_suspend() 251 mp2->mp2_ops->stop(mp2, cl_data->sensor_idx[i]); in amd_sfh_suspend() 253 (mp2, cl_data->sensor_idx[i], DISABLE_SENSOR); in amd_sfh_suspend() [all …]
|
H A D | amd_sfh_desc.c | 29 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 197 switch (sensor_idx) { in get_input_rep() 252 static u32 get_desc_size(int sensor_idx, int descriptor_name) in get_desc_size() argument 254 switch (sensor_idx) { in get_desc_size()
|
H A D | amd_sfh_interface.c | 37 cmd_base.cmd.sensor_id = info.sensor_idx; in amd_start_sensor() 42 static void amd_stop_sensor(struct amd_mp2_dev *privdata, u16 sensor_idx) in amd_stop_sensor() argument 50 cmd_base.cmd.sensor_id = sensor_idx; in amd_stop_sensor()
|
/openbmc/linux/drivers/hid/amd-sfh-hid/hid_descriptor/ |
H A D | amd_sfh_hid_desc.c | 32 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()
|