Lines Matching refs:cdiv

32 						struct clk_fepll, cdiv)
74 struct clk_regmap_div cdiv; member
1214 u32 fdbkdiv, refclkdiv, cdiv; in clk_fepll_vco_calc_rate() local
1217 regmap_read(pll_div->cdiv.clkr.regmap, pll_vco->reg, &cdiv); in clk_fepll_vco_calc_rate()
1218 refclkdiv = (cdiv >> pll_vco->refclkdiv_shift) & in clk_fepll_vco_calc_rate()
1220 fdbkdiv = (cdiv >> pll_vco->fdbkdiv_shift) & in clk_fepll_vco_calc_rate()
1284 mask = (BIT(pll->cdiv.width) - 1) << pll->cdiv.shift; in clk_cpu_div_set_rate()
1285 regmap_update_bits(pll->cdiv.clkr.regmap, in clk_cpu_div_set_rate()
1286 pll->cdiv.reg, mask, in clk_cpu_div_set_rate()
1287 f->pre_div << pll->cdiv.shift); in clk_cpu_div_set_rate()
1308 u32 cdiv, pre_div; in clk_cpu_div_recalc_rate() local
1311 regmap_read(pll->cdiv.clkr.regmap, pll->cdiv.reg, &cdiv); in clk_cpu_div_recalc_rate()
1312 cdiv = (cdiv >> pll->cdiv.shift) & (BIT(pll->cdiv.width) - 1); in clk_cpu_div_recalc_rate()
1319 if (cdiv > 10) in clk_cpu_div_recalc_rate()
1320 pre_div = (cdiv + 1) * 2; in clk_cpu_div_recalc_rate()
1322 pre_div = cdiv + 12; in clk_cpu_div_recalc_rate()
1355 .cdiv.reg = 0x2e020,
1356 .cdiv.shift = 4,
1357 .cdiv.width = 4,
1358 .cdiv.clkr = {
1384 u32 cdiv, pre_div = 1; in clk_regmap_clk_div_recalc_rate() local
1391 regmap_read(pll->cdiv.clkr.regmap, pll->cdiv.reg, &cdiv); in clk_regmap_clk_div_recalc_rate()
1392 cdiv = (cdiv >> pll->cdiv.shift) & (BIT(pll->cdiv.width) - 1); in clk_regmap_clk_div_recalc_rate()
1395 if (clkt->val == cdiv) in clk_regmap_clk_div_recalc_rate()
1412 .cdiv.clkr = {
1427 .cdiv.clkr = {
1442 .cdiv.clkr = {
1457 .cdiv.clkr = {
1472 .cdiv.clkr = {
1494 .cdiv.reg = 0x2f020,
1495 .cdiv.shift = 8,
1496 .cdiv.width = 2,
1497 .cdiv.clkr = {
1512 .cdiv.reg = 0x2f020,
1513 .cdiv.shift = 12,
1514 .cdiv.width = 2,
1515 .cdiv.clkr = {
1626 [GCC_SDCC_PLLDIV_CLK] = &gcc_apss_sdcc_clk.cdiv.clkr,
1627 [GCC_FEPLL125_CLK] = &gcc_fepll125_clk.cdiv.clkr,
1628 [GCC_FEPLL125DLY_CLK] = &gcc_fepll125dly_clk.cdiv.clkr,
1629 [GCC_FEPLL200_CLK] = &gcc_fepll200_clk.cdiv.clkr,
1630 [GCC_FEPLL500_CLK] = &gcc_fepll500_clk.cdiv.clkr,
1631 [GCC_FEPLL_WCSS2G_CLK] = &gcc_fepllwcss2g_clk.cdiv.clkr,
1632 [GCC_FEPLL_WCSS5G_CLK] = &gcc_fepllwcss5g_clk.cdiv.clkr,
1633 [GCC_APSS_CPU_PLLDIV_CLK] = &gcc_apss_cpu_plldiv_clk.cdiv.clkr,