Lines Matching +full:4 +full:k

38 #define cec4		w2(0xc);w2(0xe);w2(0xe);w2(0xc);w2(4);w2(4);w2(4);
39 #define j44(l,h) (((l>>4)&0x0f)|(h&0xf0))
53 w2(4); in frpw_read_regr()
56 w2(4); h = r1(); in frpw_read_regr()
57 w2(4); in frpw_read_regr()
69 w2(4); w0(r); cec4; in frpw_write_regr()
71 w2(5);w2(7);w2(5);w2(4); in frpw_write_regr()
76 { int h, l, k, ph; in frpw_read_block_int() local
80 case 0: w2(4); w0(regr); cec4; in frpw_read_block_int()
81 for (k=0;k<count;k++) { in frpw_read_block_int()
83 w2(4); h = r1(); in frpw_read_block_int()
84 buf[k] = j44(l,h); in frpw_read_block_int()
86 w2(4); in frpw_read_block_int()
90 w2(4); w0(regr + 0xc0); cec4; in frpw_read_block_int()
92 for (k=0;k<count;k++) { in frpw_read_block_int()
94 buf[k] = r0(); in frpw_read_block_int()
97 w2(0xac); w2(0xa4); w2(4); in frpw_read_block_int()
100 case 2: w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
101 for (k=0;k<count;k++) buf[k] = r4(); in frpw_read_block_int()
103 w2(4); in frpw_read_block_int()
106 case 3: w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
107 for (k=0;k<count-2;k++) buf[k] = r4(); in frpw_read_block_int()
111 w2(4); in frpw_read_block_int()
114 case 4: w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
115 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in frpw_read_block_int()
119 w2(4); in frpw_read_block_int()
122 case 5: w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
123 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in frpw_read_block_int()
124 buf[count-4] = r4(); in frpw_read_block_int()
129 w2(4); in frpw_read_block_int()
142 { int k; in frpw_write_block() local
148 case 2: w2(4); w0(8); cec4; w2(5); in frpw_write_block()
149 for (k=0;k<count;k++) { in frpw_write_block()
150 w0(buf[k]); in frpw_write_block()
153 w2(4); in frpw_write_block()
156 case 3: w2(4); w0(0xc8); cec4; w2(5); in frpw_write_block()
157 for (k=0;k<count;k++) w4(buf[k]); in frpw_write_block()
158 w2(4); in frpw_write_block()
161 case 4: w2(4); w0(0xc8); cec4; w2(5); in frpw_write_block()
162 for (k=0;k<count/2;k++) w4w(((u16 *)buf)[k]); in frpw_write_block()
163 w2(4); in frpw_write_block()
166 case 5: w2(4); w0(0xc8); cec4; w2(5); in frpw_write_block()
167 for (k=0;k<count/4;k++) w4l(((u32 *)buf)[k]); in frpw_write_block()
168 w2(4); in frpw_write_block()
177 w2(4); in frpw_connect()
182 { w2(4); w0(0x20); cec4; in frpw_disconnect()
208 w2(4); w0(4); w2(6); w2(7); in frpw_test_pnp()
209 a = r1() & 0xff; w2(4); b = r1() & 0xff; in frpw_test_pnp()
210 w2(0xc); w2(0xe); w2(4); in frpw_test_pnp()
226 { int j, k, r; in frpw_test_proto() local
249 for (k=0;k<256;k++) { in frpw_test_proto()
250 frpw_write_regr(pi,0,2,k^0xaa); in frpw_test_proto()
251 frpw_write_regr(pi,0,3,k^0x55); in frpw_test_proto()
252 if (frpw_read_regr(pi,0,2) != (k^0xaa)) e[j]++; in frpw_test_proto()
260 for (k=0;k<128;k++) if (scratch[k] != k) r++; in frpw_test_proto()
274 { char *mode_string[6] = {"4-bit","8-bit","EPP", in frpw_log_adapter()