Lines Matching refs:timeout

163 	int timeout;  in snd_wss_wait()  local
165 for (timeout = 250; in snd_wss_wait()
166 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_wait()
167 timeout--) in snd_wss_wait()
174 int timeout; in snd_wss_dout() local
176 for (timeout = 250; in snd_wss_dout()
177 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_dout()
178 timeout--) in snd_wss_dout()
348 int timeout; in snd_wss_busy_wait() local
351 for (timeout = 5; timeout > 0; timeout--) in snd_wss_busy_wait()
354 for (timeout = 25000; in snd_wss_busy_wait()
355 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_busy_wait()
356 timeout--) in snd_wss_busy_wait()
363 int timeout; in snd_wss_mce_up() local
373 timeout = wss_inb(chip, CS4231P(REGSEL)); in snd_wss_mce_up()
374 if (timeout == 0x80) in snd_wss_mce_up()
378 if (!(timeout & CS4231_MCE)) in snd_wss_mce_up()
380 chip->mce_bit | (timeout & 0x1f)); in snd_wss_mce_up()
389 int timeout; in snd_wss_mce_down() local
402 timeout = wss_inb(chip, CS4231P(REGSEL)); in snd_wss_mce_down()
403 wss_outb(chip, CS4231P(REGSEL), chip->mce_bit | (timeout & 0x1f)); in snd_wss_mce_down()
405 if (timeout == 0x80) in snd_wss_mce_down()
409 if ((timeout & CS4231_MCE) == 0 || !(chip->hardware & hw_mask)) in snd_wss_mce_down()
1152 unsigned long timeout = jiffies + msecs_to_jiffies(1000); in snd_ad1848_probe() local
1160 if (time_after(jiffies, timeout)) in snd_ad1848_probe()
1643 timeout = wss_inb(chip, CS4231P(REGSEL)); in snd_wss_resume()
1644 wss_outb(chip, CS4231P(REGSEL), chip->mce_bit | (timeout & 0x1f)); in snd_wss_resume()
1646 if (timeout == 0x80) in snd_wss_resume()
1649 if ((timeout & CS4231_MCE) == 0 || in snd_wss_resume()