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()
232 u32 value, div; in zynqmp_clk_divider_set_rate() local
237 div = value & 0xFFFF; in zynqmp_clk_divider_set_rate()
238 div |= 0xffff << 16; in zynqmp_clk_divider_set_rate()
240 div = 0xffff; in zynqmp_clk_divider_set_rate()
241 div |= value << 16; in zynqmp_clk_divider_set_rate()
245 div = __ffs(div); in zynqmp_clk_divider_set_rate()
247 ret = zynqmp_pm_clock_setdivider(clk_id, div); in zynqmp_clk_divider_set_rate()
334 struct zynqmp_clk_divider *div; in zynqmp_clk_register_divider() local
340 div = kzalloc(sizeof(*div), GFP_KERNEL); in zynqmp_clk_register_divider()
341 if (!div) in zynqmp_clk_register_divider()
356 div->is_frac = !!((nodes->flag & CLK_FRAC) | in zynqmp_clk_register_divider()
358 div->flags = zynqmp_clk_map_divider_ccf_flags(nodes->type_flag); in zynqmp_clk_register_divider()
359 div->hw.init = &init; in zynqmp_clk_register_divider()
360 div->clk_id = clk_id; in zynqmp_clk_register_divider()
361 div->div_type = nodes->type; in zynqmp_clk_register_divider()
367 div->max_div = zynqmp_clk_get_max_divisor(clk_id, nodes->type); in zynqmp_clk_register_divider()
369 hw = &div->hw; in zynqmp_clk_register_divider()
372 kfree(div); in zynqmp_clk_register_divider()