Lines Matching defs:atp_writeb_io

57 static inline void atp_writeb_io(struct atp_unit *atp, u8 channel, u8 reg, u8 val)
148 atp_writeb_io(dev, c, 0x16, (atp_readb_io(dev, c, 0x16) | 0x80));
213 atp_writeb_io(dev, c, 0x1b, 0x01);
215 atp_writeb_io(dev, c, 0x1b, 0x01);
257 atp_writeb_io(dev, c, 0x10, 0x41);
258 atp_writeb_io(dev, c, 0x18, 0x08);
295 atp_writeb_io(dev, c, 0x18, 0x08);
302 atp_writeb_io(dev, c, 0x10, 0x46);
304 atp_writeb_io(dev, c, 0x12, 0x00);
305 atp_writeb_io(dev, c, 0x13, 0x00);
306 atp_writeb_io(dev, c, 0x14, 0x00);
307 atp_writeb_io(dev, c, 0x18, 0x08);
319 atp_writeb_io(dev, c, 0x10, 0x45);
331 atp_writeb_io(dev, c, 0x10, 0x45);
340 atp_writeb_io(dev, c, 0x0f, lun);
341 atp_writeb_io(dev, c, 0x11, dev->id[c][target_id].devsp);
345 atp_writeb_io(dev, c, 0x12, ((unsigned char *) &k)[2]);
346 atp_writeb_io(dev, c, 0x13, ((unsigned char *) &k)[1]);
347 atp_writeb_io(dev, c, 0x14, ((unsigned char *) &k)[0]);
358 atp_writeb_io(dev, c, 0x15, j);
359 atp_writeb_io(dev, c, 0x16, 0x80);
389 atp_writeb_io(dev, c, 0x1b, j);
391 atp_writeb_io(dev, c, 0x1b, j);
393 atp_writeb_io(dev, c, 0x18, 0x08);
438 atp_writeb_io(dev, c, 0x18, 0x08);
446 atp_writeb_io(dev, c, 0x18, 0x08);
498 atp_writeb_io(dev, c, 0x1b, 0x01);
500 atp_writeb_io(dev, c, 0x1b, 0x01);
528 atp_writeb_io(dev, c, 0x10, 0x41);
531 atp_writeb_io(dev, c, 0x12, ((unsigned char *) (&k))[2]);
532 atp_writeb_io(dev, c, 0x13, ((unsigned char *) (&k))[1]);
533 atp_writeb_io(dev, c, 0x14, ((unsigned char *) (&k))[0]);
538 atp_writeb_io(dev, c, 0x18, 0x08);
547 atp_writeb_io(dev, c, 0x10, 0x41);
550 atp_writeb_io(dev, c, 0x12, ((unsigned char *) (&k))[2]);
551 atp_writeb_io(dev, c, 0x13, ((unsigned char *) (&k))[1]);
552 atp_writeb_io(dev, c, 0x14, ((unsigned char *) (&k))[0]);
554 atp_writeb_io(dev, c, 0x15, atp_readb_io(dev, c, 0x15) | 0x20);
556 atp_writeb_io(dev, c, 0x18, 0x08);
562 atp_writeb_io(dev, c, 0x10, 0x30);
564 atp_writeb_io(dev, c, 0x10, 0x46);
566 atp_writeb_io(dev, c, 0x12, 0x00);
567 atp_writeb_io(dev, c, 0x13, 0x00);
568 atp_writeb_io(dev, c, 0x14, 0x00);
569 atp_writeb_io(dev, c, 0x18, 0x08);
775 atp_writeb_io(dev, c, 0x1b, j);
786 atp_writeb_io(dev, c, 0x00, workreq->cmd_len);
787 atp_writeb_io(dev, c, 0x01, 0x2c);
789 atp_writeb_io(dev, c, 0x02, 0x7f);
791 atp_writeb_io(dev, c, 0x02, 0xcf);
793 atp_writeb_io(dev, c, 0x03 + i, workreq->cmnd[i]);
794 atp_writeb_io(dev, c, 0x0f, workreq->device->lun);
798 atp_writeb_io(dev, c, 0x11, dev->id[c][target_id].devsp);
807 atp_writeb_io(dev, c, 0x12, ((unsigned char *) (&l))[2]);
808 atp_writeb_io(dev, c, 0x13, ((unsigned char *) (&l))[1]);
809 atp_writeb_io(dev, c, 0x14, ((unsigned char *) (&l))[0]);
826 atp_writeb_io(dev, c, 0x15, j | 0x20);
828 atp_writeb_io(dev, c, 0x15, j);
829 atp_writeb_io(dev, c, 0x16, atp_readb_io(dev, c, 0x16) | 0x80);
830 atp_writeb_io(dev, c, 0x16, 0x80);
837 atp_writeb_io(dev, c, 0x18, 0x08);
908 atp_writeb_io(dev, c, 0x18, 0x08);
920 atp_writeb_io(dev, c, 0x18, 0x08);
985 atp_writeb_io(dev, 0, 1, 0x08);
986 atp_writeb_io(dev, 0, 2, 0x7f);
987 atp_writeb_io(dev, 0, 0x11, 0x20);
1000 atp_writeb_io(dev, 0, 0x02, 0x02); /* 2*2=4ms,3EH 2/32*3E=3.9ms */
1001 atp_writeb_io(dev, 0, 0x03, 0);
1002 atp_writeb_io(dev, 0, 0x04, 0);
1003 atp_writeb_io(dev, 0, 0x05, 0);
1004 atp_writeb_io(dev, 0, 0x06, 0);
1005 atp_writeb_io(dev, 0, 0x07, 0);
1006 atp_writeb_io(dev, 0, 0x08, 0);
1014 atp_writeb_io(dev, 0, 0x0f, 0);
1015 atp_writeb_io(dev, 0, 0x12, 0);
1016 atp_writeb_io(dev, 0, 0x13, 0);
1017 atp_writeb_io(dev, 0, 0x14, 0);
1023 atp_writeb_io(dev, 0, 0x15, k);
1025 atp_writeb_io(dev, 0, 0x1b, 0x01);
1027 atp_writeb_io(dev, 0, 0x1b, 0x00);
1029 atp_writeb_io(dev, 0, 0x18, 0x09);
1037 atp_writeb_io(dev, 0, 0x10, 0x41);
1044 atp_writeb_io(dev, 0, 0x02, 0x7f);
1045 atp_writeb_io(dev, 0, 0x1b, 0x02);
1093 atp_writeb_io(dev, 0, 0x1b, 0);
1094 atp_writeb_io(dev, 0, 0x15, 0);
1095 atp_writeb_io(dev, 0, 0x18, 0x09);
1242 atp_writeb_io(atp, c, 0, host_id | 0x08);
1243 atp_writeb_io(atp, c, 0x18, 0);
1247 atp_writeb_io(atp, c, 1, 8);
1248 atp_writeb_io(atp, c, 2, 0x7f);
1249 atp_writeb_io(atp, c, 0x11, 0x20);
1479 atp_writeb_io(atpdev, 0, 0x16, 0x80);
1482 atp_writeb_io(atpdev, 1, 0x16, 0x80);
1739 atp_writeb_io(dev, c, 0x1b, wide_chip ? 0x01 : 0x00);
1740 atp_writeb_io(dev, c, 1, 0x08);
1741 atp_writeb_io(dev, c, 2, 0x7f);
1742 atp_writeb_io(dev, c, 3, satn[0]);
1743 atp_writeb_io(dev, c, 4, satn[1]);
1744 atp_writeb_io(dev, c, 5, satn[2]);
1745 atp_writeb_io(dev, c, 6, satn[3]);
1746 atp_writeb_io(dev, c, 7, satn[4]);
1747 atp_writeb_io(dev, c, 8, satn[5]);
1748 atp_writeb_io(dev, c, 0x0f, 0);
1749 atp_writeb_io(dev, c, 0x11, dev->id[c][i].devsp);
1750 atp_writeb_io(dev, c, 0x12, 0);
1751 atp_writeb_io(dev, c, 0x13, satn[6]);
1752 atp_writeb_io(dev, c, 0x14, satn[7]);
1757 atp_writeb_io(dev, c, 0x15, j);
1758 atp_writeb_io(dev, c, 0x18, satn[8]);
1771 atp_writeb_io(dev, c, 0x10, 0x30);
1773 atp_writeb_io(dev, c, 0x14, 0x00);
1775 atp_writeb_io(dev, c, 0x04, 0x00);
1778 atp_writeb_io(dev, c, 0x18, 0x08);
1785 atp_writeb_io(dev, c, 0x10, 0x41);
1789 atp_writeb_io(dev, c, 3, inqd[0]);
1790 atp_writeb_io(dev, c, 4, inqd[1]);
1791 atp_writeb_io(dev, c, 5, inqd[2]);
1792 atp_writeb_io(dev, c, 6, inqd[3]);
1793 atp_writeb_io(dev, c, 7, inqd[4]);
1794 atp_writeb_io(dev, c, 8, inqd[5]);
1795 atp_writeb_io(dev, c, 0x0f, 0);
1796 atp_writeb_io(dev, c, 0x11, dev->id[c][i].devsp);
1797 atp_writeb_io(dev, c, 0x12, 0);
1798 atp_writeb_io(dev, c, 0x13, inqd[6]);
1799 atp_writeb_io(dev, c, 0x14, inqd[7]);
1800 atp_writeb_io(dev, c, 0x18, inqd[8]);
1812 atp_writeb_io(dev, c, 0x1b, 0x00);
1814 atp_writeb_io(dev, c, 0x18, 0x08);
1829 atp_writeb_io(dev, c, 0x10, 0x46);
1830 atp_writeb_io(dev, c, 0x12, 0);
1831 atp_writeb_io(dev, c, 0x13, 0);
1832 atp_writeb_io(dev, c, 0x14, 0);
1833 atp_writeb_io(dev, c, 0x18, 0x08);
1867 atp_writeb_io(dev, c, 0x1b, 0x01);
1868 atp_writeb_io(dev, c, 3, satn[0]);
1869 atp_writeb_io(dev, c, 4, satn[1]);
1870 atp_writeb_io(dev, c, 5, satn[2]);
1871 atp_writeb_io(dev, c, 6, satn[3]);
1872 atp_writeb_io(dev, c, 7, satn[4]);
1873 atp_writeb_io(dev, c, 8, satn[5]);
1874 atp_writeb_io(dev, c, 0x0f, 0);
1875 atp_writeb_io(dev, c, 0x11, dev->id[c][i].devsp);
1876 atp_writeb_io(dev, c, 0x12, 0);
1877 atp_writeb_io(dev, c, 0x13, satn[6]);
1878 atp_writeb_io(dev, c, 0x14, satn[7]);
1879 atp_writeb_io(dev, c, 0x18, satn[8]);
1892 atp_writeb_io(dev, c, 0x14, 0x09);
1893 atp_writeb_io(dev, c, 0x18, 0x20);
1897 atp_writeb_io(dev, c, 0x19, u3[j++]);
1916 atp_writeb_io(dev, c, 0x18, 0x20);
1919 atp_writeb_io(dev, c, 0x19, 0);
1934 atp_writeb_io(dev, c, 0x14, 0x09);
1935 atp_writeb_io(dev, c, 0x18, 0x20);
1958 atp_writeb_io(dev, c, 0x10, 0x30);
1959 atp_writeb_io(dev, c, 0x14, 0x00);
1960 atp_writeb_io(dev, c, 0x18, 0x08);
1991 atp_writeb_io(dev, c, 0x1b, 0x01);
1992 atp_writeb_io(dev, c, 3, satn[0]);
1993 atp_writeb_io(dev, c, 4, satn[1]);
1994 atp_writeb_io(dev, c, 5, satn[2]);
1995 atp_writeb_io(dev, c, 6, satn[3]);
1996 atp_writeb_io(dev, c, 7, satn[4]);
1997 atp_writeb_io(dev, c, 8, satn[5]);
1998 atp_writeb_io(dev, c, 0x0f, 0);
1999 atp_writeb_io(dev, c, 0x11, dev->id[c][i].devsp);
2000 atp_writeb_io(dev, c, 0x12, 0);
2001 atp_writeb_io(dev, c, 0x13, satn[6]);
2002 atp_writeb_io(dev, c, 0x14, satn[7]);
2003 atp_writeb_io(dev, c, 0x18, satn[8]);
2016 atp_writeb_io(dev, c, 0x14, 0x05);
2017 atp_writeb_io(dev, c, 0x18, 0x20);
2021 atp_writeb_io(dev, c, 0x19, wide[j++]);
2040 atp_writeb_io(dev, c, 0x18, 0x20);
2043 atp_writeb_io(dev, c, 0x19, 0);
2058 atp_writeb_io(dev, c, 0x14, 0xff);
2059 atp_writeb_io(dev, c, 0x18, 0x20);
2082 atp_writeb_io(dev, c, 0x10, 0x30);
2083 atp_writeb_io(dev, c, 0x14, 0x00);
2084 atp_writeb_io(dev, c, 0x18, 0x08);
2134 atp_writeb_io(dev, c, 0x1b, j);
2135 atp_writeb_io(dev, c, 3, satn[0]);
2136 atp_writeb_io(dev, c, 4, satn[1]);
2137 atp_writeb_io(dev, c, 5, satn[2]);
2138 atp_writeb_io(dev, c, 6, satn[3]);
2139 atp_writeb_io(dev, c, 7, satn[4]);
2140 atp_writeb_io(dev, c, 8, satn[5]);
2141 atp_writeb_io(dev, c, 0x0f, 0);
2142 atp_writeb_io(dev, c, 0x11, dev->id[c][i].devsp);
2143 atp_writeb_io(dev, c, 0x12, 0);
2144 atp_writeb_io(dev, c, 0x13, satn[6]);
2145 atp_writeb_io(dev, c, 0x14, satn[7]);
2146 atp_writeb_io(dev, c, 0x18, satn[8]);
2159 atp_writeb_io(dev, c, 0x14, 0x06);
2160 atp_writeb_io(dev, c, 0x18, 0x20);
2167 atp_writeb_io(dev, c, 0x19, synuw[j++]);
2169 atp_writeb_io(dev, c, 0x19, synw[j++]);
2172 atp_writeb_io(dev, c, 0x19, synw_870[j++]);
2175 atp_writeb_io(dev, c, 0x19, synu[j++]);
2177 atp_writeb_io(dev, c, 0x19, synn[j++]);
2198 atp_writeb_io(dev, c, 0x18, 0x20);
2201 atp_writeb_io(dev, c, 0x19, 0x00);
2221 atp_writeb_io(dev, c, 0x14, 0x06);
2223 atp_writeb_io(dev, c, 0x14, 0xff);
2224 atp_writeb_io(dev, c, 0x18, 0x20);
2254 atp_writeb_io(dev, c, 0x10, 0x30);
2256 atp_writeb_io(dev, c, 0x14, 0x00);
2257 atp_writeb_io(dev, c, 0x18, 0x08);