Searched refs:temp_map (Results 1 – 4 of 4) sorted by relevance
132 unsigned short temp_map[NR_KEYS]; in amikbd_init_console_keymaps() local138 memset(temp_map, 0, sizeof(temp_map)); in amikbd_init_console_keymaps()142 temp_map[j] = key_maps[i][amikbd_keycode[j]]; in amikbd_init_console_keymaps()145 if (!temp_map[j]) in amikbd_init_console_keymaps()146 temp_map[j] = 0xf200; in amikbd_init_console_keymaps()148 memcpy(key_maps[i], temp_map, sizeof(temp_map)); in amikbd_init_console_keymaps()
304 static const int temp_map[CPCAP_MAX_TEMP_LVL][2] = { variable709 if (value <= temp_map[CPCAP_MAX_TEMP_LVL - 1][0]) in cpcap_adc_table_to_millicelcius()710 return temp_map[CPCAP_MAX_TEMP_LVL - 1][1]; in cpcap_adc_table_to_millicelcius()712 if (value >= temp_map[0][0]) in cpcap_adc_table_to_millicelcius()713 return temp_map[0][1]; in cpcap_adc_table_to_millicelcius()716 if ((value <= temp_map[i][0]) && in cpcap_adc_table_to_millicelcius()717 (value >= temp_map[i + 1][0])) { in cpcap_adc_table_to_millicelcius()718 if (value == temp_map[i][0]) { in cpcap_adc_table_to_millicelcius()719 result = temp_map[i][1]; in cpcap_adc_table_to_millicelcius()720 } else if (value == temp_map[i + 1][0]) { in cpcap_adc_table_to_millicelcius()[all …]
127 const long (*temp_map)[THRESH_COUNT][STAGE_COUNT]; member312 long stage2_threshold_min = (*chip->data->temp_map)[THRESH_MIN][STAGE2]; in qpnp_tm_update_critical_trip_temp()313 long stage2_threshold_max = (*chip->data->temp_map)[THRESH_MAX][STAGE2]; in qpnp_tm_update_critical_trip_temp()348 memcpy(chip->temp_thresh_map, chip->data->temp_map[threshold], in qpnp_tm_update_critical_trip_temp()429 const long *temp_map; in qpnp_tm_lite_set_temp_thresh() local442 temp_map = temp_lite_warning_map; in qpnp_tm_lite_set_temp_thresh()454 temp_map = temp_lite_shutdown_map; in qpnp_tm_lite_set_temp_thresh()461 if (temp < temp_map[THRESH_MIN] || temp > temp_map[THRESH_MAX]) { in qpnp_tm_lite_set_temp_thresh()467 temp_cfg = temp_map[thresh]; in qpnp_tm_lite_set_temp_thresh()469 if (temp >= temp_map[i]) { in qpnp_tm_lite_set_temp_thresh()[all …]
201 const int *temp_map; member275 return lenovo_ec_do_read_temp(data, attr, data->temp_map[channel], val); in lenovo_ec_hwmon_read()555 ec_data->temp_map = px_temp_map; in lenovo_ec_probe()562 ec_data->temp_map = gen_temp_map; in lenovo_ec_probe()569 ec_data->temp_map = gen_temp_map; in lenovo_ec_probe()576 ec_data->temp_map = p8_temp_map; in lenovo_ec_probe()