Home
last modified time | relevance | path

Searched refs:lookup_table (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/thermal/
A Dthermal-generic-adc.c20 s32 *lookup_table; member
29 if (!gti->lookup_table) in gadc_thermal_adc_to_temp()
33 if (val >= gti->lookup_table[2 * i + 1]) in gadc_thermal_adc_to_temp()
38 temp = gti->lookup_table[0]; in gadc_thermal_adc_to_temp()
42 adc_hi = gti->lookup_table[2 * i - 1]; in gadc_thermal_adc_to_temp()
43 adc_lo = gti->lookup_table[2 * i + 1]; in gadc_thermal_adc_to_temp()
45 temp_hi = gti->lookup_table[2 * i - 2]; in gadc_thermal_adc_to_temp()
46 temp_lo = gti->lookup_table[2 * i]; in gadc_thermal_adc_to_temp()
98 gti->lookup_table = devm_kcalloc(dev, in gadc_thermal_read_linear_lookup_table()
101 if (!gti->lookup_table) in gadc_thermal_read_linear_lookup_table()
[all …]
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
A Dsmu_helper.c305 phm_ppt_v1_voltage_lookup_table *lookup_table) in phm_get_svi2_vdd_voltage_table() argument
309 PP_ASSERT_WITH_CODE((0 != lookup_table->count), in phm_get_svi2_vdd_voltage_table()
318 vol_table->count = lookup_table->count; in phm_get_svi2_vdd_voltage_table()
321 vol_table->entries[i].value = lookup_table->entries[i].us_vdd; in phm_get_svi2_vdd_voltage_table()
390 struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t voltage) in phm_get_voltage_index() argument
392 uint8_t count = (uint8_t) (lookup_table->count); in phm_get_voltage_index()
395 PP_ASSERT_WITH_CODE((NULL != lookup_table), in phm_get_voltage_index()
400 for (i = 0; i < lookup_table->count; i++) { in phm_get_voltage_index()
402 if (lookup_table->entries[i].us_vdd >= voltage) in phm_get_voltage_index()
461 phm_ppt_v1_voltage_lookup_table *lookup_table, in phm_get_sclk_for_voltage_evv() argument
[all …]
A Dsmu_helper.h78 …_table(struct pp_atomctrl_voltage_table *vol_table, phm_ppt_v1_voltage_lookup_table *lookup_table);
85 extern uint8_t phm_get_voltage_index(struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t…
88 …phm_get_sclk_for_voltage_evv(struct pp_hwmgr *hwmgr, phm_ppt_v1_voltage_lookup_table *lookup_table,
A Dsmu7_hwmgr.c2129 for (i = 0; i < lookup_table->count; i++) in smu7_patch_lookup_table_with_leakage()
2303 table_size = lookup_table->count; in smu7_sort_lookup_table()
2305 PP_ASSERT_WITH_CODE(0 != lookup_table->count, in smu7_sort_lookup_table()
2311 if (lookup_table->entries[j].us_vdd < in smu7_sort_lookup_table()
2312 lookup_table->entries[j - 1].us_vdd) { in smu7_sort_lookup_table()
2313 swap(lookup_table->entries[j - 1], in smu7_sort_lookup_table()
2314 lookup_table->entries[j]); in smu7_sort_lookup_table()
2387 for (i = 0; i < lookup_table->count; i++) { in smu7_find_highest_vddc()
2453 lookup_table = table_info->vddc_lookup_table; in smu7_patch_voltage_workaround()
2475 for (i = 0; i < lookup_table->count; i++) { in smu7_patch_voltage_workaround()
[all …]
A Dvega10_hwmgr.c517 phm_ppt_v1_voltage_lookup_table *lookup_table, in vega10_get_socclk_for_voltage_evv() argument
525 PP_ASSERT_WITH_CODE(lookup_table->count != 0, in vega10_get_socclk_for_voltage_evv()
637 phm_ppt_v1_voltage_lookup_table *lookup_table, in vega10_patch_lookup_table_with_leakage() argument
642 for (i = 0; i < lookup_table->count; i++) in vega10_patch_lookup_table_with_leakage()
644 &lookup_table->entries[i].us_vdd, leakage_table); in vega10_patch_lookup_table_with_leakage()
717 PP_ASSERT_WITH_CODE(lookup_table && lookup_table->count, in vega10_sort_lookup_table()
720 table_size = lookup_table->count; in vega10_sort_lookup_table()
725 if (lookup_table->entries[j].us_vdd < in vega10_sort_lookup_table()
726 lookup_table->entries[j - 1].us_vdd) { in vega10_sort_lookup_table()
727 swap(lookup_table->entries[j - 1], in vega10_sort_lookup_table()
[all …]
A Dvega10_processpptables.c1035 phm_ppt_v1_voltage_lookup_table **lookup_table, in get_vddc_lookup_table() argument
1055 *lookup_table = table; in get_vddc_lookup_table()
A Dprocess_pptables_v1_0.c155 phm_ppt_v1_voltage_lookup_table **lookup_table, in get_vddc_lookup_table() argument
188 *lookup_table = table; in get_vddc_lookup_table()
/linux/drivers/video/fbdev/
A Dssd1307fb.c75 u8 lookup_table[4]; member
517 for (i = 0; i < ARRAY_SIZE(par->lookup_table); ++i) { in ssd1307fb_init()
518 u8 val = par->lookup_table[i]; in ssd1307fb_init()
700 par->lookup_table, in ssd1307fb_probe()
701 ARRAY_SIZE(par->lookup_table))) in ssd1307fb_probe()
/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
A Dvegam_smumgr.c509 struct phm_ppt_v1_voltage_lookup_table *lookup_table = in vegam_populate_cac_table() local
516 for (count = 0; count < lookup_table->count; count++) { in vegam_populate_cac_table()
517 index = phm_get_voltage_index(lookup_table, in vegam_populate_cac_table()
520 convert_to_vid(lookup_table->entries[index].us_cac_low); in vegam_populate_cac_table()
522 convert_to_vid(lookup_table->entries[index].us_cac_mid); in vegam_populate_cac_table()
524 convert_to_vid(lookup_table->entries[index].us_cac_high); in vegam_populate_cac_table()
A Dpolaris10_smumgr.c749 struct phm_ppt_v1_voltage_lookup_table *lookup_table = in polaris10_populate_cac_table() local
756 for (count = 0; count < lookup_table->count; count++) { in polaris10_populate_cac_table()
757 index = phm_get_voltage_index(lookup_table, in polaris10_populate_cac_table()
759 table->BapmVddcVidLoSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_low); in polaris10_populate_cac_table()
760 table->BapmVddcVidHiSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_mid); in polaris10_populate_cac_table()
761 table->BapmVddcVidHiSidd2[count] = convert_to_vid(lookup_table->entries[index].us_cac_high); in polaris10_populate_cac_table()
A Dfiji_smumgr.c762 struct phm_ppt_v1_voltage_lookup_table *lookup_table = in fiji_populate_cac_table() local
770 for (count = 0; count < lookup_table->count; count++) { in fiji_populate_cac_table()
771 index = phm_get_voltage_index(lookup_table, in fiji_populate_cac_table()
774 convert_to_vid(lookup_table->entries[index].us_cac_low); in fiji_populate_cac_table()
776 convert_to_vid(lookup_table->entries[index].us_cac_high); in fiji_populate_cac_table()

Completed in 44 milliseconds