Home
last modified time | relevance | path

Searched refs:div_value (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/drivers/clk/imx/
Dclk-composite-8m.c34 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()
/linux-5.19.10/drivers/usb/serial/
Dftdi_sio.c1288 u32 div_value = 0; in get_ftdi_divisor() local
1312 case 300: div_value = ftdi_sio_b300; break; in get_ftdi_divisor()
1313 case 600: div_value = ftdi_sio_b600; break; in get_ftdi_divisor()
1314 case 1200: div_value = ftdi_sio_b1200; break; in get_ftdi_divisor()
1315 case 2400: div_value = ftdi_sio_b2400; break; in get_ftdi_divisor()
1316 case 4800: div_value = ftdi_sio_b4800; break; in get_ftdi_divisor()
1317 case 9600: div_value = ftdi_sio_b9600; break; in get_ftdi_divisor()
1318 case 19200: div_value = ftdi_sio_b19200; break; in get_ftdi_divisor()
1319 case 38400: div_value = ftdi_sio_b38400; break; in get_ftdi_divisor()
1320 case 57600: div_value = ftdi_sio_b57600; break; in get_ftdi_divisor()
[all …]
/linux-5.19.10/drivers/clk/bcm/
Dclk-kona.c68 u64 scaled_div_build(struct bcm_clk_div *div, u32 div_value, u32 billionths) in scaled_div_build() argument
72 BUG_ON(!div_value); in scaled_div_build()
75 combined = (u64)div_value * BILLION + billionths; in scaled_div_build()
Dclk-kona.h503 extern u64 scaled_div_build(struct bcm_clk_div *div, u32 div_value,