Lines Matching +full:0 +full:x0040000
28 MODULE_PARM_DESC(pinnacle_remote, "Specify Pinnacle PCTV remote: 0=coloured, 1=grey (defaults to 0)…
33 } while (0)
38 } while (0)
53 saa_setb(SAA7134_GPIO_GPSTATUS1, 0x80); in build_key()
54 saa_clearb(SAA7134_GPIO_GPSTATUS1, 0x80); in build_key()
64 return 0; in build_key()
69 input_dbg("build_key gpio=0x%x mask=0x%x data=%d\n", in build_key()
78 0); in build_key()
79 return 0; in build_key()
83 if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || in build_key()
84 (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { in build_key()
86 0); in build_key()
92 if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || in build_key()
93 (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { in build_key()
95 0); in build_key()
100 return 0; in build_key()
109 int attempt = 0; in get_key_flydvb_trio()
126 if (0x40000 & ~gpio) in get_key_flydvb_trio()
127 return 0; /* No button press */ in get_key_flydvb_trio()
131 b = 0; in get_key_flydvb_trio()
149 if (rc < 0) in get_key_flydvb_trio()
156 *toggle = 0; in get_key_flydvb_trio()
181 /* GPIO&0x40 is pulsed low when a button is pressed. Don't do in get_key_msi_tvanywhere_plus()
182 I2C receive if gpio&0x40 is not low. */ in get_key_msi_tvanywhere_plus()
184 if (gpio & 0x40) in get_key_msi_tvanywhere_plus()
185 return 0; /* No button press */ in get_key_msi_tvanywhere_plus()
192 if (rc < 0) in get_key_msi_tvanywhere_plus()
199 if (b == 0xff) in get_key_msi_tvanywhere_plus()
200 return 0; in get_key_msi_tvanywhere_plus()
204 input_dbg("get_key_msi_tvanywhere_plus: Key = 0x%02X\n", b); in get_key_msi_tvanywhere_plus()
207 *toggle = 0; in get_key_msi_tvanywhere_plus()
233 /* GPIO&0x100 is pulsed low when a button is pressed. Don't do in get_key_kworld_pc150u()
234 I2C receive if gpio&0x100 is not low. */ in get_key_kworld_pc150u()
236 if (gpio & 0x100) in get_key_kworld_pc150u()
237 return 0; /* No button press */ in get_key_kworld_pc150u()
244 if (rc < 0) in get_key_kworld_pc150u()
251 if (b == 0xff) in get_key_kworld_pc150u()
252 return 0; in get_key_kworld_pc150u()
256 input_dbg("get_key_kworld_pc150u: Key = 0x%02X\n", b); in get_key_kworld_pc150u()
259 *toggle = 0; in get_key_kworld_pc150u()
273 if (rc < 0) in get_key_purpletv()
279 if (b==0) in get_key_purpletv()
280 return 0; in get_key_purpletv()
283 if (b & 0x80) in get_key_purpletv()
288 *toggle = 0; in get_key_purpletv()
307 if (0x400000 & ~gpio) in get_key_beholdm6xx()
308 return 0; /* No button press */ in get_key_beholdm6xx()
310 ir->c->addr = 0x5a >> 1; in get_key_beholdm6xx()
315 if (rc < 0) in get_key_beholdm6xx()
321 return 0; in get_key_beholdm6xx()
325 *toggle = 0; in get_key_beholdm6xx()
338 unsigned int start = 0,parity = 0,code = 0; in get_key_pinnacle()
344 if (rc < 0) in get_key_pinnacle()
349 for (start = 0; start < ARRAY_SIZE(b); start++) { in get_key_pinnacle()
357 if (parity == 0) in get_key_pinnacle()
358 return 0; in get_key_pinnacle()
362 return 0; in get_key_pinnacle()
368 if (marker == 0xfe && (code & 0x40)) in get_key_pinnacle()
369 return 0; in get_key_pinnacle()
375 *toggle = 0; in get_key_pinnacle()
394 return get_key_pinnacle(ir, protocol, scancode, toggle, 1, 0xfe, 0xff); in get_key_pinnacle_grey()
405 /* code_modulo parameter (0x88) is used to reduce code value to fit inside IR_KEYTAB_SIZE in get_key_pinnacle_color()
411 return get_key_pinnacle(ir, protocol, scancode, toggle, 2, 0x80, 0x88); in get_key_pinnacle_color()
463 saa_setb(SAA7134_GPIO_GPMODE0, 0x4); in saa7134_ir_open()
464 saa_setb(SAA7134_GPIO_GPSTATUS0, 0x4); in saa7134_ir_open()
469 saa_setb(SAA7134_GPIO_GPMODE1, 0x1); in saa7134_ir_open()
470 saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1); in saa7134_ir_open()
474 saa_setb(SAA7134_GPIO_GPMODE1, 0x1); in saa7134_ir_open()
475 saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1); in saa7134_ir_open()
478 saa_setb(SAA7134_GPIO_GPMODE1, 0x80); in saa7134_ir_open()
485 timer_setup(&ir->timer, saa7134_input_timer, 0); in saa7134_ir_open()
490 return 0; in saa7134_ir_open()
509 u32 mask_keycode = 0; in saa7134_input_init1()
510 u32 mask_keydown = 0; in saa7134_input_init1()
511 u32 mask_keyup = 0; in saa7134_input_init1()
512 unsigned polling = 0; in saa7134_input_init1()
529 mask_keycode = 0xEC00000; in saa7134_input_init1()
530 mask_keydown = 0x0040000; in saa7134_input_init1()
536 mask_keycode = 0x00003f; in saa7134_input_init1()
537 mask_keyup = 0x040000; in saa7134_input_init1()
542 mask_keycode = 0x00017c; in saa7134_input_init1()
543 mask_keyup = 0x000002; in saa7134_input_init1()
549 mask_keycode = 0x00001F; in saa7134_input_init1()
550 mask_keyup = 0x000020; in saa7134_input_init1()
567 mask_keycode = 0x0007C8; in saa7134_input_init1()
568 mask_keydown = 0x000010; in saa7134_input_init1()
574 mask_keydown = 0x0040000; /* Enable GPIO18 line on both edges */ in saa7134_input_init1()
575 mask_keyup = 0x0040000; in saa7134_input_init1()
576 mask_keycode = 0xffff; in saa7134_input_init1()
581 mask_keydown = 0x0040000; in saa7134_input_init1()
582 mask_keyup = 0x0040000; in saa7134_input_init1()
583 mask_keycode = 0xffff; in saa7134_input_init1()
589 mask_keycode = 0x02F200; in saa7134_input_init1()
590 mask_keydown = 0x000400; in saa7134_input_init1()
596 mask_keycode = 0x02F200; in saa7134_input_init1()
597 mask_keydown = 0x000400; in saa7134_input_init1()
603 mask_keycode = 0x00001f; in saa7134_input_init1()
604 mask_keyup = 0x000060; in saa7134_input_init1()
610 mask_keycode = 0x001f00; in saa7134_input_init1()
611 mask_keyup = 0x004000; in saa7134_input_init1()
630 mask_keycode = 0x003f00; in saa7134_input_init1()
631 mask_keyup = 0x004000; in saa7134_input_init1()
636 mask_keycode = 0x003f00; in saa7134_input_init1()
637 mask_keyup = 0x004000; in saa7134_input_init1()
642 mask_keycode = 0x001f00; in saa7134_input_init1()
643 mask_keyup = 0x004000; in saa7134_input_init1()
648 mask_keycode = 0x0003CC; in saa7134_input_init1()
649 mask_keydown = 0x000010; in saa7134_input_init1()
657 mask_keycode = 0x00003F; in saa7134_input_init1()
658 mask_keyup = 0x400000; in saa7134_input_init1()
663 mask_keycode = 0x00007F; in saa7134_input_init1()
664 mask_keyup = 0x000080; in saa7134_input_init1()
670 mask_keycode = 0x003F00; in saa7134_input_init1()
671 mask_keyup = 0x040000; in saa7134_input_init1()
677 mask_keycode = 0x0001F00; in saa7134_input_init1()
678 mask_keydown = 0x0040000; in saa7134_input_init1()
684 mask_keydown = 0x0040000; /* Enable GPIO18 line on both edges */ in saa7134_input_init1()
685 mask_keyup = 0x0040000; in saa7134_input_init1()
686 mask_keycode = 0xffff; in saa7134_input_init1()
691 mask_keydown = 0x0040000; in saa7134_input_init1()
692 mask_keyup = 0x0040000; in saa7134_input_init1()
693 mask_keycode = 0xffff; in saa7134_input_init1()
699 mask_keycode = 0x00007f; in saa7134_input_init1()
700 mask_keyup = 0x040000; in saa7134_input_init1()
706 mask_keydown = 0x0040000; /* Enable GPIO18 line on both edges */ in saa7134_input_init1()
707 mask_keyup = 0x0040000; in saa7134_input_init1()
708 mask_keycode = 0xffff; in saa7134_input_init1()
713 mask_keycode = 0x5f80000; in saa7134_input_init1()
714 mask_keyup = 0x8000000; in saa7134_input_init1()
719 mask_keycode = 0xff; in saa7134_input_init1()
720 mask_keydown = 0xf00000; in saa7134_input_init1()
725 mask_keycode = 0x3f00; in saa7134_input_init1()
726 mask_keyup = 0x4000; in saa7134_input_init1()
731 mask_keycode = 0x7f; in saa7134_input_init1()
736 mask_keycode = 0x003f00; in saa7134_input_init1()
737 mask_keydown = 0x040000; in saa7134_input_init1()
741 mask_keycode = 0x5f00; in saa7134_input_init1()
742 mask_keyup = 0x020000; in saa7134_input_init1()
747 mask_keycode = 0x0ff00; in saa7134_input_init1()
748 mask_keyup = 0x040000; in saa7134_input_init1()
753 mask_keydown = 0x0040000; /* Enable GPIO18 line on both edges */ in saa7134_input_init1()
754 mask_keyup = 0x0040000; in saa7134_input_init1()
755 mask_keycode = 0xffff; in saa7134_input_init1()
760 mask_keydown = 0x0040000; /* Enable GPIO18 line on both edges */ in saa7134_input_init1()
761 mask_keyup = 0x0040000; in saa7134_input_init1()
762 mask_keycode = 0xffff; in saa7134_input_init1()
822 return 0; in saa7134_input_init1()
845 .addr = 0x50, in saa7134_probe_i2c_ir()
847 .len = 0, in saa7134_probe_i2c_ir()
857 memset(&info, 0, sizeof(struct i2c_board_info)); in saa7134_probe_i2c_ir()
858 memset(&dev->init_data, 0, sizeof(dev->init_data)); in saa7134_probe_i2c_ir()
865 if (pinnacle_remote == 0) { in saa7134_probe_i2c_ir()
868 info.addr = 0x47; in saa7134_probe_i2c_ir()
872 info.addr = 0x47; in saa7134_probe_i2c_ir()
879 info.addr = 0x7a; in saa7134_probe_i2c_ir()
890 info.addr = 0x30; in saa7134_probe_i2c_ir()
896 input_dbg("probe 0x%02x @ %s: %s\n", in saa7134_probe_i2c_ir()
909 info.addr = 0x30; in saa7134_probe_i2c_ir()
917 input_dbg("probe 0x%02x @ %s: %s\n", in saa7134_probe_i2c_ir()
926 info.addr = 0x30; in saa7134_probe_i2c_ir()
932 input_dbg("probe 0x%02x @ %s: %s\n", in saa7134_probe_i2c_ir()
942 info.addr = 0x71; in saa7134_probe_i2c_ir()
963 info.addr = 0x2d; in saa7134_probe_i2c_ir()
967 info.addr = 0x40; in saa7134_probe_i2c_ir()
970 info.addr = 0x41; in saa7134_probe_i2c_ir()
976 info.addr = 0x0b; in saa7134_probe_i2c_ir()