Searched refs:ckdiv (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/i2c/busses/ |
D | i2c-at91-master.c | 48 int ckdiv, cdiv, div, hold = 0; in at91_calc_twi_clock() local 58 ckdiv = fls(div >> 8); in at91_calc_twi_clock() 59 cdiv = div >> ckdiv; in at91_calc_twi_clock() 61 if (ckdiv > max_ckdiv) { in at91_calc_twi_clock() 63 ckdiv, max_ckdiv); in at91_calc_twi_clock() 64 ckdiv = max_ckdiv; in at91_calc_twi_clock() 87 dev->twi_cwgr_reg = (ckdiv << 16) | (cdiv << 8) | cdiv in at91_calc_twi_clock() 91 cdiv, ckdiv, hold, t->sda_hold_ns); in at91_calc_twi_clock()
|
/Linux-v5.4/drivers/spi/ |
D | spi-uniphier.c | 190 u32 val, ckdiv; in uniphier_spi_set_baudrate() local 196 ckdiv = DIV_ROUND_UP(clk_get_rate(priv->clk), speed); in uniphier_spi_set_baudrate() 197 ckdiv = round_up(ckdiv, 2); in uniphier_spi_set_baudrate() 201 val |= ckdiv & SSI_CKS_CKRAT_MASK; in uniphier_spi_set_baudrate()
|
D | spi-npcm-pspi.c | 155 u32 ckdiv; in npcm_pspi_set_baudrate() local 159 ckdiv = DIV_ROUND_CLOSEST(clk_get_rate(priv->clk), (2 * speed)) - 1; in npcm_pspi_set_baudrate() 163 iowrite16(regtemp | (ckdiv << 9), NPCM_PSPI_CTL1 + priv->base); in npcm_pspi_set_baudrate()
|