Lines Matching refs:gamepad
115 struct ims_pcu_gamepad *gamepad; member
269 struct ims_pcu_gamepad *gamepad = pcu->gamepad; in ims_pcu_gamepad_report() local
270 struct input_dev *input = gamepad->input; in ims_pcu_gamepad_report()
291 struct ims_pcu_gamepad *gamepad; in ims_pcu_setup_gamepad() local
295 gamepad = kzalloc(sizeof(struct ims_pcu_gamepad), GFP_KERNEL); in ims_pcu_setup_gamepad()
297 if (!gamepad || !input) { in ims_pcu_setup_gamepad()
304 gamepad->input = input; in ims_pcu_setup_gamepad()
306 snprintf(gamepad->name, sizeof(gamepad->name), in ims_pcu_setup_gamepad()
309 usb_make_path(pcu->udev, gamepad->phys, sizeof(gamepad->phys)); in ims_pcu_setup_gamepad()
310 strlcat(gamepad->phys, "/input1", sizeof(gamepad->phys)); in ims_pcu_setup_gamepad()
312 input->name = gamepad->name; in ims_pcu_setup_gamepad()
313 input->phys = gamepad->phys; in ims_pcu_setup_gamepad()
337 pcu->gamepad = gamepad; in ims_pcu_setup_gamepad()
342 kfree(gamepad); in ims_pcu_setup_gamepad()
348 struct ims_pcu_gamepad *gamepad = pcu->gamepad; in ims_pcu_destroy_gamepad() local
350 input_unregister_device(gamepad->input); in ims_pcu_destroy_gamepad()
351 kfree(gamepad); in ims_pcu_destroy_gamepad()
418 if (pcu->gamepad) in ims_pcu_report_events()
1949 if (pcu->gamepad) in ims_pcu_destroy_application_mode()