Lines Matching refs:loop_count
178 int loop_count; in qlogicpti_mbox_command() local
190 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_mbox_command()
191 while (--loop_count && (sbus_readw(qpti->qregs + HCCTRL) & HCCTRL_HIRQ)) { in qlogicpti_mbox_command()
195 if (!loop_count) in qlogicpti_mbox_command()
223 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_mbox_command()
224 while (--loop_count && in qlogicpti_mbox_command()
227 if (!loop_count) in qlogicpti_mbox_command()
232 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_mbox_command()
233 while (--loop_count && in qlogicpti_mbox_command()
241 if (!loop_count) in qlogicpti_mbox_command()
246 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_mbox_command()
247 while (--loop_count && (sbus_readw(qpti->qregs + MBOX0) == 0x04)) in qlogicpti_mbox_command()
249 if (!loop_count) in qlogicpti_mbox_command()
320 int loop_count, i; in qlogicpti_reset_hardware() local
340 loop_count = DEFAULT_LOOP_COUNT; in qlogicpti_reset_hardware()
341 while (--loop_count && ((sbus_readw(qpti->qregs + MBOX0) & 0xff) == 0x04)) in qlogicpti_reset_hardware()
343 if (!loop_count) in qlogicpti_reset_hardware()