Home
last modified time | relevance | path

Searched refs:temp_map (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/drivers/input/keyboard/
Damikbd.c132 unsigned short temp_map[NR_KEYS]; in amikbd_init_console_keymaps() local
138 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()
/Linux-v6.1/drivers/iio/adc/
Dcpcap-adc.c304 static const int temp_map[CPCAP_MAX_TEMP_LVL][2] = { variable
717 if (value <= temp_map[CPCAP_MAX_TEMP_LVL - 1][0]) in cpcap_adc_table_to_millicelcius()
718 return temp_map[CPCAP_MAX_TEMP_LVL - 1][1]; in cpcap_adc_table_to_millicelcius()
720 if (value >= temp_map[0][0]) in cpcap_adc_table_to_millicelcius()
721 return temp_map[0][1]; in cpcap_adc_table_to_millicelcius()
724 if ((value <= temp_map[i][0]) && in cpcap_adc_table_to_millicelcius()
725 (value >= temp_map[i + 1][0])) { in cpcap_adc_table_to_millicelcius()
726 if (value == temp_map[i][0]) { in cpcap_adc_table_to_millicelcius()
727 result = temp_map[i][1]; in cpcap_adc_table_to_millicelcius()
728 } else if (value == temp_map[i + 1][0]) { in cpcap_adc_table_to_millicelcius()
[all …]
/Linux-v6.1/drivers/thermal/qcom/
Dqcom-spmi-temp-alarm.c86 const long (*temp_map)[THRESH_COUNT][STAGE_COUNT]; member
120 if (!chip->temp_map || chip->thresh >= THRESH_COUNT || stage == 0 || in qpnp_tm_decode_temp()
124 return (*chip->temp_map)[chip->thresh][stage - 1]; in qpnp_tm_decode_temp()
224 long stage2_threshold_min = (*chip->temp_map)[THRESH_MIN][1]; in qpnp_tm_update_critical_trip_temp()
225 long stage2_threshold_max = (*chip->temp_map)[THRESH_MAX][1]; in qpnp_tm_update_critical_trip_temp()
440 chip->temp_map = &temp_map_gen2_v1; in qpnp_tm_probe()
442 chip->temp_map = &temp_map_gen1; in qpnp_tm_probe()