/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_clock_source.c | 41 (clk_src->regs->reg) 44 clk_src->base.ctx 50 clk_src->cs_shift->field_name, clk_src->cs_mask->field_name 59 struct dce110_clk_src *clk_src, in get_ss_data_entry() argument 72 ss_parm = clk_src->dvi_ss_params; in get_ss_data_entry() 73 entrys_num = clk_src->dvi_ss_params_cnt; in get_ss_data_entry() 77 ss_parm = clk_src->hdmi_ss_params; in get_ss_data_entry() 78 entrys_num = clk_src->hdmi_ss_params_cnt; in get_ss_data_entry() 82 ss_parm = clk_src->lvds_ss_params; in get_ss_data_entry() 83 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) 263 struct dce110_clk_src *clk_src, 272 struct dce110_clk_src *clk_src, 281 struct dce110_clk_src *clk_src, 290 struct dce110_clk_src *clk_src, 299 struct dce110_clk_src *clk_src, 308 struct dce110_clk_src *clk_src,
|
/linux-6.1.9/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-6.1.9/drivers/ptp/ |
D | ptp_qoriq.c | 342 static u32 ptp_qoriq_nominal_freq(u32 clk_src) in ptp_qoriq_nominal_freq() argument 346 clk_src /= 1000000; in ptp_qoriq_nominal_freq() 347 remainder = clk_src % 100; in ptp_qoriq_nominal_freq() 349 clk_src -= remainder; in ptp_qoriq_nominal_freq() 350 clk_src += 100; in ptp_qoriq_nominal_freq() 354 clk_src -= 100; in ptp_qoriq_nominal_freq() 356 } while (1000 % clk_src); in ptp_qoriq_nominal_freq() 358 return clk_src * 1000000; in ptp_qoriq_nominal_freq() 387 u32 clk_src = 0; in ptp_qoriq_auto_config() local 393 clk_src = clk_get_rate(clk); in ptp_qoriq_auto_config() [all …]
|
/linux-6.1.9/sound/soc/intel/skylake/ |
D | skl-nhlt.c | 104 u8 clk_src; in skl_get_ssp_clks() local 173 clk_src = get_clk_src(i2s_config->mclk, in skl_get_ssp_clks() 176 clk_src = get_clk_src(i2s_config_ext->mclk, in skl_get_ssp_clks() 180 parent = skl_get_parent_clk(clk_src); in skl_get_ssp_clks() 212 u8 clk_src; in skl_get_mclk() local 220 clk_src = get_clk_src(i2s_config->mclk, in skl_get_mclk() 225 clk_src = get_clk_src(i2s_config_ext->mclk, in skl_get_mclk() 239 parent = skl_get_parent_clk(clk_src); in skl_get_mclk()
|
/linux-6.1.9/drivers/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-6.1.9/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 | 66 u32 clk_src, mask; in clk_periclk_get_parent() local 79 clk_src = readl(socfpgaclk->hw.reg); in clk_periclk_get_parent() 80 parent = (clk_src >> CLK_MGR_FREE_SHIFT) & in clk_periclk_get_parent()
|
/linux-6.1.9/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-6.1.9/drivers/clk/ |
D | clk-nomadik.c | 157 struct clk_src { struct 165 #define to_src(_hw) container_of(_hw, struct clk_src, hw) argument 305 struct clk_src *sclk = to_src(hw); in src_clk_enable() 318 struct clk_src *sclk = to_src(hw); in src_clk_disable() 330 struct clk_src *sclk = to_src(hw); in src_clk_is_enabled() 356 struct clk_src *sclk; in src_clk_register()
|
/linux-6.1.9/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-6.1.9/sound/soc/rockchip/ |
D | rockchip_pdm.c | 79 unsigned int *clk_src, unsigned int *clk_out) in get_pdm_clk() argument 98 *clk_src = clkref[i].clk; in get_pdm_clk() 105 *clk_src = clk; in get_pdm_clk() 203 unsigned int clk_src, clk_out = 0; in rockchip_pdm_hw_params() local 212 clk_rate = get_pdm_clk(pdm, samplerate, &clk_src, &clk_out); in rockchip_pdm_hw_params() 216 ret = clk_set_rate(pdm->clk, clk_src); in rockchip_pdm_hw_params() 222 rational_best_approximation(clk_out, clk_src, in rockchip_pdm_hw_params()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce100/ |
D | dce100_resource.c | 729 struct dce110_clk_src *clk_src = in dce100_clock_source_create() local 732 if (!clk_src) in dce100_clock_source_create() 735 if (dce110_clk_src_construct(clk_src, ctx, bios, id, in dce100_clock_source_create() 737 clk_src->base.dp_clk_src = dp_clk_src; in dce100_clock_source_create() 738 return &clk_src->base; in dce100_clock_source_create() 741 kfree(clk_src); in dce100_clock_source_create() 746 static void dce100_clock_source_destroy(struct clock_source **clk_src) in dce100_clock_source_destroy() argument 748 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce100_clock_source_destroy() 749 *clk_src = NULL; in dce100_clock_source_destroy()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn31/ |
D | dcn31_dccg.c | 416 enum physymclk_clock_source clk_src, in dccg31_set_physymclk() argument 427 PHYASYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk() 444 PHYBSYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk() 461 PHYCSYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk() 478 PHYDSYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk() 495 PHYESYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_resource.c | 538 struct dce110_clk_src *clk_src = in dce120_clock_source_create() local 539 kzalloc(sizeof(*clk_src), GFP_KERNEL); in dce120_clock_source_create() 541 if (!clk_src) in dce120_clock_source_create() 544 if (dce112_clk_src_construct(clk_src, ctx, bios, id, in dce120_clock_source_create() 546 clk_src->base.dp_clk_src = dp_clk_src; in dce120_clock_source_create() 547 return &clk_src->base; in dce120_clock_source_create() 550 kfree(clk_src); in dce120_clock_source_create() 555 static void dce120_clock_source_destroy(struct clock_source **clk_src) in dce120_clock_source_destroy() argument 557 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce120_clock_source_destroy() 558 *clk_src = NULL; in dce120_clock_source_destroy()
|
/linux-6.1.9/drivers/i2c/busses/ |
D | i2c-mt65xx.c | 672 unsigned int clk_src, in mtk_i2c_check_ac_timing() argument 681 clk_src); in mtk_i2c_check_ac_timing() 692 clk_ns = 1000000000 / clk_src; in mtk_i2c_check_ac_timing() 773 static int mtk_i2c_calculate_speed(struct mtk_i2c *i2c, unsigned int clk_src, in mtk_i2c_calculate_speed() argument 795 opt_div = DIV_ROUND_UP(clk_src >> 1, target_speed); in mtk_i2c_calculate_speed() 812 ret = mtk_i2c_check_ac_timing(i2c, clk_src, in mtk_i2c_calculate_speed() 831 if ((clk_src / (2 * (sample_cnt * step_cnt - clk_div_restri))) > in mtk_i2c_calculate_speed() 848 unsigned int clk_src; in mtk_i2c_set_speed() local 869 clk_src = parent_clk / clk_div; in mtk_i2c_set_speed() 874 ret = mtk_i2c_calculate_speed(i2c, clk_src, in mtk_i2c_set_speed() [all …]
|
/linux-6.1.9/include/linux/can/platform/ |
D | flexcan.h | 20 u8 clk_src; member
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn201/ |
D | dcn201_resource.c | 820 struct dce110_clk_src *clk_src = in dcn201_clock_source_create() local 823 if (!clk_src) in dcn201_clock_source_create() 826 if (dce112_clk_src_construct(clk_src, ctx, bios, id, in dcn201_clock_source_create() 828 clk_src->base.dp_clk_src = dp_clk_src; in dcn201_clock_source_create() 829 return &clk_src->base; in dcn201_clock_source_create() 831 kfree(clk_src); in dcn201_clock_source_create() 908 static void dcn201_clock_source_destroy(struct clock_source **clk_src) in dcn201_clock_source_destroy() argument 910 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dcn201_clock_source_destroy() 911 *clk_src = NULL; in dcn201_clock_source_destroy()
|
/linux-6.1.9/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-6.1.9/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 750 struct dce110_clk_src *clk_src = in dce112_clock_source_create() local 753 if (!clk_src) in dce112_clock_source_create() 756 if (dce112_clk_src_construct(clk_src, ctx, bios, id, in dce112_clock_source_create() 758 clk_src->base.dp_clk_src = dp_clk_src; in dce112_clock_source_create() 759 return &clk_src->base; in dce112_clock_source_create() 762 kfree(clk_src); in dce112_clock_source_create() 767 static void dce112_clock_source_destroy(struct clock_source **clk_src) in dce112_clock_source_destroy() argument 769 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce112_clock_source_destroy() 770 *clk_src = NULL; in dce112_clock_source_destroy()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce60/ |
D | dce60_resource.c | 759 struct dce110_clk_src *clk_src = in dce60_clock_source_create() local 762 if (!clk_src) in dce60_clock_source_create() 765 if (dce110_clk_src_construct(clk_src, ctx, bios, id, in dce60_clock_source_create() 767 clk_src->base.dp_clk_src = dp_clk_src; in dce60_clock_source_create() 768 return &clk_src->base; in dce60_clock_source_create() 771 kfree(clk_src); in dce60_clock_source_create() 776 static void dce60_clock_source_destroy(struct clock_source **clk_src) in dce60_clock_source_destroy() argument 778 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce60_clock_source_destroy() 779 *clk_src = NULL; in dce60_clock_source_destroy()
|