Lines Matching refs:vortex
32 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_read() local
33 return hwread(vortex->mmio, VORTEX_GAME_LEGACY); in vortex_game_read()
38 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_trigger() local
39 hwwrite(vortex->mmio, VORTEX_GAME_LEGACY, 0xff); in vortex_game_trigger()
45 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_cooked_read() local
48 *buttons = (~hwread(vortex->mmio, VORTEX_GAME_LEGACY) >> 4) & 0xf; in vortex_game_cooked_read()
52 hwread(vortex->mmio, VORTEX_GAME_AXIS + (i * AXIS_SIZE)); in vortex_game_cooked_read()
61 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_open() local
65 hwwrite(vortex->mmio, VORTEX_CTRL2, in vortex_game_open()
66 hwread(vortex->mmio, in vortex_game_open()
71 hwwrite(vortex->mmio, VORTEX_CTRL2, in vortex_game_open()
72 hwread(vortex->mmio, in vortex_game_open()
82 static int vortex_gameport_register(vortex_t *vortex) in vortex_gameport_register() argument
86 vortex->gameport = gp = gameport_allocate_port(); in vortex_gameport_register()
88 dev_err(vortex->card->dev, in vortex_gameport_register()
94 gameport_set_phys(gp, "pci%s/gameport0", pci_name(vortex->pci_dev)); in vortex_gameport_register()
95 gameport_set_dev_parent(gp, &vortex->pci_dev->dev); in vortex_gameport_register()
102 gameport_set_port_data(gp, vortex); in vortex_gameport_register()
110 static void vortex_gameport_unregister(vortex_t * vortex) in vortex_gameport_unregister() argument
112 if (vortex->gameport) { in vortex_gameport_unregister()
113 gameport_unregister_port(vortex->gameport); in vortex_gameport_unregister()
114 vortex->gameport = NULL; in vortex_gameport_unregister()
119 static inline int vortex_gameport_register(vortex_t * vortex) { return -ENOSYS; } in vortex_gameport_register() argument
120 static inline void vortex_gameport_unregister(vortex_t * vortex) { } in vortex_gameport_unregister() argument