Lines Matching refs:j
122 unsigned char i, j, c, target_id, lun,cmdp; in atp870u_intr_handle() local
133 j = atp_readb_io(dev, c, 0x1f); in atp870u_intr_handle()
134 if ((j & 0x80) != 0) in atp870u_intr_handle()
138 if ((j & 0x80) == 0) in atp870u_intr_handle()
178 if ((j & 0x40) != 0) { in atp870u_intr_handle()
185 dev->r1f[c][target_id] |= j; in atp870u_intr_handle()
316 j = atp_readb_base(dev, 0x29) & 0xfe; in atp870u_intr_handle()
317 atp_writeb_base(dev, 0x29, j); in atp870u_intr_handle()
352 j = target_id; in atp870u_intr_handle()
354 j = (j & 0x07) | 0x40; in atp870u_intr_handle()
357 j |= dev->id[c][target_id].dirct; in atp870u_intr_handle()
358 atp_writeb_io(dev, c, 0x15, j); in atp870u_intr_handle()
380 j = 0; in atp870u_intr_handle()
387 j |= 0x01; in atp870u_intr_handle()
389 atp_writeb_io(dev, c, 0x1b, j); in atp870u_intr_handle()
390 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j) in atp870u_intr_handle()
391 atp_writeb_io(dev, c, 0x1b, j); in atp870u_intr_handle()
475 j = atp_readb_base(dev, 0x29) | 0x01; in atp870u_intr_handle()
476 atp_writeb_base(dev, 0x29, j); in atp870u_intr_handle()
685 unsigned char j, target_id; in DEF_SCSI_QCMD() local
718 j = dev->quhd[c]; in DEF_SCSI_QCMD()
724 dev->quhd[c] = j; in DEF_SCSI_QCMD()
751 j = atp_readb_base(dev, 0x29) & 0xfe; in DEF_SCSI_QCMD()
752 atp_writeb_base(dev, 0x29, j); in DEF_SCSI_QCMD()
764 j = 0; in DEF_SCSI_QCMD()
773 j |= 0x01; in DEF_SCSI_QCMD()
775 atp_writeb_io(dev, c, 0x1b, j); in DEF_SCSI_QCMD()
776 while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j) { in DEF_SCSI_QCMD()
777 atp_writeb_pci(dev, c, 0x1b, j); in DEF_SCSI_QCMD()
810 j = target_id; in DEF_SCSI_QCMD()
811 dev->id[c][j].last_len = l; in DEF_SCSI_QCMD()
812 dev->id[c][j].tran_len = 0; in DEF_SCSI_QCMD()
814 printk("dev->id[%2d][%2d].last_len = %d\n",c,j,dev->id[c][j].last_len); in DEF_SCSI_QCMD()
819 if ((j & 0x08) != 0) { in DEF_SCSI_QCMD()
820 j = (j & 0x07) | 0x40; in DEF_SCSI_QCMD()
826 atp_writeb_io(dev, c, 0x15, j | 0x20); in DEF_SCSI_QCMD()
828 atp_writeb_io(dev, c, 0x15, j); in DEF_SCSI_QCMD()
854 scsi_for_each_sg(workreq, sgpnt, sg_count, j) { in DEF_SCSI_QCMD()
887 j = atp_readb_pci(dev, c, 1) & 0xf3; in DEF_SCSI_QCMD()
890 j |= 0x0c; in DEF_SCSI_QCMD()
892 atp_writeb_pci(dev, c, 1, j); in DEF_SCSI_QCMD()
936 unsigned char j; in fun_scam() local
941 j = (unsigned char) (k >> 8); in fun_scam()
963 return j; in fun_scam()
969 unsigned char i, j, k; in tscam() local
994 j = 16; in tscam()
997 j = 8; in tscam()
1008 for (i = 0; i < j; i++) { in tscam()
1110 j = 0; in tscam()
1121 mbuf[j] <<= 0x01; in tscam()
1122 mbuf[j] &= 0xfe; in tscam()
1124 mbuf[j] |= 0x01; in tscam()
1128 j++; in tscam()
1136 j = mbuf[0]; in tscam()
1137 if ((j & 0x20) != 0) { /* bit5=1:ID up to 7 */ in tscam()
1140 if ((j & 0x06) != 0) { /* IDvalid? */ in tscam()
1191 int j, k; in atp870u_free_tables() local
1192 for (j=0; j < 2; j++) { in atp870u_free_tables()
1194 if (!atp_dev->id[j][k].prd_table) in atp870u_free_tables()
1196 …dma_free_coherent(&atp_dev->pdev->dev, 1024, atp_dev->id[j][k].prd_table, atp_dev->id[j][k].prd_bu… in atp870u_free_tables()
1197 atp_dev->id[j][k].prd_table = NULL; in atp870u_free_tables()
1587 unsigned char j, k, c; in atp870u_abort() local
1598 for (j = 0; j < 0x18; j++) { in atp870u_abort()
1599 printk(" r%2x=%2x", j, atp_readb_io(dev, c, j)); in atp870u_abort()
1605 for(j=0;j<16;j++) { in atp870u_abort()
1606 if (dev->id[c][j].curr_req != NULL) { in atp870u_abort()
1607 workrequ = dev->id[c][j].curr_req; in atp870u_abort()
1612 printk(" last_lenu= %x ",(unsigned int)dev->id[c][j].last_len); in atp870u_abort()
1714 unsigned char i, j, k, rmb, n; in atp_is() local
1753 j = i; in atp_is()
1754 if ((j & 0x08) != 0) { in atp_is()
1755 j = (j & 0x07) | 0x40; in atp_is()
1757 atp_writeb_io(dev, c, 0x15, j); in atp_is()
1783 j = atp_readb_io(dev, c, 0x17); in atp_is()
1784 if (j != 0x16) { in atp_is()
1815 j = 0; in atp_is()
1819 mbuf[j++] = atp_readb_io(dev, c, 0x19); in atp_is()
1825 j = atp_readb_io(dev, c, 0x17); in atp_is()
1826 if (j == 0x16) { in atp_is()
1891 j = 0; in atp_is()
1897 atp_writeb_io(dev, c, 0x19, u3[j++]); in atp_is()
1904 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
1905 if (j == 0x0f) { in atp_is()
1908 if (j == 0x0a) { in atp_is()
1911 if (j == 0x0e) { in atp_is()
1922 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
1923 if (j == 0x0f) { in atp_is()
1926 if (j == 0x0a) { in atp_is()
1929 if (j == 0x0e) { in atp_is()
1938 j = atp_readb_io(dev, c, 0x1f); in atp_is()
1939 if ((j & 0x01) != 0) { in atp_is()
1943 if ((j & 0x80) == 0x00) { in atp_is()
1946 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
1947 if (j == 0x0f) { in atp_is()
1950 if (j == 0x0a) { in atp_is()
1953 if (j == 0x0e) { in atp_is()
1964 j = atp_readb_io(dev, c, 0x17); in atp_is()
1965 if (j != 0x16) { in atp_is()
1966 if (j == 0x4e) { in atp_is()
2015 j = 0; in atp_is()
2021 atp_writeb_io(dev, c, 0x19, wide[j++]); in atp_is()
2028 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
2029 if (j == 0x0f) { in atp_is()
2032 if (j == 0x0a) { in atp_is()
2035 if (j == 0x0e) { in atp_is()
2046 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
2047 if (j == 0x0f) { in atp_is()
2050 if (j == 0x0a) { in atp_is()
2053 if (j == 0x0e) { in atp_is()
2062 j = atp_readb_io(dev, c, 0x1f); in atp_is()
2063 if ((j & 0x01) != 0) { in atp_is()
2067 if ((j & 0x80) == 0x00) { in atp_is()
2070 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
2071 if (j == 0x0f) { in atp_is()
2074 if (j == 0x0a) { in atp_is()
2077 if (j == 0x0e) { in atp_is()
2089 j = atp_readb_io(dev, c, 0x17); in atp_is()
2090 if (j != 0x16) { in atp_is()
2091 if (j == 0x4e) { in atp_is()
2130 j = 0; in atp_is()
2132 j |= 0x01; in atp_is()
2134 atp_writeb_io(dev, c, 0x1b, j); in atp_is()
2158 j = 0; in atp_is()
2167 atp_writeb_io(dev, c, 0x19, synuw[j++]); in atp_is()
2169 atp_writeb_io(dev, c, 0x19, synw[j++]); in atp_is()
2172 atp_writeb_io(dev, c, 0x19, synw_870[j++]); in atp_is()
2175 atp_writeb_io(dev, c, 0x19, synu[j++]); in atp_is()
2177 atp_writeb_io(dev, c, 0x19, synn[j++]); in atp_is()
2186 j = atp_readb_io(dev, c, 0x17) & 0x0f; in atp_is()
2187 if (j == 0x0f) { in atp_is()
2190 if (j == 0x0a) { in atp_is()
2193 if (j == 0x0e) { in atp_is()
2204 j = atp_readb_io(dev, c, 0x17); in atp_is()
2205 if (j == 0x85) { in atp_is()
2208 j &= 0x0f; in atp_is()
2209 if (j == 0x0f) { in atp_is()
2212 if (j == 0x0a) { in atp_is()
2215 if (j == 0x0e) { in atp_is()
2227 j = atp_readb_io(dev, c, 0x1f); in atp_is()
2228 if ((j & 0x01) != 0x00) { in atp_is()
2232 if ((j & 0x80) == 0x00) { in atp_is()
2238 j = atp_readb_io(dev, c, 0x17); in atp_is()
2239 if (j == 0x85) { in atp_is()
2242 j &= 0x0f; in atp_is()
2243 if (j == 0x0f) { in atp_is()
2246 if (j == 0x0a) { in atp_is()
2249 if (j == 0x0e) { in atp_is()
2262 j = atp_readb_io(dev, c, 0x17); in atp_is()
2263 if (j != 0x16) { in atp_is()
2290 j = 0xb0; in atp_is()
2294 j = 0xa0; in atp_is()
2298 j = 0x20; in atp_is()
2302 j = 0x40; in atp_is()
2306 j = 0x50; in atp_is()
2309 j = 0x60; in atp_is()
2311 dev->id[c][i].devsp = (dev->id[c][i].devsp & 0x0f) | j; in atp_is()