Lines Matching full:scancode

148 static void ir_mce_kbd_process_keyboard_data(struct rc_dev *dev, u32 scancode)  in ir_mce_kbd_process_keyboard_data()  argument
150 u8 keydata1 = (scancode >> 8) & 0xff; in ir_mce_kbd_process_keyboard_data()
151 u8 keydata2 = (scancode >> 16) & 0xff; in ir_mce_kbd_process_keyboard_data()
152 u8 shiftmask = scancode & 0xff; in ir_mce_kbd_process_keyboard_data()
179 static void ir_mce_kbd_process_mouse_data(struct rc_dev *dev, u32 scancode) in ir_mce_kbd_process_mouse_data() argument
182 u8 xdata = (scancode >> 7) & 0x7f; in ir_mce_kbd_process_mouse_data()
183 u8 ydata = (scancode >> 14) & 0x7f; in ir_mce_kbd_process_mouse_data()
186 bool right = scancode & 0x40; in ir_mce_kbd_process_mouse_data()
187 bool left = scancode & 0x20; in ir_mce_kbd_process_mouse_data()
219 u32 scancode; in ir_mce_kbd_decode() local
318 scancode = data->body & 0xffffff; in ir_mce_kbd_decode()
322 if (scancode) { in ir_mce_kbd_decode()
330 ir_mce_kbd_process_keyboard_data(dev, scancode); in ir_mce_kbd_decode()
335 scancode = data->body & 0x1fffff; in ir_mce_kbd_decode()
336 dev_dbg(&dev->dev, "mouse data 0x%06x\n", scancode); in ir_mce_kbd_decode()
338 ir_mce_kbd_process_mouse_data(dev, scancode); in ir_mce_kbd_decode()
346 lsc.scancode = scancode; in ir_mce_kbd_decode()
349 input_event(dev->input_dev, EV_MSC, MSC_SCAN, scancode); in ir_mce_kbd_decode()
388 * ir_mce_kbd_encode() - Encode a scancode as a stream of raw events
391 * @scancode: scancode to encode
399 static int ir_mce_kbd_encode(enum rc_proto protocol, u32 scancode, in ir_mce_kbd_encode() argument
407 raw = scancode | in ir_mce_kbd_encode()
411 raw = scancode | in ir_mce_kbd_encode()