Lines Matching +full:2 +full:k
21 * 2 8-bit EPP mode
47 r = (regr << 2) + 1 + cont; in on26_read_regr()
60 case 2: in on26_read_regr()
74 int r = (regr << 2) + 1 + cont; in on26_write_regr()
82 case 2: in on26_write_regr()
113 w0(2); P1; w0(8); P2; in on26_connect()
114 w0(2); P1; w0(x); P2; in on26_connect()
119 if (pi->mode >= 2) { in on26_disconnect()
156 w0(2); P1; w0(0); P2; in on26_test_port()
158 w0(2); P1; w0(8); P2; udelay(100); in on26_test_port()
159 w0(2); P1; w0(0xa); P2; udelay(100); in on26_test_port()
160 w0(2); P1; w0(8); P2; udelay(1000); in on26_test_port()
193 int k, a, b; in on26_read_block() local
197 w0(1); P1; w0(1); P2; w0(2); P1; w0(0x18); P2; w0(0); P1; in on26_read_block()
199 for (k = 0; k < count; k++) { in on26_read_block()
202 buf[k] = j44(a, b); in on26_read_block()
204 w0(2); P1; w0(8); P2; in on26_read_block()
207 w0(1); P1; w0(1); P2; w0(2); P1; w0(0x19); P2; w0(0); P1; in on26_read_block()
209 for (k = 0; k < count / 2; k++) { in on26_read_block()
210 w2(0x26); buf[2 * k] = r0(); in on26_read_block()
211 w2(0x24); buf[2 * k + 1] = r0(); in on26_read_block()
213 w0(2); P1; w0(9); P2; in on26_read_block()
215 case 2: in on26_read_block()
219 for (k = 0; k < count; k++) in on26_read_block()
220 buf[k] = r4(); in on26_read_block()
227 for (k = 0; k < count / 2; k++) in on26_read_block()
228 ((u16 *)buf)[k] = r4w(); in on26_read_block()
235 for (k = 0; k < count / 4; k++) in on26_read_block()
236 ((u32 *)buf)[k] = r4l(); in on26_read_block()
244 int k; in on26_write_block() local
250 w0(2); P1; w0(0x18 + pi->mode); P2; w0(0); P1; in on26_write_block()
252 for (k = 0; k < count / 2; k++) { in on26_write_block()
253 w2(5); w0(buf[2 * k]); in on26_write_block()
254 w2(7); w0(buf[2 * k + 1]); in on26_write_block()
257 w0(2); P1; w0(8 + pi->mode); P2; in on26_write_block()
259 case 2: in on26_write_block()
263 for (k = 0; k < count; k++) in on26_write_block()
264 w4(buf[k]); in on26_write_block()
271 for (k = 0; k < count / 2; k++) in on26_write_block()
272 w4w(((u16 *)buf)[k]); in on26_write_block()
279 for (k = 0; k < count / 4; k++) in on26_write_block()
280 w4l(((u32 *)buf)[k]); in on26_write_block()
299 .epp_first = 2,