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()
158 static void amd_sfh_resume(struct amd_mp2_dev *mp2) in amd_sfh_resume() argument
160 struct amdtp_cl_data *cl_data = mp2->cl_data; in amd_sfh_resume()
169 mp2->mp2_ops->start(mp2, info); in amd_sfh_resume()
171 (mp2, cl_data->sensor_idx[i], SENSOR_ENABLED); in amd_sfh_resume()
174 dev_dbg(&mp2->pdev->dev, "resume sid 0x%x (%s) status 0x%x\n", in amd_sfh_resume()
181 amd_sfh_clear_intr(mp2); in amd_sfh_resume()
184 static void amd_sfh_suspend(struct amd_mp2_dev *mp2) in amd_sfh_suspend() argument
186 struct amdtp_cl_data *cl_data = mp2->cl_data; 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()
197 dev_dbg(&mp2->pdev->dev, "suspend sid 0x%x (%s) status 0x%x\n", in amd_sfh_suspend()
204 amd_sfh_clear_intr(mp2); in amd_sfh_suspend()