Lines Matching full:gamepad

110 	struct ims_pcu_gamepad *gamepad;  member
258 * Gamepad Input device support *
263 struct ims_pcu_gamepad *gamepad = pcu->gamepad; in ims_pcu_gamepad_report() local
264 struct input_dev *input = gamepad->input; in ims_pcu_gamepad_report()
285 struct ims_pcu_gamepad *gamepad; in ims_pcu_setup_gamepad() local
289 gamepad = kzalloc(sizeof(*gamepad), GFP_KERNEL); in ims_pcu_setup_gamepad()
291 if (!gamepad || !input) { in ims_pcu_setup_gamepad()
293 "Not enough memory for gamepad device\n"); in ims_pcu_setup_gamepad()
298 gamepad->input = input; in ims_pcu_setup_gamepad()
300 snprintf(gamepad->name, sizeof(gamepad->name), in ims_pcu_setup_gamepad()
301 "IMS PCU#%d Gamepad Interface", pcu->device_no); in ims_pcu_setup_gamepad()
303 usb_make_path(pcu->udev, gamepad->phys, sizeof(gamepad->phys)); in ims_pcu_setup_gamepad()
304 strlcat(gamepad->phys, "/input1", sizeof(gamepad->phys)); in ims_pcu_setup_gamepad()
306 input->name = gamepad->name; in ims_pcu_setup_gamepad()
307 input->phys = gamepad->phys; in ims_pcu_setup_gamepad()
326 "Failed to register gamepad input device: %d\n", in ims_pcu_setup_gamepad()
331 pcu->gamepad = gamepad; in ims_pcu_setup_gamepad()
336 kfree(gamepad); in ims_pcu_setup_gamepad()
342 struct ims_pcu_gamepad *gamepad = pcu->gamepad; in ims_pcu_destroy_gamepad() local
344 input_unregister_device(gamepad->input); in ims_pcu_destroy_gamepad()
345 kfree(gamepad); in ims_pcu_destroy_gamepad()
412 if (pcu->gamepad) in ims_pcu_report_events()
1931 if (pcu->gamepad) in ims_pcu_destroy_application_mode()