Lines Matching full:scancode
44 u32 scancode; in ir_rc5_decode() local
124 scancode = system << 16 | command << 8 | xdata; in ir_rc5_decode()
138 scancode = system << 8 | command; in ir_rc5_decode()
151 scancode = system << 6 | command; in ir_rc5_decode()
157 dev_dbg(&dev->dev, "RC5(x/sz) scancode 0x%06x (p: %u, t: %u)\n", in ir_rc5_decode()
158 scancode, protocol, toggle); in ir_rc5_decode()
160 rc_keydown(dev, protocol, scancode, toggle); in ir_rc5_decode()
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, in ir_rc5_encode() argument
216 /* Detect protocol and convert scancode to raw data */ in ir_rc5_encode()
218 /* decode scancode */ in ir_rc5_encode()
219 command = (scancode & 0x003f) >> 0; in ir_rc5_encode()
220 commandx = (scancode & 0x0040) >> 6; in ir_rc5_encode()
221 system = (scancode & 0x1f00) >> 8; in ir_rc5_encode()
231 /* decode scancode */ in ir_rc5_encode()
232 xdata = (scancode & 0x00003f) >> 0; in ir_rc5_encode()
233 command = (scancode & 0x003f00) >> 8; in ir_rc5_encode()
234 commandx = !(scancode & 0x004000); in ir_rc5_encode()
235 system = (scancode & 0x1f0000) >> 16; in ir_rc5_encode()
254 /* RC5-SZ scancode is raw enough for Manchester as it is */ in ir_rc5_encode()
258 scancode & 0x2fff); in ir_rc5_encode()