Lines Matching defs:div
196 * @div: serial clock rate divider
198 static void pxa_ssp_set_scr(struct ssp_device *ssp, u32 div)
204 sscr0 |= ((div - 2)/2) << 8; /* 2..512 */
207 sscr0 |= (div - 1) << 8; /* 1..4096 */
218 u32 div;
221 div = ((sscr0 >> 8) & 0xff) * 2 + 2;
223 div = ((sscr0 >> 8) & 0xfff) + 1;
224 return div;
288 int div_id, int div)
296 val = (pxa_ssp_read_reg(ssp, SSACD) & ~0x7) | SSACD_ACDS(div);
306 switch (div) {
326 pxa_ssp_set_scr(ssp, div);