Lines Matching refs:inb
84 x = inb(qbase + 0xd); in ql_zap()
106 if (reqlen >= 128 && (inb(qbase + 8) & 2)) { /* full */ in ql_pdma()
112 if ((j = inb(qbase + 8)) & 4) in ql_pdma()
118 if (reqlen >= 44 && (inb(qbase + 8) & 8)) { /* 1/3 */ in ql_pdma()
131 while (reqlen && !((j = inb(qbase + 8)) & 0x10)) in ql_pdma()
133 *request++ = inb(qbase + 4); in ql_pdma()
137 j = inb(qbase + 8); in ql_pdma()
143 if (reqlen >= 128 && inb(qbase + 8) & 0x10) { /* empty */ in ql_pdma()
149 if (!((j = inb(qbase + 8)) & 8)) { in ql_pdma()
154 if (reqlen >= 40 && !(inb(qbase + 8) & 4)) { /* 2/3 */ in ql_pdma()
165 while (reqlen && !((j = inb(qbase + 8)) & 2)) in ql_pdma()
171 j = inb(qbase + 8); in ql_pdma()
175 return inb(qbase + 8) & 0xc0; in ql_pdma()
191 !((k = inb(qbase + 4)) & 0xe0)) { in ql_wai()
225 inb(qbase + 5); /* clear interrupts */ in ql_icmd()
226 if (inb(qbase + 5)) /* if still interrupting */ in ql_icmd()
228 else if (inb(qbase + 7) & 0x1f) in ql_icmd()
230 while (inb(qbase + 5)); /* clear ints */ in ql_icmd()
234 inb(qbase + 8); /* clear int bits */ in ql_icmd()
274 j = inb(qbase + 6); in ql_pcmd()
275 i = inb(qbase + 5); in ql_pcmd()
280 i |= inb(qbase + 5); /* the 0x10 bit can be set after the 0x08 */ in ql_pcmd()
296 j, i, inb(qbase + 7) & 0x1f); in ql_pcmd()
302 if (inb(qbase + 7) & 0x1f) /* if some bytes in fifo */ in ql_pcmd()
307 if (reqlen && !((phase = inb(qbase + 4)) & 6)) { /* data phase */ in ql_pcmd()
338 k = inb(qbase + 5); /* should be 0x10, bus service */ in ql_pcmd()
348 !(inb(qbase + 4) & 6)) in ql_pcmd()
358 while (inb(qbase + 5)) in ql_pcmd()
372 i = inb(qbase + 5); /* get chip irq stat */ in ql_pcmd()
373 j = inb(qbase + 7) & 0x1f; /* and bytes rec'd */ in ql_pcmd()
374 status = inb(qbase + 2); in ql_pcmd()
375 message = inb(qbase + 2); in ql_pcmd()
396 i = inb(qbase + 5); /* should be bus service */ in ql_pcmd()
400 i |= inb(qbase + 5); in ql_pcmd()
429 if (!(inb(qbase + 4) & 0x80)) /* false alarm? */ in ql_ihandl()
435 while (i-- && inb(qbase + 5)); /* maybe also ql_zap() */ in ql_ihandl()
559 return inb(qbase + 0xe) & 0xf8; in qlogicfas408_get_chip_type()
579 while (inb(qbase + 0xf) & 4) in qlogicfas408_setup()
593 return (((inb(qbase + 0xe) ^ inb(qbase + 0xe)) == 7) && in qlogicfas408_detect()
594 ((inb(qbase + 0xe) ^ inb(qbase + 0xe)) == 7)); in qlogicfas408_detect()