Lines Matching refs:cpu_to_be32

1265 		table->lowSMIO[i] |= cpu_to_be32(voltage_table->entries[i].smio_low);  in ni_populate_smc_voltage_table()
1280 cpu_to_be32(eg_pi->vddc_voltage_table.mask_low); in ni_populate_smc_voltage_tables()
1295 cpu_to_be32(eg_pi->vddci_voltage_table.mask_low); in ni_populate_smc_voltage_tables()
1483 cpu_to_be32(ni_scale_power_for_smc(tdp_limit, scaling_factor)); in ni_populate_smc_tdp_limits()
1485 cpu_to_be32(ni_scale_power_for_smc(near_tdp_limit, scaling_factor)); in ni_populate_smc_tdp_limits()
1487 cpu_to_be32(ni_scale_power_for_smc((near_tdp_limit * NISLANDS_DPM2_TDP_SAFE_LIMIT_PERCENT) / 100, in ni_populate_smc_tdp_limits()
1490 cpu_to_be32(ni_scale_power_for_smc(power_boost_limit, scaling_factor)); in ni_populate_smc_tdp_limits()
1631 arb_regs->mc_arb_dram_timing = cpu_to_be32(dram_timing); in ni_populate_memory_timing_parameters()
1632 arb_regs->mc_arb_dram_timing2 = cpu_to_be32(dram_timing2); in ni_populate_memory_timing_parameters()
1693 cpu_to_be32(ni_pi->clock_registers.mpll_ad_func_cntl); in ni_populate_smc_initial_state()
1695 cpu_to_be32(ni_pi->clock_registers.mpll_ad_func_cntl_2); in ni_populate_smc_initial_state()
1697 cpu_to_be32(ni_pi->clock_registers.mpll_dq_func_cntl); in ni_populate_smc_initial_state()
1699 cpu_to_be32(ni_pi->clock_registers.mpll_dq_func_cntl_2); in ni_populate_smc_initial_state()
1701 cpu_to_be32(ni_pi->clock_registers.mclk_pwrmgt_cntl); in ni_populate_smc_initial_state()
1703 cpu_to_be32(ni_pi->clock_registers.dll_cntl); in ni_populate_smc_initial_state()
1705 cpu_to_be32(ni_pi->clock_registers.mpll_ss1); in ni_populate_smc_initial_state()
1707 cpu_to_be32(ni_pi->clock_registers.mpll_ss2); in ni_populate_smc_initial_state()
1709 cpu_to_be32(initial_state->performance_levels[0].mclk); in ni_populate_smc_initial_state()
1712 cpu_to_be32(ni_pi->clock_registers.cg_spll_func_cntl); in ni_populate_smc_initial_state()
1714 cpu_to_be32(ni_pi->clock_registers.cg_spll_func_cntl_2); in ni_populate_smc_initial_state()
1716 cpu_to_be32(ni_pi->clock_registers.cg_spll_func_cntl_3); in ni_populate_smc_initial_state()
1718 cpu_to_be32(ni_pi->clock_registers.cg_spll_func_cntl_4); in ni_populate_smc_initial_state()
1720 cpu_to_be32(ni_pi->clock_registers.cg_spll_spread_spectrum); in ni_populate_smc_initial_state()
1722 cpu_to_be32(ni_pi->clock_registers.cg_spll_spread_spectrum_2); in ni_populate_smc_initial_state()
1724 cpu_to_be32(initial_state->performance_levels[0].sclk); in ni_populate_smc_initial_state()
1754 table->initialState.levels[0].aT = cpu_to_be32(reg); in ni_populate_smc_initial_state()
1756 table->initialState.levels[0].bSP = cpu_to_be32(pi->dsp); in ni_populate_smc_initial_state()
1784 table->initialState.levels[0].SQPowerThrottle = cpu_to_be32(reg); in ni_populate_smc_initial_state()
1787 table->initialState.levels[0].SQPowerThrottle_2 = cpu_to_be32(reg); in ni_populate_smc_initial_state()
1905 table->ACPIState.levels[0].mclk.vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); in ni_populate_smc_acpi_state()
1906 table->ACPIState.levels[0].mclk.vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); in ni_populate_smc_acpi_state()
1907 table->ACPIState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); in ni_populate_smc_acpi_state()
1908 table->ACPIState.levels[0].mclk.vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); in ni_populate_smc_acpi_state()
1909 table->ACPIState.levels[0].mclk.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in ni_populate_smc_acpi_state()
1910 table->ACPIState.levels[0].mclk.vDLL_CNTL = cpu_to_be32(dll_cntl); in ni_populate_smc_acpi_state()
1914 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL = cpu_to_be32(spll_func_cntl); in ni_populate_smc_acpi_state()
1915 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_2 = cpu_to_be32(spll_func_cntl_2); in ni_populate_smc_acpi_state()
1916 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_3 = cpu_to_be32(spll_func_cntl_3); in ni_populate_smc_acpi_state()
1917 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_4 = cpu_to_be32(spll_func_cntl_4); in ni_populate_smc_acpi_state()
1932 table->ACPIState.levels[0].SQPowerThrottle = cpu_to_be32(reg); in ni_populate_smc_acpi_state()
1935 table->ACPIState.levels[0].SQPowerThrottle_2 = cpu_to_be32(reg); in ni_populate_smc_acpi_state()
2078 sclk->sclk_value = cpu_to_be32(sclk_tmp.sclk_value); in ni_populate_sclk_value()
2079 sclk->vCG_SPLL_FUNC_CNTL = cpu_to_be32(sclk_tmp.vCG_SPLL_FUNC_CNTL); in ni_populate_sclk_value()
2080 sclk->vCG_SPLL_FUNC_CNTL_2 = cpu_to_be32(sclk_tmp.vCG_SPLL_FUNC_CNTL_2); in ni_populate_sclk_value()
2081 sclk->vCG_SPLL_FUNC_CNTL_3 = cpu_to_be32(sclk_tmp.vCG_SPLL_FUNC_CNTL_3); in ni_populate_sclk_value()
2082 sclk->vCG_SPLL_FUNC_CNTL_4 = cpu_to_be32(sclk_tmp.vCG_SPLL_FUNC_CNTL_4); in ni_populate_sclk_value()
2083 sclk->vCG_SPLL_SPREAD_SPECTRUM = cpu_to_be32(sclk_tmp.vCG_SPLL_SPREAD_SPECTRUM); in ni_populate_sclk_value()
2084 sclk->vCG_SPLL_SPREAD_SPECTRUM_2 = cpu_to_be32(sclk_tmp.vCG_SPLL_SPREAD_SPECTRUM_2); in ni_populate_sclk_value()
2142 spll_table->freq[i] = cpu_to_be32(tmp); in ni_init_smc_spll_table()
2146 spll_table->ss[i] = cpu_to_be32(tmp); in ni_init_smc_spll_table()
2281 mclk->mclk_value = cpu_to_be32(memory_clock); in ni_populate_mclk_value()
2282 mclk->vMPLL_AD_FUNC_CNTL = cpu_to_be32(mpll_ad_func_cntl); in ni_populate_mclk_value()
2283 mclk->vMPLL_AD_FUNC_CNTL_2 = cpu_to_be32(mpll_ad_func_cntl_2); in ni_populate_mclk_value()
2284 mclk->vMPLL_DQ_FUNC_CNTL = cpu_to_be32(mpll_dq_func_cntl); in ni_populate_mclk_value()
2285 mclk->vMPLL_DQ_FUNC_CNTL_2 = cpu_to_be32(mpll_dq_func_cntl_2); in ni_populate_mclk_value()
2286 mclk->vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in ni_populate_mclk_value()
2287 mclk->vDLL_CNTL = cpu_to_be32(dll_cntl); in ni_populate_mclk_value()
2288 mclk->vMPLL_SS = cpu_to_be32(mpll_ss1); in ni_populate_mclk_value()
2289 mclk->vMPLL_SS2 = cpu_to_be32(mpll_ss2); in ni_populate_mclk_value()
2303 smc_state->levels[i].bSP = cpu_to_be32(pi->dsp); in ni_populate_smc_sp()
2306 cpu_to_be32(pi->psp); in ni_populate_smc_sp()
2407 smc_state->levels[0].aT = cpu_to_be32(a_t); in ni_populate_smc_t()
2411 smc_state->levels[0].aT = cpu_to_be32(0); in ni_populate_smc_t()
2438 smc_state->levels[i].aT = cpu_to_be32(a_t); in ni_populate_smc_t()
2444 smc_state->levels[i + 1].aT = cpu_to_be32(a_t); in ni_populate_smc_t()
2587 smc_state->levels[i].SQPowerThrottle = cpu_to_be32(sq_power_throttle); in ni_populate_sq_ramping_values()
2588 smc_state->levels[i].SQPowerThrottle_2 = cpu_to_be32(sq_power_throttle2); in ni_populate_sq_ramping_values()
2668 cpu_to_be32(threshold / 512)); in ni_convert_power_state_to_smc()
2951 data->value[i] = cpu_to_be32(entry->mc_data[j]); in ni_convert_mc_registers()
3082 cac_tables->cac_lkge_lut[i][j] = cpu_to_be32(smc_leakage); in ni_init_driver_calculated_leakage_table()
3088 cac_tables->cac_lkge_lut[i][j] = cpu_to_be32(max_leakage); in ni_init_driver_calculated_leakage_table()
3128 cpu_to_be32(ni_scale_power_for_smc(smc_leakage, scaling_factor)); in ni_init_simplified_leakage_table()
3134 cpu_to_be32(ni_scale_power_for_smc(max_leakage, scaling_factor)); in ni_init_simplified_leakage_table()
3184 cac_tables->pwr_const = cpu_to_be32(ni_pi->cac_data.pwr_const); in ni_initialize_smc_cac_tables()
3185 cac_tables->dc_cacValue = cpu_to_be32(ni_pi->cac_data.dc_cac_value); in ni_initialize_smc_cac_tables()
3186 cac_tables->bif_cacValue = cpu_to_be32(ni_pi->cac_data.bif_cac_value); in ni_initialize_smc_cac_tables()