/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_clock_source.c | 43 (clk_src->regs->reg) 46 clk_src->base.ctx 52 clk_src->cs_shift->field_name, clk_src->cs_mask->field_name 61 struct dce110_clk_src *clk_src, in get_ss_data_entry() argument 74 ss_parm = clk_src->dvi_ss_params; in get_ss_data_entry() 75 entrys_num = clk_src->dvi_ss_params_cnt; in get_ss_data_entry() 79 ss_parm = clk_src->hdmi_ss_params; in get_ss_data_entry() 80 entrys_num = clk_src->hdmi_ss_params_cnt; in get_ss_data_entry() 84 ss_parm = clk_src->lvds_ss_params; in get_ss_data_entry() 85 entrys_num = clk_src->lvds_ss_params_cnt; in get_ss_data_entry() [all …]
|
D | dce_hwseq.c | 176 struct clock_source *clk_src, in dce_crtc_switch_to_clk_src() argument 179 if (clk_src->id == CLOCK_SOURCE_ID_DP_DTO || clk_src->dp_clk_src) { in dce_crtc_switch_to_clk_src() 183 } else if (clk_src->id >= CLOCK_SOURCE_COMBO_PHY_PLL0) { in dce_crtc_switch_to_clk_src() 184 uint32_t rate_source = clk_src->id - CLOCK_SOURCE_COMBO_PHY_PLL0; in dce_crtc_switch_to_clk_src() 193 } else if (clk_src->id <= CLOCK_SOURCE_ID_PLL2) { in dce_crtc_switch_to_clk_src() 194 uint32_t rate_source = clk_src->id - CLOCK_SOURCE_ID_PLL0; in dce_crtc_switch_to_clk_src() 205 clk_src->id, tg_inst); in dce_crtc_switch_to_clk_src()
|
D | dce_clock_source.h | 30 #define TO_DCE110_CLK_SRC(clk_src)\ argument 31 container_of(clk_src, struct dce110_clk_src, base) 198 struct dce110_clk_src *clk_src, 207 struct dce110_clk_src *clk_src, 216 struct dce110_clk_src *clk_src, 226 struct dce110_clk_src *clk_src,
|
/Linux-v5.10/drivers/gpu/drm/omapdrm/dss/ |
D | dss.c | 66 enum dss_clk_source clk_src); 177 enum dss_clk_source clk_src, in dss_ctrl_pll_set_control_mux() argument 189 switch (clk_src) { in dss_ctrl_pll_set_control_mux() 203 switch (clk_src) { in dss_ctrl_pll_set_control_mux() 219 switch (clk_src) { in dss_ctrl_pll_set_control_mux() 330 const char *dss_get_clk_source_name(enum dss_clk_source clk_src) in dss_get_clk_source_name() argument 332 return dss_generic_clk_source_names[clk_src]; in dss_get_clk_source_name() 405 enum dss_clk_source clk_src) in dss_select_dispc_clk_source() argument 413 if (WARN_ON(dss->feat->has_lcd_clk_src && clk_src != DSS_CLK_SRC_FCK)) in dss_select_dispc_clk_source() 416 switch (clk_src) { in dss_select_dispc_clk_source() [all …]
|
D | dpi.c | 36 enum dss_clk_source clk_src; member 226 ctx->clkout_idx = dss_pll_get_clkout_idx_for_src(dpi->clk_src); in dpi_pll_clk_calc() 303 dpi->clk_src); in dpi_set_pll_clk() 403 dpi->clk_src = dpi_get_clk_src(dpi); in dpi_init_pll() 405 pll = dss_pll_find_by_src(dpi->dss, dpi->clk_src); in dpi_init_pll()
|
/Linux-v5.10/drivers/ptp/ |
D | ptp_qoriq.c | 341 static u32 ptp_qoriq_nominal_freq(u32 clk_src) in ptp_qoriq_nominal_freq() argument 345 clk_src /= 1000000; in ptp_qoriq_nominal_freq() 346 remainder = clk_src % 100; in ptp_qoriq_nominal_freq() 348 clk_src -= remainder; in ptp_qoriq_nominal_freq() 349 clk_src += 100; in ptp_qoriq_nominal_freq() 353 clk_src -= 100; in ptp_qoriq_nominal_freq() 355 } while (1000 % clk_src); in ptp_qoriq_nominal_freq() 357 return clk_src * 1000000; in ptp_qoriq_nominal_freq() 386 u32 clk_src = 0; in ptp_qoriq_auto_config() local 392 clk_src = clk_get_rate(clk); in ptp_qoriq_auto_config() [all …]
|
/Linux-v5.10/sound/soc/intel/skylake/ |
D | skl-nhlt.c | 207 u8 clk_src; in skl_get_ssp_clks() local 264 clk_src = get_clk_src(i2s_config->mclk, in skl_get_ssp_clks() 267 clk_src = get_clk_src(i2s_config_ext->mclk, in skl_get_ssp_clks() 271 parent = skl_get_parent_clk(clk_src); in skl_get_ssp_clks() 300 u8 clk_src; in skl_get_mclk() local 308 clk_src = get_clk_src(i2s_config->mclk, in skl_get_mclk() 313 clk_src = get_clk_src(i2s_config_ext->mclk, in skl_get_mclk() 327 parent = skl_get_parent_clk(clk_src); in skl_get_mclk()
|
/Linux-v5.10/drivers/staging/comedi/drivers/ |
D | ni_tio.c | 304 unsigned int *clk_src) in ni_m_series_clock_src_select() argument 366 *clk_src = clock_source; in ni_m_series_clock_src_select() 371 unsigned int *clk_src) in ni_660x_clock_src_select() argument 424 *clk_src = clock_source; in ni_660x_clock_src_select() 429 unsigned int *clk_src) in ni_tio_generic_clock_src_select() argument 435 return ni_m_series_clock_src_select(counter, clk_src); in ni_tio_generic_clock_src_select() 437 return ni_660x_clock_src_select(counter, clk_src); in ni_tio_generic_clock_src_select() 450 unsigned int clk_src = 0; in ni_tio_set_sync_mode() local 482 ret = ni_tio_generic_clock_src_select(counter, &clk_src); in ni_tio_set_sync_mode() 485 ret = ni_tio_clock_period_ps(counter, clk_src, &ps); in ni_tio_set_sync_mode() [all …]
|
D | addi_apci_1500.c | 47 unsigned int clk_src; member 670 devpriv->clk_src = data[1]; in apci1500_timer_insn_config() 671 if (devpriv->clk_src == 2) in apci1500_timer_insn_config() 672 devpriv->clk_src = 3; in apci1500_timer_insn_config() 673 outw(devpriv->clk_src, devpriv->addon + APCI1500_CLK_SEL_REG); in apci1500_timer_insn_config() 676 switch (devpriv->clk_src) { in apci1500_timer_insn_config()
|
/Linux-v5.10/drivers/clk/socfpga/ |
D | clk-periph.c | 39 u32 clk_src; in clk_periclk_get_parent() local 41 clk_src = readl(clk_mgr_base_addr + CLKMGR_DBCTRL); in clk_periclk_get_parent() 42 return clk_src & 0x1; in clk_periclk_get_parent()
|
D | clk-periph-a10.c | 42 u32 clk_src; in clk_periclk_get_parent() local 45 clk_src = readl(socfpgaclk->hw.reg); in clk_periclk_get_parent() 49 return (clk_src >> CLK_MGR_FREE_SHIFT) & in clk_periclk_get_parent()
|
D | clk-periph-s10.c | 51 u32 clk_src, mask; in clk_periclk_get_parent() local 59 clk_src = readl(socfpgaclk->hw.reg); in clk_periclk_get_parent() 60 parent = (clk_src >> CLK_MGR_FREE_SHIFT) & in clk_periclk_get_parent()
|
/Linux-v5.10/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dss.c | 346 const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src) in dss_get_generic_clk_source_name() argument 348 return dss_generic_clk_source_names[clk_src]; in dss_get_generic_clk_source_name() 395 static void dss_select_dispc_clk_source(enum omap_dss_clk_source clk_src) in dss_select_dispc_clk_source() argument 400 switch (clk_src) { in dss_select_dispc_clk_source() 419 dss.dispc_clk_source = clk_src; in dss_select_dispc_clk_source() 423 enum omap_dss_clk_source clk_src) in dss_select_dsi_clk_source() argument 427 switch (clk_src) { in dss_select_dsi_clk_source() 447 dss.dsi_clk_source[dsi_module] = clk_src; in dss_select_dsi_clk_source() 451 enum omap_dss_clk_source clk_src) in dss_select_lcd_clk_source() argument 456 dss_select_dispc_clk_source(clk_src); in dss_select_lcd_clk_source() [all …]
|
/Linux-v5.10/sound/soc/rockchip/ |
D | rockchip_pdm.c | 77 unsigned int *clk_src, unsigned int *clk_out) in get_pdm_clk() argument 96 *clk_src = clkref[i].clk; in get_pdm_clk() 103 *clk_src = clk; in get_pdm_clk() 152 unsigned int clk_src, clk_out = 0; in rockchip_pdm_hw_params() local 161 clk_rate = get_pdm_clk(pdm, samplerate, &clk_src, &clk_out); in rockchip_pdm_hw_params() 165 ret = clk_set_rate(pdm->clk, clk_src); in rockchip_pdm_hw_params() 170 rational_best_approximation(clk_out, clk_src, in rockchip_pdm_hw_params()
|
/Linux-v5.10/drivers/clk/ |
D | clk-nomadik.c | 154 struct clk_src { struct 162 #define to_src(_hw) container_of(_hw, struct clk_src, hw) argument 302 struct clk_src *sclk = to_src(hw); in src_clk_enable() 315 struct clk_src *sclk = to_src(hw); in src_clk_disable() 327 struct clk_src *sclk = to_src(hw); in src_clk_is_enabled() 353 struct clk_src *sclk; in src_clk_register()
|
/Linux-v5.10/sound/firewire/bebob/ |
D | bebob_maudio.c | 80 unsigned int clk_src; member 171 avc_maudio_set_special_clk(struct snd_bebob *bebob, unsigned int clk_src, in avc_maudio_set_special_clk() argument 193 buf[6] = 0xff & clk_src; /* clock source */ in avc_maudio_set_special_clk() 213 params->clk_src = buf[6]; in avc_maudio_set_special_clk() 352 *id = params->clk_src; in special_clk_get() 372 uval->value.enumerated.item[0] = params->clk_src; in special_clk_ctl_get() 500 params->clk_src, in special_dig_in_iface_ctl_set() 569 params->clk_src, in special_dig_out_iface_ctl_set()
|
/Linux-v5.10/drivers/i2c/busses/ |
D | i2c-mt65xx.c | 569 unsigned int clk_src, in mtk_i2c_check_ac_timing() argument 578 clk_src); in mtk_i2c_check_ac_timing() 589 clk_ns = 1000000000 / clk_src; in mtk_i2c_check_ac_timing() 669 static int mtk_i2c_calculate_speed(struct mtk_i2c *i2c, unsigned int clk_src, in mtk_i2c_calculate_speed() argument 690 opt_div = DIV_ROUND_UP(clk_src >> 1, target_speed); in mtk_i2c_calculate_speed() 706 ret = mtk_i2c_check_ac_timing(i2c, clk_src, in mtk_i2c_calculate_speed() 725 if ((clk_src / (2 * sample_cnt * step_cnt)) > target_speed) { in mtk_i2c_calculate_speed() 741 unsigned int clk_src; in mtk_i2c_set_speed() local 760 clk_src = parent_clk / clk_div; in mtk_i2c_set_speed() 764 ret = mtk_i2c_calculate_speed(i2c, clk_src, in mtk_i2c_set_speed() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce100/ |
D | dce100_resource.c | 735 struct dce110_clk_src *clk_src = in dce100_clock_source_create() local 738 if (!clk_src) in dce100_clock_source_create() 741 if (dce110_clk_src_construct(clk_src, ctx, bios, id, in dce100_clock_source_create() 743 clk_src->base.dp_clk_src = dp_clk_src; in dce100_clock_source_create() 744 return &clk_src->base; in dce100_clock_source_create() 747 kfree(clk_src); in dce100_clock_source_create() 752 void dce100_clock_source_destroy(struct clock_source **clk_src) in dce100_clock_source_destroy() argument 754 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce100_clock_source_destroy() 755 *clk_src = NULL; in dce100_clock_source_destroy()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_resource.c | 546 struct dce110_clk_src *clk_src = in dce120_clock_source_create() local 547 kzalloc(sizeof(*clk_src), GFP_KERNEL); in dce120_clock_source_create() 549 if (!clk_src) in dce120_clock_source_create() 552 if (dce112_clk_src_construct(clk_src, ctx, bios, id, in dce120_clock_source_create() 554 clk_src->base.dp_clk_src = dp_clk_src; in dce120_clock_source_create() 555 return &clk_src->base; in dce120_clock_source_create() 558 kfree(clk_src); in dce120_clock_source_create() 563 static void dce120_clock_source_destroy(struct clock_source **clk_src) in dce120_clock_source_destroy() argument 565 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce120_clock_source_destroy() 566 *clk_src = NULL; in dce120_clock_source_destroy()
|
/Linux-v5.10/sound/soc/qcom/qdsp6/ |
D | q6afe.h | 234 int clk_src, int clk_root, 236 int q6afe_set_lpass_clock(struct device *dev, int clk_id, int clk_src,
|
/Linux-v5.10/sound/soc/codecs/ |
D | rt274.c | 808 unsigned int clk_src, mclk_en; in rt274_set_dai_sysclk() local 815 clk_src = RT274_CLK_SRC_MCLK; in rt274_set_dai_sysclk() 819 clk_src = RT274_CLK_SRC_MCLK; in rt274_set_dai_sysclk() 823 clk_src = RT274_CLK_SRC_PLL2; in rt274_set_dai_sysclk() 827 clk_src = RT274_CLK_SRC_MCLK; in rt274_set_dai_sysclk() 834 RT274_CLK_SRC_MASK, clk_src); in rt274_set_dai_sysclk()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 756 struct dce110_clk_src *clk_src = in dce112_clock_source_create() local 759 if (!clk_src) in dce112_clock_source_create() 762 if (dce112_clk_src_construct(clk_src, ctx, bios, id, in dce112_clock_source_create() 764 clk_src->base.dp_clk_src = dp_clk_src; in dce112_clock_source_create() 765 return &clk_src->base; in dce112_clock_source_create() 768 kfree(clk_src); in dce112_clock_source_create() 773 void dce112_clock_source_destroy(struct clock_source **clk_src) in dce112_clock_source_destroy() argument 775 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce112_clock_source_destroy() 776 *clk_src = NULL; in dce112_clock_source_destroy()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce60/ |
D | dce60_resource.c | 763 struct dce110_clk_src *clk_src = in dce60_clock_source_create() local 766 if (!clk_src) in dce60_clock_source_create() 769 if (dce110_clk_src_construct(clk_src, ctx, bios, id, in dce60_clock_source_create() 771 clk_src->base.dp_clk_src = dp_clk_src; in dce60_clock_source_create() 772 return &clk_src->base; in dce60_clock_source_create() 775 kfree(clk_src); in dce60_clock_source_create() 780 void dce60_clock_source_destroy(struct clock_source **clk_src) in dce60_clock_source_destroy() argument 782 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce60_clock_source_destroy() 783 *clk_src = NULL; in dce60_clock_source_destroy()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce80/ |
D | dce80_resource.c | 768 struct dce110_clk_src *clk_src = in dce80_clock_source_create() local 771 if (!clk_src) in dce80_clock_source_create() 774 if (dce110_clk_src_construct(clk_src, ctx, bios, id, in dce80_clock_source_create() 776 clk_src->base.dp_clk_src = dp_clk_src; in dce80_clock_source_create() 777 return &clk_src->base; in dce80_clock_source_create() 780 kfree(clk_src); in dce80_clock_source_create() 785 void dce80_clock_source_destroy(struct clock_source **clk_src) in dce80_clock_source_destroy() argument 787 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce80_clock_source_destroy() 788 *clk_src = NULL; in dce80_clock_source_destroy()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_resource.c | 785 struct dce110_clk_src *clk_src = in dce110_clock_source_create() local 788 if (!clk_src) in dce110_clock_source_create() 791 if (dce110_clk_src_construct(clk_src, ctx, bios, id, in dce110_clock_source_create() 793 clk_src->base.dp_clk_src = dp_clk_src; in dce110_clock_source_create() 794 return &clk_src->base; in dce110_clock_source_create() 797 kfree(clk_src); in dce110_clock_source_create() 802 void dce110_clock_source_destroy(struct clock_source **clk_src) in dce110_clock_source_destroy() argument 806 if (!clk_src) in dce110_clock_source_destroy() 809 dce110_clk_src = TO_DCE110_CLK_SRC(*clk_src); in dce110_clock_source_destroy() 816 *clk_src = NULL; in dce110_clock_source_destroy()
|