Lines Matching refs:atp_readb_io

93 static inline u8 atp_readb_io(struct atp_unit *atp, u8 channel, u8 reg)  in atp_readb_io()  function
134 j = atp_readb_io(dev, c, 0x1f); in atp870u_intr_handle()
145 cmdp = atp_readb_io(dev, c, 0x10); in atp870u_intr_handle()
148 if ((atp_readb_io(dev, c, 0x16) & 0x80) == 0) in atp870u_intr_handle()
150 (atp_readb_io(dev, c, 0x16) | 0x80)); in atp870u_intr_handle()
163 i = atp_readb_io(dev, c, 0x17); in atp870u_intr_handle()
168 target_id = atp_readb_io(dev, c, 0x15); in atp870u_intr_handle()
198 atp_readb_io(dev, c, 0x12); in atp870u_intr_handle()
200 atp_readb_io(dev, c, 0x13); in atp870u_intr_handle()
202 atp_readb_io(dev, c, 0x14); in atp870u_intr_handle()
222 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != 0x01) in atp870u_intr_handle()
260 atp_readb_io(dev, c, 0x12); in atp870u_intr_handle()
262 atp_readb_io(dev, c, 0x13); in atp870u_intr_handle()
264 atp_readb_io(dev, c, 0x14); in atp870u_intr_handle()
289 lun = atp_readb_io(dev, c, 0x1d) & 0x07; in atp870u_intr_handle()
300 atp_readb_io(dev, c, 0x12); in atp870u_intr_handle()
302 atp_readb_io(dev, c, 0x13); in atp870u_intr_handle()
304 atp_readb_io(dev, c, 0x14); in atp870u_intr_handle()
335 target_id = atp_readb_io(dev, c, 0x16); in atp870u_intr_handle()
364 atp_readb_io(dev, c, 0x14), in atp870u_intr_handle()
365 atp_readb_io(dev, c, 0x13), in atp870u_intr_handle()
366 atp_readb_io(dev, c, 0x12)); in atp870u_intr_handle()
420 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j) in atp870u_intr_handle()
497 workreq->result = atp_readb_io(dev, c, 0x0f); in atp870u_intr_handle()
530 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != 0x01) in atp870u_intr_handle()
593 atp_readb_io(dev, c, 0x15) | 0x20); in atp870u_intr_handle()
683 dev->ioport[c], atp_readb_io(dev, c, 0x1c), c, in atp870u_queuecommand_lck()
686 if ((atp_readb_io(dev, c, 0x1c) == 0) && in atp870u_queuecommand_lck()
761 if ((atp_readb_io(dev, c, 0x1f) & 0xb0) != 0 || in DEF_SCSI_QCMD()
762 atp_readb_io(dev, c, 0x1c) != 0) { in DEF_SCSI_QCMD()
806 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j) { in DEF_SCSI_QCMD()
860 atp_writeb_io(dev, c, 0x16, atp_readb_io(dev, c, 0x16) | 0x80); in DEF_SCSI_QCMD()
864 if (atp_readb_io(dev, c, 0x1c) == 0) { in DEF_SCSI_QCMD()
955 if (atp_readb_io(dev, c, 0x1c) == 0) { in DEF_SCSI_QCMD()
967 if (atp_readb_io(dev, c, 0x1c) == 0) { in DEF_SCSI_QCMD()
1079 while ((atp_readb_io(dev, 0, 0x1f) & 0x80) == 0x00) in tscam()
1081 k = atp_readb_io(dev, 0, 0x17); in tscam()
1109 while ((atp_readb_io(dev, 0, 0x1c) & 0x04) != 0) in tscam()
1114 if ((atp_readb_io(dev, 0, 0x1c) & 0x80) != 0) /* bsy ? */ in tscam()
1118 if ((atp_readb_io(dev, 0, 0x1c) & 0x81) == 0x0081) { in tscam()
1139 if ((atp_readb_io(dev, 0, 0x1c) & 0x80) == 0x00) { /* bsy ? */ in tscam()
1144 while ((atp_readb_io(dev, 0, 0x1f) & 0x80) == 0) in tscam()
1146 atp_readb_io(dev, 0, 0x17); in tscam()
1297 while ((atp_readb_io(atp, c, 0x1f) & 0x80) == 0) in atp_set_host_id()
1299 atp_readb_io(atp, c, 0x17); in atp_set_host_id()
1431 atp_readb_io(atpdev, 0, 0x1b); in atp880_init()
1432 atp_readb_io(atpdev, 0, 0x17); in atp880_init()
1519 atp_readb_io(atpdev, 0, 0x1b); in atp885_init()
1520 atp_readb_io(atpdev, 0, 0x17); in atp885_init()
1521 atp_readb_io(atpdev, 1, 0x1b); in atp885_init()
1522 atp_readb_io(atpdev, 1, 0x17); in atp885_init()
1536 atp_is(atpdev, 0, true, atp_readb_io(atpdev, 0, 0x1b) >> 7); in atp885_init()
1539 atp_is(atpdev, 1, true, atp_readb_io(atpdev, 1, 0x1b) >> 7); in atp885_init()
1657 printk(" r%2x=%2x", j, atp_readb_io(dev, c, j)); in atp870u_abort()
1659 printk(" r1c=%2x", atp_readb_io(dev, c, 0x1c)); in atp870u_abort()
1660 printk(" r1f=%2x in_snd=%2x ", atp_readb_io(dev, c, 0x1f), dev->in_snd[c]); in atp870u_abort()
1818 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) in atp_is()
1821 if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
1824 while (atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
1838 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) in atp_is()
1841 j = atp_readb_io(dev, c, 0x17); in atp_is()
1860 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) in atp_is()
1863 if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
1866 while (atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
1875 k = atp_readb_io(dev, c, 0x1f); in atp_is()
1877 mbuf[j++] = atp_readb_io(dev, c, 0x19); in atp_is()
1883 j = atp_readb_io(dev, c, 0x17); in atp_is()
1893 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) in atp_is()
1896 if (atp_readb_io(dev, c, 0x17) != 0x16) in atp_is()
1939 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) in atp_is()
1942 if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
1945 while (atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
1953 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) { in atp_is()
1954 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0) in atp_is()
1959 while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00) in atp_is()
1962 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
1975 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) { in atp_is()
1976 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0) in atp_is()
1980 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
1996 j = atp_readb_io(dev, c, 0x1f); in atp_is()
1998 mbuf[k++] = atp_readb_io(dev, c, 0x19); in atp_is()
2004 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
2020 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00); in atp_is()
2022 j = atp_readb_io(dev, c, 0x17); in atp_is()
2064 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) in atp_is()
2067 if (atp_readb_io(dev, c, 0x17) != 0x11 && in atp_is()
2068 atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
2071 while (atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
2079 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) { in atp_is()
2080 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0) in atp_is()
2085 while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00) in atp_is()
2088 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
2101 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) { in atp_is()
2102 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0) in atp_is()
2106 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
2122 j = atp_readb_io(dev, c, 0x1f); in atp_is()
2124 mbuf[k++] = atp_readb_io(dev, c, 0x19); in atp_is()
2130 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
2146 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) in atp_is()
2149 j = atp_readb_io(dev, c, 0x17); in atp_is()
2210 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) in atp_is()
2213 if (atp_readb_io(dev, c, 0x17) != 0x11 && in atp_is()
2214 atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
2217 while (atp_readb_io(dev, c, 0x17) != 0x8e) in atp_is()
2225 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) { in atp_is()
2226 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0) { in atp_is()
2246 while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00) in atp_is()
2249 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
2262 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) { in atp_is()
2263 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0x00) in atp_is()
2267 j = atp_readb_io(dev, c, 0x17); in atp_is()
2290 j = atp_readb_io(dev, c, 0x1f); in atp_is()
2292 mbuf[k++] = atp_readb_io(dev, c, 0x19); in atp_is()
2299 while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00); in atp_is()
2301 j = atp_readb_io(dev, c, 0x17); in atp_is()
2322 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) in atp_is()
2325 j = atp_readb_io(dev, c, 0x17); in atp_is()