Lines Matching refs:test
163 unsigned freq = 0, test, fifo = 0; in cadet_getfreq() local
176 test = 12500; in cadet_getfreq()
179 freq += test; in cadet_getfreq()
180 test = test << 1; in cadet_getfreq()
191 unsigned test; in cadet_settune() local
197 test = 0; in cadet_settune()
198 test = (fifo >> 23) & 0x02; /* Align data for SDO */ in cadet_settune()
199 test |= 0x1c; /* SDM=1, SWE=1, SEN=1, SCK=0 */ in cadet_settune()
201 outb(test, dev->io + 1); /* Initialize for write */ in cadet_settune()
203 test |= 0x01; /* Toggle SCK High */ in cadet_settune()
204 outb(test, dev->io + 1); in cadet_settune()
205 test &= 0xfe; /* Toggle SCK Low */ in cadet_settune()
206 outb(test, dev->io + 1); in cadet_settune()
208 test = 0x1c | ((fifo >> 23) & 0x02); in cadet_settune()
209 outb(test, dev->io + 1); in cadet_settune()
216 int i, j, test; in cadet_setfreq() local
227 test = 102400; in cadet_setfreq()
232 if (freq >= test) { in cadet_setfreq()
234 freq -= test; in cadet_setfreq()
236 test = test >> 1; in cadet_setfreq()