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()
242 int shift = 0; in clk_sam9x5_peripheral_round_rate() local
253 for (; shift <= PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_round_rate()
254 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
265 for (; shift <= PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_round_rate()
266 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
288 int shift; in clk_sam9x5_peripheral_set_rate() local
300 for (shift = 0; shift <= PERIPHERAL_MAX_SHIFT; shift++) { in clk_sam9x5_peripheral_set_rate()
301 if (parent_rate >> shift == rate) { in clk_sam9x5_peripheral_set_rate()
303 periph->div = shift; in clk_sam9x5_peripheral_set_rate()