Lines Matching refs:parent_rate
164 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_roundrate_usbsrc() local
167 if (rate > parent_rate) in s3c2412_roundrate_usbsrc()
168 return parent_rate; in s3c2412_roundrate_usbsrc()
170 div = parent_rate / rate; in s3c2412_roundrate_usbsrc()
174 return parent_rate / div; in s3c2412_roundrate_usbsrc()
179 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_getrate_usbsrc() local
182 return parent_rate / ((div & S3C2412_CLKDIVN_USB48DIV) ? 2 : 1); in s3c2412_getrate_usbsrc()
187 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_setrate_usbsrc() local
192 if ((parent_rate / rate) == 2) in s3c2412_setrate_usbsrc()
285 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_roundrate_clksrc() local
288 if (rate > parent_rate) in s3c2412_roundrate_clksrc()
289 return parent_rate; in s3c2412_roundrate_clksrc()
293 div = (rate / parent_rate); in s3c2412_roundrate_clksrc()
300 return parent_rate / div; in s3c2412_roundrate_clksrc()
322 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_getrate_uart() local
328 return parent_rate / (div + 1); in s3c2412_getrate_uart()
333 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_setrate_uart() local
339 clkdivn |= ((parent_rate / rate) - 1) << S3C2412_CLKDIVN_UARTDIV_SHIFT; in s3c2412_setrate_uart()
375 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_getrate_i2s() local
381 return parent_rate / (div + 1); in s3c2412_getrate_i2s()
386 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_setrate_i2s() local
392 clkdivn |= ((parent_rate / rate) - 1) << S3C2412_CLKDIVN_I2SDIV_SHIFT; in s3c2412_setrate_i2s()
427 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_getrate_cam() local
433 return parent_rate / (div + 1); in s3c2412_getrate_cam()
438 unsigned long parent_rate = clk_get_rate(clk->parent); in s3c2412_setrate_cam() local
444 clkdivn |= ((parent_rate / rate) - 1) << S3C2412_CLKDIVN_CAMDIV_SHIFT; in s3c2412_setrate_cam()