/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A 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 493 clk_src, in dce110_get_pix_clk_dividers_helper() 638 clk_src->bios, in disable_spread_spectrum() 719 clk_src, in enable_spread_spectrum() 1351 clk_src->bios, in get_ss_info_from_atombios() 1448 clk_src, in ss_info_from_atombios_create() 1453 clk_src, in ss_info_from_atombios_create() 1458 clk_src, in ss_info_from_atombios_create() [all …]
|
H A 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()
|
H A D | dce_clock_source.h | 30 #define TO_DCE110_CLK_SRC(clk_src)\ argument 31 container_of(clk_src, struct dce110_clk_src, base) 257 struct dce110_clk_src *clk_src, 266 struct dce110_clk_src *clk_src, 275 struct dce110_clk_src *clk_src, 284 struct dce110_clk_src *clk_src, 293 struct dce110_clk_src *clk_src, 302 struct dce110_clk_src *clk_src,
|
/openbmc/linux/drivers/gpu/drm/omapdrm/dss/ |
H A 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() 405 enum dss_clk_source clk_src) in dss_select_dispc_clk_source() argument 416 switch (clk_src) { in dss_select_dispc_clk_source() 435 dss->dispc_clk_source = clk_src; in dss_select_dispc_clk_source() 443 switch (clk_src) { in dss_select_dsi_clk_source() 468 enum dss_clk_source clk_src) in dss_lcd_clk_mux_dra7() argument [all …]
|
H A 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()
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A 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()
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_qoriq.c | 377 static u32 ptp_qoriq_nominal_freq(u32 clk_src) in ptp_qoriq_nominal_freq() argument 381 clk_src /= 1000000; in ptp_qoriq_nominal_freq() 382 remainder = clk_src % 100; in ptp_qoriq_nominal_freq() 384 clk_src -= remainder; in ptp_qoriq_nominal_freq() 385 clk_src += 100; in ptp_qoriq_nominal_freq() 389 clk_src -= 100; in ptp_qoriq_nominal_freq() 391 } while (1000 % clk_src); in ptp_qoriq_nominal_freq() 393 return clk_src * 1000000; in ptp_qoriq_nominal_freq() 422 u32 clk_src = 0; in ptp_qoriq_auto_config() local 428 clk_src = clk_get_rate(clk); in ptp_qoriq_auto_config() [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A 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 450 unsigned int clk_src = 0; in ni_tio_set_sync_mode() local 621 switch (clk_src) { in ni_660x_clk_src() 645 if (clk_src == NI_GPCT_RTSI_CLOCK_SRC_BITS(i)) { in ni_660x_clk_src() 672 switch (clk_src) { in ni_m_clk_src() 702 if (clk_src == NI_GPCT_RTSI_CLOCK_SRC_BITS(i)) { in ni_m_clk_src() [all …]
|
H A 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()
|
/openbmc/linux/drivers/clk/socfpga/ |
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | dss.c | 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() 460 switch (clk_src) { in dss_select_lcd_clk_source() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | mxc_spi.c | 95 u32 clk_src; in spi_cfg_mxc() local 100 clk_src = mxc_get_clock(MXC_CSPI_CLK); in spi_cfg_mxc() 102 div = DIV_ROUND_UP(clk_src, max_hz); in spi_cfg_mxc() 106 max_hz, div, clk_src / (4 << div)); in spi_cfg_mxc() 132 u32 clk_src = mxc_get_clock(MXC_CSPI_CLK); in spi_cfg_mxc() local 150 if (clk_src > max_hz) { in spi_cfg_mxc() 151 pre_div = (clk_src - 1) / max_hz; in spi_cfg_mxc()
|
/openbmc/u-boot/board/freescale/s32v234evb/ |
H A D | clock.c | 19 u32 clk_src; in select_pll_source_clk() local 26 clk_src = SRC_GPR1_FIRC_CLK_SOURCE; in select_pll_source_clk() 29 clk_src = SRC_GPR1_XOSC_CLK_SOURCE; in select_pll_source_clk() 53 writel(readl(&src->gpr1) | SRC_GPR1_PLL_SOURCE(pll_idx, clk_src), in select_pll_source_clk()
|
/openbmc/linux/drivers/clk/ |
H A 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()
|
/openbmc/linux/sound/firewire/bebob/ |
H A 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()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | meson_gx_mmc.c | 35 unsigned int clk, clk_src, clk_div; in meson_mmc_config_clock() local 43 clk_src = CLK_SRC_DIV2; in meson_mmc_config_clock() 46 clk_src = CLK_SRC_24M; in meson_mmc_config_clock() 57 meson_mmc_clk |= clk_src; in meson_mmc_config_clock()
|
/openbmc/linux/sound/soc/rockchip/ |
H A 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce100/ |
H A D | dce100_resource.c | 733 struct dce110_clk_src *clk_src = in dce100_clock_source_create() local 736 if (!clk_src) in dce100_clock_source_create() 739 if (dce110_clk_src_construct(clk_src, ctx, bios, id, in dce100_clock_source_create() 741 clk_src->base.dp_clk_src = dp_clk_src; in dce100_clock_source_create() 742 return &clk_src->base; in dce100_clock_source_create() 745 kfree(clk_src); in dce100_clock_source_create() 750 static void dce100_clock_source_destroy(struct clock_source **clk_src) in dce100_clock_source_destroy() argument 752 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce100_clock_source_destroy() 753 *clk_src = NULL; in dce100_clock_source_destroy()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_dccg.c | 445 enum physymclk_clock_source clk_src, in dccg31_set_physymclk() argument 456 PHYASYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk() 473 PHYBSYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk() 490 PHYCSYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk() 507 PHYDSYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk() 524 PHYESYMCLK_FORCE_SRC_SEL, clk_src); in dccg31_set_physymclk()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce120/ |
H A D | dce120_resource.c | 539 struct dce110_clk_src *clk_src = in dce120_clock_source_create() local 540 kzalloc(sizeof(*clk_src), GFP_KERNEL); in dce120_clock_source_create() 542 if (!clk_src) in dce120_clock_source_create() 545 if (dce112_clk_src_construct(clk_src, ctx, bios, id, in dce120_clock_source_create() 547 clk_src->base.dp_clk_src = dp_clk_src; in dce120_clock_source_create() 548 return &clk_src->base; in dce120_clock_source_create() 551 kfree(clk_src); in dce120_clock_source_create() 556 static void dce120_clock_source_destroy(struct clock_source **clk_src) in dce120_clock_source_destroy() argument 558 kfree(TO_DCE110_CLK_SRC(*clk_src)); in dce120_clock_source_destroy() 559 *clk_src = NULL; in dce120_clock_source_destroy()
|
/openbmc/linux/include/linux/can/platform/ |
H A D | flexcan.h | 20 u8 clk_src; member
|
/openbmc/u-boot/include/mvebu/ |
H A D | comphy.h | 15 bool clk_src; member
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-mt65xx.c | 697 unsigned int clk_src, in mtk_i2c_check_ac_timing() argument 706 clk_src); in mtk_i2c_check_ac_timing() 717 clk_ns = 1000000000 / clk_src; in mtk_i2c_check_ac_timing() 820 opt_div = DIV_ROUND_UP(clk_src >> 1, target_speed); in mtk_i2c_calculate_speed() 837 ret = mtk_i2c_check_ac_timing(i2c, clk_src, in mtk_i2c_calculate_speed() 856 if ((clk_src / (2 * (sample_cnt * step_cnt - clk_div_restri))) > in mtk_i2c_calculate_speed() 873 unsigned int clk_src; in mtk_i2c_set_speed() local 894 clk_src = parent_clk / clk_div; in mtk_i2c_set_speed() 899 ret = mtk_i2c_calculate_speed(i2c, clk_src, in mtk_i2c_set_speed() 909 ret = mtk_i2c_calculate_speed(i2c, clk_src, in mtk_i2c_set_speed() [all …]
|