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
214 snprintf(buttons->name, sizeof(buttons->name), in ims_pcu_setup_buttons()
217 usb_make_path(pcu->udev, buttons->phys, sizeof(buttons->phys)); in ims_pcu_setup_buttons()
218 strlcat(buttons->phys, "/input0", sizeof(buttons->phys)); in ims_pcu_setup_buttons()
220 memcpy(buttons->keymap, keymap, sizeof(*keymap) * keymap_len); in ims_pcu_setup_buttons()
222 input->name = buttons->name; in ims_pcu_setup_buttons()
223 input->phys = buttons->phys; in ims_pcu_setup_buttons()
227 input->keycode = buttons->keymap; in ims_pcu_setup_buttons()
228 input->keycodemax = ARRAY_SIZE(buttons->keymap); in ims_pcu_setup_buttons()
229 input->keycodesize = sizeof(buttons->keymap[0]); in ims_pcu_setup_buttons()
233 __set_bit(buttons->keymap[i], input->keybit); in ims_pcu_setup_buttons()
245 buttons->input = input; in ims_pcu_setup_buttons()
251 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_destroy_buttons() local
253 input_unregister_device(buttons->input); in ims_pcu_destroy_buttons()