Lines Matching +full:4 +full:a

20 #define j44(a, b)	(((a >> 4) & 0x0f) + (b & 0xf0))  argument
21 #define j53(a, b) (((a >> 3) & 0x1f) + ((b << 4) & 0xe0)) argument
45 w0(0x60+r); w2(1); w0(val); w2(4); in epat_write_regr()
48 case 4: in epat_write_regr()
57 int a, b, r; in epat_read_regr() local
65 a = r1(); w2(4); b = r1(); in epat_read_regr()
66 return j44(a, b); in epat_read_regr()
68 w0(0x40+r); w2(1); w2(4); in epat_read_regr()
69 a = r1(); b = r2(); w0(0xff); in epat_read_regr()
70 return j53(a, b); in epat_read_regr()
73 a = r0(); w2(4); in epat_read_regr()
74 return a; in epat_read_regr()
76 case 4: in epat_read_regr()
78 w3(r); w2(0x24); a = r4(); w2(4); in epat_read_regr()
79 return a; in epat_read_regr()
87 int k, ph, a, b; in epat_read_block() local
97 w2(6 + ph); a = r1(); in epat_read_block()
98 if (a & 8) { in epat_read_block()
99 b = a; in epat_read_block()
101 w2(4+ph); b = r1(); in epat_read_block()
103 buf[k] = j44(a, b); in epat_read_block()
106 w0(0); w2(4); in epat_read_block()
115 w2(4 + ph); in epat_read_block()
116 a = r1(); b = r2(); in epat_read_block()
117 buf[k] = j53(a, b); in epat_read_block()
120 w0(0); w2(4); in epat_read_block()
133 w2(0x25); w2(4); in epat_read_block()
140 w2(4); w3(0xa0); w2(0x24); in epat_read_block()
142 w2(4); in epat_read_block()
145 case 4: in epat_read_block()
150 w2(4); w3(0xa0); w2(0x24); in epat_read_block()
152 w2(4); in epat_read_block()
157 for (k = 0; k < count / 4 - 1; k++) in epat_read_block()
159 for (k = count - 4; k < count - 1; k++) in epat_read_block()
161 w2(4); w3(0xa0); w2(0x24); in epat_read_block()
163 w2(4); in epat_read_block()
180 w2(4 + ph); in epat_write_block()
183 w2(7); w2(4); in epat_write_block()
189 w2(4); in epat_write_block()
191 case 4: in epat_write_block()
195 w2(4); in epat_write_block()
199 for (k = 0; k < count / 4; k++) in epat_write_block()
201 w2(4); in epat_write_block()
216 /* FIXME: the CPP stuff should be fixed to handle multiple EPATs on a chain */
220 w2(4); w0(0x22); w0(0xaa); \
223 w2(4); w2(5); w2(4); w0(0xff); \
236 w0(0); w2(1); w2(4); in epat_connect()
241 WR(0xf, 4); in epat_connect()
242 /* WR(0xe,0xa);WR(0xf,4); */ in epat_connect()
250 w0(0); w2(1); w2(4); /* Idle into SPP */ in epat_connect()
252 w0(0); w2(1); w2(4); w2(0xc); in epat_connect()
254 w0(0x40); w2(6); w2(7); w2(4); w2(0xc); w2(4); in epat_connect()
318 { "4-bit", "5/3", "8-bit", "EPP-8", "EPP-16", "EPP-32" }; in epat_log_adapter()