grip              168 drivers/input/joystick/grip.c 	struct grip *grip = gameport_get_drvdata(gameport);
grip              175 drivers/input/joystick/grip.c 		dev = grip->dev[i];
grip              179 drivers/input/joystick/grip.c 		grip->reads++;
grip              181 drivers/input/joystick/grip.c 		switch (grip->mode[i]) {
grip              185 drivers/input/joystick/grip.c 				if (grip_gpp_read_packet(grip->gameport, (i << 1) + 4, data)) {
grip              186 drivers/input/joystick/grip.c 					grip->bads++;
grip              201 drivers/input/joystick/grip.c 				if (grip_xt_read_packet(grip->gameport, (i << 1) + 4, data)) {
grip              202 drivers/input/joystick/grip.c 					grip->bads++;
grip              220 drivers/input/joystick/grip.c 				if (grip_xt_read_packet(grip->gameport, (i << 1) + 4, data)) {
grip              221 drivers/input/joystick/grip.c 					grip->bads++;
grip              242 drivers/input/joystick/grip.c 				if (grip_xt_read_packet(grip->gameport, (i << 1) + 4, data)) {
grip              243 drivers/input/joystick/grip.c 					grip->bads++;
grip              269 drivers/input/joystick/grip.c 	struct grip *grip = input_get_drvdata(dev);
grip              271 drivers/input/joystick/grip.c 	gameport_start_polling(grip->gameport);
grip              277 drivers/input/joystick/grip.c 	struct grip *grip = input_get_drvdata(dev);
grip              279 drivers/input/joystick/grip.c 	gameport_stop_polling(grip->gameport);
grip              284 drivers/input/joystick/grip.c 	struct grip *grip;
grip              290 drivers/input/joystick/grip.c 	if (!(grip = kzalloc(sizeof(struct grip), GFP_KERNEL)))
grip              293 drivers/input/joystick/grip.c 	grip->gameport = gameport;
grip              295 drivers/input/joystick/grip.c 	gameport_set_drvdata(gameport, grip);
grip              303 drivers/input/joystick/grip.c 			grip->mode[i] = GRIP_MODE_GPP;
grip              308 drivers/input/joystick/grip.c 				grip->mode[i] = GRIP_MODE_BD;
grip              312 drivers/input/joystick/grip.c 				grip->mode[i] = GRIP_MODE_XT;
grip              315 drivers/input/joystick/grip.c 			grip->mode[i] = GRIP_MODE_DC;
grip              320 drivers/input/joystick/grip.c 	if (!grip->mode[0] && !grip->mode[1]) {
grip              329 drivers/input/joystick/grip.c 		if (!grip->mode[i])
grip              332 drivers/input/joystick/grip.c 		grip->dev[i] = input_dev = input_allocate_device();
grip              338 drivers/input/joystick/grip.c 		snprintf(grip->phys[i], sizeof(grip->phys[i]),
grip              341 drivers/input/joystick/grip.c 		input_dev->name = grip_name[grip->mode[i]];
grip              342 drivers/input/joystick/grip.c 		input_dev->phys = grip->phys[i];
grip              345 drivers/input/joystick/grip.c 		input_dev->id.product = grip->mode[i];
grip              349 drivers/input/joystick/grip.c 		input_set_drvdata(input_dev, grip);
grip              356 drivers/input/joystick/grip.c 		for (j = 0; (t = grip_abs[grip->mode[i]][j]) >= 0; j++) {
grip              358 drivers/input/joystick/grip.c 			if (j < grip_cen[grip->mode[i]])
grip              360 drivers/input/joystick/grip.c 			else if (j < grip_anx[grip->mode[i]])
grip              366 drivers/input/joystick/grip.c 		for (j = 0; (t = grip_btn[grip->mode[i]][j]) >= 0; j++)
grip              370 drivers/input/joystick/grip.c 		err = input_register_device(grip->dev[i]);
grip              377 drivers/input/joystick/grip.c  fail4:	input_free_device(grip->dev[i]);
grip              379 drivers/input/joystick/grip.c 		if (grip->dev[i])
grip              380 drivers/input/joystick/grip.c 			input_unregister_device(grip->dev[i]);
grip              383 drivers/input/joystick/grip.c 	kfree(grip);
grip              389 drivers/input/joystick/grip.c 	struct grip *grip = gameport_get_drvdata(gameport);
grip              393 drivers/input/joystick/grip.c 		if (grip->dev[i])
grip              394 drivers/input/joystick/grip.c 			input_unregister_device(grip->dev[i]);
grip              397 drivers/input/joystick/grip.c 	kfree(grip);
grip              113 drivers/input/joystick/grip_mp.c static int register_slot(int i, struct grip_mp *grip);
grip              358 drivers/input/joystick/grip_mp.c static int get_and_decode_packet(struct grip_mp *grip, int flags)
grip              368 drivers/input/joystick/grip_mp.c 	flags = multiport_io(grip->gameport, flags, 0, &packet);
grip              369 drivers/input/joystick/grip_mp.c 	grip->reads++;
grip              375 drivers/input/joystick/grip_mp.c 		grip->bads++;
grip              385 drivers/input/joystick/grip_mp.c 	port = grip->port[slot];
grip              424 drivers/input/joystick/grip_mp.c 			if (register_slot(slot, grip)) {
grip              449 drivers/input/joystick/grip_mp.c static int slots_valid(struct grip_mp *grip)
grip              453 drivers/input/joystick/grip_mp.c 	flags = get_and_decode_packet(grip, 0);
grip              458 drivers/input/joystick/grip_mp.c 		if (grip->port[slot]->mode == GRIP_MODE_RESET)
grip              460 drivers/input/joystick/grip_mp.c 		if (grip->port[slot]->mode != GRIP_MODE_NONE)
grip              477 drivers/input/joystick/grip_mp.c static int multiport_init(struct grip_mp *grip)
grip              482 drivers/input/joystick/grip_mp.c 	dig_mode = dig_mode_start(grip->gameport, &packet);
grip              484 drivers/input/joystick/grip_mp.c 		dig_mode = dig_mode_start(grip->gameport, &packet);
grip              497 drivers/input/joystick/grip_mp.c 		if (slots_valid(grip)) {
grip              510 drivers/input/joystick/grip_mp.c static void report_slot(struct grip_mp *grip, int slot)
grip              512 drivers/input/joystick/grip_mp.c 	struct grip_port *port = grip->port[slot];
grip              538 drivers/input/joystick/grip_mp.c 	struct grip_mp *grip = gameport_get_drvdata(gameport);
grip              544 drivers/input/joystick/grip_mp.c 			flags = get_and_decode_packet(grip, flags);
grip              553 drivers/input/joystick/grip_mp.c 		if (grip->port[i]->dirty)
grip              554 drivers/input/joystick/grip_mp.c 			report_slot(grip, i);
grip              563 drivers/input/joystick/grip_mp.c 	struct grip_mp *grip = input_get_drvdata(dev);
grip              565 drivers/input/joystick/grip_mp.c 	gameport_start_polling(grip->gameport);
grip              575 drivers/input/joystick/grip_mp.c 	struct grip_mp *grip = input_get_drvdata(dev);
grip              577 drivers/input/joystick/grip_mp.c 	gameport_stop_polling(grip->gameport);
grip              584 drivers/input/joystick/grip_mp.c static int register_slot(int slot, struct grip_mp *grip)
grip              586 drivers/input/joystick/grip_mp.c 	struct grip_port *port = grip->port[slot];
grip              600 drivers/input/joystick/grip_mp.c 	input_dev->dev.parent = &grip->gameport->dev;
grip              602 drivers/input/joystick/grip_mp.c 	input_set_drvdata(input_dev, grip);
grip              625 drivers/input/joystick/grip_mp.c 		report_slot(grip, slot);
grip              632 drivers/input/joystick/grip_mp.c 	struct grip_mp *grip;
grip              635 drivers/input/joystick/grip_mp.c 	if (!(grip = kzalloc(sizeof(struct grip_mp), GFP_KERNEL)))
grip              638 drivers/input/joystick/grip_mp.c 	grip->gameport = gameport;
grip              640 drivers/input/joystick/grip_mp.c 	gameport_set_drvdata(gameport, grip);
grip              649 drivers/input/joystick/grip_mp.c 	if (!multiport_init(grip)) {
grip              654 drivers/input/joystick/grip_mp.c 	if (!grip->port[0]->mode && !grip->port[1]->mode && !grip->port[2]->mode && !grip->port[3]->mode) {
grip              664 drivers/input/joystick/grip_mp.c 	kfree(grip);
grip              670 drivers/input/joystick/grip_mp.c 	struct grip_mp *grip = gameport_get_drvdata(gameport);
grip              674 drivers/input/joystick/grip_mp.c 		if (grip->port[i]->registered)
grip              675 drivers/input/joystick/grip_mp.c 			input_unregister_device(grip->port[i]->dev);
grip              678 drivers/input/joystick/grip_mp.c 	kfree(grip);