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

Lines Matching defs:scancode

1 /* ir-keytable.c - handle IR scancode->keycode tables
27 * ir_resize_table() - resizes a scancode table if necessary
75 * scancode->keycode table
78 * @scancode: the scancode for the ir command
83 * This routine is used internally to manipulate the scancode->keycode table.
88 unsigned scancode, unsigned keycode,
103 scancode &= ir_dev->props->scanmask;
108 /* Keytable is sorted from lowest to highest scancode */
109 if (rc_tab->scan[i].scancode > scancode)
111 else if (rc_tab->scan[i].scancode < scancode)
120 i, scancode);
137 i, scancode, keycode);
142 rc_tab->scan[i].scancode = scancode;
148 i, scancode, keycode);
151 /* ...but another scancode might use the same keycode */
164 * ir_setkeycode() - set a keycode in the scancode->keycode table
166 * @scancode: the desired scancode
173 unsigned int scancode, unsigned int keycode)
181 rc = ir_do_setkeycode(dev, rc_tab, scancode, keycode, true);
187 * ir_setkeytable() - sets several entries in the scancode->keycode table
207 rc = ir_do_setkeycode(dev, to, from->scan[i].scancode,
217 * ir_getkeycode() - get a keycode from the scancode->keycode table
219 * @scancode: the desired scancode
226 unsigned int scancode, unsigned int *keycode)
239 if (rc_tab->scan[mid].scancode < scancode)
241 else if (rc_tab->scan[mid].scancode > scancode)
251 IR_dprintk(1, "unknown key for scancode 0x%04x\n",
252 scancode);
259 * ir_g_keycode_from_table() - gets the keycode that corresponds to a scancode
261 * @scancode: the scancode that we're seeking
264 * IR. The scancode is received and needs to be converted into a keycode.
268 u32 ir_g_keycode_from_table(struct input_dev *dev, u32 scancode)
272 ir_getkeycode(dev, scancode, &keycode);
274 IR_dprintk(1, "%s: scancode 0x%04x keycode 0x%02x\n",
275 dev->name, scancode, keycode);
331 * not include the necessary bits to reproduce the scancode has been
357 * @scancode: the scancode that we're seeking
362 * IR. It gets the keycode for a scancode and reports an input event via
365 void ir_keydown(struct input_dev *dev, int scancode, u8 toggle)
370 u32 keycode = ir_g_keycode_from_table(dev, scancode);
374 input_event(dev, EV_MSC, MSC_SCAN, scancode);
378 ir->last_scancode == scancode &&
385 ir->last_scancode = scancode;
396 IR_dprintk(1, "%s: key down event, key 0x%04x, scancode 0x%04x\n",
397 dev->name, keycode, scancode);
427 * @rc_tab: the struct ir_scancode_table table of scancode/keymap