Searched refs:wake_sc (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/media/rc/
H A Dwinbond-cir.c241 static unsigned int wake_sc = 0x800F040C; variable
242 module_param(wake_sc, uint, 0644);
243 MODULE_PARM_DESC(wake_sc, "Scancode of the power-on IR command");
706 if (wake_sc == INVALID_SCANCODE || !device_may_wakeup(dev)) { wbcir_shutdown()
713 if (wake_sc > 0xFFF) { wbcir_shutdown()
723 match[0] = (wake_sc & 0x003F); /* 6 command bits */ wbcir_shutdown()
724 match[0] |= (wake_sc & 0x0180) >> 1; /* 2 address bits */ wbcir_shutdown()
725 match[1] = (wake_sc & 0x0E00) >> 9; /* 3 address bits */ wbcir_shutdown()
726 if (!(wake_sc & 0x0040)) /* 2nd start bit */ wbcir_shutdown()
732 if (wake_sc > 0xFFFFFF) { wbcir_shutdown()
740 match[1] = bitrev8((wake_sc & 0xFF)); wbcir_shutdown()
743 match[3] = bitrev8((wake_sc & 0xFF00) >> 8); wbcir_shutdown()
744 if (wake_sc > 0xFFFF) wbcir_shutdown()
745 match[2] = bitrev8((wake_sc & 0xFF0000) >> 16); wbcir_shutdown()
754 if (wake_sc > 0xFFFF) { wbcir_shutdown()
761 match[0] = wbcir_to_rc6cells(wake_sc >> 0); wbcir_shutdown()
763 match[1] = wbcir_to_rc6cells(wake_sc >> 4); wbcir_shutdown()
767 match[2] = wbcir_to_rc6cells(wake_sc >> 8); wbcir_shutdown()
769 match[3] = wbcir_to_rc6cells(wake_sc >> 12); wbcir_shutdown()
784 match[i] = wbcir_to_rc6cells(wake_sc >> 0); wbcir_shutdown()
786 match[i] = wbcir_to_rc6cells(wake_sc >> 4); wbcir_shutdown()
790 match[i] = wbcir_to_rc6cells(wake_sc >> 8); wbcir_shutdown()
792 match[i] = wbcir_to_rc6cells(wake_sc >> 12); wbcir_shutdown()
796 match[i] = wbcir_to_rc6cells(wake_sc >> 16); wbcir_shutdown()
798 match[i] = wbcir_to_rc6cells(wake_sc >> 20); wbcir_shutdown()
801 if (wake_sc & 0x80000000) { wbcir_shutdown()
803 match[i] = wbcir_to_rc6cells(wake_sc >> 24); wbcir_shutdown()
805 match[i] = wbcir_to_rc6cells(wake_sc >> 28); wbcir_shutdown()
808 } else if (wake_sc <= 0x007FFFFF) { wbcir_shutdown()

Completed in 63 milliseconds