Lines Matching refs:mp2

74 	struct amd_mp2_dev *mp2;  in amd_sfh_work()  local
86 mp2 = container_of(in_data, struct amd_mp2_dev, in_data); in amd_sfh_work()
87 mp2_ops = mp2->mp2_ops; in amd_sfh_work()
116 struct amd_mp2_dev *mp2; in amd_sfh_work_buffer() local
122 mp2 = container_of(in_data, struct amd_mp2_dev, in_data); in amd_sfh_work_buffer()
123 report_size = mp2->mp2_ops->get_in_rep(i, cli_data->sensor_idx[i], in amd_sfh_work_buffer()
132 static u32 amd_sfh_wait_for_response(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts) in amd_sfh_wait_for_response() argument
134 if (mp2->mp2_ops->response) in amd_sfh_wait_for_response()
135 sensor_sts = mp2->mp2_ops->response(mp2, sid, sensor_sts); in amd_sfh_wait_for_response()
159 static void amd_sfh_resume(struct amd_mp2_dev *mp2) in amd_sfh_resume() argument
161 struct amdtp_cl_data *cl_data = mp2->cl_data; in amd_sfh_resume()
170 mp2->mp2_ops->start(mp2, info); in amd_sfh_resume()
172 (mp2, cl_data->sensor_idx[i], SENSOR_ENABLED); in amd_sfh_resume()
175 dev_dbg(&mp2->pdev->dev, "resume sid 0x%x (%s) status 0x%x\n", in amd_sfh_resume()
182 amd_sfh_clear_intr(mp2); in amd_sfh_resume()
185 static void amd_sfh_suspend(struct amd_mp2_dev *mp2) in amd_sfh_suspend() argument
187 struct amdtp_cl_data *cl_data = mp2->cl_data; in amd_sfh_suspend()
193 mp2->mp2_ops->stop(mp2, cl_data->sensor_idx[i]); in amd_sfh_suspend()
195 (mp2, cl_data->sensor_idx[i], SENSOR_DISABLED); in amd_sfh_suspend()
198 dev_dbg(&mp2->pdev->dev, "suspend sid 0x%x (%s) status 0x%x\n", in amd_sfh_suspend()
205 amd_sfh_clear_intr(mp2); in amd_sfh_suspend()