Searched refs:smc_leakage (Results 1 – 3 of 3) sorted by relevance
3057 u32 smc_leakage, max_leakage = 0; in ni_init_driver_calculated_leakage_table() local3081 smc_leakage = ni_scale_power_for_smc(leakage, scaling_factor) / 1000; in ni_init_driver_calculated_leakage_table()3082 if (smc_leakage > max_leakage) in ni_init_driver_calculated_leakage_table()3083 max_leakage = smc_leakage; in ni_init_driver_calculated_leakage_table()3085 cac_tables->cac_lkge_lut[i][j] = cpu_to_be32(smc_leakage); in ni_init_driver_calculated_leakage_table()3103 u32 smc_leakage, max_leakage = 0; in ni_init_simplified_leakage_table() local3124 smc_leakage = leakage_table->entries[j].leakage; in ni_init_simplified_leakage_table()3126 if (smc_leakage > max_leakage) in ni_init_simplified_leakage_table()3127 max_leakage = smc_leakage; in ni_init_simplified_leakage_table()3131 cpu_to_be32(ni_scale_power_for_smc(smc_leakage, scaling_factor)); in ni_init_simplified_leakage_table()
2566 u32 smc_leakage; in si_init_dte_leakage_table() local2585 smc_leakage = si_scale_power_for_smc(leakage, scaling_factor) / 4; in si_init_dte_leakage_table()2587 if (smc_leakage > 0xFFFF) in si_init_dte_leakage_table()2588 smc_leakage = 0xFFFF; in si_init_dte_leakage_table()2591 cpu_to_be16((u16)smc_leakage); in si_init_dte_leakage_table()2604 u32 smc_leakage; in si_init_simplified_leakage_table() local2620 smc_leakage = si_scale_power_for_smc(leakage, scaling_factor) / 4; in si_init_simplified_leakage_table()2622 if (smc_leakage > 0xFFFF) in si_init_simplified_leakage_table()2623 smc_leakage = 0xFFFF; in si_init_simplified_leakage_table()2627 cpu_to_be16((u16)smc_leakage); in si_init_simplified_leakage_table()
2680 u32 smc_leakage; in si_init_dte_leakage_table() local2699 smc_leakage = si_scale_power_for_smc(leakage, scaling_factor) / 4; in si_init_dte_leakage_table()2701 if (smc_leakage > 0xFFFF) in si_init_dte_leakage_table()2702 smc_leakage = 0xFFFF; in si_init_dte_leakage_table()2705 cpu_to_be16((u16)smc_leakage); in si_init_dte_leakage_table()2718 u32 smc_leakage; in si_init_simplified_leakage_table() local2734 smc_leakage = si_scale_power_for_smc(leakage, scaling_factor) / 4; in si_init_simplified_leakage_table()2736 if (smc_leakage > 0xFFFF) in si_init_simplified_leakage_table()2737 smc_leakage = 0xFFFF; in si_init_simplified_leakage_table()2741 cpu_to_be16((u16)smc_leakage); in si_init_simplified_leakage_table()