Lines Matching refs:ircode
492 u32 samples, ircode;
533 ircode = ir_decode_pulsedistance(ir->samples, ir->scount, 1, 4);
535 if (ircode == 0xffffffff) { /* decoding error */
540 ir_dprintk("pulse distance decoded: %x\n", ircode);
542 if (ircode == 0) { /* key still pressed */
548 if ((ircode & 0xffff) != (ir->sampling & 0xffff)) { /* wrong address */
553 if (((~ircode >> 24) & 0xff) != ((ircode >> 16) & 0xff)) { /* wrong checksum */
558 ir_dprintk("Key Code: %x\n", (ircode >> 16) & 0xff);
559 ir_keydown(ir->input, (ircode >> 16) & 0xff, 0);
572 ircode = ir_decode_biphase(ir->samples, ir->scount, 5, 7);
573 ir_dprintk("biphase decoded: %x\n", ircode);
584 start = (ircode & 0x2000) >> 13;
585 range = (ircode & 0x1000) >> 12;
586 toggle= (ircode & 0x0800) >> 11;
587 dev = (ircode & 0x07c0) >> 6;
588 code = (ircode & 0x003f) | ((range << 6) ^ 0x0040);
598 ircode = ir_decode_biphase(ir->samples, ir->scount, 5, 7);
599 ir_dprintk("biphase decoded: %x\n", ircode);
600 if ((ircode & 0xfffff000) != 0x3000)
604 ir_keydown(ir->input, ircode & 0x3f, ircode & 0x0800 ? 1 : 0);