Lines Matching refs:div
435 int div_id, int div) in s3c2412_i2s_set_clkdiv() argument
440 pr_debug("%s(%p, %d, %d)\n", __func__, cpu_dai, div_id, div); in s3c2412_i2s_set_clkdiv()
444 switch (div) { in s3c2412_i2s_set_clkdiv()
446 div = S3C2412_IISMOD_BCLK_16FS; in s3c2412_i2s_set_clkdiv()
450 div = S3C2412_IISMOD_BCLK_32FS; in s3c2412_i2s_set_clkdiv()
454 div = S3C2412_IISMOD_BCLK_24FS; in s3c2412_i2s_set_clkdiv()
458 div = S3C2412_IISMOD_BCLK_48FS; in s3c2412_i2s_set_clkdiv()
467 writel(reg | div, i2s->regs + S3C2412_IISMOD); in s3c2412_i2s_set_clkdiv()
473 switch (div) { in s3c2412_i2s_set_clkdiv()
475 div = S3C2412_IISMOD_RCLK_256FS; in s3c2412_i2s_set_clkdiv()
479 div = S3C2412_IISMOD_RCLK_384FS; in s3c2412_i2s_set_clkdiv()
483 div = S3C2412_IISMOD_RCLK_512FS; in s3c2412_i2s_set_clkdiv()
487 div = S3C2412_IISMOD_RCLK_768FS; in s3c2412_i2s_set_clkdiv()
496 writel(reg | div, i2s->regs + S3C2412_IISMOD); in s3c2412_i2s_set_clkdiv()
501 if (div >= 0) { in s3c2412_i2s_set_clkdiv()
502 writel((div << 8) | S3C2412_IISPSR_PSREN, in s3c2412_i2s_set_clkdiv()
552 unsigned int div; in s3c_i2sv2_iis_calc_rate() local
572 div = fsclk / rate; in s3c_i2sv2_iis_calc_rate()
575 div++; in s3c_i2sv2_iis_calc_rate()
577 if (div <= 1) in s3c_i2sv2_iis_calc_rate()
580 actual = clkrate / (fsdiv * div); in s3c_i2sv2_iis_calc_rate()
584 fsdiv, div, actual, deviation); in s3c_i2sv2_iis_calc_rate()
590 best_div = div; in s3c_i2sv2_iis_calc_rate()