Lines Matching refs:vortex
45 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_read() local
46 return hwread(vortex->mmio, VORTEX_GAME_LEGACY); in vortex_game_read()
51 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_trigger() local
52 hwwrite(vortex->mmio, VORTEX_GAME_LEGACY, 0xff); in vortex_game_trigger()
58 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_cooked_read() local
61 *buttons = (~hwread(vortex->mmio, VORTEX_GAME_LEGACY) >> 4) & 0xf; in vortex_game_cooked_read()
65 hwread(vortex->mmio, VORTEX_GAME_AXIS + (i * AXIS_SIZE)); in vortex_game_cooked_read()
74 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_open() local
78 hwwrite(vortex->mmio, VORTEX_CTRL2, in vortex_game_open()
79 hwread(vortex->mmio, in vortex_game_open()
84 hwwrite(vortex->mmio, VORTEX_CTRL2, in vortex_game_open()
85 hwread(vortex->mmio, in vortex_game_open()
95 static int __devinit vortex_gameport_register(vortex_t * vortex) in vortex_gameport_register() argument
99 vortex->gameport = gp = gameport_allocate_port(); in vortex_gameport_register()
106 gameport_set_phys(gp, "pci%s/gameport0", pci_name(vortex->pci_dev)); in vortex_gameport_register()
107 gameport_set_dev_parent(gp, &vortex->pci_dev->dev); in vortex_gameport_register()
114 gameport_set_port_data(gp, vortex); in vortex_gameport_register()
122 static void vortex_gameport_unregister(vortex_t * vortex) in vortex_gameport_unregister() argument
124 if (vortex->gameport) { in vortex_gameport_unregister()
125 gameport_unregister_port(vortex->gameport); in vortex_gameport_unregister()
126 vortex->gameport = NULL; in vortex_gameport_unregister()
131 static inline int vortex_gameport_register(vortex_t * vortex) { return -ENOSYS; } in vortex_gameport_register() argument
132 static inline void vortex_gameport_unregister(vortex_t * vortex) { } in vortex_gameport_unregister() argument