Lines Matching +full:2 +full:k

33  * cont =  2   internal EPAT registers
44 case 2: in epat_write_regr()
71 case 2: in epat_read_regr()
87 int k, ph, a, b; in epat_read_block() local
94 for (k = 0; k < count; k++) { in epat_read_block()
95 if (k == count-1) in epat_read_block()
103 buf[k] = j44(a, b); in epat_read_block()
112 for (k = 0; k < count; k++) { in epat_read_block()
113 if (k == count - 1) in epat_read_block()
117 buf[k] = j53(a, b); in epat_read_block()
123 case 2: in epat_read_block()
126 for (k = 0; k < count - 1; k++) { in epat_read_block()
128 buf[k] = r0(); in epat_read_block()
138 for (k = 0; k < count - 1; k++) in epat_read_block()
139 buf[k] = r4(); in epat_read_block()
147 for (k = 0; k < count / 2 - 1; k++) in epat_read_block()
148 ((u16 *)buf)[k] = r4w(); in epat_read_block()
149 buf[count - 2] = r4(); in epat_read_block()
157 for (k = 0; k < count / 4 - 1; k++) in epat_read_block()
158 ((u32 *)buf)[k] = r4l(); in epat_read_block()
159 for (k = count - 4; k < count - 1; k++) in epat_read_block()
160 buf[k] = r4(); in epat_read_block()
170 int ph, k; in epat_write_block() local
175 case 2: in epat_write_block()
178 for (k = 0; k < count; k++) { in epat_write_block()
179 w0(buf[k]); in epat_write_block()
187 for (k = 0; k < count; k++) in epat_write_block()
188 w4(buf[k]); in epat_write_block()
193 for (k = 0; k < count / 2; k++) in epat_write_block()
194 w4w(((u16 *)buf)[k]); in epat_write_block()
199 for (k = 0; k < count / 4; k++) in epat_write_block()
200 w4l(((u32 *)buf)[k]); in epat_write_block()
208 #define WR(r, v) epat_write_regr(pi, 2, r, v)
209 #define RR(r) epat_read_regr(pi, 2, r)
274 int k, j, f, cc; in epat_test_proto() local
275 int e[2] = { 0, 0 }; in epat_test_proto()
283 for (j=0;j<2;j++) { in epat_test_proto()
285 for (k = 0; k < 256; k++) { in epat_test_proto()
286 WRi(2, k ^ 0xaa); in epat_test_proto()
287 WRi(3, k ^ 0x55); in epat_test_proto()
288 if (RRi(2) != (k ^ 0xaa)) in epat_test_proto()
299 for (k = 0; k < 256; k++) { in epat_test_proto()
300 if ((scratch[2 * k] & 0xff) != k) in epat_test_proto()
302 if ((scratch[2 * k + 1] & 0xff) != 0xff - k) in epat_test_proto()