Searched refs:hs_div (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/clk/ |
D | clk-si570.c | 81 unsigned int hs_div; member 104 unsigned int *n1, unsigned int *hs_div) in si570_get_divs() argument 115 *hs_div = ((reg[0] & HS_DIV_MASK) >> HS_DIV_SHIFT) + HS_DIV_OFFSET; in si570_get_divs() 144 err = si570_get_divs(data, &data->rfreq, &data->n1, &data->hs_div); in si570_get_defaults() 152 fdco = fout * data->n1 * data->hs_div; in si570_get_defaults() 199 unsigned int n1, hs_div; in si570_calc_divs() local 204 hs_div = si570_hs_div_values[i]; in si570_calc_divs() 206 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs() 210 fdco = (u64)frequency * (u64)hs_div * (u64)n1; in si570_calc_divs() 215 *out_hs_div = hs_div; in si570_calc_divs() [all …]
|
D | clk-si544.c | 78 u16 hs_div; member 128 settings->hs_div = (reg[1] & 0x07) << 8 | reg[0]; in si544_get_muldiv() 146 reg[0] = settings->hs_div; in si544_set_muldiv() 147 reg[1] = settings->hs_div >> 8 | settings->ls_div_bits << 4; in si544_set_muldiv() 221 settings->hs_div = vco; in si544_calc_muldiv() 224 if ((settings->hs_div & 1) && in si544_calc_muldiv() 225 (settings->hs_div > HS_DIV_MAX_ODD || settings->ls_div_bits)) in si544_calc_muldiv() 226 ++settings->hs_div; in si544_calc_muldiv() 229 vco = (u64)ls_freq * settings->hs_div; in si544_calc_muldiv() 247 u32 d = settings->hs_div * BIT(settings->ls_div_bits); in si544_calc_rate()
|
D | clk-si514.c | 67 u16 hs_div; /* 1st divider, must be even and 10<=x<=1022 */ member 120 settings->hs_div = (reg[6] & 0x03) << 8 | reg[5]; in si514_get_muldiv() 160 reg[5] = settings->hs_div; in si514_set_muldiv() 161 reg[6] = (settings->hs_div >> 8) | (settings->ls_div_bits << 4); in si514_set_muldiv() 203 settings->hs_div = DIV_ROUND_UP(FVCO_MIN >> 1, ls_freq) << 1; in si514_calc_muldiv() 206 m = ((u64)(ls_freq * settings->hs_div) << 29) + (FXO / 2); in si514_calc_muldiv() 218 u32 d = settings->hs_div * BIT(settings->ls_div_bits); in si514_calc_rate()
|
/Linux-v4.19/drivers/i2c/busses/ |
D | i2c-qup.c | 1673 int ret, fs_div, hs_div; in qup_i2c_probe() local 1865 hs_div = 3; in qup_i2c_probe() 1868 qup->clk_ctl = (hs_div << 8) | (fs_div & 0xff); in qup_i2c_probe() 1872 qup->clk_ctl = ((fs_div / 2) << 16) | (hs_div << 8) | (fs_div & 0xff); in qup_i2c_probe()
|