Lines Matching +full:4 +full:k
23 #define cec4 w2(0xc);w2(0xe);w2(0xe);w2(0xc);w2(4);w2(4);w2(4);
24 #define j44(l,h) (((l>>4)&0x0f)|(h&0xf0))
38 w2(4); in frpw_read_regr()
41 w2(4); h = r1(); in frpw_read_regr()
42 w2(4); in frpw_read_regr()
51 w2(4); w0(r); cec4; in frpw_write_regr()
53 w2(5); w2(7); w2(5); w2(4); in frpw_write_regr()
59 int h, l, k, ph; in frpw_read_block_int() local
63 w2(4); w0(regr); cec4; in frpw_read_block_int()
64 for (k = 0; k < count; k++) { in frpw_read_block_int()
66 w2(4); h = r1(); in frpw_read_block_int()
67 buf[k] = j44(l, h); in frpw_read_block_int()
69 w2(4); in frpw_read_block_int()
74 w2(4); w0(regr + 0xc0); cec4; in frpw_read_block_int()
76 for (k = 0; k < count; k++) { in frpw_read_block_int()
78 buf[k] = r0(); in frpw_read_block_int()
81 w2(0xac); w2(0xa4); w2(4); in frpw_read_block_int()
85 w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
86 for (k = 0; k < count; k++) in frpw_read_block_int()
87 buf[k] = r4(); in frpw_read_block_int()
89 w2(4); in frpw_read_block_int()
93 w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
94 for (k = 0; k < count - 2; k++) in frpw_read_block_int()
95 buf[k] = r4(); in frpw_read_block_int()
99 w2(4); in frpw_read_block_int()
102 case 4: in frpw_read_block_int()
103 w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
104 for (k = 0; k < count / 2 - 1; k++) in frpw_read_block_int()
105 ((u16 *)buf)[k] = r4w(); in frpw_read_block_int()
109 w2(4); in frpw_read_block_int()
113 w2(4); w0(regr + 0x80); cec4; in frpw_read_block_int()
114 for (k = 0; k < count / 4 - 1; k++) in frpw_read_block_int()
115 ((u32 *)buf)[k] = r4l(); in frpw_read_block_int()
116 buf[count - 4] = r4(); in frpw_read_block_int()
121 w2(4); in frpw_read_block_int()
133 int k; in frpw_write_block() local
139 w2(4); w0(8); cec4; w2(5); in frpw_write_block()
140 for (k = 0; k < count; k++) { in frpw_write_block()
141 w0(buf[k]); in frpw_write_block()
144 w2(4); in frpw_write_block()
148 w2(4); w0(0xc8); cec4; w2(5); in frpw_write_block()
149 for (k = 0; k < count; k++) in frpw_write_block()
150 w4(buf[k]); in frpw_write_block()
151 w2(4); in frpw_write_block()
154 case 4: in frpw_write_block()
155 w2(4); w0(0xc8); cec4; w2(5); in frpw_write_block()
156 for (k = 0; k < count / 2; k++) in frpw_write_block()
157 w4w(((u16 *)buf)[k]); in frpw_write_block()
158 w2(4); in frpw_write_block()
162 w2(4); w0(0xc8); cec4; w2(5); in frpw_write_block()
163 for (k = 0; k < count / 4; k++) in frpw_write_block()
164 w4l(((u32 *)buf)[k]); in frpw_write_block()
165 w2(4); in frpw_write_block()
174 w2(4); in frpw_connect()
179 w2(4); w0(0x20); cec4; in frpw_disconnect()
204 w2(4); w0(4); w2(6); w2(7); in frpw_test_pnp()
205 a = r1() & 0xff; w2(4); b = r1() & 0xff; in frpw_test_pnp()
206 w2(0xc); w2(0xe); w2(4); in frpw_test_pnp()
221 int j, k, r; in frpw_test_proto() local
242 for (k = 0; k < 256; k++) { in frpw_test_proto()
243 frpw_write_regr(pi, 0, 2, k ^ 0xaa); in frpw_test_proto()
244 frpw_write_regr(pi, 0, 3, k ^ 0x55); in frpw_test_proto()
245 if (frpw_read_regr(pi, 0, 2) != (k ^ 0xaa)) in frpw_test_proto()
254 for (k = 0; k < 128; k++) { in frpw_test_proto()
255 if (scratch[k] != k) in frpw_test_proto()
270 char *mode[6] = { "4-bit", "8-bit", "EPP", "EPP-8", "EPP-16", "EPP-32"}; in frpw_log_adapter()