Lines Matching refs:buttons
114 struct ims_pcu_buttons buttons; member
190 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_buttons_report() local
191 struct input_dev *input = buttons->input; in ims_pcu_buttons_report()
195 unsigned short keycode = buttons->keymap[i]; in ims_pcu_buttons_report()
208 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_setup_buttons() local
220 snprintf(buttons->name, sizeof(buttons->name), in ims_pcu_setup_buttons()
223 usb_make_path(pcu->udev, buttons->phys, sizeof(buttons->phys)); in ims_pcu_setup_buttons()
224 strlcat(buttons->phys, "/input0", sizeof(buttons->phys)); in ims_pcu_setup_buttons()
226 memcpy(buttons->keymap, keymap, sizeof(*keymap) * keymap_len); in ims_pcu_setup_buttons()
228 input->name = buttons->name; in ims_pcu_setup_buttons()
229 input->phys = buttons->phys; in ims_pcu_setup_buttons()
233 input->keycode = buttons->keymap; in ims_pcu_setup_buttons()
234 input->keycodemax = ARRAY_SIZE(buttons->keymap); in ims_pcu_setup_buttons()
235 input->keycodesize = sizeof(buttons->keymap[0]); in ims_pcu_setup_buttons()
239 __set_bit(buttons->keymap[i], input->keybit); in ims_pcu_setup_buttons()
251 buttons->input = input; in ims_pcu_setup_buttons()
257 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_destroy_buttons() local
259 input_unregister_device(buttons->input); in ims_pcu_destroy_buttons()