Lines Matching refs:div

165 	int div;  in s3c2412_roundrate_usbsrc()  local
170 div = parent_rate / rate; in s3c2412_roundrate_usbsrc()
171 if (div > 2) in s3c2412_roundrate_usbsrc()
172 div = 2; in s3c2412_roundrate_usbsrc()
174 return parent_rate / div; in s3c2412_roundrate_usbsrc()
180 unsigned long div = __raw_readl(S3C2410_CLKDIVN); in s3c2412_getrate_usbsrc() local
182 return parent_rate / ((div & S3C2412_CLKDIVN_USB48DIV) ? 2 : 1); in s3c2412_getrate_usbsrc()
286 int div; in s3c2412_roundrate_clksrc() local
293 div = (rate / parent_rate); in s3c2412_roundrate_clksrc()
295 if (div < 1) in s3c2412_roundrate_clksrc()
296 div = 1; in s3c2412_roundrate_clksrc()
297 else if (div > 16) in s3c2412_roundrate_clksrc()
298 div = 16; in s3c2412_roundrate_clksrc()
300 return parent_rate / div; in s3c2412_roundrate_clksrc()
323 unsigned long div = __raw_readl(S3C2410_CLKDIVN); in s3c2412_getrate_uart() local
325 div &= S3C2412_CLKDIVN_UARTDIV_MASK; in s3c2412_getrate_uart()
326 div >>= S3C2412_CLKDIVN_UARTDIV_SHIFT; in s3c2412_getrate_uart()
328 return parent_rate / (div + 1); in s3c2412_getrate_uart()
376 unsigned long div = __raw_readl(S3C2410_CLKDIVN); in s3c2412_getrate_i2s() local
378 div &= S3C2412_CLKDIVN_I2SDIV_MASK; in s3c2412_getrate_i2s()
379 div >>= S3C2412_CLKDIVN_I2SDIV_SHIFT; in s3c2412_getrate_i2s()
381 return parent_rate / (div + 1); in s3c2412_getrate_i2s()
428 unsigned long div = __raw_readl(S3C2410_CLKDIVN); in s3c2412_getrate_cam() local
430 div &= S3C2412_CLKDIVN_CAMDIV_MASK; in s3c2412_getrate_cam()
431 div >>= S3C2412_CLKDIVN_CAMDIV_SHIFT; in s3c2412_getrate_cam()
433 return parent_rate / (div + 1); in s3c2412_getrate_cam()