Searched refs:div_value (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/drivers/clk/imx/ |
D | clk-composite-8m.c | 34 unsigned int div_value; in imx8m_clk_composite_divider_recalc_rate() local 43 div_value = readl(divider->reg) >> PCG_DIV_SHIFT; in imx8m_clk_composite_divider_recalc_rate() 44 div_value &= clk_div_mask(PCG_DIV_WIDTH); in imx8m_clk_composite_divider_recalc_rate() 46 return divider_recalc_rate(hw, prediv_rate, div_value, NULL, in imx8m_clk_composite_divider_recalc_rate() 81 int div_value; in imx8m_clk_composite_divider_round_rate() local 84 &prediv_value, &div_value); in imx8m_clk_composite_divider_round_rate() 87 return DIV_ROUND_UP(rate, div_value); in imx8m_clk_composite_divider_round_rate() 98 int div_value; in imx8m_clk_composite_divider_set_rate() local 103 &prediv_value, &div_value); in imx8m_clk_composite_divider_set_rate() 114 val |= (u32)(div_value - 1) << PCG_DIV_SHIFT; in imx8m_clk_composite_divider_set_rate() [all …]
|
/Linux-v6.6/drivers/usb/serial/ |
D | ftdi_sio.c | 1255 u32 div_value = 0; in get_ftdi_divisor() local 1279 case 300: div_value = ftdi_sio_b300; break; in get_ftdi_divisor() 1280 case 600: div_value = ftdi_sio_b600; break; in get_ftdi_divisor() 1281 case 1200: div_value = ftdi_sio_b1200; break; in get_ftdi_divisor() 1282 case 2400: div_value = ftdi_sio_b2400; break; in get_ftdi_divisor() 1283 case 4800: div_value = ftdi_sio_b4800; break; in get_ftdi_divisor() 1284 case 9600: div_value = ftdi_sio_b9600; break; in get_ftdi_divisor() 1285 case 19200: div_value = ftdi_sio_b19200; break; in get_ftdi_divisor() 1286 case 38400: div_value = ftdi_sio_b38400; break; in get_ftdi_divisor() 1287 case 57600: div_value = ftdi_sio_b57600; break; in get_ftdi_divisor() [all …]
|
/Linux-v6.6/drivers/clk/bcm/ |
D | clk-kona.c | 60 u64 scaled_div_build(struct bcm_clk_div *div, u32 div_value, u32 billionths) in scaled_div_build() argument 64 BUG_ON(!div_value); in scaled_div_build() 67 combined = (u64)div_value * BILLION + billionths; in scaled_div_build()
|
D | clk-kona.h | 495 extern u64 scaled_div_build(struct bcm_clk_div *div, u32 div_value,
|