Lines Matching refs:gameport
109 struct gameport *gameport; member
122 struct gameport *gameport = port->gameport; in adi_read_packet() local
129 t[i] = gameport_time(gameport, ADI_MAX_START); in adi_read_packet()
135 gameport_trigger(gameport); in adi_read_packet()
136 v = gameport_read(gameport); in adi_read_packet()
140 w = u ^ (v = x = gameport_read(gameport)); in adi_read_packet()
146 t[i] = gameport_time(gameport, ADI_MAX_STROBE); in adi_read_packet()
259 static void adi_poll(struct gameport *gameport) in adi_poll() argument
261 struct adi_port *port = gameport_get_drvdata(gameport); in adi_poll()
275 gameport_start_polling(port->gameport); in adi_open()
287 gameport_stop_polling(port->gameport); in adi_close()
295 static void adi_init_digital(struct gameport *gameport) in adi_init_digital() argument
301 gameport_trigger(gameport); in adi_init_digital()
396 snprintf(adi->phys, ADI_MAX_PHYS_LENGTH, "%s/input%d", port->gameport->phys, half); in adi_init_input()
407 input_dev->dev.parent = &port->gameport->dev; in adi_init_input()
453 static int adi_connect(struct gameport *gameport, struct gameport_driver *drv) in adi_connect() argument
463 port->gameport = gameport; in adi_connect()
465 gameport_set_drvdata(gameport, port); in adi_connect()
467 err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); in adi_connect()
471 adi_init_digital(gameport); in adi_connect()
493 gameport_set_poll_handler(gameport, adi_poll); in adi_connect()
494 gameport_set_poll_interval(gameport, 20); in adi_connect()
520 gameport_close(gameport); in adi_connect()
521 fail1: gameport_set_drvdata(gameport, NULL); in adi_connect()
526 static void adi_disconnect(struct gameport *gameport) in adi_disconnect() argument
529 struct adi_port *port = gameport_get_drvdata(gameport); in adi_disconnect()
534 gameport_close(gameport); in adi_disconnect()
535 gameport_set_drvdata(gameport, NULL); in adi_disconnect()