• Home
  • Raw
  • Download

Lines Matching refs:div

112 	int div;  in s3c2443_roundrate_clksrc()  local
119 div = (rate / parent_rate); in s3c2443_roundrate_clksrc()
121 if (div < 1) in s3c2443_roundrate_clksrc()
122 div = 1; in s3c2443_roundrate_clksrc()
123 else if (div > max) in s3c2443_roundrate_clksrc()
124 div = max; in s3c2443_roundrate_clksrc()
126 return parent_rate / div; in s3c2443_roundrate_clksrc()
196 unsigned long div = __raw_readl(S3C2443_CLKDIV0); in s3c2443_getrate_mdivclk() local
198 div &= S3C2443_CLKDIV0_EXTDIV_MASK; in s3c2443_getrate_mdivclk()
199 div >>= (S3C2443_CLKDIV0_EXTDIV_SHIFT-1); /* x2 */ in s3c2443_getrate_mdivclk()
201 return parent_rate / (div + 1); in s3c2443_getrate_mdivclk()
316 unsigned long div = __raw_readl(S3C2443_CLKDIV1); in s3c2443_getrate_uart() local
318 div &= S3C2443_CLKDIV1_UARTDIV_MASK; in s3c2443_getrate_uart()
319 div >>= S3C2443_CLKDIV1_UARTDIV_SHIFT; in s3c2443_getrate_uart()
321 return parent_rate / (div + 1); in s3c2443_getrate_uart()
357 unsigned long div = __raw_readl(S3C2443_CLKDIV1); in s3c2443_getrate_hsspi() local
359 div &= S3C2443_CLKDIV1_HSSPIDIV_MASK; in s3c2443_getrate_hsspi()
360 div >>= S3C2443_CLKDIV1_HSSPIDIV_SHIFT; in s3c2443_getrate_hsspi()
362 return parent_rate / (div + 1); in s3c2443_getrate_hsspi()
400 unsigned long div = __raw_readl(S3C2443_CLKDIV1); in s3c2443_getrate_usbhost() local
402 div &= S3C2443_CLKDIV1_USBHOSTDIV_MASK; in s3c2443_getrate_usbhost()
403 div >>= S3C2443_CLKDIV1_USBHOSTDIV_SHIFT; in s3c2443_getrate_usbhost()
405 return parent_rate / (div + 1); in s3c2443_getrate_usbhost()
444 unsigned long div = __raw_readl(S3C2443_CLKDIV1); in s3c2443_getrate_hsmmc_div() local
446 div &= S3C2443_CLKDIV1_HSMMCDIV_MASK; in s3c2443_getrate_hsmmc_div()
447 div >>= S3C2443_CLKDIV1_HSMMCDIV_SHIFT; in s3c2443_getrate_hsmmc_div()
449 return parent_rate / (div + 1); in s3c2443_getrate_hsmmc_div()
519 unsigned long div = __raw_readl(S3C2443_CLKDIV1); in s3c2443_getrate_i2s_eplldiv() local
521 div &= S3C2443_CLKDIV1_I2SDIV_MASK; in s3c2443_getrate_i2s_eplldiv()
522 div >>= S3C2443_CLKDIV1_I2SDIV_SHIFT; in s3c2443_getrate_i2s_eplldiv()
524 return parent_rate / (div + 1); in s3c2443_getrate_i2s_eplldiv()
592 unsigned long div = __raw_readl(S3C2443_CLKDIV1); in s3c2443_getrate_cam() local
594 div &= S3C2443_CLKDIV1_CAMDIV_MASK; in s3c2443_getrate_cam()
595 div >>= S3C2443_CLKDIV1_CAMDIV_SHIFT; in s3c2443_getrate_cam()
597 return parent_rate / (div + 1); in s3c2443_getrate_cam()
634 unsigned long div = __raw_readl(S3C2443_CLKDIV1); in s3c2443_getrate_display() local
636 div &= S3C2443_CLKDIV1_DISPDIV_MASK; in s3c2443_getrate_display()
637 div >>= S3C2443_CLKDIV1_DISPDIV_SHIFT; in s3c2443_getrate_display()
639 return parent_rate / (div + 1); in s3c2443_getrate_display()