Home
last modified time | relevance | path

Searched refs:clk_div_mask (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/drivers/clk/imx/
Dclk-divider-gate.c33 val &= clk_div_mask(div->width); in clk_divider_gate_recalc_rate_ro()
55 val &= clk_div_mask(div->width); in clk_divider_gate_recalc_rate()
91 val &= ~(clk_div_mask(div->width) << div->shift); in clk_divider_gate_set_rate()
137 val &= clk_div_mask(div->width); in clk_divider_disable()
150 val &= clk_div_mask(div->width); in clk_divider_is_enabled()
210 val &= clk_div_mask(width); in imx_clk_hw_divider_gate()
Dclk-composite-8m.c37 prediv_value &= clk_div_mask(divider->width); in imx8m_clk_composite_divider_recalc_rate()
44 div_value &= clk_div_mask(PCG_DIV_WIDTH); in imx8m_clk_composite_divider_recalc_rate()
110 val = orig & ~((clk_div_mask(divider->width) << divider->shift) | in imx8m_clk_composite_divider_set_rate()
111 (clk_div_mask(PCG_DIV_WIDTH) << PCG_DIV_SHIFT)); in imx8m_clk_composite_divider_set_rate()
/kernel/linux/linux-5.10/drivers/clk/
Dclk-divider.c47 unsigned int maxdiv = 0, mask = clk_div_mask(width); in _get_table_maxdiv()
71 return clk_div_mask(width); in _get_maxdiv()
73 return 1 << clk_div_mask(width); in _get_maxdiv()
76 return clk_div_mask(width) + 1; in _get_maxdiv()
98 return val ? val : clk_div_mask(width) + 1; in _get_div()
123 return (div == clk_div_mask(width) + 1) ? 0 : div; in _get_val()
155 val &= clk_div_mask(divider->width); in clk_divider_recalc_rate()
390 val &= clk_div_mask(divider->width); in clk_divider_round_rate()
414 return min_t(unsigned int, value, clk_div_mask(width)); in divider_get_val()
437 val = clk_div_mask(divider->width) << (divider->shift + 16); in clk_divider_set_rate()
[all …]
Dclk-milbeaut.c383 val &= clk_div_mask(divider->width); in m10v_clk_divider_recalc_rate()
399 val &= clk_div_mask(divider->width); in m10v_clk_divider_round_rate()
430 val &= ~(clk_div_mask(divider->width) << divider->shift); in m10v_clk_divider_set_rate()
Dclk-bm1880.c602 val &= clk_div_mask(div->width); in bm1880_clk_div_recalc_rate()
622 val &= clk_div_mask(div->width); in bm1880_clk_div_round_rate()
654 val &= ~(clk_div_mask(div->width) << div_hw->div.shift); in bm1880_clk_div_set_rate()
/kernel/linux/linux-5.10/drivers/clk/meson/
Dclk-regmap.c73 val &= clk_div_mask(div->width); in clk_regmap_div_recalc_rate()
94 val &= clk_div_mask(div->width); in clk_regmap_div_round_rate()
119 clk_div_mask(div->width) << div->shift, val); in clk_regmap_div_set_rate()
/kernel/linux/linux-5.10/include/linux/
Dclk-provider.h606 #define clk_div_mask(width) ((1 << (width)) - 1) macro