Searched refs:cdiv (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/spi/ |
| H A D | spi-bcm2835.c | 1058 unsigned long spi_hz, cdiv; in bcm2835_spi_transfer_one() local 1066 cdiv = 2; /* clk_hz/2 is the fastest we can go */ in bcm2835_spi_transfer_one() 1069 cdiv = DIV_ROUND_UP(bs->clk_hz, spi_hz); in bcm2835_spi_transfer_one() 1070 cdiv += (cdiv % 2); in bcm2835_spi_transfer_one() 1072 if (cdiv >= 65536) in bcm2835_spi_transfer_one() 1073 cdiv = 0; /* 0 is the slowest we can go */ in bcm2835_spi_transfer_one() 1075 cdiv = 0; /* 0 is the slowest we can go */ in bcm2835_spi_transfer_one() 1077 tfr->effective_speed_hz = cdiv ? (bs->clk_hz / cdiv) : (bs->clk_hz / 65536); in bcm2835_spi_transfer_one() 1078 bcm2835_wr(bs, BCM2835_SPI_CLK, cdiv); in bcm2835_spi_transfer_one()
|
| /linux/drivers/clk/at91/ |
| H A D | clk-sam9x60-pll.c | 370 unsigned int val, cdiv; in sam9x60_div_pll_set() local 376 cdiv = (val & core->layout->div_mask) >> core->layout->div_shift; in sam9x60_div_pll_set() 379 if (!!(val & core->layout->endiv_mask) && cdiv == div->div) in sam9x60_div_pll_set() 523 unsigned int val, cdiv; in sam9x60_div_pll_set_rate_chg() local 531 cdiv = (val & core->layout->div_mask) >> core->layout->div_shift; in sam9x60_div_pll_set_rate_chg() 534 if (cdiv == div->div) in sam9x60_div_pll_set_rate_chg() 571 u32 val, cdiv; in sam9x60_div_pll_notifier_fn() local 587 cdiv = (val & core.layout->div_mask) >> core.layout->div_shift; in sam9x60_div_pll_notifier_fn() 590 if (cdiv == div->safe_div) in sam9x60_div_pll_notifier_fn()
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-at91-master.c | 69 int ckdiv, cdiv, div, hold = 0, filter_width = 0; in at91_calc_twi_clock() local 80 cdiv = div >> ckdiv; in at91_calc_twi_clock() 86 cdiv = 255; in at91_calc_twi_clock() 123 dev->twi_cwgr_reg = (ckdiv << 16) | (cdiv << 8) | cdiv in at91_calc_twi_clock() 129 cdiv, ckdiv, hold, t->sda_hold_ns, filter_width, in at91_calc_twi_clock()
|
| /linux/drivers/mmc/host/ |
| H A D | bcm2835.c | 167 u32 cdiv; member 270 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_reset_internal() 1124 host->cdiv = SDCDIV_MAX_CDIV; in bcm2835_set_clock() 1125 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock() 1147 host->cdiv = div; in bcm2835_set_clock() 1148 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock()
|