gameport           27 drivers/input/gameport/emu10k1-gp.c 	struct gameport *gameport;
gameport           46 drivers/input/gameport/emu10k1-gp.c 	struct gameport *port;
gameport           65 drivers/input/gameport/emu10k1-gp.c 	emu->gameport = port;
gameport           97 drivers/input/gameport/emu10k1-gp.c 	gameport_unregister_port(emu->gameport);
gameport           24 drivers/input/gameport/fm801-gp.c 	struct gameport *gameport;
gameport           29 drivers/input/gameport/fm801-gp.c static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons)
gameport           33 drivers/input/gameport/fm801-gp.c 	w = inw(gameport->io + 2);
gameport           36 drivers/input/gameport/fm801-gp.c 	w = inw(gameport->io + 4);
gameport           38 drivers/input/gameport/fm801-gp.c 	w = inw(gameport->io + 6);
gameport           41 drivers/input/gameport/fm801-gp.c 	w = inw(gameport->io + 8);
gameport           43 drivers/input/gameport/fm801-gp.c 	outw(0xff, gameport->io); /* reset */
gameport           49 drivers/input/gameport/fm801-gp.c static int fm801_gp_open(struct gameport *gameport, int mode)
gameport           68 drivers/input/gameport/fm801-gp.c 	struct gameport *port;
gameport           92 drivers/input/gameport/fm801-gp.c 	gp->gameport = port;
gameport          120 drivers/input/gameport/fm801-gp.c 	gameport_unregister_port(gp->gameport);
gameport           44 drivers/input/gameport/gameport.c static void gameport_add_port(struct gameport *gameport);
gameport           46 drivers/input/gameport/gameport.c static void gameport_reconnect_port(struct gameport *gameport);
gameport           47 drivers/input/gameport/gameport.c static void gameport_disconnect_port(struct gameport *gameport);
gameport           78 drivers/input/gameport/gameport.c static int gameport_measure_speed(struct gameport *gameport)
gameport           84 drivers/input/gameport/gameport.c 	if (gameport_open(gameport, NULL, GAMEPORT_MODE_RAW))
gameport           93 drivers/input/gameport/gameport.c 			gameport_read(gameport);
gameport          103 drivers/input/gameport/gameport.c 	gameport_close(gameport);
gameport          110 drivers/input/gameport/gameport.c static int old_gameport_measure_speed(struct gameport *gameport)
gameport          117 drivers/input/gameport/gameport.c 	if (gameport_open(gameport, NULL, GAMEPORT_MODE_RAW))
gameport          125 drivers/input/gameport/gameport.c 		for (t = 0; t < 50; t++) gameport_read(gameport);
gameport          133 drivers/input/gameport/gameport.c 	gameport_close(gameport);
gameport          141 drivers/input/gameport/gameport.c 	if (gameport_open(gameport, NULL, GAMEPORT_MODE_RAW))
gameport          149 drivers/input/gameport/gameport.c 		for (t = 0; t < 50; t++) gameport_read(gameport);
gameport          156 drivers/input/gameport/gameport.c 	gameport_close(gameport);
gameport          164 drivers/input/gameport/gameport.c 	if (gameport_open(gameport, NULL, GAMEPORT_MODE_RAW))
gameport          168 drivers/input/gameport/gameport.c 	j = jiffies; while (j == jiffies) { t++; gameport_read(gameport); }
gameport          170 drivers/input/gameport/gameport.c 	gameport_close(gameport);
gameport          176 drivers/input/gameport/gameport.c void gameport_start_polling(struct gameport *gameport)
gameport          178 drivers/input/gameport/gameport.c 	spin_lock(&gameport->timer_lock);
gameport          180 drivers/input/gameport/gameport.c 	if (!gameport->poll_cnt++) {
gameport          181 drivers/input/gameport/gameport.c 		BUG_ON(!gameport->poll_handler);
gameport          182 drivers/input/gameport/gameport.c 		BUG_ON(!gameport->poll_interval);
gameport          183 drivers/input/gameport/gameport.c 		mod_timer(&gameport->poll_timer, jiffies + msecs_to_jiffies(gameport->poll_interval));
gameport          186 drivers/input/gameport/gameport.c 	spin_unlock(&gameport->timer_lock);
gameport          190 drivers/input/gameport/gameport.c void gameport_stop_polling(struct gameport *gameport)
gameport          192 drivers/input/gameport/gameport.c 	spin_lock(&gameport->timer_lock);
gameport          194 drivers/input/gameport/gameport.c 	if (!--gameport->poll_cnt)
gameport          195 drivers/input/gameport/gameport.c 		del_timer(&gameport->poll_timer);
gameport          197 drivers/input/gameport/gameport.c 	spin_unlock(&gameport->timer_lock);
gameport          203 drivers/input/gameport/gameport.c 	struct gameport *gameport = from_timer(gameport, t, poll_timer);
gameport          205 drivers/input/gameport/gameport.c 	gameport->poll_handler(gameport);
gameport          206 drivers/input/gameport/gameport.c 	if (gameport->poll_cnt)
gameport          207 drivers/input/gameport/gameport.c 		mod_timer(&gameport->poll_timer, jiffies + msecs_to_jiffies(gameport->poll_interval));
gameport          214 drivers/input/gameport/gameport.c static int gameport_bind_driver(struct gameport *gameport, struct gameport_driver *drv)
gameport          218 drivers/input/gameport/gameport.c 	gameport->dev.driver = &drv->driver;
gameport          219 drivers/input/gameport/gameport.c 	if (drv->connect(gameport, drv)) {
gameport          220 drivers/input/gameport/gameport.c 		gameport->dev.driver = NULL;
gameport          224 drivers/input/gameport/gameport.c 	error = device_bind_driver(&gameport->dev);
gameport          226 drivers/input/gameport/gameport.c 		dev_warn(&gameport->dev,
gameport          228 drivers/input/gameport/gameport.c 			gameport->phys, gameport->name,
gameport          230 drivers/input/gameport/gameport.c 		drv->disconnect(gameport);
gameport          231 drivers/input/gameport/gameport.c 		gameport->dev.driver = NULL;
gameport          238 drivers/input/gameport/gameport.c static void gameport_find_driver(struct gameport *gameport)
gameport          242 drivers/input/gameport/gameport.c 	error = device_attach(&gameport->dev);
gameport          244 drivers/input/gameport/gameport.c 		dev_warn(&gameport->dev,
gameport          246 drivers/input/gameport/gameport.c 			 gameport->phys, gameport->name, error);
gameport          432 drivers/input/gameport/gameport.c static struct gameport *gameport_get_pending_child(struct gameport *parent)
gameport          435 drivers/input/gameport/gameport.c 	struct gameport *gameport, *child = NULL;
gameport          442 drivers/input/gameport/gameport.c 			gameport = event->object;
gameport          443 drivers/input/gameport/gameport.c 			if (gameport->parent == parent) {
gameport          444 drivers/input/gameport/gameport.c 				child = gameport;
gameport          460 drivers/input/gameport/gameport.c 	struct gameport *gameport = to_gameport_port(dev);
gameport          462 drivers/input/gameport/gameport.c 	return sprintf(buf, "%s\n", gameport->name);
gameport          468 drivers/input/gameport/gameport.c 	struct gameport *gameport = to_gameport_port(dev);
gameport          477 drivers/input/gameport/gameport.c 		gameport_disconnect_port(gameport);
gameport          479 drivers/input/gameport/gameport.c 		gameport_reconnect_port(gameport);
gameport          481 drivers/input/gameport/gameport.c 		gameport_disconnect_port(gameport);
gameport          482 drivers/input/gameport/gameport.c 		gameport_find_driver(gameport);
gameport          484 drivers/input/gameport/gameport.c 		gameport_disconnect_port(gameport);
gameport          485 drivers/input/gameport/gameport.c 		error = gameport_bind_driver(gameport, to_gameport_driver(drv));
gameport          505 drivers/input/gameport/gameport.c 	struct gameport *gameport = to_gameport_port(dev);
gameport          507 drivers/input/gameport/gameport.c 	kfree(gameport);
gameport          511 drivers/input/gameport/gameport.c void gameport_set_phys(struct gameport *gameport, const char *fmt, ...)
gameport          516 drivers/input/gameport/gameport.c 	vsnprintf(gameport->phys, sizeof(gameport->phys), fmt, args);
gameport          524 drivers/input/gameport/gameport.c static void gameport_init_port(struct gameport *gameport)
gameport          530 drivers/input/gameport/gameport.c 	mutex_init(&gameport->drv_mutex);
gameport          531 drivers/input/gameport/gameport.c 	device_initialize(&gameport->dev);
gameport          532 drivers/input/gameport/gameport.c 	dev_set_name(&gameport->dev, "gameport%lu",
gameport          534 drivers/input/gameport/gameport.c 	gameport->dev.bus = &gameport_bus;
gameport          535 drivers/input/gameport/gameport.c 	gameport->dev.release = gameport_release_port;
gameport          536 drivers/input/gameport/gameport.c 	if (gameport->parent)
gameport          537 drivers/input/gameport/gameport.c 		gameport->dev.parent = &gameport->parent->dev;
gameport          539 drivers/input/gameport/gameport.c 	INIT_LIST_HEAD(&gameport->node);
gameport          540 drivers/input/gameport/gameport.c 	spin_lock_init(&gameport->timer_lock);
gameport          541 drivers/input/gameport/gameport.c 	timer_setup(&gameport->poll_timer, gameport_run_poll_handler, 0);
gameport          548 drivers/input/gameport/gameport.c static void gameport_add_port(struct gameport *gameport)
gameport          552 drivers/input/gameport/gameport.c 	if (gameport->parent)
gameport          553 drivers/input/gameport/gameport.c 		gameport->parent->child = gameport;
gameport          555 drivers/input/gameport/gameport.c 	gameport->speed = use_ktime ?
gameport          556 drivers/input/gameport/gameport.c 		gameport_measure_speed(gameport) :
gameport          557 drivers/input/gameport/gameport.c 		old_gameport_measure_speed(gameport);
gameport          559 drivers/input/gameport/gameport.c 	list_add_tail(&gameport->node, &gameport_list);
gameport          561 drivers/input/gameport/gameport.c 	if (gameport->io)
gameport          562 drivers/input/gameport/gameport.c 		dev_info(&gameport->dev, "%s is %s, io %#x, speed %dkHz\n",
gameport          563 drivers/input/gameport/gameport.c 			 gameport->name, gameport->phys, gameport->io, gameport->speed);
gameport          565 drivers/input/gameport/gameport.c 		dev_info(&gameport->dev, "%s is %s, speed %dkHz\n",
gameport          566 drivers/input/gameport/gameport.c 			gameport->name, gameport->phys, gameport->speed);
gameport          568 drivers/input/gameport/gameport.c 	error = device_add(&gameport->dev);
gameport          570 drivers/input/gameport/gameport.c 		dev_err(&gameport->dev,
gameport          572 drivers/input/gameport/gameport.c 			gameport->phys, gameport->name, error);
gameport          579 drivers/input/gameport/gameport.c static void gameport_destroy_port(struct gameport *gameport)
gameport          581 drivers/input/gameport/gameport.c 	struct gameport *child;
gameport          583 drivers/input/gameport/gameport.c 	child = gameport_get_pending_child(gameport);
gameport          589 drivers/input/gameport/gameport.c 	if (gameport->parent) {
gameport          590 drivers/input/gameport/gameport.c 		gameport->parent->child = NULL;
gameport          591 drivers/input/gameport/gameport.c 		gameport->parent = NULL;
gameport          594 drivers/input/gameport/gameport.c 	if (device_is_registered(&gameport->dev))
gameport          595 drivers/input/gameport/gameport.c 		device_del(&gameport->dev);
gameport          597 drivers/input/gameport/gameport.c 	list_del_init(&gameport->node);
gameport          599 drivers/input/gameport/gameport.c 	gameport_remove_pending_events(gameport);
gameport          600 drivers/input/gameport/gameport.c 	put_device(&gameport->dev);
gameport          606 drivers/input/gameport/gameport.c static void gameport_reconnect_port(struct gameport *gameport)
gameport          609 drivers/input/gameport/gameport.c 		if (!gameport->drv || !gameport->drv->reconnect || gameport->drv->reconnect(gameport)) {
gameport          610 drivers/input/gameport/gameport.c 			gameport_disconnect_port(gameport);
gameport          611 drivers/input/gameport/gameport.c 			gameport_find_driver(gameport);
gameport          615 drivers/input/gameport/gameport.c 		gameport = gameport->child;
gameport          616 drivers/input/gameport/gameport.c 	} while (gameport);
gameport          623 drivers/input/gameport/gameport.c static void gameport_disconnect_port(struct gameport *gameport)
gameport          625 drivers/input/gameport/gameport.c 	struct gameport *s, *parent;
gameport          627 drivers/input/gameport/gameport.c 	if (gameport->child) {
gameport          633 drivers/input/gameport/gameport.c 		for (s = gameport; s->child; s = s->child)
gameport          641 drivers/input/gameport/gameport.c 		} while ((s = parent) != gameport);
gameport          647 drivers/input/gameport/gameport.c 	device_release_driver(&gameport->dev);
gameport          654 drivers/input/gameport/gameport.c void __gameport_register_port(struct gameport *gameport, struct module *owner)
gameport          656 drivers/input/gameport/gameport.c 	gameport_init_port(gameport);
gameport          657 drivers/input/gameport/gameport.c 	gameport_queue_event(gameport, owner, GAMEPORT_REGISTER_PORT);
gameport          664 drivers/input/gameport/gameport.c void gameport_unregister_port(struct gameport *gameport)
gameport          667 drivers/input/gameport/gameport.c 	gameport_disconnect_port(gameport);
gameport          668 drivers/input/gameport/gameport.c 	gameport_destroy_port(gameport);
gameport          693 drivers/input/gameport/gameport.c 	struct gameport *gameport = to_gameport_port(dev);
gameport          696 drivers/input/gameport/gameport.c 	drv->connect(gameport, drv);
gameport          697 drivers/input/gameport/gameport.c 	return gameport->drv ? 0 : -ENODEV;
gameport          702 drivers/input/gameport/gameport.c 	struct gameport *gameport = to_gameport_port(dev);
gameport          705 drivers/input/gameport/gameport.c 	drv->disconnect(gameport);
gameport          757 drivers/input/gameport/gameport.c 	struct gameport *gameport;
gameport          765 drivers/input/gameport/gameport.c 	list_for_each_entry(gameport, &gameport_list, node) {
gameport          766 drivers/input/gameport/gameport.c 		if (gameport->drv == drv) {
gameport          767 drivers/input/gameport/gameport.c 			gameport_disconnect_port(gameport);
gameport          768 drivers/input/gameport/gameport.c 			gameport_find_driver(gameport);
gameport          796 drivers/input/gameport/gameport.c static void gameport_set_drv(struct gameport *gameport, struct gameport_driver *drv)
gameport          798 drivers/input/gameport/gameport.c 	mutex_lock(&gameport->drv_mutex);
gameport          799 drivers/input/gameport/gameport.c 	gameport->drv = drv;
gameport          800 drivers/input/gameport/gameport.c 	mutex_unlock(&gameport->drv_mutex);
gameport          803 drivers/input/gameport/gameport.c int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode)
gameport          805 drivers/input/gameport/gameport.c 	if (gameport->open) {
gameport          806 drivers/input/gameport/gameport.c 		if (gameport->open(gameport, mode)) {
gameport          814 drivers/input/gameport/gameport.c 	gameport_set_drv(gameport, drv);
gameport          819 drivers/input/gameport/gameport.c void gameport_close(struct gameport *gameport)
gameport          821 drivers/input/gameport/gameport.c 	del_timer_sync(&gameport->poll_timer);
gameport          822 drivers/input/gameport/gameport.c 	gameport->poll_handler = NULL;
gameport          823 drivers/input/gameport/gameport.c 	gameport->poll_interval = 0;
gameport          824 drivers/input/gameport/gameport.c 	gameport_set_drv(gameport, NULL);
gameport          825 drivers/input/gameport/gameport.c 	if (gameport->close)
gameport          826 drivers/input/gameport/gameport.c 		gameport->close(gameport);
gameport           38 drivers/input/gameport/lightning.c 	struct gameport *gameport;
gameport           60 drivers/input/gameport/lightning.c static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons)
gameport           62 drivers/input/gameport/lightning.c 	struct l4 *l4 = gameport->port_data;
gameport           93 drivers/input/gameport/lightning.c static int l4_open(struct gameport *gameport, int mode)
gameport           95 drivers/input/gameport/lightning.c 	struct l4 *l4 = gameport->port_data;
gameport          180 drivers/input/gameport/lightning.c static int l4_calibrate(struct gameport *gameport, int *axes, int *max)
gameport          184 drivers/input/gameport/lightning.c 	struct l4 *l4 = gameport->port_data;
gameport          206 drivers/input/gameport/lightning.c 	struct gameport *port;
gameport          214 drivers/input/gameport/lightning.c 		if (!(l4->gameport = port = gameport_allocate_port())) {
gameport          217 drivers/input/gameport/lightning.c 				gameport_free_port(l4->gameport);
gameport          218 drivers/input/gameport/lightning.c 				l4->gameport = NULL;
gameport          282 drivers/input/gameport/lightning.c 		gameport_register_port(l4->gameport);
gameport          315 drivers/input/gameport/lightning.c 		if (l4_ports[i].gameport) {
gameport          317 drivers/input/gameport/lightning.c 			gameport_unregister_port(l4_ports[i].gameport);
gameport           36 drivers/input/gameport/ns558.c 	struct gameport *gameport;
gameport           53 drivers/input/gameport/ns558.c 	struct gameport *port;
gameport          138 drivers/input/gameport/ns558.c 	ns558->gameport = port;
gameport          185 drivers/input/gameport/ns558.c 	struct gameport *port;
gameport          210 drivers/input/gameport/ns558.c 	ns558->gameport = port;
gameport          261 drivers/input/gameport/ns558.c 		gameport_unregister_port(ns558->gameport);
gameport           39 drivers/input/joystick/a3d.c 	struct gameport *gameport;
gameport           40 drivers/input/joystick/a3d.c 	struct gameport *adc;
gameport           55 drivers/input/joystick/a3d.c static int a3d_read_packet(struct gameport *gameport, int length, char *data)
gameport           63 drivers/input/joystick/a3d.c 	t = gameport_time(gameport, A3D_MAX_START);
gameport           64 drivers/input/joystick/a3d.c 	s = gameport_time(gameport, A3D_MAX_STROBE);
gameport           67 drivers/input/joystick/a3d.c 	gameport_trigger(gameport);
gameport           68 drivers/input/joystick/a3d.c 	v = gameport_read(gameport);
gameport           72 drivers/input/joystick/a3d.c 		u = v; v = gameport_read(gameport);
gameport          162 drivers/input/joystick/a3d.c static void a3d_poll(struct gameport *gameport)
gameport          164 drivers/input/joystick/a3d.c 	struct a3d *a3d = gameport_get_drvdata(gameport);
gameport          168 drivers/input/joystick/a3d.c 	if (a3d_read_packet(a3d->gameport, a3d->length, data) != a3d->length ||
gameport          181 drivers/input/joystick/a3d.c static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons)
gameport          183 drivers/input/joystick/a3d.c 	struct a3d *a3d = gameport->port_data;
gameport          197 drivers/input/joystick/a3d.c static int a3d_adc_open(struct gameport *gameport, int mode)
gameport          199 drivers/input/joystick/a3d.c 	struct a3d *a3d = gameport->port_data;
gameport          204 drivers/input/joystick/a3d.c 	gameport_start_polling(a3d->gameport);
gameport          212 drivers/input/joystick/a3d.c static void a3d_adc_close(struct gameport *gameport)
gameport          214 drivers/input/joystick/a3d.c 	struct a3d *a3d = gameport->port_data;
gameport          216 drivers/input/joystick/a3d.c 	gameport_stop_polling(a3d->gameport);
gameport          227 drivers/input/joystick/a3d.c 	gameport_start_polling(a3d->gameport);
gameport          239 drivers/input/joystick/a3d.c 	gameport_stop_polling(a3d->gameport);
gameport          246 drivers/input/joystick/a3d.c static int a3d_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          250 drivers/input/joystick/a3d.c 	struct gameport *adc;
gameport          263 drivers/input/joystick/a3d.c 	a3d->gameport = gameport;
gameport          265 drivers/input/joystick/a3d.c 	gameport_set_drvdata(gameport, a3d);
gameport          267 drivers/input/joystick/a3d.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          271 drivers/input/joystick/a3d.c 	i = a3d_read_packet(gameport, A3D_MAX_LENGTH, data);
gameport          282 drivers/input/joystick/a3d.c 			"(%s, id=%d), contact <vojtech@ucw.cz>\n", gameport->phys, a3d->mode);
gameport          287 drivers/input/joystick/a3d.c 	gameport_set_poll_handler(gameport, a3d_poll);
gameport          288 drivers/input/joystick/a3d.c 	gameport_set_poll_interval(gameport, 20);
gameport          290 drivers/input/joystick/a3d.c 	snprintf(a3d->phys, sizeof(a3d->phys), "%s/input0", gameport->phys);
gameport          298 drivers/input/joystick/a3d.c 	input_dev->dev.parent = &gameport->dev;
gameport          355 drivers/input/joystick/a3d.c 			gameport_set_phys(adc, "%s/gameport0", gameport->phys);
gameport          356 drivers/input/joystick/a3d.c 			adc->dev.parent = &gameport->dev;
gameport          370 drivers/input/joystick/a3d.c  fail2:	gameport_close(gameport);
gameport          371 drivers/input/joystick/a3d.c  fail1:	gameport_set_drvdata(gameport, NULL);
gameport          377 drivers/input/joystick/a3d.c static void a3d_disconnect(struct gameport *gameport)
gameport          379 drivers/input/joystick/a3d.c 	struct a3d *a3d = gameport_get_drvdata(gameport);
gameport          384 drivers/input/joystick/a3d.c 	gameport_close(gameport);
gameport          385 drivers/input/joystick/a3d.c 	gameport_set_drvdata(gameport, NULL);
gameport          112 drivers/input/joystick/adi.c 	struct gameport *gameport;
gameport          125 drivers/input/joystick/adi.c 	struct gameport *gameport = port->gameport;
gameport          132 drivers/input/joystick/adi.c 		t[i] = gameport_time(gameport, ADI_MAX_START);
gameport          138 drivers/input/joystick/adi.c 	gameport_trigger(gameport);
gameport          139 drivers/input/joystick/adi.c 	v = z = gameport_read(gameport);
gameport          143 drivers/input/joystick/adi.c 		w = u ^ (v = x = gameport_read(gameport));
gameport          149 drivers/input/joystick/adi.c 					t[i] = gameport_time(gameport, ADI_MAX_STROBE);
gameport          262 drivers/input/joystick/adi.c static void adi_poll(struct gameport *gameport)
gameport          264 drivers/input/joystick/adi.c 	struct adi_port *port = gameport_get_drvdata(gameport);
gameport          278 drivers/input/joystick/adi.c 	gameport_start_polling(port->gameport);
gameport          290 drivers/input/joystick/adi.c 	gameport_stop_polling(port->gameport);
gameport          298 drivers/input/joystick/adi.c static void adi_init_digital(struct gameport *gameport)
gameport          304 drivers/input/joystick/adi.c 		gameport_trigger(gameport);
gameport          399 drivers/input/joystick/adi.c 	snprintf(adi->phys, ADI_MAX_PHYS_LENGTH, "%s/input%d", port->gameport->phys, half);
gameport          410 drivers/input/joystick/adi.c 	input_dev->dev.parent = &port->gameport->dev;
gameport          456 drivers/input/joystick/adi.c static int adi_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          466 drivers/input/joystick/adi.c 	port->gameport = gameport;
gameport          468 drivers/input/joystick/adi.c 	gameport_set_drvdata(gameport, port);
gameport          470 drivers/input/joystick/adi.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          474 drivers/input/joystick/adi.c 	adi_init_digital(gameport);
gameport          496 drivers/input/joystick/adi.c 	gameport_set_poll_handler(gameport, adi_poll);
gameport          497 drivers/input/joystick/adi.c 	gameport_set_poll_interval(gameport, 20);
gameport          523 drivers/input/joystick/adi.c 	gameport_close(gameport);
gameport          524 drivers/input/joystick/adi.c  fail1:	gameport_set_drvdata(gameport, NULL);
gameport          529 drivers/input/joystick/adi.c static void adi_disconnect(struct gameport *gameport)
gameport          532 drivers/input/joystick/adi.c 	struct adi_port *port = gameport_get_drvdata(gameport);
gameport          537 drivers/input/joystick/adi.c 	gameport_close(gameport);
gameport          538 drivers/input/joystick/adi.c 	gameport_set_drvdata(gameport, NULL);
gameport          106 drivers/input/joystick/analog.c 	struct gameport *gameport;
gameport          236 drivers/input/joystick/analog.c 	struct gameport *gameport = port->gameport;
gameport          247 drivers/input/joystick/analog.c 	gameport_trigger(gameport);
gameport          260 drivers/input/joystick/analog.c 		this = gameport_read(gameport) & port->mask;
gameport          288 drivers/input/joystick/analog.c 	int strobe = gameport_time(port->gameport, ANALOG_SAITEK_TIME);
gameport          290 drivers/input/joystick/analog.c 	u = gameport_read(port->gameport);
gameport          304 drivers/input/joystick/analog.c 		gameport_trigger(port->gameport);
gameport          305 drivers/input/joystick/analog.c 		while (((u = gameport_read(port->gameport)) & port->mask) && t) t--;
gameport          316 drivers/input/joystick/analog.c static void analog_poll(struct gameport *gameport)
gameport          318 drivers/input/joystick/analog.c 	struct analog_port *port = gameport_get_drvdata(gameport);
gameport          325 drivers/input/joystick/analog.c 		port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons);
gameport          354 drivers/input/joystick/analog.c 	gameport_start_polling(port->gameport);
gameport          366 drivers/input/joystick/analog.c 	gameport_stop_polling(port->gameport);
gameport          376 drivers/input/joystick/analog.c 	struct gameport *gameport = port->gameport;
gameport          403 drivers/input/joystick/analog.c 			gameport_read(gameport);
gameport          453 drivers/input/joystick/analog.c 		 "%s/input%d", port->gameport->phys, index);
gameport          466 drivers/input/joystick/analog.c 	input_dev->dev.parent = &port->gameport->dev;
gameport          549 drivers/input/joystick/analog.c 			port->mask, port->gameport->phys);
gameport          589 drivers/input/joystick/analog.c 		gameport_calibrate(port->gameport, port->axes, max);
gameport          598 drivers/input/joystick/analog.c static int analog_init_port(struct gameport *gameport, struct gameport_driver *drv, struct analog_port *port)
gameport          602 drivers/input/joystick/analog.c 	port->gameport = gameport;
gameport          604 drivers/input/joystick/analog.c 	gameport_set_drvdata(gameport, port);
gameport          606 drivers/input/joystick/analog.c 	if (!gameport_open(gameport, drv, GAMEPORT_MODE_RAW)) {
gameport          610 drivers/input/joystick/analog.c 		gameport_trigger(gameport);
gameport          611 drivers/input/joystick/analog.c 		t = gameport_read(gameport);
gameport          613 drivers/input/joystick/analog.c 		port->mask = (gameport_read(gameport) ^ t) & t & 0xf;
gameport          625 drivers/input/joystick/analog.c 		t = gameport_time(gameport, ANALOG_MAX_TIME * 1000);
gameport          626 drivers/input/joystick/analog.c 		gameport_trigger(gameport);
gameport          627 drivers/input/joystick/analog.c 		while ((gameport_read(port->gameport) & port->mask) && (u < t))
gameport          630 drivers/input/joystick/analog.c 		t = gameport_time(gameport, ANALOG_SAITEK_TIME);
gameport          631 drivers/input/joystick/analog.c 		gameport_trigger(gameport);
gameport          632 drivers/input/joystick/analog.c 		while ((gameport_read(port->gameport) & port->mask) && (v < t))
gameport          641 drivers/input/joystick/analog.c 		gameport_close(gameport);
gameport          644 drivers/input/joystick/analog.c 	if (!gameport_open(gameport, drv, GAMEPORT_MODE_COOKED)) {
gameport          647 drivers/input/joystick/analog.c 			if (!gameport_cooked_read(gameport, port->axes, &port->buttons))
gameport          653 drivers/input/joystick/analog.c 		port->fuzz = gameport->fuzz;
gameport          658 drivers/input/joystick/analog.c 	return gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          661 drivers/input/joystick/analog.c static int analog_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          670 drivers/input/joystick/analog.c 	err = analog_init_port(gameport, drv, port);
gameport          678 drivers/input/joystick/analog.c 	gameport_set_poll_handler(gameport, analog_poll);
gameport          679 drivers/input/joystick/analog.c 	gameport_set_poll_interval(gameport, 10);
gameport          693 drivers/input/joystick/analog.c  fail2:	gameport_close(gameport);
gameport          694 drivers/input/joystick/analog.c  fail1:	gameport_set_drvdata(gameport, NULL);
gameport          699 drivers/input/joystick/analog.c static void analog_disconnect(struct gameport *gameport)
gameport          701 drivers/input/joystick/analog.c 	struct analog_port *port = gameport_get_drvdata(gameport);
gameport          707 drivers/input/joystick/analog.c 	gameport_close(gameport);
gameport          708 drivers/input/joystick/analog.c 	gameport_set_drvdata(gameport, NULL);
gameport          711 drivers/input/joystick/analog.c 		port->gameport->phys);
gameport           32 drivers/input/joystick/cobra.c 	struct gameport *gameport;
gameport           40 drivers/input/joystick/cobra.c static unsigned char cobra_read_packet(struct gameport *gameport, unsigned int *data)
gameport           48 drivers/input/joystick/cobra.c 	int strobe = gameport_time(gameport, COBRA_MAX_STROBE);
gameport           57 drivers/input/joystick/cobra.c 	u = gameport_read(gameport);
gameport           61 drivers/input/joystick/cobra.c 		v = gameport_read(gameport);
gameport           94 drivers/input/joystick/cobra.c static void cobra_poll(struct gameport *gameport)
gameport           96 drivers/input/joystick/cobra.c 	struct cobra *cobra = gameport_get_drvdata(gameport);
gameport          103 drivers/input/joystick/cobra.c 	if ((r = cobra_read_packet(gameport, data)) != cobra->exists) {
gameport          128 drivers/input/joystick/cobra.c 	gameport_start_polling(cobra->gameport);
gameport          136 drivers/input/joystick/cobra.c 	gameport_stop_polling(cobra->gameport);
gameport          139 drivers/input/joystick/cobra.c static int cobra_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          151 drivers/input/joystick/cobra.c 	cobra->gameport = gameport;
gameport          153 drivers/input/joystick/cobra.c 	gameport_set_drvdata(gameport, cobra);
gameport          155 drivers/input/joystick/cobra.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          159 drivers/input/joystick/cobra.c 	cobra->exists = cobra_read_packet(gameport, data);
gameport          164 drivers/input/joystick/cobra.c 				" Contact vojtech@ucw.cz\n", i, gameport->phys, (data[i] >> 2) & 7);
gameport          173 drivers/input/joystick/cobra.c 	gameport_set_poll_handler(gameport, cobra_poll);
gameport          174 drivers/input/joystick/cobra.c 	gameport_set_poll_interval(gameport, 20);
gameport          187 drivers/input/joystick/cobra.c 			 "%s/input%d", gameport->phys, i);
gameport          195 drivers/input/joystick/cobra.c 		input_dev->dev.parent = &gameport->dev;
gameport          219 drivers/input/joystick/cobra.c  fail2:	gameport_close(gameport);
gameport          220 drivers/input/joystick/cobra.c  fail1:	gameport_set_drvdata(gameport, NULL);
gameport          225 drivers/input/joystick/cobra.c static void cobra_disconnect(struct gameport *gameport)
gameport          227 drivers/input/joystick/cobra.c 	struct cobra *cobra = gameport_get_drvdata(gameport);
gameport          233 drivers/input/joystick/cobra.c 	gameport_close(gameport);
gameport          234 drivers/input/joystick/cobra.c 	gameport_set_drvdata(gameport, NULL);
gameport           65 drivers/input/joystick/gf2k.c 	struct gameport *gameport;
gameport           78 drivers/input/joystick/gf2k.c static int gf2k_read_packet(struct gameport *gameport, int length, char *data)
gameport           85 drivers/input/joystick/gf2k.c 	t = gameport_time(gameport, GF2K_START);
gameport           86 drivers/input/joystick/gf2k.c 	p = gameport_time(gameport, GF2K_STROBE);
gameport           92 drivers/input/joystick/gf2k.c 	gameport_trigger(gameport);
gameport           93 drivers/input/joystick/gf2k.c 	v = gameport_read(gameport);
gameport           97 drivers/input/joystick/gf2k.c 		v = gameport_read(gameport);
gameport          114 drivers/input/joystick/gf2k.c static void gf2k_trigger_seq(struct gameport *gameport, short *seq)
gameport          124 drivers/input/joystick/gf2k.c 		gameport_trigger(gameport);
gameport          125 drivers/input/joystick/gf2k.c 		t = gameport_time(gameport, GF2K_TIMEOUT * 1000);
gameport          126 drivers/input/joystick/gf2k.c 		while ((gameport_read(gameport) & 1) && t) t--;
gameport          130 drivers/input/joystick/gf2k.c 	gameport_trigger(gameport);
gameport          189 drivers/input/joystick/gf2k.c static void gf2k_poll(struct gameport *gameport)
gameport          191 drivers/input/joystick/gf2k.c 	struct gf2k *gf2k = gameport_get_drvdata(gameport);
gameport          196 drivers/input/joystick/gf2k.c 	if (gf2k_read_packet(gf2k->gameport, gf2k_length[gf2k->id], data) < gf2k_length[gf2k->id])
gameport          206 drivers/input/joystick/gf2k.c 	gameport_start_polling(gf2k->gameport);
gameport          214 drivers/input/joystick/gf2k.c 	gameport_stop_polling(gf2k->gameport);
gameport          221 drivers/input/joystick/gf2k.c static int gf2k_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          235 drivers/input/joystick/gf2k.c 	gf2k->gameport = gameport;
gameport          238 drivers/input/joystick/gf2k.c 	gameport_set_drvdata(gameport, gf2k);
gameport          240 drivers/input/joystick/gf2k.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          244 drivers/input/joystick/gf2k.c 	gf2k_trigger_seq(gameport, gf2k_seq_reset);
gameport          248 drivers/input/joystick/gf2k.c 	gf2k_trigger_seq(gameport, gf2k_seq_digital);
gameport          252 drivers/input/joystick/gf2k.c 	if (gf2k_read_packet(gameport, GF2K_LENGTH, data) < 12) {
gameport          274 drivers/input/joystick/gf2k.c 			gameport->phys, gf2k->id, gf2k->id > GF2K_ID_MAX ? "Unknown" : gf2k_names[gf2k->id]);
gameport          279 drivers/input/joystick/gf2k.c 	gameport_set_poll_handler(gameport, gf2k_poll);
gameport          280 drivers/input/joystick/gf2k.c 	gameport_set_poll_interval(gameport, 20);
gameport          282 drivers/input/joystick/gf2k.c 	snprintf(gf2k->phys, sizeof(gf2k->phys), "%s/input0", gameport->phys);
gameport          292 drivers/input/joystick/gf2k.c 	input_dev->dev.parent = &gameport->dev;
gameport          313 drivers/input/joystick/gf2k.c 	gf2k_read_packet(gameport, gf2k->length, data);
gameport          333 drivers/input/joystick/gf2k.c  fail2:	gameport_close(gameport);
gameport          334 drivers/input/joystick/gf2k.c  fail1:	gameport_set_drvdata(gameport, NULL);
gameport          340 drivers/input/joystick/gf2k.c static void gf2k_disconnect(struct gameport *gameport)
gameport          342 drivers/input/joystick/gf2k.c 	struct gf2k *gf2k = gameport_get_drvdata(gameport);
gameport          345 drivers/input/joystick/gf2k.c 	gameport_close(gameport);
gameport          346 drivers/input/joystick/gf2k.c 	gameport_set_drvdata(gameport, NULL);
gameport           39 drivers/input/joystick/grip.c 	struct gameport *gameport;
gameport           68 drivers/input/joystick/grip.c static int grip_gpp_read_packet(struct gameport *gameport, int shift, unsigned int *data)
gameport           75 drivers/input/joystick/grip.c 	int strobe = gameport_time(gameport, GRIP_STROBE_GPP);
gameport           83 drivers/input/joystick/grip.c 	v = gameport_read(gameport) >> shift;
gameport           87 drivers/input/joystick/grip.c 		u = v; v = (gameport_read(gameport) >> shift) & 3;
gameport          108 drivers/input/joystick/grip.c static int grip_xt_read_packet(struct gameport *gameport, int shift, unsigned int *data)
gameport          116 drivers/input/joystick/grip.c 	int strobe = gameport_time(gameport, GRIP_STROBE_XT);
gameport          124 drivers/input/joystick/grip.c 	v = w = (gameport_read(gameport) >> shift) & 3;
gameport          128 drivers/input/joystick/grip.c 		u = (gameport_read(gameport) >> shift) & 3;
gameport          166 drivers/input/joystick/grip.c static void grip_poll(struct gameport *gameport)
gameport          168 drivers/input/joystick/grip.c 	struct grip *grip = gameport_get_drvdata(gameport);
gameport          185 drivers/input/joystick/grip.c 				if (grip_gpp_read_packet(grip->gameport, (i << 1) + 4, data)) {
gameport          201 drivers/input/joystick/grip.c 				if (grip_xt_read_packet(grip->gameport, (i << 1) + 4, data)) {
gameport          220 drivers/input/joystick/grip.c 				if (grip_xt_read_packet(grip->gameport, (i << 1) + 4, data)) {
gameport          242 drivers/input/joystick/grip.c 				if (grip_xt_read_packet(grip->gameport, (i << 1) + 4, data)) {
gameport          271 drivers/input/joystick/grip.c 	gameport_start_polling(grip->gameport);
gameport          279 drivers/input/joystick/grip.c 	gameport_stop_polling(grip->gameport);
gameport          282 drivers/input/joystick/grip.c static int grip_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          293 drivers/input/joystick/grip.c 	grip->gameport = gameport;
gameport          295 drivers/input/joystick/grip.c 	gameport_set_drvdata(gameport, grip);
gameport          297 drivers/input/joystick/grip.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          302 drivers/input/joystick/grip.c 		if (!grip_gpp_read_packet(gameport, (i << 1) + 4, data)) {
gameport          306 drivers/input/joystick/grip.c 		if (!grip_xt_read_packet(gameport, (i << 1) + 4, data)) {
gameport          325 drivers/input/joystick/grip.c 	gameport_set_poll_handler(gameport, grip_poll);
gameport          326 drivers/input/joystick/grip.c 	gameport_set_poll_interval(gameport, 20);
gameport          339 drivers/input/joystick/grip.c 			 "%s/input%d", gameport->phys, i);
gameport          347 drivers/input/joystick/grip.c 		input_dev->dev.parent = &gameport->dev;
gameport          381 drivers/input/joystick/grip.c  fail2:	gameport_close(gameport);
gameport          382 drivers/input/joystick/grip.c  fail1:	gameport_set_drvdata(gameport, NULL);
gameport          387 drivers/input/joystick/grip.c static void grip_disconnect(struct gameport *gameport)
gameport          389 drivers/input/joystick/grip.c 	struct grip *grip = gameport_get_drvdata(gameport);
gameport          395 drivers/input/joystick/grip.c 	gameport_close(gameport);
gameport          396 drivers/input/joystick/grip.c 	gameport_set_drvdata(gameport, NULL);
gameport           52 drivers/input/joystick/grip_mp.c 	struct gameport *gameport;
gameport          134 drivers/input/joystick/grip_mp.c static inline int poll_until(u8 onbits, u8 offbits, int u_sec, struct gameport* gp, u8 *data)
gameport          164 drivers/input/joystick/grip_mp.c static int mp_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet)
gameport          176 drivers/input/joystick/grip_mp.c 	raw_data = gameport_read(gameport);
gameport          181 drivers/input/joystick/grip_mp.c 		raw_data = gameport_read(gameport);
gameport          186 drivers/input/joystick/grip_mp.c 		raw_data = gameport_read(gameport);
gameport          191 drivers/input/joystick/grip_mp.c 		gameport_trigger(gameport);
gameport          193 drivers/input/joystick/grip_mp.c 		if (!poll_until(0x10, 0, 308, gameport, &raw_data))
gameport          217 drivers/input/joystick/grip_mp.c 		if (!poll_until(0, 0x10, 77, gameport, &raw_data))
gameport          225 drivers/input/joystick/grip_mp.c 		if (!poll_until(0x10, 0, 77, gameport, &raw_data))
gameport          244 drivers/input/joystick/grip_mp.c 	if (!poll_until(0x30, 0, 77, gameport, &raw_data))
gameport          247 drivers/input/joystick/grip_mp.c 	raw_data = gameport_read(gameport);
gameport          252 drivers/input/joystick/grip_mp.c 	gameport_trigger(gameport);
gameport          254 drivers/input/joystick/grip_mp.c 	if (!poll_until(0, 0x20, 77, gameport, &raw_data))
gameport          268 drivers/input/joystick/grip_mp.c 	if (!poll_until(0x20, 0, 77, gameport, &raw_data))
gameport          271 drivers/input/joystick/grip_mp.c 	raw_data = gameport_read(gameport);
gameport          277 drivers/input/joystick/grip_mp.c 	gameport_trigger(gameport);
gameport          279 drivers/input/joystick/grip_mp.c 		if (!poll_until(0x20, 0x10, 116, gameport, &raw_data))
gameport          282 drivers/input/joystick/grip_mp.c 		if (!poll_until(0x30, 0, 193, gameport, &raw_data))
gameport          289 drivers/input/joystick/grip_mp.c 			gameport_trigger(gameport);
gameport          301 drivers/input/joystick/grip_mp.c static int multiport_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet)
gameport          307 drivers/input/joystick/grip_mp.c 	status = mp_io(gameport, sendflags, sendcode, packet);
gameport          319 drivers/input/joystick/grip_mp.c static int dig_mode_start(struct gameport *gameport, u32 *packet)
gameport          326 drivers/input/joystick/grip_mp.c 			gameport_trigger(gameport);
gameport          335 drivers/input/joystick/grip_mp.c 		flags = multiport_io(gameport, IO_RESET, 0x27, packet);
gameport          368 drivers/input/joystick/grip_mp.c 	flags = multiport_io(grip->gameport, flags, 0, &packet);
gameport          482 drivers/input/joystick/grip_mp.c 	dig_mode = dig_mode_start(grip->gameport, &packet);
gameport          484 drivers/input/joystick/grip_mp.c 		dig_mode = dig_mode_start(grip->gameport, &packet);
gameport          536 drivers/input/joystick/grip_mp.c static void grip_poll(struct gameport *gameport)
gameport          538 drivers/input/joystick/grip_mp.c 	struct grip_mp *grip = gameport_get_drvdata(gameport);
gameport          565 drivers/input/joystick/grip_mp.c 	gameport_start_polling(grip->gameport);
gameport          577 drivers/input/joystick/grip_mp.c 	gameport_stop_polling(grip->gameport);
gameport          600 drivers/input/joystick/grip_mp.c 	input_dev->dev.parent = &grip->gameport->dev;
gameport          630 drivers/input/joystick/grip_mp.c static int grip_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          638 drivers/input/joystick/grip_mp.c 	grip->gameport = gameport;
gameport          640 drivers/input/joystick/grip_mp.c 	gameport_set_drvdata(gameport, grip);
gameport          642 drivers/input/joystick/grip_mp.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          646 drivers/input/joystick/grip_mp.c 	gameport_set_poll_handler(gameport, grip_poll);
gameport          647 drivers/input/joystick/grip_mp.c 	gameport_set_poll_interval(gameport, 20);
gameport          662 drivers/input/joystick/grip_mp.c fail2:	gameport_close(gameport);
gameport          663 drivers/input/joystick/grip_mp.c fail1:	gameport_set_drvdata(gameport, NULL);
gameport          668 drivers/input/joystick/grip_mp.c static void grip_disconnect(struct gameport *gameport)
gameport          670 drivers/input/joystick/grip_mp.c 	struct grip_mp *grip = gameport_get_drvdata(gameport);
gameport          676 drivers/input/joystick/grip_mp.c 	gameport_close(gameport);
gameport          677 drivers/input/joystick/grip_mp.c 	gameport_set_drvdata(gameport, NULL);
gameport           51 drivers/input/joystick/guillemot.c 	struct gameport *gameport;
gameport           68 drivers/input/joystick/guillemot.c static int guillemot_read_packet(struct gameport *gameport, u8 *data)
gameport           79 drivers/input/joystick/guillemot.c 	t = gameport_time(gameport, GUILLEMOT_MAX_START);
gameport           80 drivers/input/joystick/guillemot.c 	s = gameport_time(gameport, GUILLEMOT_MAX_STROBE);
gameport           83 drivers/input/joystick/guillemot.c 	gameport_trigger(gameport);
gameport           84 drivers/input/joystick/guillemot.c 	v = gameport_read(gameport);
gameport           88 drivers/input/joystick/guillemot.c 		u = v; v = gameport_read(gameport);
gameport          105 drivers/input/joystick/guillemot.c static void guillemot_poll(struct gameport *gameport)
gameport          107 drivers/input/joystick/guillemot.c 	struct guillemot *guillemot = gameport_get_drvdata(gameport);
gameport          114 drivers/input/joystick/guillemot.c 	if (guillemot_read_packet(guillemot->gameport, data) != GUILLEMOT_MAX_LENGTH * 8 ||
gameport          142 drivers/input/joystick/guillemot.c 	gameport_start_polling(guillemot->gameport);
gameport          154 drivers/input/joystick/guillemot.c 	gameport_stop_polling(guillemot->gameport);
gameport          161 drivers/input/joystick/guillemot.c static int guillemot_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          176 drivers/input/joystick/guillemot.c 	guillemot->gameport = gameport;
gameport          179 drivers/input/joystick/guillemot.c 	gameport_set_drvdata(gameport, guillemot);
gameport          181 drivers/input/joystick/guillemot.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          185 drivers/input/joystick/guillemot.c 	i = guillemot_read_packet(gameport, data);
gameport          198 drivers/input/joystick/guillemot.c 			gameport->phys, data[12], data[13], data[11], data[14], data[15]);
gameport          203 drivers/input/joystick/guillemot.c 	gameport_set_poll_handler(gameport, guillemot_poll);
gameport          204 drivers/input/joystick/guillemot.c 	gameport_set_poll_interval(gameport, 20);
gameport          206 drivers/input/joystick/guillemot.c 	snprintf(guillemot->phys, sizeof(guillemot->phys), "%s/input0", gameport->phys);
gameport          215 drivers/input/joystick/guillemot.c 	input_dev->dev.parent = &gameport->dev;
gameport          241 drivers/input/joystick/guillemot.c fail2:	gameport_close(gameport);
gameport          242 drivers/input/joystick/guillemot.c fail1:  gameport_set_drvdata(gameport, NULL);
gameport          248 drivers/input/joystick/guillemot.c static void guillemot_disconnect(struct gameport *gameport)
gameport          250 drivers/input/joystick/guillemot.c 	struct guillemot *guillemot = gameport_get_drvdata(gameport);
gameport          254 drivers/input/joystick/guillemot.c 	gameport_close(gameport);
gameport           38 drivers/input/joystick/interact.c 	struct gameport *gameport;
gameport           75 drivers/input/joystick/interact.c static int interact_read_packet(struct gameport *gameport, int length, u32 *data)
gameport           84 drivers/input/joystick/interact.c 	t = gameport_time(gameport, INTERACT_MAX_START);
gameport           85 drivers/input/joystick/interact.c 	s = gameport_time(gameport, INTERACT_MAX_STROBE);
gameport           88 drivers/input/joystick/interact.c 	gameport_trigger(gameport);
gameport           89 drivers/input/joystick/interact.c 	v = gameport_read(gameport);
gameport           93 drivers/input/joystick/interact.c 		u = v; v = gameport_read(gameport);
gameport          112 drivers/input/joystick/interact.c static void interact_poll(struct gameport *gameport)
gameport          114 drivers/input/joystick/interact.c 	struct interact *interact = gameport_get_drvdata(gameport);
gameport          121 drivers/input/joystick/interact.c 	if (interact_read_packet(interact->gameport, interact->length, data) < interact->length) {
gameport          171 drivers/input/joystick/interact.c 	gameport_start_polling(interact->gameport);
gameport          183 drivers/input/joystick/interact.c 	gameport_stop_polling(interact->gameport);
gameport          190 drivers/input/joystick/interact.c static int interact_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          205 drivers/input/joystick/interact.c 	interact->gameport = gameport;
gameport          208 drivers/input/joystick/interact.c 	gameport_set_drvdata(gameport, interact);
gameport          210 drivers/input/joystick/interact.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          214 drivers/input/joystick/interact.c 	i = interact_read_packet(gameport, INTERACT_MAX_LENGTH * 2, data);
gameport          227 drivers/input/joystick/interact.c 			gameport->phys, i, data[0], data[1], data[2]);
gameport          232 drivers/input/joystick/interact.c 	gameport_set_poll_handler(gameport, interact_poll);
gameport          233 drivers/input/joystick/interact.c 	gameport_set_poll_interval(gameport, 20);
gameport          235 drivers/input/joystick/interact.c 	snprintf(interact->phys, sizeof(interact->phys), "%s/input0", gameport->phys);
gameport          246 drivers/input/joystick/interact.c 	input_dev->dev.parent = &gameport->dev;
gameport          271 drivers/input/joystick/interact.c fail2:	gameport_close(gameport);
gameport          272 drivers/input/joystick/interact.c fail1:  gameport_set_drvdata(gameport, NULL);
gameport          278 drivers/input/joystick/interact.c static void interact_disconnect(struct gameport *gameport)
gameport          280 drivers/input/joystick/interact.c 	struct interact *interact = gameport_get_drvdata(gameport);
gameport          283 drivers/input/joystick/interact.c 	gameport_close(gameport);
gameport          284 drivers/input/joystick/interact.c 	gameport_set_drvdata(gameport, NULL);
gameport           33 drivers/input/joystick/joydump.c static int joydump_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport           43 drivers/input/joystick/joydump.c 	printk(KERN_INFO "joydump: | Dumping: %30s |\n", gameport->phys);
gameport           44 drivers/input/joystick/joydump.c 	printk(KERN_INFO "joydump: | Speed: %28d kHz |\n", gameport->speed);
gameport           46 drivers/input/joystick/joydump.c 	if (gameport_open(gameport, drv, GAMEPORT_MODE_RAW)) {
gameport           50 drivers/input/joystick/joydump.c 		if (gameport_open(gameport, drv, GAMEPORT_MODE_COOKED)) {
gameport           57 drivers/input/joystick/joydump.c 		gameport_cooked_read(gameport, axes, &buttons);
gameport           65 drivers/input/joystick/joydump.c 	timeout = gameport_time(gameport, 10000); /* 10 ms */
gameport           78 drivers/input/joystick/joydump.c 	u = gameport_read(gameport);
gameport           84 drivers/input/joystick/joydump.c 	gameport_trigger(gameport);
gameport           88 drivers/input/joystick/joydump.c 		dump->data = gameport_read(gameport);
gameport          131 drivers/input/joystick/joydump.c static void joydump_disconnect(struct gameport *gameport)
gameport          133 drivers/input/joystick/joydump.c 	gameport_close(gameport);
gameport           99 drivers/input/joystick/sidewinder.c 	struct gameport *gameport;
gameport          119 drivers/input/joystick/sidewinder.c static int sw_read_packet(struct gameport *gameport, unsigned char *buf, int length, int id)
gameport          126 drivers/input/joystick/sidewinder.c 	timeout = id ? gameport_time(gameport, SW_TIMEOUT * 1000) : 0; /* Set up global timeout for ID packet */
gameport          127 drivers/input/joystick/sidewinder.c 	kick = id ? gameport_time(gameport, SW_KICK) : 0;	/* Set up kick timeout for ID packet */
gameport          128 drivers/input/joystick/sidewinder.c 	start = gameport_time(gameport, SW_START);
gameport          129 drivers/input/joystick/sidewinder.c 	strobe = gameport_time(gameport, SW_STROBE);
gameport          136 drivers/input/joystick/sidewinder.c 	gameport_trigger(gameport);				/* Trigger */
gameport          137 drivers/input/joystick/sidewinder.c 	v = gameport_read(gameport);
gameport          142 drivers/input/joystick/sidewinder.c 		v = gameport_read(gameport);
gameport          155 drivers/input/joystick/sidewinder.c 		v = gameport_read(gameport);
gameport          171 drivers/input/joystick/sidewinder.c 			gameport_trigger(gameport);		/* Trigger */
gameport          224 drivers/input/joystick/sidewinder.c static void sw_init_digital(struct gameport *gameport)
gameport          234 drivers/input/joystick/sidewinder.c                 gameport_trigger(gameport);			/* Trigger */
gameport          235 drivers/input/joystick/sidewinder.c 		t = gameport_time(gameport, SW_TIMEOUT * 1000);
gameport          236 drivers/input/joystick/sidewinder.c 		while ((gameport_read(gameport) & 1) && t) t--;	/* Wait for axis to fall back to 0 */
gameport          240 drivers/input/joystick/sidewinder.c 	gameport_trigger(gameport);				/* Last trigger */
gameport          414 drivers/input/joystick/sidewinder.c 	i = sw_read_packet(sw->gameport, buf, sw->length, 0);
gameport          420 drivers/input/joystick/sidewinder.c 				" - going to reinitialize.\n", sw->gameport->phys);
gameport          446 drivers/input/joystick/sidewinder.c 				" - enabling optimization again.\n", sw->gameport->phys);
gameport          459 drivers/input/joystick/sidewinder.c 			" - disabling optimization.\n", sw->gameport->phys);
gameport          467 drivers/input/joystick/sidewinder.c 		" - reinitializing joystick.\n", sw->gameport->phys);
gameport          471 drivers/input/joystick/sidewinder.c 		sw_init_digital(sw->gameport);
gameport          475 drivers/input/joystick/sidewinder.c 	i = sw_read_packet(sw->gameport, buf, SW_LENGTH, 0);			/* Read normal data packet */
gameport          477 drivers/input/joystick/sidewinder.c 	sw_read_packet(sw->gameport, buf, SW_LENGTH, i);			/* Read ID packet, this initializes the stick */
gameport          484 drivers/input/joystick/sidewinder.c static void sw_poll(struct gameport *gameport)
gameport          486 drivers/input/joystick/sidewinder.c 	struct sw *sw = gameport_get_drvdata(gameport);
gameport          497 drivers/input/joystick/sidewinder.c 	gameport_start_polling(sw->gameport);
gameport          505 drivers/input/joystick/sidewinder.c 	gameport_stop_polling(sw->gameport);
gameport          570 drivers/input/joystick/sidewinder.c static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          591 drivers/input/joystick/sidewinder.c 	sw->gameport = gameport;
gameport          593 drivers/input/joystick/sidewinder.c 	gameport_set_drvdata(gameport, sw);
gameport          595 drivers/input/joystick/sidewinder.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          600 drivers/input/joystick/sidewinder.c 		gameport->phys, gameport->io, gameport->speed);
gameport          602 drivers/input/joystick/sidewinder.c 	i = sw_read_packet(gameport, buf, SW_LENGTH, 0);		/* Read normal packet */
gameport          607 drivers/input/joystick/sidewinder.c 		sw_init_digital(gameport);				/* Switch to digital */
gameport          609 drivers/input/joystick/sidewinder.c 		i = sw_read_packet(gameport, buf, SW_LENGTH, 0);	/* Retry reading packet */
gameport          618 drivers/input/joystick/sidewinder.c 	j = sw_read_packet(gameport, idbuf, SW_LENGTH, i);		/* Read ID. This initializes the stick */
gameport          624 drivers/input/joystick/sidewinder.c 		i = sw_read_packet(gameport, buf, SW_LENGTH, 0);	/* Retry reading packet */
gameport          632 drivers/input/joystick/sidewinder.c 		j = sw_read_packet(gameport, idbuf, SW_LENGTH, i);	/* Retry reading ID */
gameport          643 drivers/input/joystick/sidewinder.c 		i = sw_read_packet(gameport, buf, SW_LENGTH, 0);	/* Read data packet */
gameport          651 drivers/input/joystick/sidewinder.c 			sw->gameport = gameport;
gameport          699 drivers/input/joystick/sidewinder.c 			"on %s, contact <vojtech@ucw.cz>\n", gameport->phys);
gameport          711 drivers/input/joystick/sidewinder.c 	gameport_set_poll_handler(gameport, sw_poll);
gameport          712 drivers/input/joystick/sidewinder.c 	gameport_set_poll_interval(gameport, 20);
gameport          723 drivers/input/joystick/sidewinder.c 			 "%s/input%d", gameport->phys, i);
gameport          737 drivers/input/joystick/sidewinder.c 		input_dev->dev.parent = &gameport->dev;
gameport          778 drivers/input/joystick/sidewinder.c  fail2:	gameport_close(gameport);
gameport          779 drivers/input/joystick/sidewinder.c  fail1:	gameport_set_drvdata(gameport, NULL);
gameport          784 drivers/input/joystick/sidewinder.c static void sw_disconnect(struct gameport *gameport)
gameport          786 drivers/input/joystick/sidewinder.c 	struct sw *sw = gameport_get_drvdata(gameport);
gameport          791 drivers/input/joystick/sidewinder.c 	gameport_close(gameport);
gameport          792 drivers/input/joystick/sidewinder.c 	gameport_set_drvdata(gameport, NULL);
gameport          108 drivers/input/joystick/tmdc.c 	struct gameport *gameport;
gameport          130 drivers/input/joystick/tmdc.c static int tmdc_read_packet(struct gameport *gameport, unsigned char data[2][TMDC_MAX_LENGTH])
gameport          136 drivers/input/joystick/tmdc.c 	p = gameport_time(gameport, TMDC_MAX_STROBE);
gameport          139 drivers/input/joystick/tmdc.c 		t[k] = gameport_time(gameport, TMDC_MAX_START);
gameport          144 drivers/input/joystick/tmdc.c 	gameport_trigger(gameport);
gameport          146 drivers/input/joystick/tmdc.c 	w = gameport_read(gameport) >> 4;
gameport          150 drivers/input/joystick/tmdc.c 		w = gameport_read(gameport) >> 4;
gameport          223 drivers/input/joystick/tmdc.c static void tmdc_poll(struct gameport *gameport)
gameport          226 drivers/input/joystick/tmdc.c 	struct tmdc *tmdc = gameport_get_drvdata(gameport);
gameport          232 drivers/input/joystick/tmdc.c 	if ((r = tmdc_read_packet(tmdc->gameport, data)) != tmdc->exists)
gameport          251 drivers/input/joystick/tmdc.c 	gameport_start_polling(tmdc->gameport);
gameport          259 drivers/input/joystick/tmdc.c 	gameport_stop_polling(tmdc->gameport);
gameport          300 drivers/input/joystick/tmdc.c 	snprintf(port->phys, sizeof(port->phys), "%s/input%d", tmdc->gameport->phys, i);
gameport          310 drivers/input/joystick/tmdc.c 	input_dev->dev.parent = &tmdc->gameport->dev;
gameport          347 drivers/input/joystick/tmdc.c static int tmdc_connect(struct gameport *gameport, struct gameport_driver *drv)
gameport          357 drivers/input/joystick/tmdc.c 	tmdc->gameport = gameport;
gameport          359 drivers/input/joystick/tmdc.c 	gameport_set_drvdata(gameport, tmdc);
gameport          361 drivers/input/joystick/tmdc.c 	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
gameport          365 drivers/input/joystick/tmdc.c 	if (!(tmdc->exists = tmdc_read_packet(gameport, data))) {
gameport          370 drivers/input/joystick/tmdc.c 	gameport_set_poll_handler(gameport, tmdc_poll);
gameport          371 drivers/input/joystick/tmdc.c 	gameport_set_poll_interval(gameport, 20);
gameport          390 drivers/input/joystick/tmdc.c  fail2:	gameport_close(gameport);
gameport          391 drivers/input/joystick/tmdc.c  fail1:	gameport_set_drvdata(gameport, NULL);
gameport          396 drivers/input/joystick/tmdc.c static void tmdc_disconnect(struct gameport *gameport)
gameport          398 drivers/input/joystick/tmdc.c 	struct tmdc *tmdc = gameport_get_drvdata(gameport);
gameport          407 drivers/input/joystick/tmdc.c 	gameport_close(gameport);
gameport          408 drivers/input/joystick/tmdc.c 	gameport_set_drvdata(gameport, NULL);
gameport           27 include/linux/gameport.h 	void (*trigger)(struct gameport *);
gameport           28 include/linux/gameport.h 	unsigned char (*read)(struct gameport *);
gameport           29 include/linux/gameport.h 	int (*cooked_read)(struct gameport *, int *, int *);
gameport           30 include/linux/gameport.h 	int (*calibrate)(struct gameport *, int *, int *);
gameport           31 include/linux/gameport.h 	int (*open)(struct gameport *, int);
gameport           32 include/linux/gameport.h 	void (*close)(struct gameport *);
gameport           38 include/linux/gameport.h 	void (*poll_handler)(struct gameport *);
gameport           40 include/linux/gameport.h 	struct gameport *parent, *child;
gameport           49 include/linux/gameport.h #define to_gameport_port(d)	container_of(d, struct gameport, dev)
gameport           54 include/linux/gameport.h 	int (*connect)(struct gameport *, struct gameport_driver *drv);
gameport           55 include/linux/gameport.h 	int (*reconnect)(struct gameport *);
gameport           56 include/linux/gameport.h 	void (*disconnect)(struct gameport *);
gameport           64 include/linux/gameport.h int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode);
gameport           65 include/linux/gameport.h void gameport_close(struct gameport *gameport);
gameport           69 include/linux/gameport.h void __gameport_register_port(struct gameport *gameport, struct module *owner);
gameport           71 include/linux/gameport.h #define gameport_register_port(gameport) \
gameport           72 include/linux/gameport.h 	__gameport_register_port(gameport, THIS_MODULE)
gameport           74 include/linux/gameport.h void gameport_unregister_port(struct gameport *gameport);
gameport           77 include/linux/gameport.h void gameport_set_phys(struct gameport *gameport, const char *fmt, ...);
gameport           81 include/linux/gameport.h static inline void gameport_register_port(struct gameport *gameport)
gameport           86 include/linux/gameport.h static inline void gameport_unregister_port(struct gameport *gameport)
gameport           92 include/linux/gameport.h void gameport_set_phys(struct gameport *gameport, const char *fmt, ...)
gameport           99 include/linux/gameport.h static inline struct gameport *gameport_allocate_port(void)
gameport          101 include/linux/gameport.h 	struct gameport *gameport = kzalloc(sizeof(struct gameport), GFP_KERNEL);
gameport          103 include/linux/gameport.h 	return gameport;
gameport          106 include/linux/gameport.h static inline void gameport_free_port(struct gameport *gameport)
gameport          108 include/linux/gameport.h 	kfree(gameport);
gameport          111 include/linux/gameport.h static inline void gameport_set_name(struct gameport *gameport, const char *name)
gameport          113 include/linux/gameport.h 	strlcpy(gameport->name, name, sizeof(gameport->name));
gameport          120 include/linux/gameport.h static inline void *gameport_get_drvdata(struct gameport *gameport)
gameport          122 include/linux/gameport.h 	return dev_get_drvdata(&gameport->dev);
gameport          125 include/linux/gameport.h static inline void gameport_set_drvdata(struct gameport *gameport, void *data)
gameport          127 include/linux/gameport.h 	dev_set_drvdata(&gameport->dev, data);
gameport          133 include/linux/gameport.h static inline int gameport_pin_driver(struct gameport *gameport)
gameport          135 include/linux/gameport.h 	return mutex_lock_interruptible(&gameport->drv_mutex);
gameport          138 include/linux/gameport.h static inline void gameport_unpin_driver(struct gameport *gameport)
gameport          140 include/linux/gameport.h 	mutex_unlock(&gameport->drv_mutex);
gameport          166 include/linux/gameport.h static inline void gameport_trigger(struct gameport *gameport)
gameport          168 include/linux/gameport.h 	if (gameport->trigger)
gameport          169 include/linux/gameport.h 		gameport->trigger(gameport);
gameport          171 include/linux/gameport.h 		outb(0xff, gameport->io);
gameport          174 include/linux/gameport.h static inline unsigned char gameport_read(struct gameport *gameport)
gameport          176 include/linux/gameport.h 	if (gameport->read)
gameport          177 include/linux/gameport.h 		return gameport->read(gameport);
gameport          179 include/linux/gameport.h 		return inb(gameport->io);
gameport          182 include/linux/gameport.h static inline int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons)
gameport          184 include/linux/gameport.h 	if (gameport->cooked_read)
gameport          185 include/linux/gameport.h 		return gameport->cooked_read(gameport, axes, buttons);
gameport          190 include/linux/gameport.h static inline int gameport_calibrate(struct gameport *gameport, int *axes, int *max)
gameport          192 include/linux/gameport.h 	if (gameport->calibrate)
gameport          193 include/linux/gameport.h 		return gameport->calibrate(gameport, axes, max);
gameport          198 include/linux/gameport.h static inline int gameport_time(struct gameport *gameport, int time)
gameport          200 include/linux/gameport.h 	return (time * gameport->speed) / 1000;
gameport          203 include/linux/gameport.h static inline void gameport_set_poll_handler(struct gameport *gameport, void (*handler)(struct gameport *))
gameport          205 include/linux/gameport.h 	gameport->poll_handler = handler;
gameport          208 include/linux/gameport.h static inline void gameport_set_poll_interval(struct gameport *gameport, unsigned int msecs)
gameport          210 include/linux/gameport.h 	gameport->poll_interval = msecs;
gameport          213 include/linux/gameport.h void gameport_start_polling(struct gameport *gameport);
gameport          214 include/linux/gameport.h void gameport_stop_polling(struct gameport *gameport);
gameport           47 sound/isa/cmi8328.c static bool gameport[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = true};
gameport           69 sound/isa/cmi8328.c module_param_array(gameport, bool, NULL, 0444);
gameport           70 sound/isa/cmi8328.c MODULE_PARM_DESC(gameport, "Enable gameport.");
gameport           80 sound/isa/cmi8328.c 	struct gameport *gameport;
gameport          376 sound/isa/cmi8328.c 	if (!gameport[ndev])
gameport          383 sound/isa/cmi8328.c 		struct gameport *gp = cmi->gameport = gameport_allocate_port();
gameport          384 sound/isa/cmi8328.c 		if (!cmi->gameport)
gameport          412 sound/isa/cmi8328.c 	if (cmi->gameport) {
gameport          413 sound/isa/cmi8328.c 		struct resource *res = gameport_get_port_data(cmi->gameport);
gameport          414 sound/isa/cmi8328.c 		gameport_unregister_port(cmi->gameport);
gameport          101 sound/pci/als4000.c 	struct gameport *gameport;
gameport          761 sound/pci/als4000.c 	struct gameport *gp;
gameport          784 sound/pci/als4000.c 	acard->gameport = gp = gameport_allocate_port();
gameport          800 sound/pci/als4000.c 	gameport_register_port(acard->gameport);
gameport          807 sound/pci/als4000.c 	if (acard->gameport) {
gameport          808 sound/pci/als4000.c 		struct resource *r = gameport_get_port_data(acard->gameport);
gameport          810 sound/pci/als4000.c 		gameport_unregister_port(acard->gameport);
gameport          811 sound/pci/als4000.c 		acard->gameport = NULL;
gameport          998 sound/pci/als4000.c 	if (acard->gameport)
gameport          170 sound/pci/au88x0/au88x0.h 	struct gameport *gameport;
gameport           30 sound/pci/au88x0/au88x0_game.c static unsigned char vortex_game_read(struct gameport *gameport)
gameport           32 sound/pci/au88x0/au88x0_game.c 	vortex_t *vortex = gameport_get_port_data(gameport);
gameport           36 sound/pci/au88x0/au88x0_game.c static void vortex_game_trigger(struct gameport *gameport)
gameport           38 sound/pci/au88x0/au88x0_game.c 	vortex_t *vortex = gameport_get_port_data(gameport);
gameport           43 sound/pci/au88x0/au88x0_game.c vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons)
gameport           45 sound/pci/au88x0/au88x0_game.c 	vortex_t *vortex = gameport_get_port_data(gameport);
gameport           59 sound/pci/au88x0/au88x0_game.c static int vortex_game_open(struct gameport *gameport, int mode)
gameport           61 sound/pci/au88x0/au88x0_game.c 	vortex_t *vortex = gameport_get_port_data(gameport);
gameport           84 sound/pci/au88x0/au88x0_game.c 	struct gameport *gp;
gameport           86 sound/pci/au88x0/au88x0_game.c 	vortex->gameport = gp = gameport_allocate_port();
gameport          112 sound/pci/au88x0/au88x0_game.c 	if (vortex->gameport) {
gameport          113 sound/pci/au88x0/au88x0_game.c 		gameport_unregister_port(vortex->gameport);
gameport          114 sound/pci/au88x0/au88x0_game.c 		vortex->gameport = NULL;
gameport          286 sound/pci/azt3328.c 	struct gameport *gameport;
gameport         1709 sound/pci/azt3328.c snd_azf3328_gameport_open(struct gameport *gameport, int mode)
gameport         1711 sound/pci/azt3328.c 	struct snd_azf3328 *chip = gameport_get_port_data(gameport);
gameport         1733 sound/pci/azt3328.c snd_azf3328_gameport_close(struct gameport *gameport)
gameport         1735 sound/pci/azt3328.c 	struct snd_azf3328 *chip = gameport_get_port_data(gameport);
gameport         1744 sound/pci/azt3328.c snd_azf3328_gameport_cooked_read(struct gameport *gameport,
gameport         1749 sound/pci/azt3328.c 	struct snd_azf3328 *chip = gameport_get_port_data(gameport);
gameport         1811 sound/pci/azt3328.c 	struct gameport *gp;
gameport         1813 sound/pci/azt3328.c 	chip->gameport = gp = gameport_allocate_port();
gameport         1837 sound/pci/azt3328.c 	gameport_register_port(chip->gameport);
gameport         1845 sound/pci/azt3328.c 	if (chip->gameport) {
gameport         1846 sound/pci/azt3328.c 		gameport_unregister_port(chip->gameport);
gameport         1847 sound/pci/azt3328.c 		chip->gameport = NULL;
gameport          489 sound/pci/cmipci.c 	struct gameport *gameport;
gameport         2851 sound/pci/cmipci.c 	struct gameport *gp;
gameport         2875 sound/pci/cmipci.c 	cm->gameport = gp = gameport_allocate_port();
gameport         2889 sound/pci/cmipci.c 	gameport_register_port(cm->gameport);
gameport         2896 sound/pci/cmipci.c 	if (cm->gameport) {
gameport         2897 sound/pci/cmipci.c 		struct resource *r = gameport_get_port_data(cm->gameport);
gameport         2899 sound/pci/cmipci.c 		gameport_unregister_port(cm->gameport);
gameport         2900 sound/pci/cmipci.c 		cm->gameport = NULL;
gameport          472 sound/pci/cs4281.c 	struct gameport *gameport;
gameport         1182 sound/pci/cs4281.c static void snd_cs4281_gameport_trigger(struct gameport *gameport)
gameport         1184 sound/pci/cs4281.c 	struct cs4281 *chip = gameport_get_port_data(gameport);
gameport         1191 sound/pci/cs4281.c static unsigned char snd_cs4281_gameport_read(struct gameport *gameport)
gameport         1193 sound/pci/cs4281.c 	struct cs4281 *chip = gameport_get_port_data(gameport);
gameport         1201 sound/pci/cs4281.c static int snd_cs4281_gameport_cooked_read(struct gameport *gameport,
gameport         1204 sound/pci/cs4281.c 	struct cs4281 *chip = gameport_get_port_data(gameport);
gameport         1229 sound/pci/cs4281.c static int snd_cs4281_gameport_open(struct gameport *gameport, int mode)
gameport         1246 sound/pci/cs4281.c 	struct gameport *gp;
gameport         1248 sound/pci/cs4281.c 	chip->gameport = gp = gameport_allocate_port();
gameport         1274 sound/pci/cs4281.c 	if (chip->gameport) {
gameport         1275 sound/pci/cs4281.c 		gameport_unregister_port(chip->gameport);
gameport         1276 sound/pci/cs4281.c 		chip->gameport = NULL;
gameport         1694 sound/pci/cs46xx/cs46xx.h 	struct gameport *gameport;
gameport         2711 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_gameport_trigger(struct gameport *gameport)
gameport         2713 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = gameport_get_port_data(gameport);
gameport         2720 sound/pci/cs46xx/cs46xx_lib.c static unsigned char snd_cs46xx_gameport_read(struct gameport *gameport)
gameport         2722 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = gameport_get_port_data(gameport);
gameport         2729 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons)
gameport         2731 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = gameport_get_port_data(gameport);
gameport         2753 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_gameport_open(struct gameport *gameport, int mode)
gameport         2768 sound/pci/cs46xx/cs46xx_lib.c 	struct gameport *gp;
gameport         2770 sound/pci/cs46xx/cs46xx_lib.c 	chip->gameport = gp = gameport_allocate_port();
gameport         2797 sound/pci/cs46xx/cs46xx_lib.c 	if (chip->gameport) {
gameport         2798 sound/pci/cs46xx/cs46xx_lib.c 		gameport_unregister_port(chip->gameport);
gameport         2799 sound/pci/cs46xx/cs46xx_lib.c 		chip->gameport = NULL;
gameport          429 sound/pci/ens1370.c 	struct gameport *gameport;
gameport         1794 sound/pci/ens1370.c 	struct gameport *gp;
gameport         1824 sound/pci/ens1370.c 	ensoniq->gameport = gp = gameport_allocate_port();
gameport         1844 sound/pci/ens1370.c 	gameport_register_port(ensoniq->gameport);
gameport         1851 sound/pci/ens1370.c 	if (ensoniq->gameport) {
gameport         1852 sound/pci/ens1370.c 		int port = ensoniq->gameport->io;
gameport         1854 sound/pci/ens1370.c 		gameport_unregister_port(ensoniq->gameport);
gameport         1855 sound/pci/ens1370.c 		ensoniq->gameport = NULL;
gameport          221 sound/pci/es1938.c 	struct gameport *gameport;
gameport         1514 sound/pci/es1938.c 	struct gameport *gp;
gameport         1516 sound/pci/es1938.c 	chip->gameport = gp = gameport_allocate_port();
gameport         1535 sound/pci/es1938.c 	if (chip->gameport) {
gameport         1536 sound/pci/es1938.c 		gameport_unregister_port(chip->gameport);
gameport         1537 sound/pci/es1938.c 		chip->gameport = NULL;
gameport          538 sound/pci/es1968.c 	struct gameport *gameport;
gameport         2438 sound/pci/es1968.c 	struct gameport *gp;
gameport         2449 sound/pci/es1968.c 	chip->gameport = gp = gameport_allocate_port();
gameport         2473 sound/pci/es1968.c 	if (chip->gameport) {
gameport         2474 sound/pci/es1968.c 		struct resource *r = gameport_get_port_data(chip->gameport);
gameport         2476 sound/pci/es1968.c 		gameport_unregister_port(chip->gameport);
gameport         2477 sound/pci/es1968.c 		chip->gameport = NULL;
gameport         1996 sound/pci/riptide/riptide.c 	struct gameport *gameport;
gameport         2012 sound/pci/riptide/riptide.c 	gameport = gameport_allocate_port();
gameport         2013 sound/pci/riptide/riptide.c 	if (!gameport) {
gameport         2021 sound/pci/riptide/riptide.c 		gameport_free_port(gameport);
gameport         2026 sound/pci/riptide/riptide.c 	gameport->io = joystick_port[dev];
gameport         2027 sound/pci/riptide/riptide.c 	gameport_register_port(gameport);
gameport         2028 sound/pci/riptide/riptide.c 	pci_set_drvdata(pci, gameport);
gameport         2038 sound/pci/riptide/riptide.c 	struct gameport *gameport = pci_get_drvdata(pci);
gameport         2039 sound/pci/riptide/riptide.c 	if (gameport) {
gameport         2040 sound/pci/riptide/riptide.c 		release_region(gameport->io, 8);
gameport         2041 sound/pci/riptide/riptide.c 		gameport_unregister_port(gameport);
gameport          226 sound/pci/sonicvibes.c 	struct gameport *gameport;
gameport         1174 sound/pci/sonicvibes.c 	struct gameport *gp;
gameport         1177 sound/pci/sonicvibes.c 	sonic->gameport = gp = gameport_allocate_port();
gameport         1201 sound/pci/sonicvibes.c 	if (sonic->gameport) {
gameport         1202 sound/pci/sonicvibes.c 		gameport_unregister_port(sonic->gameport);
gameport         1203 sound/pci/sonicvibes.c 		sonic->gameport = NULL;
gameport          397 sound/pci/trident/trident.h 	struct gameport *gameport;
gameport         3111 sound/pci/trident/trident_main.c static unsigned char snd_trident_gameport_read(struct gameport *gameport)
gameport         3113 sound/pci/trident/trident_main.c 	struct snd_trident *chip = gameport_get_port_data(gameport);
gameport         3120 sound/pci/trident/trident_main.c static void snd_trident_gameport_trigger(struct gameport *gameport)
gameport         3122 sound/pci/trident/trident_main.c 	struct snd_trident *chip = gameport_get_port_data(gameport);
gameport         3129 sound/pci/trident/trident_main.c static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons)
gameport         3131 sound/pci/trident/trident_main.c 	struct snd_trident *chip = gameport_get_port_data(gameport);
gameport         3147 sound/pci/trident/trident_main.c static int snd_trident_gameport_open(struct gameport *gameport, int mode)
gameport         3149 sound/pci/trident/trident_main.c 	struct snd_trident *chip = gameport_get_port_data(gameport);
gameport         3169 sound/pci/trident/trident_main.c 	struct gameport *gp;
gameport         3171 sound/pci/trident/trident_main.c 	chip->gameport = gp = gameport_allocate_port();
gameport         3196 sound/pci/trident/trident_main.c 	if (chip->gameport) {
gameport         3197 sound/pci/trident/trident_main.c 		gameport_unregister_port(chip->gameport);
gameport         3198 sound/pci/trident/trident_main.c 		chip->gameport = NULL;
gameport          389 sound/pci/via82xx.c 	struct gameport *gameport;
gameport         1923 sound/pci/via82xx.c 	struct gameport *gp;
gameport         1936 sound/pci/via82xx.c 	chip->gameport = gp = gameport_allocate_port();
gameport         1954 sound/pci/via82xx.c 	gameport_register_port(chip->gameport);
gameport         1961 sound/pci/via82xx.c 	if (chip->gameport) {
gameport         1962 sound/pci/via82xx.c 		struct resource *r = gameport_get_port_data(chip->gameport);
gameport         1964 sound/pci/via82xx.c 		gameport_unregister_port(chip->gameport);
gameport         1965 sound/pci/via82xx.c 		chip->gameport = NULL;
gameport           70 sound/pci/ymfpci/ymfpci.c 	struct gameport *gp;
gameport          117 sound/pci/ymfpci/ymfpci.c 	chip->gameport = gp = gameport_allocate_port();
gameport          138 sound/pci/ymfpci/ymfpci.c 	gameport_register_port(chip->gameport);
gameport          145 sound/pci/ymfpci/ymfpci.c 	if (chip->gameport) {
gameport          146 sound/pci/ymfpci/ymfpci.c 		struct resource *r = gameport_get_port_data(chip->gameport);
gameport          148 sound/pci/ymfpci/ymfpci.c 		gameport_unregister_port(chip->gameport);
gameport          149 sound/pci/ymfpci/ymfpci.c 		chip->gameport = NULL;
gameport          284 sound/pci/ymfpci/ymfpci.h 	struct gameport *gameport;