Lines Matching refs:input
78 struct input_dev *input; member
90 struct input_dev *input, u16 keyident) in bfin_kpad_find_key() argument
94 for (i = 0; i < input->keycodemax; i++) in bfin_kpad_find_key()
95 if (bf54x_kpad->keycode[i + input->keycodemax] == keyident) in bfin_kpad_find_key()
142 input_report_key(bf54x_kpad->input, bf54x_kpad->lastkey, 0); in bfin_kpad_timer()
143 input_sync(bf54x_kpad->input); in bfin_kpad_timer()
155 struct input_dev *input = bf54x_kpad->input; in bfin_kpad_isr() local
159 key = bfin_kpad_find_key(bf54x_kpad, input, rowcol); in bfin_kpad_isr()
161 input_report_key(input, key, 1); in bfin_kpad_isr()
162 input_sync(input); in bfin_kpad_isr()
170 input_report_key(input, key, 0); in bfin_kpad_isr()
171 input_sync(input); in bfin_kpad_isr()
183 struct input_dev *input; in bfin_kpad_probe() local
259 input = input_allocate_device(); in bfin_kpad_probe()
260 if (!input) { in bfin_kpad_probe()
265 bf54x_kpad->input = input; in bfin_kpad_probe()
267 input->name = pdev->name; in bfin_kpad_probe()
268 input->phys = "bf54x-keys/input0"; in bfin_kpad_probe()
269 input->dev.parent = &pdev->dev; in bfin_kpad_probe()
271 input_set_drvdata(input, bf54x_kpad); in bfin_kpad_probe()
273 input->id.bustype = BUS_HOST; in bfin_kpad_probe()
274 input->id.vendor = 0x0001; in bfin_kpad_probe()
275 input->id.product = 0x0001; in bfin_kpad_probe()
276 input->id.version = 0x0100; in bfin_kpad_probe()
278 input->keycodesize = sizeof(unsigned short); in bfin_kpad_probe()
279 input->keycodemax = pdata->keymapsize; in bfin_kpad_probe()
280 input->keycode = bf54x_kpad->keycode; in bfin_kpad_probe()
285 __set_bit(EV_KEY, input->evbit); in bfin_kpad_probe()
288 __set_bit(EV_REP, input->evbit); in bfin_kpad_probe()
290 for (i = 0; i < input->keycodemax; i++) in bfin_kpad_probe()
292 __set_bit(bf54x_kpad->keycode[i], input->keybit); in bfin_kpad_probe()
293 __clear_bit(KEY_RESERVED, input->keybit); in bfin_kpad_probe()
295 error = input_register_device(input); in bfin_kpad_probe()
318 input_free_device(input); in bfin_kpad_probe()
341 input_unregister_device(bf54x_kpad->input); in bfin_kpad_remove()