Lines Matching refs:atp_readb_io

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