Searched refs:cdiv (Results 1 – 5 of 5) sorted by relevance
| /Linux-v5.10/drivers/clk/qcom/ |
| D | gcc-ipq4019.c | 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() 1285 mask = (BIT(pll->cdiv.width) - 1) << pll->cdiv.shift; in clk_cpu_div_set_rate() 1286 ret = regmap_update_bits(pll->cdiv.clkr.regmap, in clk_cpu_div_set_rate() 1287 pll->cdiv.reg, mask, in clk_cpu_div_set_rate() 1288 f->pre_div << pll->cdiv.shift); in clk_cpu_div_set_rate() [all …]
|
| /Linux-v5.10/drivers/spi/ |
| D | spi-bcm2835.c | 1085 unsigned long spi_hz, clk_hz, cdiv; in bcm2835_spi_transfer_one() local 1094 cdiv = 2; /* clk_hz/2 is the fastest we can go */ in bcm2835_spi_transfer_one() 1097 cdiv = DIV_ROUND_UP(clk_hz, spi_hz); in bcm2835_spi_transfer_one() 1098 cdiv += (cdiv % 2); in bcm2835_spi_transfer_one() 1100 if (cdiv >= 65536) in bcm2835_spi_transfer_one() 1101 cdiv = 0; /* 0 is the slowest we can go */ in bcm2835_spi_transfer_one() 1103 cdiv = 0; /* 0 is the slowest we can go */ in bcm2835_spi_transfer_one() 1105 tfr->effective_speed_hz = cdiv ? (clk_hz / cdiv) : (clk_hz / 65536); in bcm2835_spi_transfer_one() 1106 bcm2835_wr(bs, BCM2835_SPI_CLK, cdiv); in bcm2835_spi_transfer_one()
|
| /Linux-v5.10/drivers/i2c/busses/ |
| D | i2c-at91-master.c | 70 int ckdiv, cdiv, div, hold = 0, filter_width = 0; in at91_calc_twi_clock() local 81 cdiv = div >> ckdiv; in at91_calc_twi_clock() 87 cdiv = 255; in at91_calc_twi_clock() 124 dev->twi_cwgr_reg = (ckdiv << 16) | (cdiv << 8) | cdiv in at91_calc_twi_clock() 130 cdiv, ckdiv, hold, t->sda_hold_ns, filter_width, in at91_calc_twi_clock()
|
| /Linux-v5.10/drivers/clk/at91/ |
| D | clk-sam9x60-pll.c | 247 unsigned int val, cdiv; in sam9x60_div_pll_prepare() local 253 cdiv = (val & core->layout->div_mask) >> core->layout->div_shift; in sam9x60_div_pll_prepare() 256 if (!!(val & core->layout->endiv_mask) && cdiv == div->div) in sam9x60_div_pll_prepare()
|
| /Linux-v5.10/drivers/mmc/host/ |
| D | bcm2835.c | 165 u32 cdiv; member 268 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_reset_internal() 1130 host->cdiv = SDCDIV_MAX_CDIV; in bcm2835_set_clock() 1131 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock() 1153 host->cdiv = div; in bcm2835_set_clock() 1154 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock()
|