Lines Matching defs:div
102 int div;
107 div = parent_rate / rate;
109 div++;
111 if (div > limit)
112 div = limit;
114 return parent_rate / div;
248 unsigned int div;
254 div = parent_rate / rate;
256 if (div > 16 || div < 1 || ((parent_rate / div) != rate))
259 div--;
263 reg |= div << CCM_CSCR_BCLK_OFFSET;
289 unsigned int div;
295 div = parent_rate / rate;
297 if (div > 8 || div < 1 || ((parent_rate / div) != rate))
300 div--;
304 reg |= div << CCM_CSCR_USB_OFFSET;
333 unsigned int div;
339 div = parent_rate / rate;
341 if (div > 16 || div < 1 || ((parent_rate / div) != rate))
344 div--;
348 reg |= div << CCM_PCDR_PCLK1_OFFSET;
370 unsigned int div;
376 div = parent_rate / rate;
378 if (div > 16 || div < 1 || ((parent_rate / div) != rate))
381 div--;
385 reg |= div << CCM_PCDR_PCLK2_OFFSET;
407 unsigned int div;
413 div = parent_rate / rate;
415 if (div > 128 || div < 1 || ((parent_rate / div) != rate))
418 div--;
422 reg |= div << CCM_PCDR_PCLK3_OFFSET;