Lines Matching defs:div
469 int div_id, int div)
474 pr_debug("%s(%p, %d, %d)\n", __func__, cpu_dai, div_id, div);
478 switch (div) {
480 div = S3C2412_IISMOD_BCLK_16FS;
484 div = S3C2412_IISMOD_BCLK_32FS;
488 div = S3C2412_IISMOD_BCLK_24FS;
492 div = S3C2412_IISMOD_BCLK_48FS;
501 writel(reg | div, i2s->regs + S3C2412_IISMOD);
507 switch (div) {
509 div = S3C2412_IISMOD_RCLK_256FS;
513 div = S3C2412_IISMOD_RCLK_384FS;
517 div = S3C2412_IISMOD_RCLK_512FS;
521 div = S3C2412_IISMOD_RCLK_768FS;
530 writel(reg | div, i2s->regs + S3C2412_IISMOD);
535 if (div >= 0) {
536 writel((div << 8) | S3C2412_IISPSR_PSREN,
586 unsigned int div;
606 div = fsclk / rate;
609 div++;
611 if (div <= 1)
614 actual = clkrate / (fsdiv * div);
617 printk(KERN_DEBUG "%ufs: div %u => result %u, deviation %d\n",
618 fsdiv, div, actual, deviation);
624 best_div = div;
633 printk(KERN_DEBUG "best: fs=%u, div=%u, rate=%u\n",