Lines Matching defs:atp_readb_io

92 static inline u8 atp_readb_io(struct atp_unit *atp, u8 channel, u8 reg)
133 j = atp_readb_io(dev, c, 0x1f);
144 cmdp = atp_readb_io(dev, c, 0x10);
147 if ((atp_readb_io(dev, c, 0x16) & 0x80) == 0)
148 atp_writeb_io(dev, c, 0x16, (atp_readb_io(dev, c, 0x16) | 0x80));
161 i = atp_readb_io(dev, c, 0x17);
166 target_id = atp_readb_io(dev, c, 0x15);
195 ((unsigned char *) &adrcnt)[2] = atp_readb_io(dev, c, 0x12);
196 ((unsigned char *) &adrcnt)[1] = atp_readb_io(dev, c, 0x13);
197 ((unsigned char *) &adrcnt)[0] = atp_readb_io(dev, c, 0x14);
214 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != 0x01)
250 ((unsigned char *) &adrcnt)[2] = atp_readb_io(dev, c, 0x12);
251 ((unsigned char *) &adrcnt)[1] = atp_readb_io(dev, c, 0x13);
252 ((unsigned char *) &adrcnt)[0] = atp_readb_io(dev, c, 0x14);
278 lun = atp_readb_io(dev, c, 0x1d) & 0x07;
288 ((unsigned char *) &adrcnt)[2] = atp_readb_io(dev, c, 0x12);
289 ((unsigned char *) &adrcnt)[1] = atp_readb_io(dev, c, 0x13);
290 ((unsigned char *) &adrcnt)[0] = atp_readb_io(dev, c, 0x14);
321 target_id = atp_readb_io(dev, c, 0x16);
349 printk("k %x, k[0] 0x%x k[1] 0x%x k[2] 0x%x\n", k, atp_readb_io(dev, c, 0x14), atp_readb_io(dev, c, 0x13), atp_readb_io(dev, c, 0x12));
390 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j)
466 workreq->result = atp_readb_io(dev, c, 0x0f);
499 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != 0x01)
554 atp_writeb_io(dev, c, 0x15, atp_readb_io(dev, c, 0x15) | 0x20);
656 printk("dev->ioport[c] = %x atp_readb_io(dev, c, 0x1c) = %x dev->in_int[%d] = %d dev->in_snd[%d] = %d\n",dev->ioport[c],atp_readb_io(dev, c, 0x1c),c,dev->in_int[c],c,dev->in_snd[c]);
658 if ((atp_readb_io(dev, c, 0x1c) == 0) && (dev->in_int[c] == 0) && (dev->in_snd[c] == 0)) {
732 if ((atp_readb_io(dev, c, 0x1f) & 0xb0) != 0 || atp_readb_io(dev, c, 0x1c) != 0) {
776 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j) {
829 atp_writeb_io(dev, c, 0x16, atp_readb_io(dev, c, 0x16) | 0x80);
833 if (atp_readb_io(dev, c, 0x1c) == 0) {
907 if (atp_readb_io(dev, c, 0x1c) == 0) {
919 if (atp_readb_io(dev, c, 0x1c) == 0) {
1031 while ((atp_readb_io(dev, 0, 0x1f) & 0x80) == 0x00)
1033 k = atp_readb_io(dev, 0, 0x17);
1061 while ((atp_readb_io(dev, 0, 0x1c) & 0x04) != 0)
1066 if ((atp_readb_io(dev, 0, 0x1c) & 0x80) != 0) /* bsy ? */
1070 if ((atp_readb_io(dev, 0, 0x1c) & 0x81) == 0x0081) {
1091 if ((atp_readb_io(dev, 0, 0x1c) & 0x80) == 0x00) { /* bsy ? */
1096 while ((atp_readb_io(dev, 0, 0x1f) & 0x80) == 0)
1098 atp_readb_io(dev, 0, 0x17);
1244 while ((atp_readb_io(atp, c, 0x1f) & 0x80) == 0)
1246 atp_readb_io(atp, c, 0x17);
1376 atp_readb_io(atpdev, 0, 0x1b);
1377 atp_readb_io(atpdev, 0, 0x17);
1461 atp_readb_io(atpdev, 0, 0x1b);
1462 atp_readb_io(atpdev, 0, 0x17);
1463 atp_readb_io(atpdev, 1, 0x1b);
1464 atp_readb_io(atpdev, 1, 0x17);
1478 atp_is(atpdev, 0, true, atp_readb_io(atpdev, 0, 0x1b) >> 7);
1481 atp_is(atpdev, 1, true, atp_readb_io(atpdev, 1, 0x1b) >> 7);
1599 printk(" r%2x=%2x", j, atp_readb_io(dev, c, j));
1601 printk(" r1c=%2x", atp_readb_io(dev, c, 0x1c));
1602 printk(" r1f=%2x in_snd=%2x ", atp_readb_io(dev, c, 0x1f), dev->in_snd[c]);
1760 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
1763 if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e)
1766 while (atp_readb_io(dev, c, 0x17) != 0x8e)
1780 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
1783 j = atp_readb_io(dev, c, 0x17);
1802 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
1805 if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e)
1808 while (atp_readb_io(dev, c, 0x17) != 0x8e)
1817 k = atp_readb_io(dev, c, 0x1f);
1819 mbuf[j++] = atp_readb_io(dev, c, 0x19);
1825 j = atp_readb_io(dev, c, 0x17);
1835 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
1838 if (atp_readb_io(dev, c, 0x17) != 0x16)
1881 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
1884 if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e)
1887 while (atp_readb_io(dev, c, 0x17) != 0x8e)
1895 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
1896 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0)
1901 while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00)
1904 j = atp_readb_io(dev, c, 0x17) & 0x0f;
1917 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
1918 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0)
1922 j = atp_readb_io(dev, c, 0x17) & 0x0f;
1938 j = atp_readb_io(dev, c, 0x1f);
1940 mbuf[k++] = atp_readb_io(dev, c, 0x19);
1946 j = atp_readb_io(dev, c, 0x17) & 0x0f;
1962 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00);
1964 j = atp_readb_io(dev, c, 0x17);
2005 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
2008 if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e)
2011 while (atp_readb_io(dev, c, 0x17) != 0x8e)
2019 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
2020 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0)
2025 while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00)
2028 j = atp_readb_io(dev, c, 0x17) & 0x0f;
2041 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
2042 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0)
2046 j = atp_readb_io(dev, c, 0x17) & 0x0f;
2062 j = atp_readb_io(dev, c, 0x1f);
2064 mbuf[k++] = atp_readb_io(dev, c, 0x19);
2070 j = atp_readb_io(dev, c, 0x17) & 0x0f;
2086 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
2089 j = atp_readb_io(dev, c, 0x17);
2148 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
2151 if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e)
2154 while (atp_readb_io(dev, c, 0x17) != 0x8e)
2162 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
2163 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0) {
2183 while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00)
2186 j = atp_readb_io(dev, c, 0x17) & 0x0f;
2199 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) {
2200 if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0x00)
2204 j = atp_readb_io(dev, c, 0x17);
2227 j = atp_readb_io(dev, c, 0x1f);
2229 mbuf[k++] = atp_readb_io(dev, c, 0x19);
2236 while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00);
2238 j = atp_readb_io(dev, c, 0x17);
2259 while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
2262 j = atp_readb_io(dev, c, 0x17);