Lines Matching +full:4 +full:k
36 4 16-bit EPP
40 #define j44(a,b) (((a>>4)&0x0f)+(b&0xf0))
41 #define j53(a,b) (((a>>3)&0x1f)+((b<<4)&0xe0))
59 a = r1(); w2(1); b = r1(); w2(4); in epia_read_regr()
65 a = r1(); b = r2(); w2(4); in epia_read_regr()
70 a = r0(); w2(4); in epia_read_regr()
74 case 4: in epia_read_regr()
75 case 5: w3(regr); w2(0x24); a = r4(); w2(4); in epia_read_regr()
93 w0(r); w2(1); w0(val); w2(3); w2(4); in epia_write_regr()
97 case 4: in epia_write_regr()
99 w3(r); w4(val); w2(4); in epia_write_regr()
118 w2(4); w0(0xa0); w0(0x50); w0(0xc0); w0(0x30); w0(0xa0); w0(0); in epia_connect()
119 w2(1); w2(4); in epia_connect()
121 w0(0xa); w2(1); w2(4); w0(0x82); w2(4); w2(0xc); w2(4); in epia_connect()
122 w2(0x24); w2(0x26); w2(4); in epia_connect()
131 w2(1); w2(4); in epia_disconnect()
138 { int k, ph, a, b; in epia_read_block() local
144 for (k=0;k<count;k++) { in epia_read_block()
146 w2(4+ph); b = r1(); in epia_read_block()
147 buf[k] = j44(a,b); in epia_read_block()
150 w0(0); w2(4); in epia_read_block()
156 for (k=0;k<count;k++) { in epia_read_block()
157 w2(4+ph); in epia_read_block()
159 buf[k] = j53(a,b); in epia_read_block()
162 w0(0); w2(4); in epia_read_block()
167 for (k=0;k<count;k++) { in epia_read_block()
169 buf[k] = r0(); in epia_read_block()
172 w2(6); w2(4); in epia_read_block()
177 for (k=0;k<count;k++) buf[k] = r4(); in epia_read_block()
178 w2(4); WR(0x84,0); in epia_read_block()
181 case 4: if (count > 512) WR(0x84,3); in epia_read_block()
183 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in epia_read_block()
184 w2(4); WR(0x84,0); in epia_read_block()
189 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in epia_read_block()
190 w2(4); WR(0x84,0); in epia_read_block()
198 { int ph, k, last, d; in epia_write_block() local
206 for (k=0;k<count;k++) { in epia_write_block()
207 d = buf[k]; in epia_write_block()
209 w2(4+ph); in epia_write_block()
212 w2(7); w2(4); in epia_write_block()
217 for (k=0;k<count;k++) w4(buf[k]); in epia_write_block()
221 case 4: if (count < 512) WR(0x84,1); in epia_write_block()
223 for (k=0;k<count/2;k++) w4w(((u16 *)buf)[k]); in epia_write_block()
229 for (k=0;k<count/4;k++) w4l(((u32 *)buf)[k]); in epia_write_block()
239 { int j, k, f; in epia_test_proto() local
245 for (k=0;k<256;k++) { in epia_test_proto()
246 WR(2,k^0xaa); in epia_test_proto()
247 WR(3,k^0x55); in epia_test_proto()
248 if (RR(2) != (k^0xaa)) e[j]++; in epia_test_proto()
258 for (k=0;k<256;k++) { in epia_test_proto()
259 if ((scratch[2*k] & 0xff) != ((k+1) & 0xff)) f++; in epia_test_proto()
260 if ((scratch[2*k+1] & 0xff) != ((-2-k) & 0xff)) f++; in epia_test_proto()
277 { char *mode_string[6] = {"4-bit","5/3","8-bit", in epia_log_adapter()