Lines Matching refs:cli_data
30 struct amdtp_cl_data *cli_data = hid_data->cli_data; in amdtp_hid_parse() local
32 return hid_parse_report(hid, cli_data->report_descr[hid_data->index], in amdtp_hid_parse()
33 cli_data->report_descr_sz[hid_data->index]); in amdtp_hid_parse()
82 struct amdtp_cl_data *cli_data = hid_data->cli_data; in amdtp_wait_for_response() local
85 for (i = 0; i < cli_data->num_hid_devices; i++) { in amdtp_wait_for_response()
86 if (cli_data->hid_sensor_hubs[i] == hid) in amdtp_wait_for_response()
90 if (!cli_data->request_done[i]) in amdtp_wait_for_response()
92 cli_data->request_done[i], in amdtp_wait_for_response()
105 struct amdtp_cl_data *cli_data; in amdtp_hid_wakeup() local
109 cli_data = hid_data->cli_data; in amdtp_hid_wakeup()
110 cli_data->request_done[cli_data->cur_hid_dev] = true; in amdtp_hid_wakeup()
126 int amdtp_hid_probe(u32 cur_hid_dev, struct amdtp_cl_data *cli_data) in amdtp_hid_probe() argument
128 struct amd_mp2_dev *mp2 = container_of(cli_data->in_data, struct amd_mp2_dev, in_data); in amdtp_hid_probe()
146 hid_data->cli_data = cli_data; in amdtp_hid_probe()
150 cli_data->hid_sensor_hubs[cur_hid_dev] = hid; in amdtp_hid_probe()
171 void amdtp_hid_remove(struct amdtp_cl_data *cli_data) in amdtp_hid_remove() argument
175 for (i = 0; i < cli_data->num_hid_devices; ++i) { in amdtp_hid_remove()
176 if (cli_data->hid_sensor_hubs[i]) { in amdtp_hid_remove()
177 kfree(cli_data->hid_sensor_hubs[i]->driver_data); in amdtp_hid_remove()
178 hid_destroy_device(cli_data->hid_sensor_hubs[i]); in amdtp_hid_remove()
179 cli_data->hid_sensor_hubs[i] = NULL; in amdtp_hid_remove()