/linux/drivers/clk/bcm/ |
A D | clk-ns2.c | 62 .mdiv = REG_VAL(0x18, 0, 8), 68 .mdiv = REG_VAL(0x18, 8, 8), 74 .mdiv = REG_VAL(0x14, 0, 8), 80 .mdiv = REG_VAL(0x14, 8, 8), 86 .mdiv = REG_VAL(0x14, 16, 8), 92 .mdiv = REG_VAL(0x14, 24, 8), 124 .mdiv = REG_VAL(0x18, 0, 8), 130 .mdiv = REG_VAL(0x18, 8, 8), 136 .mdiv = REG_VAL(0x14, 0, 8), 142 .mdiv = REG_VAL(0x14, 8, 8), [all …]
|
A D | clk-sr.c | 52 .mdiv = REG_VAL(0x18, 0, 9), 58 .mdiv = REG_VAL(0x18, 10, 9), 64 .mdiv = REG_VAL(0x18, 20, 9), 70 .mdiv = REG_VAL(0x1c, 0, 9), 76 .mdiv = REG_VAL(0x1c, 10, 9), 82 .mdiv = REG_VAL(0x1c, 20, 9), 112 .mdiv = REG_VAL(0x18, 0, 9), 118 .mdiv = REG_VAL(0x18, 10, 9), 130 .mdiv = REG_VAL(0x1c, 0, 9), 171 .mdiv = REG_VAL(0x18, 0, 9), [all …]
|
A D | clk-cygnus.c | 76 .mdiv = REG_VAL(0x20, 0, 8), 82 .mdiv = REG_VAL(0x20, 10, 8), 88 .mdiv = REG_VAL(0x20, 20, 8), 94 .mdiv = REG_VAL(0x24, 0, 8), 100 .mdiv = REG_VAL(0x24, 10, 8), 134 .mdiv = REG_VAL(0x8, 0, 8), 140 .mdiv = REG_VAL(0x8, 10, 8), 146 .mdiv = REG_VAL(0x8, 20, 8), 152 .mdiv = REG_VAL(0xc, 0, 8), 158 .mdiv = REG_VAL(0xc, 10, 8), [all …]
|
A D | clk-iproc-armpll.c | 119 int mdiv; in __get_mdiv() local 127 mdiv = 1; in __get_mdiv() 133 if (mdiv == 0) in __get_mdiv() 134 mdiv = 256; in __get_mdiv() 140 if (mdiv == 0) in __get_mdiv() 141 mdiv = 256; in __get_mdiv() 145 mdiv = -EFAULT; in __get_mdiv() 148 return mdiv; in __get_mdiv() 200 int mdiv; in iproc_arm_pll_recalc_rate() local 224 mdiv = __get_mdiv(pll); in iproc_arm_pll_recalc_rate() [all …]
|
A D | clk-nsp.c | 61 .mdiv = REG_VAL(0x18, 16, 8), 67 .mdiv = REG_VAL(0x18, 8, 8), 73 .mdiv = REG_VAL(0x18, 0, 8), 79 .mdiv = REG_VAL(0x1c, 16, 8), 85 .mdiv = REG_VAL(0x1c, 8, 8), 91 .mdiv = REG_VAL(0x1c, 0, 8), 118 .mdiv = REG_VAL(0x8, 24, 8), 124 .mdiv = REG_VAL(0x8, 16, 8), 130 .mdiv = REG_VAL(0x8, 8, 8),
|
A D | clk-iproc-pll.c | 627 unsigned int mdiv; in iproc_clk_recalc_rate() local 633 val = readl(pll->control_base + ctrl->mdiv.offset); in iproc_clk_recalc_rate() 634 mdiv = (val >> ctrl->mdiv.shift) & bit_mask(ctrl->mdiv.width); in iproc_clk_recalc_rate() 635 if (mdiv == 0) in iproc_clk_recalc_rate() 636 mdiv = 256; in iproc_clk_recalc_rate() 639 rate = parent_rate / (mdiv * 2); in iproc_clk_recalc_rate() 641 rate = parent_rate / mdiv; in iproc_clk_recalc_rate() 687 val = readl(pll->control_base + ctrl->mdiv.offset); in iproc_clk_set_rate() 689 val &= ~(bit_mask(ctrl->mdiv.width) << ctrl->mdiv.shift); in iproc_clk_set_rate() 691 val &= ~(bit_mask(ctrl->mdiv.width) << ctrl->mdiv.shift); in iproc_clk_set_rate() [all …]
|
A D | clk-iproc.h | 197 struct iproc_clk_reg_op mdiv; member
|
/linux/drivers/clk/samsung/ |
A D | clk-pll.c | 153 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll2126_recalc_rate() local 161 fvco *= (mdiv + 8); in samsung_pll2126_recalc_rate() 194 fvco *= (2 * (mdiv + 8)); in samsung_pll3000_recalc_rate() 231 fvco *= mdiv; in samsung_pll35xx_recalc_rate() 338 fvco *= (mdiv << 16) + kdiv; in samsung_pll36xx_recalc_rate() 445 fvco *= mdiv; in samsung_pll0822x_recalc_rate() 631 fvco *= mdiv; in samsung_pll45xx_recalc_rate() 895 fvco *= mdiv; in samsung_pll6552_recalc_rate() 968 fvco *= (mdiv + 8); in samsung_s3c2410_pll_recalc_rate() 986 fvco *= (2 * (mdiv + 8)); in samsung_s3c2440_mpll_recalc_rate() [all …]
|
A D | clk-pll.h | 52 .mdiv = (_m), \ 61 .mdiv = (_m), \ 70 .mdiv = (_m), \ 79 .mdiv = (_m), \ 89 .mdiv = (_m), \ 99 .mdiv = (_m), \ 110 .mdiv = (_m), \ 124 unsigned int mdiv; member
|
/linux/arch/arm/mach-s3c/ |
A D | regs-s3c2443-clock.h | 153 unsigned int mdiv, pdiv, sdiv; in s3c2443_get_mpll() local 156 mdiv = pllval >> S3C2443_PLLCON_MDIVSHIFT; in s3c2443_get_mpll() 160 mdiv &= S3C2443_PLLCON_MDIVMASK; in s3c2443_get_mpll() 164 fvco = (uint64_t)baseclk * (2 * (mdiv + 8)); in s3c2443_get_mpll() 173 unsigned int mdiv, pdiv, sdiv; in s3c2443_get_epll() local 176 mdiv = pllval >> S3C2443_PLLCON_MDIVSHIFT; in s3c2443_get_epll() 180 mdiv &= S3C2443_PLLCON_MDIVMASK; in s3c2443_get_epll() 184 fvco = (uint64_t)baseclk * (mdiv + 8); in s3c2443_get_epll()
|
/linux/drivers/clk/imx/ |
A D | clk-pll14xx.c | 122 u32 mdiv, pdiv, sdiv, pll_div; in clk_pll1416x_recalc_rate() local 126 mdiv = (pll_div & MDIV_MASK) >> MDIV_SHIFT; in clk_pll1416x_recalc_rate() 130 fvco *= mdiv; in clk_pll1416x_recalc_rate() 140 u32 mdiv, pdiv, sdiv, pll_div_ctl0, pll_div_ctl1; in clk_pll1443x_recalc_rate() local 146 mdiv = (pll_div_ctl0 & MDIV_MASK) >> MDIV_SHIFT; in clk_pll1443x_recalc_rate() 152 fvco *= (mdiv * 65536 + kdiv); in clk_pll1443x_recalc_rate() 168 return rate->mdiv != old_mdiv || rate->pdiv != old_pdiv; in clk_pll14xx_mp_change() 217 div_val = (rate->mdiv << MDIV_SHIFT) | (rate->pdiv << PDIV_SHIFT) | in clk_pll1416x_set_rate() 282 div_val = (rate->mdiv << MDIV_SHIFT) | (rate->pdiv << PDIV_SHIFT) | in clk_pll1443x_set_rate()
|
A D | clk.h | 59 unsigned int mdiv; member 240 .mdiv = (_m), \ 248 .mdiv = (_m), \
|
/linux/drivers/clk/st/ |
A D | clkgen-fsyn.c | 35 unsigned long mdiv; member 58 struct clkgen_field mdiv[QUADFS_MAX_CHAN]; member 102 .mdiv = { CLKGEN_FIELD(0x304, 0x1f, 15), 165 .mdiv = { CLKGEN_FIELD(0x2b4, 0x1f, 15), 554 CLKGEN_WRITE(fs, mdiv[fs->chan], fs->md); in quadfs_fsynth_program_rate() 663 fs_tmp.mdiv = (unsigned long) m; in clk_fs660c32_get_pe() 673 fs->mdiv = m; in clk_fs660c32_get_pe() 719 fs_tmp.mdiv = fs->mdiv; in clk_fs660c32_dig_get_params() 752 params->mdiv = CLKGEN_READ(fs, mdiv[fs->chan]); in quadfs_fsynt_get_hw_value_for_recalc() 767 fs->md = params->mdiv; in quadfs_fsynt_get_hw_value_for_recalc() [all …]
|
/linux/drivers/clk/socfpga/ |
A D | clk-pll-s10.c | 65 unsigned long arefdiv, reg, mdiv; in agilex_clk_pll_recalc_rate() local 76 mdiv = reg & SOCFPGA_AGILEX_PLL_MDIV_MASK; in agilex_clk_pll_recalc_rate() 78 vco_freq = (unsigned long long)vco_freq * mdiv; in agilex_clk_pll_recalc_rate() 86 unsigned long mdiv; in clk_pll_recalc_rate() local 100 mdiv = (reg & SOCFPGA_PLL_MDIV_MASK) >> SOCFPGA_PLL_MDIV_SHIFT; in clk_pll_recalc_rate() 101 vco_freq = (unsigned long long)vco_freq * (mdiv + 6); in clk_pll_recalc_rate()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
A D | gk104.c | 35 u32 mdiv; member 320 info->mdiv |= 0x80000000; in calc_clk() 321 info->mdiv |= div1D; in calc_clk() 327 info->mdiv |= 0x80000000; in calc_clk() 328 info->mdiv |= div1P << 8; in calc_clk() 416 nvkm_mask(device, 0x137250 + (idx * 0x04), 0x00003f00, info->mdiv); in gk104_clk_prog_3() 418 nvkm_mask(device, 0x137250 + (idx * 0x04), 0x0000003f, info->mdiv); in gk104_clk_prog_3()
|
A D | gf100.c | 35 u32 mdiv; member 307 info->mdiv |= 0x80000000; in calc_clk() 308 info->mdiv |= div1D; in calc_clk() 314 info->mdiv |= 0x80000000; in calc_clk() 315 info->mdiv |= div1P << 8; in calc_clk() 412 nvkm_mask(device, 0x137250 + (idx * 0x04), 0x00003f3f, info->mdiv); in gf100_clk_prog_4()
|
/linux/drivers/media/dvb-frontends/ |
A D | horus3a.c | 172 u8 mdiv = 0; in horus3a_set_params() local 190 mdiv = 1; in horus3a_set_params() 193 mdiv = 0; in horus3a_set_params() 296 data[4] = (u8)(mdiv << 7); in horus3a_set_params()
|
A D | stb0899_drv.c | 559 u8 mdiv = 0; in stb0899_set_mclk() local 562 mdiv = ((6 * Mclk) / state->config->xtal_freq) - 1; in stb0899_set_mclk() 563 dprintk(state->verbose, FE_DEBUG, 1, "mdiv=%d", mdiv); in stb0899_set_mclk() 565 stb0899_write_reg(state, STB0899_NCOARSE, mdiv); in stb0899_set_mclk()
|
/linux/drivers/iio/frequency/ |
A D | adf4350.c | 140 u16 mdiv, r_cnt = 0; in adf4350_set_freq() local 148 mdiv = 75; in adf4350_set_freq() 151 mdiv = 23; in adf4350_set_freq() 187 } while (mdiv > st->r0_int); in adf4350_set_freq()
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
A D | ctrl.c | 126 args->v0.min = lo / domain->mdiv; in nvkm_control_mthd_pstate_attr() 127 args->v0.max = hi / domain->mdiv; in nvkm_control_mthd_pstate_attr()
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_dpll.c | 1515 u32 mdiv; in vlv_prepare_pll() local 1545 mdiv = ((bestm1 << DPIO_M1DIV_SHIFT) | (bestm2 & DPIO_M2DIV_MASK)); in vlv_prepare_pll() 1546 mdiv |= ((bestp1 << DPIO_P1_SHIFT) | (bestp2 << DPIO_P2_SHIFT)); in vlv_prepare_pll() 1547 mdiv |= ((bestn << DPIO_N_SHIFT)); in vlv_prepare_pll() 1548 mdiv |= (1 << DPIO_K_SHIFT); in vlv_prepare_pll() 1555 mdiv |= (DPIO_POST_DIV_HDMIDP << DPIO_POST_DIV_SHIFT); in vlv_prepare_pll() 1556 vlv_dpio_write(dev_priv, pipe, VLV_PLL_DW3(pipe), mdiv); in vlv_prepare_pll() 1558 mdiv |= DPIO_ENABLE_CALIBRATION; in vlv_prepare_pll() 1559 vlv_dpio_write(dev_priv, pipe, VLV_PLL_DW3(pipe), mdiv); in vlv_prepare_pll()
|
/linux/drivers/cpufreq/ |
A D | tegra194-cpufreq.c | 85 return nltbl->ref_clk_hz / KHZ * ndiv / (nltbl->pdiv * nltbl->mdiv); in map_ndiv_to_freq() 324 freq_table_step_size = resp.mdiv * in init_freq_table()
|
/linux/drivers/clk/nxp/ |
A D | clk-lpc18xx-cgu.c | 354 u32 ctrl, mdiv, msel, npdiv; in lpc18xx_pll0_recalc_rate() local 357 mdiv = readl(pll->reg + LPC18XX_CGU_PLL0USB_MDIV); in lpc18xx_pll0_recalc_rate() 368 msel = lpc18xx_pll0_mdec2msel(mdiv & LPC18XX_PLL0_MDIV_MDEC_MASK); in lpc18xx_pll0_recalc_rate()
|
/linux/drivers/i2c/busses/ |
A D | i2c-octeon-core.c | 661 int thp = 0x18, mdiv = 2, ndiv = 0, delta_hz = 1000000; in octeon_i2c_set_clock() local 689 mdiv = mdiv_idx; in octeon_i2c_set_clock() 696 octeon_i2c_reg_write(i2c, SW_TWSI_EOP_TWSI_CLKCTL, (mdiv << 3) | ndiv); in octeon_i2c_set_clock()
|
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
A D | clk.h | 80 int mdiv; member
|