• Home
  • Raw
  • Download

Lines Matching refs:gameport

48 	struct gameport *gameport;  member
65 static int guillemot_read_packet(struct gameport *gameport, u8 *data) in guillemot_read_packet() argument
76 t = gameport_time(gameport, GUILLEMOT_MAX_START); in guillemot_read_packet()
77 s = gameport_time(gameport, GUILLEMOT_MAX_STROBE); in guillemot_read_packet()
80 gameport_trigger(gameport); in guillemot_read_packet()
81 v = gameport_read(gameport); in guillemot_read_packet()
85 u = v; v = gameport_read(gameport); in guillemot_read_packet()
102 static void guillemot_poll(struct gameport *gameport) in guillemot_poll() argument
104 struct guillemot *guillemot = gameport_get_drvdata(gameport); in guillemot_poll()
111 if (guillemot_read_packet(guillemot->gameport, data) != GUILLEMOT_MAX_LENGTH * 8 || in guillemot_poll()
139 gameport_start_polling(guillemot->gameport); in guillemot_open()
151 gameport_stop_polling(guillemot->gameport); in guillemot_close()
158 static int guillemot_connect(struct gameport *gameport, struct gameport_driver *drv) in guillemot_connect() argument
173 guillemot->gameport = gameport; in guillemot_connect()
176 gameport_set_drvdata(gameport, guillemot); in guillemot_connect()
178 err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); in guillemot_connect()
182 i = guillemot_read_packet(gameport, data); in guillemot_connect()
195 gameport->phys, data[12], data[13], data[11], data[14], data[15]); in guillemot_connect()
200 gameport_set_poll_handler(gameport, guillemot_poll); in guillemot_connect()
201 gameport_set_poll_interval(gameport, 20); in guillemot_connect()
203 snprintf(guillemot->phys, sizeof(guillemot->phys), "%s/input0", gameport->phys); in guillemot_connect()
212 input_dev->dev.parent = &gameport->dev; in guillemot_connect()
238 fail2: gameport_close(gameport); in guillemot_connect()
239 fail1: gameport_set_drvdata(gameport, NULL); in guillemot_connect()
245 static void guillemot_disconnect(struct gameport *gameport) in guillemot_disconnect() argument
247 struct guillemot *guillemot = gameport_get_drvdata(gameport); in guillemot_disconnect()
251 gameport_close(gameport); in guillemot_disconnect()