Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/thermal/
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()
40 temp = gti->lookup_table[2 * (gti->nlookup_table - 1)]; 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()
94 gti->lookup_table = devm_kcalloc(dev, in gadc_thermal_read_linear_lookup_table()
[all …]
/Linux-v5.4/drivers/clk/zte/
Dclk.c27 const struct zx_pll_config *config = zx_pll->lookup_table; in rate_to_idx()
43 const struct zx_pll_config *config = zx_pll->lookup_table; in hw_to_idx()
75 return zx_pll->lookup_table[idx].rate; in zx_pll_recalc_rate()
86 return zx_pll->lookup_table[idx].rate; in zx_pll_round_rate()
98 config = &zx_pll->lookup_table[idx]; in zx_pll_set_rate()
156 const struct zx_pll_config *lookup_table, in clk_register_zx_pll() argument
174 zx_pll->lookup_table = lookup_table; in clk_register_zx_pll()
Dclk.h23 const struct zx_pll_config *lookup_table; /* order by rate asc */ member
40 .lookup_table = _table, \
160 const struct zx_pll_config *lookup_table, int count, spinlock_t *lock);
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/
Dsmu_helper.c304 phm_ppt_v1_voltage_lookup_table *lookup_table) in phm_get_svi2_vdd_voltage_table() argument
308 PP_ASSERT_WITH_CODE((0 != lookup_table->count), in phm_get_svi2_vdd_voltage_table()
317 vol_table->count = lookup_table->count; in phm_get_svi2_vdd_voltage_table()
320 vol_table->entries[i].value = lookup_table->entries[i].us_vdd; in phm_get_svi2_vdd_voltage_table()
389 struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t voltage) in phm_get_voltage_index() argument
391 uint8_t count = (uint8_t) (lookup_table->count); in phm_get_voltage_index()
394 PP_ASSERT_WITH_CODE((NULL != lookup_table), in phm_get_voltage_index()
399 for (i = 0; i < lookup_table->count; i++) { in phm_get_voltage_index()
401 if (lookup_table->entries[i].us_vdd >= voltage) in phm_get_voltage_index()
460 phm_ppt_v1_voltage_lookup_table *lookup_table, in phm_get_sclk_for_voltage_evv() argument
[all …]
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,
Dsmu7_hwmgr.c1818 phm_ppt_v1_voltage_lookup_table *lookup_table, in smu7_patch_lookup_table_with_leakage() argument
1823 for (i = 0; i < lookup_table->count; i++) in smu7_patch_lookup_table_with_leakage()
1825 &lookup_table->entries[i].us_vdd, leakage_table); in smu7_patch_lookup_table_with_leakage()
1994 struct phm_ppt_v1_voltage_lookup_table *lookup_table) in smu7_sort_lookup_table() argument
1998 table_size = lookup_table->count; in smu7_sort_lookup_table()
2000 PP_ASSERT_WITH_CODE(0 != lookup_table->count, in smu7_sort_lookup_table()
2006 if (lookup_table->entries[j].us_vdd < in smu7_sort_lookup_table()
2007 lookup_table->entries[j - 1].us_vdd) { in smu7_sort_lookup_table()
2008 tmp_voltage_lookup_record = lookup_table->entries[j - 1]; in smu7_sort_lookup_table()
2009 lookup_table->entries[j - 1] = lookup_table->entries[j]; in smu7_sort_lookup_table()
[all …]
Dvega10_hwmgr.c516 phm_ppt_v1_voltage_lookup_table *lookup_table, in vega10_get_socclk_for_voltage_evv() argument
524 PP_ASSERT_WITH_CODE(lookup_table->count != 0, in vega10_get_socclk_for_voltage_evv()
531 if (lookup_table->entries[voltage_id].us_vdd == virtual_voltage_id) in vega10_get_socclk_for_voltage_evv()
636 phm_ppt_v1_voltage_lookup_table *lookup_table, in vega10_patch_lookup_table_with_leakage() argument
641 for (i = 0; i < lookup_table->count; i++) in vega10_patch_lookup_table_with_leakage()
643 &lookup_table->entries[i].us_vdd, leakage_table); in vega10_patch_lookup_table_with_leakage()
712 struct phm_ppt_v1_voltage_lookup_table *lookup_table) in vega10_sort_lookup_table() argument
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()
[all …]
Dprocess_pptables_v1_0.c155 phm_ppt_v1_voltage_lookup_table **lookup_table, in get_vddc_lookup_table() argument
192 *lookup_table = table; in get_vddc_lookup_table()
Dvega10_processpptables.c1065 phm_ppt_v1_voltage_lookup_table **lookup_table, in get_vddc_lookup_table() argument
1089 *lookup_table = table; in get_vddc_lookup_table()
/Linux-v5.4/fs/crypto/
Dfname.c126 static const char lookup_table[65] = variable
148 *cp++ = lookup_table[ac & 0x3f]; in base64_encode()
154 *cp++ = lookup_table[ac & 0x3f]; in base64_encode()
165 p = strchr(lookup_table, src[i]); in base64_decode()
168 ac += (p - lookup_table) << bits; in base64_decode()
/Linux-v5.4/drivers/video/fbdev/
Dssd1307fb.c78 u8 lookup_table[4]; member
443 for (i = 0; i < ARRAY_SIZE(par->lookup_table); ++i) { in ssd1307fb_init()
444 u8 val = par->lookup_table[i]; in ssd1307fb_init()
657 par->lookup_table, in ssd1307fb_probe()
658 ARRAY_SIZE(par->lookup_table))) in ssd1307fb_probe()
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/smumgr/
Dvegam_smumgr.c507 struct phm_ppt_v1_voltage_lookup_table *lookup_table = in vegam_populate_cac_table() local
514 for (count = 0; count < lookup_table->count; count++) { in vegam_populate_cac_table()
515 index = phm_get_voltage_index(lookup_table, in vegam_populate_cac_table()
518 convert_to_vid(lookup_table->entries[index].us_cac_low); in vegam_populate_cac_table()
520 convert_to_vid(lookup_table->entries[index].us_cac_mid); in vegam_populate_cac_table()
522 convert_to_vid(lookup_table->entries[index].us_cac_high); in vegam_populate_cac_table()
Dpolaris10_smumgr.c706 struct phm_ppt_v1_voltage_lookup_table *lookup_table = in polaris10_populate_cac_table() local
713 for (count = 0; count < lookup_table->count; count++) { in polaris10_populate_cac_table()
714 index = phm_get_voltage_index(lookup_table, in polaris10_populate_cac_table()
716 table->BapmVddcVidLoSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_low); in polaris10_populate_cac_table()
717 table->BapmVddcVidHiSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_mid); in polaris10_populate_cac_table()
718 table->BapmVddcVidHiSidd2[count] = convert_to_vid(lookup_table->entries[index].us_cac_high); in polaris10_populate_cac_table()
Dfiji_smumgr.c764 struct phm_ppt_v1_voltage_lookup_table *lookup_table = in fiji_populate_cac_table() local
772 for (count = 0; count < lookup_table->count; count++) { in fiji_populate_cac_table()
773 index = phm_get_voltage_index(lookup_table, in fiji_populate_cac_table()
776 convert_to_vid(lookup_table->entries[index].us_cac_low); in fiji_populate_cac_table()
778 convert_to_vid(lookup_table->entries[index].us_cac_high); in fiji_populate_cac_table()