Lines Matching refs:reqlen
97 int reqlen) in ql_pdma() argument
106 if (reqlen >= 128 && (inb(qbase + 8) & 2)) { /* full */ in ql_pdma()
108 reqlen -= 128; in ql_pdma()
111 while (reqlen >= 84 && !(j & 0xc0)) /* 2/3 */ in ql_pdma()
115 reqlen -= 84; in ql_pdma()
118 if (reqlen >= 44 && (inb(qbase + 8) & 8)) { /* 1/3 */ in ql_pdma()
120 reqlen -= 44; in ql_pdma()
127 while (reqlen && !((j & 0x10) && (j & 0xc0))) in ql_pdma()
131 while (reqlen && !((j = inb(qbase + 8)) & 0x10)) in ql_pdma()
134 reqlen--; in ql_pdma()
143 if (reqlen >= 128 && inb(qbase + 8) & 0x10) { /* empty */ in ql_pdma()
145 reqlen -= 128; in ql_pdma()
148 while (reqlen >= 84 && !(j & 0xc0)) /* 1/3 */ in ql_pdma()
151 reqlen -= 84; in ql_pdma()
154 if (reqlen >= 40 && !(inb(qbase + 8) & 4)) { /* 2/3 */ in ql_pdma()
156 reqlen -= 40; in ql_pdma()
163 while (reqlen && !((j & 2) && (j & 0xc0))) { in ql_pdma()
165 while (reqlen && !((j = inb(qbase + 8)) & 2)) in ql_pdma()
168 reqlen--; in ql_pdma()
267 unsigned int reqlen; /* total length of transfer */ in ql_pcmd() local
305 reqlen = scsi_bufflen(cmd); in ql_pcmd()
307 if (reqlen && !((phase = inb(qbase + 4)) & 6)) { /* data phase */ in ql_pcmd()
310 outb(reqlen, qbase); /* low-mid xfer cnt */ in ql_pcmd()
311 outb(reqlen >> 8, qbase + 1); /* low-mid xfer cnt */ in ql_pcmd()
312 outb(reqlen >> 16, qbase + 0xe); /* high xfer cnt */ in ql_pcmd()