Lines Matching defs:div
75 unsigned long div;
80 div = clk_get_rate(clk->parent) / rate;
81 if (div < 2)
82 div = 2;
83 else if (div > 16)
84 div = 16;
86 return div;
92 unsigned long div = s3c24xx_calc_div(clk, rate);
94 if (div == 0)
97 return clk_get_rate(clk->parent) / div;
102 unsigned long mask, data, div = s3c24xx_calc_div(clk, rate);
104 if (div == 0)
110 data = S3C2410_DCLKCON_DCLK0_DIV(div) |
111 S3C2410_DCLKCON_DCLK0_CMP((div + 1) / 2);
115 data = S3C2410_DCLKCON_DCLK1_DIV(div) |
116 S3C2410_DCLKCON_DCLK1_CMP((div + 1) / 2);
120 clk->rate = clk_get_rate(clk->parent) / div;