Lines Matching refs:loop_count
179 int loop_count; in qlogicpti_mbox_command() local
191 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_mbox_command()
192 while (--loop_count && (sbus_readw(qpti->qregs + HCCTRL) & HCCTRL_HIRQ)) { in qlogicpti_mbox_command()
196 if (!loop_count) in qlogicpti_mbox_command()
229 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_mbox_command()
230 while (--loop_count && in qlogicpti_mbox_command()
233 if (!loop_count) in qlogicpti_mbox_command()
238 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_mbox_command()
239 while (--loop_count && in qlogicpti_mbox_command()
247 if (!loop_count) in qlogicpti_mbox_command()
252 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_mbox_command()
253 while (--loop_count && (sbus_readw(qpti->qregs + MBOX0) == 0x04)) in qlogicpti_mbox_command()
255 if (!loop_count) in qlogicpti_mbox_command()
331 int loop_count, i; in qlogicpti_reset_hardware() local
351 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_reset_hardware()
352 while (--loop_count && ((sbus_readw(qpti->qregs + MBOX0) & 0xff) == 0x04)) in qlogicpti_reset_hardware()
354 if (!loop_count) in qlogicpti_reset_hardware()