Lines Matching refs:div
86 u32 div, value; in zynqmp_clk_divider_recalc_rate() local
89 ret = zynqmp_pm_clock_getdivider(clk_id, &div); in zynqmp_clk_divider_recalc_rate()
96 value = div & 0xFFFF; in zynqmp_clk_divider_recalc_rate()
98 value = div >> 16; in zynqmp_clk_divider_recalc_rate()
176 u32 value, div; in zynqmp_clk_divider_set_rate() local
181 div = value & 0xFFFF; in zynqmp_clk_divider_set_rate()
182 div |= 0xffff << 16; in zynqmp_clk_divider_set_rate()
184 div = 0xffff; in zynqmp_clk_divider_set_rate()
185 div |= value << 16; in zynqmp_clk_divider_set_rate()
189 div = __ffs(div); in zynqmp_clk_divider_set_rate()
191 ret = zynqmp_pm_clock_setdivider(clk_id, div); in zynqmp_clk_divider_set_rate()
278 struct zynqmp_clk_divider *div; in zynqmp_clk_register_divider() local
284 div = kzalloc(sizeof(*div), GFP_KERNEL); in zynqmp_clk_register_divider()
285 if (!div) in zynqmp_clk_register_divider()
300 div->is_frac = !!((nodes->flag & CLK_FRAC) | in zynqmp_clk_register_divider()
302 div->flags = zynqmp_clk_map_divider_ccf_flags(nodes->type_flag); in zynqmp_clk_register_divider()
303 div->hw.init = &init; in zynqmp_clk_register_divider()
304 div->clk_id = clk_id; in zynqmp_clk_register_divider()
305 div->div_type = nodes->type; in zynqmp_clk_register_divider()
311 div->max_div = zynqmp_clk_get_max_divisor(clk_id, nodes->type); in zynqmp_clk_register_divider()
313 hw = &div->hw; in zynqmp_clk_register_divider()
316 kfree(div); in zynqmp_clk_register_divider()