Lines Matching defs:in
5 * Authors (in chronological order):
117 uint8 in;
118 res = ps2_command(PS2_CTRL_SELF_TEST, NULL, 0, &in, 1);
119 if (res != B_OK || in != 0x55) {
121 "0x%02x\n", res, in);
160 uint8 in, out;
163 res = ps2_command(0xd3, &out, 1, &in, 1);
166 // Step 1, if controller is good, in does match out.
168 if (in != out)
172 res = ps2_command(0xd3, &out, 1, &in, 1);
175 // Step 2, if controller is good, in does match out.
176 if (in != out)
180 res = ps2_command(0xd3, &out, 1, &in, 1);
184 // then in data does match out data (0xa4), else it's version number.
185 if (in == out)
191 if (in > 0x9f) {
192 TRACE("ps2: active multiplexing v%d.%d detected, but ignored!\n", (in >> 4), in & 0xf);
196 INFO("ps2: active multiplexing v%d.%d enabled\n", (in >> 4), in & 0xf);
220 // just in case it has switched to multiplexed mode
226 ps2_command(uint8 cmd, const uint8 *out, int outCount, uint8 *in, int inCount)
235 TRACE("ps2: ps2_command cmd 0x%02x, out %d, in %d\n", cmd, outCount, inCount);
255 in[i] = ps2_read_data();
257 TRACE("ps2: ps2_command in byte %d failed\n", i);
262 TRACE("ps2: ps2_command in 0x%02x\n", in[i]);