Lines Matching refs:timeleft
174 int timeleft; in OUT_BYTE() local
181 timeleft = IDE_REGISTER_TIMEOUT; in OUT_BYTE()
183 while(timeleft && (*R_ATA_STATUS_DATA & IO_MASK(R_ATA_STATUS_DATA, busy))) in OUT_BYTE()
184 timeleft--; in OUT_BYTE()
193 if(!timeleft) in OUT_BYTE()
198 timeleft = IDE_REGISTER_TIMEOUT; in OUT_BYTE()
200 while(timeleft && !(*R_ATA_STATUS_DATA & in OUT_BYTE()
202 timeleft--; in OUT_BYTE()
208 int timeleft; in IN_BYTE() local
210 timeleft = IDE_REGISTER_TIMEOUT; in IN_BYTE()
212 while(timeleft && (*R_ATA_STATUS_DATA & IO_MASK(R_ATA_STATUS_DATA, busy))) in IN_BYTE()
213 timeleft--; in IN_BYTE()
215 if(!timeleft) { in IN_BYTE()
239 timeleft = IDE_REGISTER_TIMEOUT; in IN_BYTE()
241 while(timeleft && !((status = *R_ATA_STATUS_DATA) & in IN_BYTE()
243 timeleft--; in IN_BYTE()
245 if(!timeleft) in IN_BYTE()