Home
last modified time | relevance | path

Searched refs:safe_div (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/clk/at91/
H A Dclk-sam9x60-pll.c51 u8 safe_div; member
563 div->div = div->safe_div; in sam9x60_div_pll_notifier_fn()
572 if (cdiv == div->safe_div) in sam9x60_div_pll_notifier_fn()
702 u32 safe_div) in sam9x60_clk_register_div_pll() argument
712 if (id > PLL_MAX_ID || !lock || (safe_div && notifier_div)) in sam9x60_clk_register_div_pll()
715 if (safe_div >= PLL_DIV_MAX) in sam9x60_clk_register_div_pll()
716 safe_div = PLL_DIV_MAX - 1; in sam9x60_clk_register_div_pll()
740 div->safe_div = safe_div; in sam9x60_clk_register_div_pll()
756 } else if (div->safe_div) { in sam9x60_clk_register_div_pll()
H A Dclk-master.c40 u32 safe_div; member
287 master_div->safe_div); in clk_master_div_notifier_fn()
551 spinlock_t *lock, u32 flags, u32 safe_div) in at91_clk_register_master_div() argument
567 if (!IS_ERR(hw) && safe_div) { in at91_clk_register_master_div()
569 master_div->safe_div = safe_div; in at91_clk_register_master_div()
H A Dpmc.h190 spinlock_t *lock, u32 flags, u32 safe_div);
227 u32 safe_div);
H A Dsama7g5.c168 u8 safe_div; member
197 .safe_div = 15,
1078 sama7g5_plls[i][j].safe_div); in sama7g5_pmc_setup()
/openbmc/linux/drivers/md/
H A Ddm-cache-policy-smq.c27 static unsigned int safe_div(unsigned int n, unsigned int d) in safe_div() function
395 entries_per_level = safe_div(nr_elts, nr_levels); in q_set_targets_subrange_()
561 unsigned int confidence = safe_div(s->hits << FP_SHIFT, s->hits + s->misses); in stats_assess()
1044 unsigned int index = safe_div(hits << 4u, hits + misses); in default_promote_level()