Lines Matching defs:div
146 int div;
151 div = parent_rate / rate;
153 div++;
155 if (div > 4)
156 div = 4;
158 return parent_rate / div;
163 unsigned int div;
169 div = parent_rate / rate;
171 if (div > 4 || div < 1 || ((parent_rate / div) != rate))
174 div--;
179 reg |= div << 12;
191 u32 div;
196 div = parent_rate / rate;
198 div++;
200 if (div > 64)
201 div = 64;
203 return parent_rate / div;
209 u32 div;
217 div = parent_rate / rate;
218 if (div > 64 || div < 1 || ((parent_rate / div) != rate))
220 div--;
223 reg |= div << (clk->id << 3);
376 u32 div;
380 div = (__raw_readl(CCM_CSCR) >> 12) & 0x3;
382 div = (__raw_readl(CCM_CSCR) >> 13) & 0x7;
385 return rate / (div + 1);