Lines Matching refs:shift
139 int shift = 0; in clk_sam9x5_peripheral_autodiv() local
150 for (; shift < PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_autodiv()
151 if (parent_rate >> shift <= periph->range.max) in clk_sam9x5_peripheral_autodiv()
157 periph->div = shift; in clk_sam9x5_peripheral_autodiv()
234 int shift = 0; in clk_sam9x5_peripheral_round_rate() local
245 for (; shift <= PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_round_rate()
246 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
257 for (; shift <= PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_round_rate()
258 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
280 int shift; in clk_sam9x5_peripheral_set_rate() local
292 for (shift = 0; shift <= PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_set_rate()
293 if (parent_rate >> shift == rate) { in clk_sam9x5_peripheral_set_rate()
295 periph->div = shift; in clk_sam9x5_peripheral_set_rate()