Lines Matching refs:packet
163 static int mp_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet) in mp_io() argument
174 *packet = 0; in mp_io()
258 *packet = pkt; in mp_io()
300 static int multiport_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet) in multiport_io() argument
306 status = mp_io(gameport, sendflags, sendcode, packet); in multiport_io()
318 static int dig_mode_start(struct gameport *gameport, u32 *packet) in dig_mode_start() argument
334 flags = multiport_io(gameport, IO_RESET, 0x27, packet); in dig_mode_start()
360 u32 packet; in get_and_decode_packet() local
367 flags = multiport_io(grip->gameport, flags, 0, &packet); in get_and_decode_packet()
370 if (packet & PACKET_MP_DONE) in get_and_decode_packet()
380 slot = ((packet >> 21) & 0xf) - 1; in get_and_decode_packet()
391 joytype = (packet >> 16) & 0x1f; in get_and_decode_packet()
410 int dir = (packet >> 8) & 0xf; /* eight way directional value */ in get_and_decode_packet()
411 port->buttons = (~packet) & 0xff; in get_and_decode_packet()
437 printk(KERN_INFO "Got joy type 0x%x and packet 0x%x.\n", joytype, packet); in get_and_decode_packet()
479 u32 packet; in multiport_init() local
481 dig_mode = dig_mode_start(grip->gameport, &packet); in multiport_init()
483 dig_mode = dig_mode_start(grip->gameport, &packet); in multiport_init()