• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/input/keyboard/

Lines Matching refs:hil_dev

110 } hil_dev;
119 switch (hil_dev.data[0]) {
121 down = (hil_dev.data[1] & 1) == 0;
122 scode = hil_dev.data[1] >> 1;
124 input_report_key(hil_dev.dev, key, down);
127 hil_dev.curdev = 0;
139 if (hil_dev.curdev)
141 hil_dev.curdev = c & 7;
142 hil_dev.ptr = 0;
150 if (hil_dev.curdev) {
151 hil_dev.data[hil_dev.ptr++] = c;
152 hil_dev.ptr &= 15;
173 hil_dev.s = s;
174 hil_dev.c = c;
176 hil_dev.valid = 1;
188 spin_lock_irqsave(&hil_dev.lock, flags);
197 spin_unlock_irqrestore(&hil_dev.lock, flags);
210 if (hil_dev.dev) {
214 spin_lock_init(&hil_dev.lock);
215 hil_dev.dev = input_allocate_device();
216 if (!hil_dev.dev)
232 err = request_irq(HIL_IRQ, hil_interrupt, 0, "hil", hil_dev.dev_id);
242 hil_dev.valid = 0; /* clear any pending data */
246 wait_event_interruptible_timeout(hil_wait, hil_dev.valid, 3*HZ);
247 if (!hil_dev.valid) {
251 c = hil_dev.c;
252 hil_dev.valid = 0;
267 set_bit(hphilkeyb_keycode[i], hil_dev.dev->keybit);
269 hil_dev.dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
270 hil_dev.dev->ledbit[0] = BIT(LED_NUML) | BIT(LED_CAPSL) | BIT(LED_SCROLLL);
271 hil_dev.dev->keycodemax = HIL_KEYCODES_SET1_TBLSIZE;
272 hil_dev.dev->keycodesize= sizeof(hphilkeyb_keycode[0]);
273 hil_dev.dev->keycode = hphilkeyb_keycode;
274 hil_dev.dev->name = "HIL keyboard";
275 hil_dev.dev->phys = "hpkbd/input0";
277 hil_dev.dev->id.bustype = BUS_HIL;
278 hil_dev.dev->id.vendor = PCI_VENDOR_ID_HP;
279 hil_dev.dev->id.product = 0x0001;
280 hil_dev.dev->id.version = 0x0010;
282 err = input_register_device(hil_dev.dev);
288 hil_dev.dev->name, kbid, HILBASE, HIL_IRQ);
295 free_irq(HIL_IRQ, hil_dev.dev_id);
301 input_free_device(hil_dev.dev);
302 hil_dev.dev = NULL;
318 hil_dev.dev_id = dev;
354 free_irq(HIL_IRQ, hil_dev.dev_id);
360 input_unregister_device(hil_dev.dev);
362 hil_dev.dev = NULL;