Lines Matching defs:clkdiv
105 u32 clkdiv = 255;
114 clkdiv = DIV_ROUND_UP(bus_hz, hz) - 2;
115 if (clkdiv > 511)
116 clkdiv = 511;
118 clkodd = clkdiv & 1;
119 clkdiv >>= 1;
122 bus_hz / (clkdiv * 2 + clkodd + 2), blklen);
124 /* find clkdiv yielding a rate <= than requested */
125 for (clkdiv = 0; clkdiv < 255; clkdiv++) {
126 if ((bus_hz / (clkdiv + 1) / 2) <= hz)
130 (bus_hz / (clkdiv + 1)) / 2, blklen);
135 priv->curr_clk = bus_hz / (clkdiv * 2 + clkodd + 2);
137 priv->curr_clk = (bus_hz / (clkdiv + 1)) / 2;
139 mr = MMCI_BF(CLKDIV, clkdiv);