Lines Matching refs:scancode
44 u32 scancode;
124 scancode = system << 16 | command << 8 | xdata;
138 scancode = system << 8 | command;
151 scancode = system << 6 | command;
157 dev_dbg(&dev->dev, "RC5(x/sz) scancode 0x%06x (p: %u, t: %u)\n",
158 scancode, protocol, toggle);
160 rc_keydown(dev, protocol, scancode, toggle);
197 * ir_rc5_encode() - Encode a scancode as a stream of raw events
200 * @scancode: scancode to encode
207 * -EINVAL if the scancode is ambiguous or invalid.
209 static int ir_rc5_encode(enum rc_proto protocol, u32 scancode,
216 /* Detect protocol and convert scancode to raw data */
218 /* decode scancode */
219 command = (scancode & 0x003f) >> 0;
220 commandx = (scancode & 0x0040) >> 6;
221 system = (scancode & 0x1f00) >> 8;
231 /* decode scancode */
232 xdata = (scancode & 0x00003f) >> 0;
233 command = (scancode & 0x003f00) >> 8;
234 commandx = !(scancode & 0x004000);
235 system = (scancode & 0x1f0000) >> 16;
254 /* RC5-SZ scancode is raw enough for Manchester as it is */
258 scancode & 0x2fff);