/Linux-v4.19/drivers/thermal/ |
D | thermal-generic-adc.c | 23 s32 *lookup_table; member 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() 44 temp = gti->lookup_table[2 * i]; in gadc_thermal_adc_to_temp() 90 gti->lookup_table = devm_kcalloc(dev, in gadc_thermal_read_linear_lookup_table() 91 ntable, sizeof(*gti->lookup_table), in gadc_thermal_read_linear_lookup_table() 93 if (!gti->lookup_table) in gadc_thermal_read_linear_lookup_table() [all …]
|
/Linux-v4.19/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | smu_helper.c | 257 phm_ppt_v1_voltage_lookup_table *lookup_table) in phm_get_svi2_vdd_voltage_table() argument 261 PP_ASSERT_WITH_CODE((0 != lookup_table->count), in phm_get_svi2_vdd_voltage_table() 270 vol_table->count = lookup_table->count; in phm_get_svi2_vdd_voltage_table() 273 vol_table->entries[i].value = lookup_table->entries[i].us_vdd; in phm_get_svi2_vdd_voltage_table() 342 struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t voltage) in phm_get_voltage_index() argument 344 uint8_t count = (uint8_t) (lookup_table->count); in phm_get_voltage_index() 347 PP_ASSERT_WITH_CODE((NULL != lookup_table), in phm_get_voltage_index() 352 for (i = 0; i < lookup_table->count; i++) { in phm_get_voltage_index() 354 if (lookup_table->entries[i].us_vdd >= voltage) in phm_get_voltage_index() 413 phm_ppt_v1_voltage_lookup_table *lookup_table, in phm_get_sclk_for_voltage_evv() argument [all …]
|
D | smu_helper.h | 66 …_table(struct pp_atomctrl_voltage_table *vol_table, phm_ppt_v1_voltage_lookup_table *lookup_table); 73 extern uint8_t phm_get_voltage_index(struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t… 76 …phm_get_sclk_for_voltage_evv(struct pp_hwmgr *hwmgr, phm_ppt_v1_voltage_lookup_table *lookup_table,
|
D | smu7_hwmgr.c | 1816 phm_ppt_v1_voltage_lookup_table *lookup_table, in smu7_patch_lookup_table_with_leakage() argument 1821 for (i = 0; i < lookup_table->count; i++) in smu7_patch_lookup_table_with_leakage() 1823 &lookup_table->entries[i].us_vdd, leakage_table); in smu7_patch_lookup_table_with_leakage() 1992 struct phm_ppt_v1_voltage_lookup_table *lookup_table) in smu7_sort_lookup_table() argument 1996 table_size = lookup_table->count; in smu7_sort_lookup_table() 1998 PP_ASSERT_WITH_CODE(0 != lookup_table->count, in smu7_sort_lookup_table() 2004 if (lookup_table->entries[j].us_vdd < in smu7_sort_lookup_table() 2005 lookup_table->entries[j - 1].us_vdd) { in smu7_sort_lookup_table() 2006 tmp_voltage_lookup_record = lookup_table->entries[j - 1]; in smu7_sort_lookup_table() 2007 lookup_table->entries[j - 1] = lookup_table->entries[j]; in smu7_sort_lookup_table() [all …]
|
D | vega10_hwmgr.c | 488 phm_ppt_v1_voltage_lookup_table *lookup_table, in vega10_get_socclk_for_voltage_evv() argument 496 PP_ASSERT_WITH_CODE(lookup_table->count != 0, in vega10_get_socclk_for_voltage_evv() 503 if (lookup_table->entries[voltage_id].us_vdd == virtual_voltage_id) in vega10_get_socclk_for_voltage_evv() 608 phm_ppt_v1_voltage_lookup_table *lookup_table, in vega10_patch_lookup_table_with_leakage() argument 613 for (i = 0; i < lookup_table->count; i++) in vega10_patch_lookup_table_with_leakage() 615 &lookup_table->entries[i].us_vdd, leakage_table); in vega10_patch_lookup_table_with_leakage() 684 struct phm_ppt_v1_voltage_lookup_table *lookup_table) in vega10_sort_lookup_table() argument 689 PP_ASSERT_WITH_CODE(lookup_table && lookup_table->count, in vega10_sort_lookup_table() 692 table_size = lookup_table->count; in vega10_sort_lookup_table() 697 if (lookup_table->entries[j].us_vdd < in vega10_sort_lookup_table() [all …]
|
D | process_pptables_v1_0.c | 155 phm_ppt_v1_voltage_lookup_table **lookup_table, in get_vddc_lookup_table() argument 192 *lookup_table = table; in get_vddc_lookup_table()
|
D | vega10_processpptables.c | 996 phm_ppt_v1_voltage_lookup_table **lookup_table, in get_vddc_lookup_table() argument 1020 *lookup_table = table; in get_vddc_lookup_table()
|
/Linux-v4.19/drivers/clk/zte/ |
D | clk.c | 30 const struct zx_pll_config *config = zx_pll->lookup_table; in rate_to_idx() 46 const struct zx_pll_config *config = zx_pll->lookup_table; in hw_to_idx() 78 return zx_pll->lookup_table[idx].rate; in zx_pll_recalc_rate() 89 return zx_pll->lookup_table[idx].rate; in zx_pll_round_rate() 101 config = &zx_pll->lookup_table[idx]; in zx_pll_set_rate() 159 const struct zx_pll_config *lookup_table, in clk_register_zx_pll() argument 177 zx_pll->lookup_table = lookup_table; in clk_register_zx_pll()
|
D | clk.h | 26 const struct zx_pll_config *lookup_table; /* order by rate asc */ member 43 .lookup_table = _table, \ 163 const struct zx_pll_config *lookup_table, int count, spinlock_t *lock);
|
/Linux-v4.19/fs/crypto/ |
D | fname.c | 129 static const char *lookup_table = variable 149 *cp++ = lookup_table[ac & 0x3f]; in digest_encode() 156 *cp++ = lookup_table[ac & 0x3f]; in digest_encode() 167 p = strchr(lookup_table, src[i]); in digest_decode() 170 ac += (p - lookup_table) << bits; in digest_decode()
|
/Linux-v4.19/drivers/gpu/drm/amd/powerplay/smumgr/ |
D | vegam_smumgr.c | 508 struct phm_ppt_v1_voltage_lookup_table *lookup_table = in vegam_populate_cac_table() local 515 for (count = 0; count < lookup_table->count; count++) { in vegam_populate_cac_table() 516 index = phm_get_voltage_index(lookup_table, in vegam_populate_cac_table() 519 convert_to_vid(lookup_table->entries[index].us_cac_low); in vegam_populate_cac_table() 521 convert_to_vid(lookup_table->entries[index].us_cac_mid); in vegam_populate_cac_table() 523 convert_to_vid(lookup_table->entries[index].us_cac_high); in vegam_populate_cac_table()
|
D | polaris10_smumgr.c | 705 struct phm_ppt_v1_voltage_lookup_table *lookup_table = in polaris10_populate_cac_table() local 712 for (count = 0; count < lookup_table->count; count++) { in polaris10_populate_cac_table() 713 index = phm_get_voltage_index(lookup_table, in polaris10_populate_cac_table() 715 table->BapmVddcVidLoSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_low); in polaris10_populate_cac_table() 716 table->BapmVddcVidHiSidd[count] = convert_to_vid(lookup_table->entries[index].us_cac_mid); in polaris10_populate_cac_table() 717 table->BapmVddcVidHiSidd2[count] = convert_to_vid(lookup_table->entries[index].us_cac_high); in polaris10_populate_cac_table()
|
D | fiji_smumgr.c | 774 struct phm_ppt_v1_voltage_lookup_table *lookup_table = in fiji_populate_cac_table() local 782 for (count = 0; count < lookup_table->count; count++) { in fiji_populate_cac_table() 783 index = phm_get_voltage_index(lookup_table, in fiji_populate_cac_table() 786 convert_to_vid(lookup_table->entries[index].us_cac_low); in fiji_populate_cac_table() 788 convert_to_vid(lookup_table->entries[index].us_cac_high); in fiji_populate_cac_table()
|