• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/input/keyboard/

Lines Matching refs:bf54x_kpad

78 struct bf54x_kpad {
90 static inline int bfin_kpad_find_key(struct bf54x_kpad *bf54x_kpad,
96 if (bf54x_kpad->keycode[i + input->keycodemax] == keyident)
97 return bf54x_kpad->keycode[i];
120 static inline u16 bfin_kpad_get_keypressed(struct bf54x_kpad *bf54x_kpad)
134 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev);
136 if (bfin_kpad_get_keypressed(bf54x_kpad)) {
138 mod_timer(&bf54x_kpad->timer,
139 jiffies + bf54x_kpad->keyup_test_jiffies);
143 input_report_key(bf54x_kpad->input, bf54x_kpad->lastkey, 0);
144 input_sync(bf54x_kpad->input);
149 enable_irq(bf54x_kpad->irq);
155 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev);
156 struct input_dev *input = bf54x_kpad->input;
160 key = bfin_kpad_find_key(bf54x_kpad, input, rowcol);
165 if (bfin_kpad_get_keypressed(bf54x_kpad)) {
166 disable_irq_nosync(bf54x_kpad->irq);
167 bf54x_kpad->lastkey = key;
168 mod_timer(&bf54x_kpad->timer,
169 jiffies + bf54x_kpad->keyup_test_jiffies);
182 struct bf54x_kpad *bf54x_kpad;
198 bf54x_kpad = kzalloc(sizeof(struct bf54x_kpad), GFP_KERNEL);
199 if (!bf54x_kpad)
202 platform_set_drvdata(pdev, bf54x_kpad);
205 bf54x_kpad->keycode = kmalloc(pdata->keymapsize *
207 if (!bf54x_kpad->keycode) {
227 bf54x_kpad->keyup_test_jiffies = msecs_to_jiffies(50);
229 bf54x_kpad->keyup_test_jiffies =
246 bf54x_kpad->irq = platform_get_irq(pdev, 0);
247 if (bf54x_kpad->irq < 0) {
252 error = request_irq(bf54x_kpad->irq, bfin_kpad_isr,
256 bf54x_kpad->irq);
266 bf54x_kpad->input = input;
272 input_set_drvdata(input, bf54x_kpad);
281 input->keycode = bf54x_kpad->keycode;
283 bfin_keycodecpy(bf54x_kpad->keycode, pdata->keymap, pdata->keymapsize);
292 __set_bit(bf54x_kpad->keycode[i] & KEY_MAX, input->keybit);
303 setup_timer(&bf54x_kpad->timer, bfin_kpad_timer, (unsigned long) pdev);
320 free_irq(bf54x_kpad->irq, pdev);
326 kfree(bf54x_kpad->keycode);
328 kfree(bf54x_kpad);
337 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev);
339 del_timer_sync(&bf54x_kpad->timer);
340 free_irq(bf54x_kpad->irq, pdev);
342 input_unregister_device(bf54x_kpad->input);
347 kfree(bf54x_kpad->keycode);
348 kfree(bf54x_kpad);
357 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev);
359 bf54x_kpad->kpad_msel = bfin_read_KPAD_MSEL();
360 bf54x_kpad->kpad_prescale = bfin_read_KPAD_PRESCALE();
361 bf54x_kpad->kpad_ctl = bfin_read_KPAD_CTL();
364 enable_irq_wake(bf54x_kpad->irq);
371 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev);
373 bfin_write_KPAD_MSEL(bf54x_kpad->kpad_msel);
374 bfin_write_KPAD_PRESCALE(bf54x_kpad->kpad_prescale);
375 bfin_write_KPAD_CTL(bf54x_kpad->kpad_ctl);
378 disable_irq_wake(bf54x_kpad->irq);