Lines Matching refs:cli_data

25 	struct amdtp_cl_data *cli_data = hid_data->cli_data;  in amd_sfh_set_report()  local
28 for (i = 0; i < cli_data->num_hid_devices; i++) { in amd_sfh_set_report()
29 if (cli_data->hid_sensor_hubs[i] == hid) { in amd_sfh_set_report()
30 cli_data->cur_hid_dev = i; in amd_sfh_set_report()
40 struct amdtp_cl_data *cli_data = hid_data->cli_data; in amd_sfh_get_report() local
41 struct request_list *req_list = &cli_data->req_list; in amd_sfh_get_report()
44 for (i = 0; i < cli_data->num_hid_devices; i++) { in amd_sfh_get_report()
45 if (cli_data->hid_sensor_hubs[i] == hid) { in amd_sfh_get_report()
52 new->sensor_idx = cli_data->sensor_idx[i]; in amd_sfh_get_report()
56 cli_data->report_id[i] = report_id; in amd_sfh_get_report()
57 cli_data->request_done[i] = false; in amd_sfh_get_report()
62 schedule_delayed_work(&cli_data->work, 0); in amd_sfh_get_report()
68 struct amdtp_cl_data *cli_data = container_of(work, struct amdtp_cl_data, work.work); in amd_sfh_work() local
69 struct request_list *req_list = &cli_data->req_list; in amd_sfh_work()
70 struct amd_input_data *in_data = cli_data->in_data; in amd_sfh_work()
90 cli_data->feature_report[current_index]); in amd_sfh_work()
92 hid_input_report(cli_data->hid_sensor_hubs[current_index], in amd_sfh_work()
93 cli_data->report_type[current_index], in amd_sfh_work()
94 cli_data->feature_report[current_index], report_size, 0); in amd_sfh_work()
101 hid_input_report(cli_data->hid_sensor_hubs[current_index], in amd_sfh_work()
102 cli_data->report_type[current_index], in amd_sfh_work()
107 cli_data->cur_hid_dev = current_index; in amd_sfh_work()
108 cli_data->sensor_requested_cnt[current_index] = 0; in amd_sfh_work()
109 amdtp_hid_wakeup(cli_data->hid_sensor_hubs[current_index]); in amd_sfh_work()
114 struct amdtp_cl_data *cli_data = container_of(work, struct amdtp_cl_data, work_buffer.work); in amd_sfh_work_buffer() local
115 struct amd_input_data *in_data = cli_data->in_data; in amd_sfh_work_buffer()
120 for (i = 0; i < cli_data->num_hid_devices; i++) { in amd_sfh_work_buffer()
121 if (cli_data->sensor_sts[i] == SENSOR_ENABLED) { 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()
124 cli_data->report_id[i], in_data); in amd_sfh_work_buffer()
125 hid_input_report(cli_data->hid_sensor_hubs[i], HID_INPUT_REPORT, in amd_sfh_work_buffer()
129 schedule_delayed_work(&cli_data->work_buffer, msecs_to_jiffies(AMD_SFH_IDLE_LOOP)); in amd_sfh_work_buffer()