Lines Matching refs:buttons
109 struct ims_pcu_buttons buttons; member
185 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_buttons_report() local
186 struct input_dev *input = buttons->input; in ims_pcu_buttons_report()
190 unsigned short keycode = buttons->keymap[i]; in ims_pcu_buttons_report()
203 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_setup_buttons() local
215 snprintf(buttons->name, sizeof(buttons->name), in ims_pcu_setup_buttons()
218 usb_make_path(pcu->udev, buttons->phys, sizeof(buttons->phys)); in ims_pcu_setup_buttons()
219 strlcat(buttons->phys, "/input0", sizeof(buttons->phys)); in ims_pcu_setup_buttons()
221 memcpy(buttons->keymap, keymap, sizeof(*keymap) * keymap_len); in ims_pcu_setup_buttons()
223 input->name = buttons->name; in ims_pcu_setup_buttons()
224 input->phys = buttons->phys; in ims_pcu_setup_buttons()
228 input->keycode = buttons->keymap; in ims_pcu_setup_buttons()
229 input->keycodemax = ARRAY_SIZE(buttons->keymap); in ims_pcu_setup_buttons()
230 input->keycodesize = sizeof(buttons->keymap[0]); in ims_pcu_setup_buttons()
234 __set_bit(buttons->keymap[i], input->keybit); in ims_pcu_setup_buttons()
246 buttons->input = input; in ims_pcu_setup_buttons()
252 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_destroy_buttons() local
254 input_unregister_device(buttons->input); in ims_pcu_destroy_buttons()