Lines Matching +full:2 +full:k

30 static int  cont_map[2] = { 0x08, 0x10 };
59 int h, l, k, ph; in frpw_read_block_int() local
64 for (k = 0; k < count; k++) { in frpw_read_block_int()
67 buf[k] = j44(l, h); in frpw_read_block_int()
73 ph = 2; 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()
79 ph = 2 - ph; in frpw_read_block_int()
84 case 2: 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()
94 for (k = 0; k < count - 2; k++) in frpw_read_block_int()
95 buf[k] = r4(); in frpw_read_block_int()
97 buf[count - 2] = r4(); 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()
107 buf[count - 2] = r4(); 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()
119 buf[count - 2] = r4(); in frpw_read_block_int()
133 int k; in frpw_write_block() local
138 case 2: in frpw_write_block()
140 for (k = 0; k < count; k++) { in frpw_write_block()
141 w0(buf[k]); in frpw_write_block()
149 for (k = 0; k < count; k++) in frpw_write_block()
150 w4(buf[k]); 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()
163 for (k = 0; k < count / 4; k++) in frpw_write_block()
164 w4l(((u32 *)buf)[k]); in frpw_write_block()
217 * To make this work, private = port*2 + chip. Yes, I know it's a hack :-(
221 int j, k, r; in frpw_test_proto() local
222 int e[2] = { 0, 0 }; in frpw_test_proto()
226 pi->private = frpw_test_pnp(pi) + 2*pi->port; in frpw_test_proto()
228 if (((pi->private & 0x1) == 0) && (pi->mode > 2)) { in frpw_test_proto()
234 if (((pi->private & 0x1) == 1) && (pi->mode == 2)) { in frpw_test_proto()
235 dev_dbg(&pi->dev, "frpw: ASIC does not support mode 2\n"); in frpw_test_proto()
240 for (j = 0; j < 2; j++) { in frpw_test_proto()
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()
262 pi->port, (pi->private%2), pi->mode, e[0], e[1], r); in frpw_test_proto()
282 .epp_first = 2,
283 .default_delay = 2,