gf2k              158 drivers/input/joystick/gf2k.c static void gf2k_read(struct gf2k *gf2k, unsigned char *data)
gf2k              160 drivers/input/joystick/gf2k.c 	struct input_dev *dev = gf2k->dev;
gf2k              163 drivers/input/joystick/gf2k.c 	for (i = 0; i < 4 && i < gf2k_axes[gf2k->id]; i++)
gf2k              166 drivers/input/joystick/gf2k.c 	for (i = 0; i < 2 && i < gf2k_axes[gf2k->id] - 4; i++)
gf2k              171 drivers/input/joystick/gf2k.c 	for (i = 0; i < gf2k_hats[gf2k->id]; i++)
gf2k              176 drivers/input/joystick/gf2k.c 	for (i = 0; i < gf2k_joys[gf2k->id]; i++)
gf2k              179 drivers/input/joystick/gf2k.c 	for (i = 0; i < gf2k_pads[gf2k->id]; i++)
gf2k              191 drivers/input/joystick/gf2k.c 	struct gf2k *gf2k = gameport_get_drvdata(gameport);
gf2k              194 drivers/input/joystick/gf2k.c 	gf2k->reads++;
gf2k              196 drivers/input/joystick/gf2k.c 	if (gf2k_read_packet(gf2k->gameport, gf2k_length[gf2k->id], data) < gf2k_length[gf2k->id])
gf2k              197 drivers/input/joystick/gf2k.c 		gf2k->bads++;
gf2k              199 drivers/input/joystick/gf2k.c 		gf2k_read(gf2k, data);
gf2k              204 drivers/input/joystick/gf2k.c 	struct gf2k *gf2k = input_get_drvdata(dev);
gf2k              206 drivers/input/joystick/gf2k.c 	gameport_start_polling(gf2k->gameport);
gf2k              212 drivers/input/joystick/gf2k.c 	struct gf2k *gf2k = input_get_drvdata(dev);
gf2k              214 drivers/input/joystick/gf2k.c 	gameport_stop_polling(gf2k->gameport);
gf2k              223 drivers/input/joystick/gf2k.c 	struct gf2k *gf2k;
gf2k              228 drivers/input/joystick/gf2k.c 	gf2k = kzalloc(sizeof(struct gf2k), GFP_KERNEL);
gf2k              230 drivers/input/joystick/gf2k.c 	if (!gf2k || !input_dev) {
gf2k              235 drivers/input/joystick/gf2k.c 	gf2k->gameport = gameport;
gf2k              236 drivers/input/joystick/gf2k.c 	gf2k->dev = input_dev;
gf2k              238 drivers/input/joystick/gf2k.c 	gameport_set_drvdata(gameport, gf2k);
gf2k              257 drivers/input/joystick/gf2k.c 	if (!(gf2k->id = GB(7,2,0) | GB(3,3,2) | GB(0,3,5))) {
gf2k              263 drivers/input/joystick/gf2k.c 	if ((gf2k->id != (GB(19,2,0) | GB(15,3,2) | GB(12,3,5))) &&
gf2k              264 drivers/input/joystick/gf2k.c 	    (gf2k->id != (GB(31,2,0) | GB(27,3,2) | GB(24,3,5)))) {
gf2k              269 drivers/input/joystick/gf2k.c 	gf2k->id = 6;
gf2k              272 drivers/input/joystick/gf2k.c 	if (gf2k->id > GF2K_ID_MAX || !gf2k_axes[gf2k->id]) {
gf2k              274 drivers/input/joystick/gf2k.c 			gameport->phys, gf2k->id, gf2k->id > GF2K_ID_MAX ? "Unknown" : gf2k_names[gf2k->id]);
gf2k              282 drivers/input/joystick/gf2k.c 	snprintf(gf2k->phys, sizeof(gf2k->phys), "%s/input0", gameport->phys);
gf2k              284 drivers/input/joystick/gf2k.c 	gf2k->length = gf2k_lens[gf2k->id];
gf2k              286 drivers/input/joystick/gf2k.c 	input_dev->name = gf2k_names[gf2k->id];
gf2k              287 drivers/input/joystick/gf2k.c 	input_dev->phys = gf2k->phys;
gf2k              290 drivers/input/joystick/gf2k.c 	input_dev->id.product = gf2k->id;
gf2k              294 drivers/input/joystick/gf2k.c 	input_set_drvdata(input_dev, gf2k);
gf2k              301 drivers/input/joystick/gf2k.c 	for (i = 0; i < gf2k_axes[gf2k->id]; i++)
gf2k              304 drivers/input/joystick/gf2k.c 	for (i = 0; i < gf2k_hats[gf2k->id]; i++)
gf2k              307 drivers/input/joystick/gf2k.c 	for (i = 0; i < gf2k_joys[gf2k->id]; i++)
gf2k              310 drivers/input/joystick/gf2k.c 	for (i = 0; i < gf2k_pads[gf2k->id]; i++)
gf2k              313 drivers/input/joystick/gf2k.c 	gf2k_read_packet(gameport, gf2k->length, data);
gf2k              314 drivers/input/joystick/gf2k.c 	gf2k_read(gf2k, data);
gf2k              316 drivers/input/joystick/gf2k.c 	for (i = 0; i < gf2k_axes[gf2k->id]; i++) {
gf2k              327 drivers/input/joystick/gf2k.c 	err = input_register_device(gf2k->dev);
gf2k              336 drivers/input/joystick/gf2k.c 	kfree(gf2k);
gf2k              342 drivers/input/joystick/gf2k.c 	struct gf2k *gf2k = gameport_get_drvdata(gameport);
gf2k              344 drivers/input/joystick/gf2k.c 	input_unregister_device(gf2k->dev);
gf2k              347 drivers/input/joystick/gf2k.c 	kfree(gf2k);