Lines Matching refs:tc
55 struct tc_settings *tc = lvts_data->tc; in lvts_write_all_device() local
58 if (tc[tc_id].ctrl_on_off == CTRL_OFF) in lvts_write_all_device()
65 if (tc[tc_id].ctrl_on_off == CTRL_OFF) in lvts_write_all_device()
138 struct tc_settings *tc = lvts_data->tc; in lvts_thermal_check_all_sensing_point_idle() local
143 if (tc[i].ctrl_on_off == CTRL_OFF) in lvts_thermal_check_all_sensing_point_idle()
171 struct tc_settings *tc = lvts_data->tc; in wait_all_tc_sensing_point_idle() local
190 if (tc[i].ctrl_on_off == CTRL_OFF) in wait_all_tc_sensing_point_idle()
222 struct tc_settings *tc = lvts_data->tc; in disable_all_sensing_points() local
225 if (tc[i].ctrl_on_off == CTRL_OFF) in disable_all_sensing_points()
236 struct tc_settings *tc = lvts_data->tc; in enable_all_sensing_points() local
242 if (tc[i].ctrl_on_off == CTRL_OFF) in enable_all_sensing_points()
246 num = tc[i].num_sensor; in enable_all_sensing_points()
250 __func__, i, tc[i].num_sensor); in enable_all_sensing_points()
255 for (j = 0; j < tc[i].num_sensor; j++) { in enable_all_sensing_points()
256 if (tc[i].sensor_on_off[j] != SEN_ON) in enable_all_sensing_points()
268 struct tc_settings *tc = lvts_data->tc; in set_polling_speed() local
274 lvts_mon_ctrl1 = (((tc[tc_id].tc_speed.group_interval_delay in set_polling_speed()
276 (tc[tc_id].tc_speed.period_unit & in set_polling_speed()
278 lvts_mon_ctrl2 = (((tc[tc_id].tc_speed.filter_interval_delay in set_polling_speed()
280 (tc[tc_id].tc_speed.sensor_interval_delay in set_polling_speed()
313 struct tc_settings *tc = lvts_data->tc; in set_hw_filter() local
318 option = tc[tc_id].hw_filter & 0x7; in set_hw_filter()
336 struct tc_settings *tc = lvts_data->tc; in get_dominator_index() local
339 if (tc[tc_id].dominator_sensing_point == ALL_SENSING_POINTS) { in get_dominator_index()
341 } else if (tc[tc_id].dominator_sensing_point < in get_dominator_index()
342 tc[tc_id].num_sensor){ in get_dominator_index()
343 d_index = tc[tc_id].dominator_sensing_point; in get_dominator_index()
346 tc_id, tc[tc_id].dominator_sensing_point, in get_dominator_index()
347 tc[tc_id].num_sensor); in get_dominator_index()
358 struct tc_settings *tc = lvts_data->tc; in set_all_tc_hw_reboot() local
363 if (tc[i].ctrl_on_off == CTRL_OFF) in set_all_tc_hw_reboot()
366 trip_point = tc[i].hw_reboot_trip_point; in set_all_tc_hw_reboot()
368 if (tc[i].num_sensor == 0) in set_all_tc_hw_reboot()
386 struct tc_settings *tc = lvts_data->tc; in lvts_lk_init_check() local
389 if (tc[i].ctrl_on_off == CTRL_OFF) in lvts_lk_init_check()
413 struct tc_settings *tc = lvts_data->tc; in lvts_set_init_flag_tfa() local
418 if (tc[i].ctrl_on_off == CTRL_OFF) in lvts_set_init_flag_tfa()
433 struct tc_settings *tc = lvts_data->tc; in lvts_clear_init_flag_tfa() local
436 if (tc[i].ctrl_on_off == CTRL_OFF) in lvts_clear_init_flag_tfa()
447 struct tc_settings *tc = lvts_data->tc; in read_calibration_data() local
453 if (tc[i].ctrl_on_off == CTRL_OFF) in read_calibration_data()
458 for (j = 0; j < tc[i].num_sensor; j++) { in read_calibration_data()
459 if (tc[i].sensor_on_off[j] != SEN_ON) in read_calibration_data()
462 s_index = tc[i].sensor_map[j]; in read_calibration_data()
558 struct tc_settings *tc = lvts_data->tc; in set_calibration_data_v1() local
565 if (tc[i].ctrl_on_off == CTRL_OFF) in set_calibration_data_v1()
570 for (j = 0; j < tc[i].num_sensor; j++) { in set_calibration_data_v1()
571 if (tc[i].sensor_on_off[j] != SEN_ON) in set_calibration_data_v1()
574 s_index = tc[i].sensor_map[j]; in set_calibration_data_v1()