/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
D | qede_ptp.c | 12 struct ptp_clock_info clock_info; member 40 struct qede_ptp *ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_adjfreq() 63 ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_adjtime() 82 ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_gettime() 103 ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_settime() 126 ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_ancillary_feature_enable() 463 ptp->clock_info.owner = THIS_MODULE; in qede_ptp_enable() 464 snprintf(ptp->clock_info.name, 16, "%s", edev->ndev->name); in qede_ptp_enable() 465 ptp->clock_info.max_adj = QED_MAX_PHC_DRIFT_PPB; in qede_ptp_enable() 466 ptp->clock_info.n_alarm = 0; in qede_ptp_enable() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_atombios.c | 2076 &rdev->pm.power_state[state_index].clock_info[0]; in radeon_atombios_parse_misc_flags_1_3() 2078 rdev->pm.power_state[state_index].clock_info[0].flags |= in radeon_atombios_parse_misc_flags_1_3() 2130 if (!rdev->pm.power_state[state_index].clock_info) { in radeon_atombios_parse_power_table_1_3() 2131 rdev->pm.power_state[state_index].clock_info = in radeon_atombios_parse_power_table_1_3() 2135 if (!rdev->pm.power_state[state_index].clock_info) in radeon_atombios_parse_power_table_1_3() 2138 rdev->pm.power_state[state_index].clock_info[0].voltage.type = VOLTAGE_NONE; in radeon_atombios_parse_power_table_1_3() 2141 rdev->pm.power_state[state_index].clock_info[0].mclk = in radeon_atombios_parse_power_table_1_3() 2143 rdev->pm.power_state[state_index].clock_info[0].sclk = in radeon_atombios_parse_power_table_1_3() 2146 if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || in radeon_atombios_parse_power_table_1_3() 2147 (rdev->pm.power_state[state_index].clock_info[0].sclk == 0)) in radeon_atombios_parse_power_table_1_3() [all …]
|
D | radeon_combios.c | 2653 rdev->pm.power_state[0].clock_info = in radeon_combios_get_power_modes() 2656 rdev->pm.power_state[1].clock_info = in radeon_combios_get_power_modes() 2659 if (!rdev->pm.power_state[0].clock_info || in radeon_combios_get_power_modes() 2660 !rdev->pm.power_state[1].clock_info) in radeon_combios_get_power_modes() 2737 rdev->pm.power_state[state_index].clock_info[0].mclk = RBIOS32(offset + 0x5 + 0x2); in radeon_combios_get_power_modes() 2738 rdev->pm.power_state[state_index].clock_info[0].sclk = RBIOS32(offset + 0x5 + 0x6); in radeon_combios_get_power_modes() 2739 if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || in radeon_combios_get_power_modes() 2740 (rdev->pm.power_state[state_index].clock_info[0].sclk == 0)) in radeon_combios_get_power_modes() 2750 rdev->pm.power_state[state_index].clock_info[0].voltage.type = VOLTAGE_GPIO; in radeon_combios_get_power_modes() 2752 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high = in radeon_combios_get_power_modes() [all …]
|
D | rs780_dpm.c | 750 union pplib_clock_info *clock_info) in rs780_parse_pplib_clock_info() argument 755 sclk = le16_to_cpu(clock_info->rs780.usLowEngineClockLow); in rs780_parse_pplib_clock_info() 756 sclk |= clock_info->rs780.ucLowEngineClockHigh << 16; in rs780_parse_pplib_clock_info() 758 sclk = le16_to_cpu(clock_info->rs780.usHighEngineClockLow); in rs780_parse_pplib_clock_info() 759 sclk |= clock_info->rs780.ucHighEngineClockHigh << 16; in rs780_parse_pplib_clock_info() 761 switch (le16_to_cpu(clock_info->rs780.usVDDC)) { in rs780_parse_pplib_clock_info() 780 ps->flags = le32_to_cpu(clock_info->rs780.ulFlags); in rs780_parse_pplib_clock_info() 796 union pplib_clock_info *clock_info; in rs780_parse_power_table() local 825 clock_info = (union pplib_clock_info *) in rs780_parse_power_table() 841 clock_info); in rs780_parse_power_table()
|
D | rv770_dpm.c | 2175 union pplib_clock_info *clock_info) in rv7xx_parse_pplib_clock_info() argument 2197 sclk = le16_to_cpu(clock_info->evergreen.usEngineClockLow); in rv7xx_parse_pplib_clock_info() 2198 sclk |= clock_info->evergreen.ucEngineClockHigh << 16; in rv7xx_parse_pplib_clock_info() 2199 mclk = le16_to_cpu(clock_info->evergreen.usMemoryClockLow); in rv7xx_parse_pplib_clock_info() 2200 mclk |= clock_info->evergreen.ucMemoryClockHigh << 16; in rv7xx_parse_pplib_clock_info() 2202 pl->vddc = le16_to_cpu(clock_info->evergreen.usVDDC); in rv7xx_parse_pplib_clock_info() 2203 pl->vddci = le16_to_cpu(clock_info->evergreen.usVDDCI); in rv7xx_parse_pplib_clock_info() 2204 pl->flags = le32_to_cpu(clock_info->evergreen.ulFlags); in rv7xx_parse_pplib_clock_info() 2206 sclk = le16_to_cpu(clock_info->r600.usEngineClockLow); in rv7xx_parse_pplib_clock_info() 2207 sclk |= clock_info->r600.ucEngineClockHigh << 16; in rv7xx_parse_pplib_clock_info() [all …]
|
D | radeon_pm.c | 183 clock_info[rdev->pm.requested_clock_mode_index].sclk; in radeon_set_power_state() 197 clock_info[rdev->pm.profiles[PM_PROFILE_HIGH_MH_IDX].dpms_on_cm_idx].mclk; in radeon_set_power_state() 200 clock_info[rdev->pm.requested_clock_mode_index].mclk; in radeon_set_power_state() 325 struct radeon_pm_clock_info *clock_info; in radeon_pm_print_states() local 340 clock_info = &(power_state->clock_info[j]); in radeon_pm_print_states() 344 clock_info->sclk * 10); in radeon_pm_print_states() 348 clock_info->sclk * 10, in radeon_pm_print_states() 349 clock_info->mclk * 10, in radeon_pm_print_states() 350 clock_info->voltage.voltage); in radeon_pm_print_states() 1273 …rdev->pm.current_vddc = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0].vol… in radeon_pm_resume_old() [all …]
|
D | trinity_dpm.c | 1709 union pplib_clock_info *clock_info) in trinity_parse_pplib_clock_info() argument 1716 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in trinity_parse_pplib_clock_info() 1717 sclk |= clock_info->sumo.ucEngineClockHigh << 16; in trinity_parse_pplib_clock_info() 1719 pl->vddc_index = clock_info->sumo.vddcIndex; in trinity_parse_pplib_clock_info() 1735 union pplib_clock_info *clock_info; in trinity_parse_power_table() local 1773 if (!rdev->pm.power_state[i].clock_info) in trinity_parse_power_table() 1789 clock_info = (union pplib_clock_info *) in trinity_parse_power_table() 1794 clock_info); in trinity_parse_power_table() 1808 clock_info = (union pplib_clock_info *) in trinity_parse_power_table() 1810 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in trinity_parse_power_table() [all …]
|
D | rv6xx_dpm.c | 1818 union pplib_clock_info *clock_info) in rv6xx_parse_pplib_clock_info() argument 1838 sclk = le16_to_cpu(clock_info->r600.usEngineClockLow); in rv6xx_parse_pplib_clock_info() 1839 sclk |= clock_info->r600.ucEngineClockHigh << 16; in rv6xx_parse_pplib_clock_info() 1840 mclk = le16_to_cpu(clock_info->r600.usMemoryClockLow); in rv6xx_parse_pplib_clock_info() 1841 mclk |= clock_info->r600.ucMemoryClockHigh << 16; in rv6xx_parse_pplib_clock_info() 1845 pl->vddc = le16_to_cpu(clock_info->r600.usVDDC); in rv6xx_parse_pplib_clock_info() 1846 pl->flags = le32_to_cpu(clock_info->r600.ulFlags); in rv6xx_parse_pplib_clock_info() 1878 union pplib_clock_info *clock_info; in rv6xx_parse_power_table() local 1918 clock_info = (union pplib_clock_info *) in rv6xx_parse_power_table() 1924 clock_info); in rv6xx_parse_power_table()
|
D | sumo_dpm.c | 1431 union pplib_clock_info *clock_info) in sumo_parse_pplib_clock_info() argument 1438 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in sumo_parse_pplib_clock_info() 1439 sclk |= clock_info->sumo.ucEngineClockHigh << 16; in sumo_parse_pplib_clock_info() 1441 pl->vddc_index = clock_info->sumo.vddcIndex; in sumo_parse_pplib_clock_info() 1442 pl->sclk_dpm_tdp_limit = clock_info->sumo.tdpLimit; in sumo_parse_pplib_clock_info() 1458 union pplib_clock_info *clock_info; in sumo_parse_power_table() local 1496 if (!rdev->pm.power_state[i].clock_info) in sumo_parse_power_table() 1511 clock_info = (union pplib_clock_info *) in sumo_parse_power_table() 1516 clock_info); in sumo_parse_power_table()
|
D | kv_dpm.c | 2612 union pplib_clock_info *clock_info) in kv_parse_pplib_clock_info() argument 2619 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in kv_parse_pplib_clock_info() 2620 sclk |= clock_info->sumo.ucEngineClockHigh << 16; in kv_parse_pplib_clock_info() 2622 pl->vddc_index = clock_info->sumo.vddcIndex; in kv_parse_pplib_clock_info() 2638 union pplib_clock_info *clock_info; in kv_parse_power_table() local 2676 if (!rdev->pm.power_state[i].clock_info) in kv_parse_power_table() 2692 clock_info = (union pplib_clock_info *) in kv_parse_power_table() 2697 clock_info); in kv_parse_power_table() 2711 clock_info = (union pplib_clock_info *) in kv_parse_power_table() 2713 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in kv_parse_power_table() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.c | 101 struct mlx5_ib_clock_info *clock_info = mdev->clock_info; in mlx5_update_clock_info_page() local 105 if (!clock_info) in mlx5_update_clock_info_page() 108 sign = smp_load_acquire(&clock_info->sign); in mlx5_update_clock_info_page() 109 smp_store_mb(clock_info->sign, in mlx5_update_clock_info_page() 112 clock_info->cycles = clock->tc.cycle_last; in mlx5_update_clock_info_page() 113 clock_info->mult = clock->cycles.mult; in mlx5_update_clock_info_page() 114 clock_info->nsec = clock->tc.nsec; in mlx5_update_clock_info_page() 115 clock_info->frac = clock->tc.frac; in mlx5_update_clock_info_page() 117 smp_store_release(&clock_info->sign, in mlx5_update_clock_info_page() 633 mdev->clock_info = in mlx5_init_clock() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_audio.c | 787 struct azalia_clock_info clock_info = { 0 }; in dce_aud_wall_dto_setup() local 801 &clock_info); in dce_aud_wall_dto_setup() 808 clock_info.audio_dto_module,\ in dce_aud_wall_dto_setup() 809 clock_info.audio_dto_phase); in dce_aud_wall_dto_setup() 826 DCCG_AUDIO_DTO0_MODULE, clock_info.audio_dto_module); in dce_aud_wall_dto_setup() 830 DCCG_AUDIO_DTO0_PHASE, clock_info.audio_dto_phase); in dce_aud_wall_dto_setup() 842 &clock_info); in dce_aud_wall_dto_setup() 858 DCCG_AUDIO_DTO1_MODULE, clock_info.audio_dto_module); in dce_aud_wall_dto_setup() 862 DCCG_AUDIO_DTO1_PHASE, clock_info.audio_dto_phase); in dce_aud_wall_dto_setup() 879 struct azalia_clock_info clock_info = { 0 }; in dce60_aud_wall_dto_setup() local [all …]
|
D | dce_stream_encoder.c | 1278 const struct audio_clock_info *clock_info; in get_audio_clock_info() local 1285 clock_info = audio_clock_info_table_48bpc; in get_audio_clock_info() 1290 clock_info = audio_clock_info_table_36bpc; in get_audio_clock_info() 1295 clock_info = audio_clock_info_table; in get_audio_clock_info() 1301 if (clock_info != NULL) { in get_audio_clock_info() 1304 if (clock_info[index].pixel_clock_in_10khz > in get_audio_clock_info() 1307 else if (clock_info[index].pixel_clock_in_10khz == in get_audio_clock_info() 1310 *audio_clock_info = clock_info[index]; in get_audio_clock_info()
|
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/ |
D | clock.c | 69 struct clock_info { struct 78 struct clock_info *ci) in scmi_clock_protocol_attributes_get() argument 244 struct clock_info *ci = handle->clk_priv; in scmi_clock_rate_set() 307 struct clock_info *ci = handle->clk_priv; in scmi_clock_count_get() 315 struct clock_info *ci = handle->clk_priv; in scmi_clock_info_get() 337 struct clock_info *cinfo; in scmi_clock_protocol_init()
|
/kernel/linux/linux-5.10/drivers/clk/ingenic/ |
D | cgu.h | 188 const struct ingenic_cgu_clk_info *clock_info; member 219 ingenic_cgu_new(const struct ingenic_cgu_clk_info *clock_info,
|
D | cgu.c | 30 return &clk->cgu->clock_info[clk->idx]; in to_clk_info() 591 const struct ingenic_cgu_clk_info *clk_info = &cgu->clock_info[idx]; in ingenic_register_clock() 733 ingenic_cgu_new(const struct ingenic_cgu_clk_info *clock_info, in ingenic_cgu_new() argument 749 cgu->clock_info = clock_info; in ingenic_cgu_new() 791 if (cgu->clock_info[i].type & CGU_CLK_EXT) in ingenic_cgu_register_clocks()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_stream_encoder.c | 1215 const struct audio_clock_info *clock_info; in get_audio_clock_info() local 1222 clock_info = audio_clock_info_table_48bpc; in get_audio_clock_info() 1227 clock_info = audio_clock_info_table_36bpc; in get_audio_clock_info() 1232 clock_info = audio_clock_info_table; in get_audio_clock_info() 1238 if (clock_info != NULL) { in get_audio_clock_info() 1241 if (clock_info[index].pixel_clock_in_10khz > in get_audio_clock_info() 1244 else if (clock_info[index].pixel_clock_in_10khz == in get_audio_clock_info() 1247 *audio_clock_info = clock_info[index]; in get_audio_clock_info()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | processpptables.h | 37 const void *clock_info);
|
D | hardwaremanager.c | 414 …ks(struct pp_hwmgr *hwmgr, const struct pp_hw_power_state *state, struct pp_clock_info *clock_info) in phm_get_current_shallow_sleep_clocks() argument 421 return hwmgr->hwmgr_func->get_current_shallow_sleep_clocks(hwmgr, state, clock_info); in phm_get_current_shallow_sleep_clocks()
|
D | smu10_hwmgr.c | 809 const void *clock_info) in smu10_dpm_get_pp_table_entry_callback() argument 1037 const struct pp_hw_power_state *state, struct pp_clock_info *clock_info) in smu10_get_current_shallow_sleep_clocks() argument 1041 clock_info->min_eng_clk = ps->levels[0].engine_clock / (1 << (ps->levels[0].ss_divider_index)); in smu10_get_current_shallow_sleep_clocks() 1042 …clock_info->max_eng_clk = ps->levels[ps->level - 1].engine_clock / (1 << (ps->levels[ps->level - 1… in smu10_get_current_shallow_sleep_clocks()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/ |
D | sdi.c | 149 sdi.mgr_config.clock_info = dispc_cinfo; in sdi_display_enable() 180 dispc_mgr_set_clock_div(out->manager->id, &sdi.mgr_config.clock_info); in sdi_display_enable()
|
D | manager.c | 186 struct dispc_clock_info cinfo = config->clock_info; in dss_mgr_check_lcd_config()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/ |
D | sdi.c | 217 sdi->mgr_config.clock_info = dispc_cinfo; in sdi_bridge_enable() 237 &sdi->mgr_config.clock_info); in sdi_bridge_enable()
|
D | dpi.c | 305 dpi->mgr_config.clock_info = ctx.dispc_cinfo; in dpi_set_pll_clk() 324 dpi->mgr_config.clock_info = ctx.dispc_cinfo; in dpi_set_dispc_clk()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/ |
D | kv_dpm.c | 2669 union pplib_clock_info *clock_info) in kv_parse_pplib_clock_info() argument 2676 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in kv_parse_pplib_clock_info() 2677 sclk |= clock_info->sumo.ucEngineClockHigh << 16; in kv_parse_pplib_clock_info() 2679 pl->vddc_index = clock_info->sumo.vddcIndex; in kv_parse_pplib_clock_info() 2695 union pplib_clock_info *clock_info; in kv_parse_power_table() local 2749 clock_info = (union pplib_clock_info *) in kv_parse_power_table() 2754 clock_info); in kv_parse_power_table() 2768 clock_info = (union pplib_clock_info *) in kv_parse_power_table() 2770 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in kv_parse_power_table() 2771 sclk |= clock_info->sumo.ucEngineClockHigh << 16; in kv_parse_power_table()
|