Lines Matching defs:div
286 u32 reg, div;
294 div = ((reg & MXC_CCM_CCSR_PLL2_PODF_MASK) >>
297 div = ((reg & MXC_CCM_CCSR_PLL3_PODF_MASK) >>
300 div = 1;
301 return parent_rate / div;
335 u32 cacrr, div;
340 div = (cacrr & MXC_CCM_CACRR_ARM_PODF_MASK) + 1;
342 return parent_rate / div;
398 u32 reg, div;
404 div = ((reg & MXC_CCM_CBCDR_AHB_PODF_MASK) >>
406 return parent_rate / div;
412 u32 reg, div;
418 div = parent_rate / rate;
419 if (div > 8 || div < 1 || ((parent_rate / div) != rate))
424 reg |= (div - 1) << MXC_CCM_CBCDR_AHB_PODF_OFFSET;
447 u32 div;
452 div = parent_rate / rate;
453 if (div > 8)
454 div = 8;
455 else if (div == 0)
456 div++;
457 return parent_rate / div;
489 u32 reg, div;
495 div = ((reg & MXC_CCM_CBCDR_IPG_PODF_MASK) >>
498 return parent_rate / div;