Lines Matching +full:0 +full:x800f0000

32 		.scancode_bits = 0x1f7f, .repeat_period = 114 },
34 .scancode_bits = 0x1f7f3f, .repeat_period = 114 },
36 .scancode_bits = 0x2fff, .repeat_period = 114 },
38 .scancode_bits = 0xffff, .repeat_period = 125 },
40 .scancode_bits = 0x1f007f, .repeat_period = 100 },
42 .scancode_bits = 0xff007f, .repeat_period = 100 },
44 .scancode_bits = 0x1fff7f, .repeat_period = 100 },
46 .scancode_bits = 0xffff, .repeat_period = 110 },
48 .scancode_bits = 0xffffff, .repeat_period = 110 },
50 .scancode_bits = 0xffffffff, .repeat_period = 110 },
52 .scancode_bits = 0x1fffff, .repeat_period = 125 },
54 .scancode_bits = 0xffffff, .repeat_period = 100 },
56 .scancode_bits = 0x1fffff, .repeat_period = 100 },
57 [RC_PROTO_RC6_0] = { .name = "rc-6-0",
58 .scancode_bits = 0xffff, .repeat_period = 114 },
60 .scancode_bits = 0xfffff, .repeat_period = 114 },
62 .scancode_bits = 0xffffff, .repeat_period = 114 },
64 .scancode_bits = 0xffffffff, .repeat_period = 114 },
66 .scancode_bits = 0xffff7fff, .repeat_period = 114 },
68 .scancode_bits = 0x1fff, .repeat_period = 125 },
70 [RC_PROTO_CEC] = { .name = "cec", .repeat_period = 0 },
72 .scancode_bits = 0x7fffffff, .repeat_period = 114 },
74 .scancode_bits = 0x00000fff, .repeat_period = 114 },
76 .scancode_bits = 0x00ffffff, .repeat_period = 114 },
78 .scancode_bits = 0xffffffff, .repeat_period = 114 },
115 if (rc < 0) { in rc_map_get()
140 return 0; in rc_map_register()
154 { 0x2a, KEY_COFFEE },
198 return 0; in scancode_to_u64()
232 return 0; in ir_create_table()
244 rc_map->size = 0; in ir_free_table()
286 return 0; in ir_resize_table()
297 return 0; in ir_resize_table()
323 dev_dbg(&dev->dev, "#%d: Deleting scan 0x%04llx\n", in ir_update_mapping()
329 dev_dbg(&dev->dev, "#%d: %s scan 0x%04llx with key 0x%04x\n", in ir_update_mapping()
341 for (i = 0; i < rc_map->len; i++) { in ir_update_mapping()
388 for (i = 0; i < rc_map->len; i++) { in ir_establish_scancode()
432 int retval = 0; in ir_setkeycode()
482 for (i = 0; i < from->size; i++) { in ir_setkeytable()
509 return 0; in rc_map_cmp()
587 retval = 0; in ir_getkeycode()
621 dev_dbg(&dev->dev, "%s: scancode 0x%04llx keycode 0x%02x\n", in rc_g_keycode_from_table()
641 dev_dbg(&dev->dev, "keyup key 0x%04x\n", dev->last_keycode); in ir_do_keyup()
643 input_report_key(dev->input_dev, dev->last_keycode, 0); in ir_do_keyup()
746 (dev->last_toggle ? LIRC_SCANCODE_FLAG_TOGGLE : 0) in rc_repeat()
789 .flags = (toggle ? LIRC_SCANCODE_FLAG_TOGGLE : 0) | in ir_do_keydown()
790 (!new_event ? LIRC_SCANCODE_FLAG_REPEAT : 0), in ir_do_keydown()
812 dev_dbg(&dev->dev, "%s: key down event, key 0x%04x, protocol 0x%04x, scancode 0x%08llx\n", in ir_do_keydown()
821 * repeated message is sent, as long as REP_DELAY = 0 and REP_PERIOD in ir_do_keydown()
905 if ((((scancode >> 16) ^ ~(scancode >> 8)) & 0xff) == 0) in rc_validate_scancode()
914 if ((((scancode >> 8) ^ ~scancode) & 0xff) == 0) in rc_validate_scancode()
918 * If the customer code (top 32-bit) is 0x800f, it is MCE else it in rc_validate_scancode()
922 if ((scancode & 0xffff0000) != 0x800f0000) in rc_validate_scancode()
926 if ((scancode & 0xffff0000) == 0x800f0000) in rc_validate_scancode()
942 * return: 0 or -EINVAL if the filter is not valid
964 if (dev->encode_wakeup && filter->mask != 0 && filter->mask != mask) in rc_validate_filter()
967 return 0; in rc_validate_filter()
972 int rval = 0; in rc_open()
1122 dev_dbg(&dev->dev, "%s: allowed - 0x%llx, enabled - 0x%llx\n", in show_protocols()
1125 for (i = 0; i < ARRAY_SIZE(proto_names); i++) { in show_protocols()
1163 unsigned count = 0; in parse_protocol_change()
1185 for (i = 0; i < ARRAY_SIZE(proto_names); i++) { in parse_protocol_change()
1194 mask = 0; in parse_protocol_change()
1225 for (i = 0; i < ARRAY_SIZE(proto_names); i++) { in ir_raw_load_modules()
1243 if (ret < 0) { in ir_raw_load_modules()
1304 if (rc < 0) in store_protocols()
1311 if (rc < 0) { in store_protocols()
1312 dev_dbg(&dev->dev, "Error setting protocols to 0x%llx\n", in store_protocols()
1319 dev_dbg(&dev->dev, "Protocols changed to 0x%llx\n", in store_protocols()
1336 if (rc < 0) { in store_protocols()
1337 filter->data = 0; in store_protocols()
1338 filter->mask = 0; in store_protocols()
1422 ret = kstrtoul(buf, 0, &val); in store_filter()
1423 if (ret < 0) in store_filter()
1459 if (ret != 0) in store_filter()
1471 if (ret < 0) in store_filter()
1478 return (ret < 0) ? ret : len; in store_filter()
1512 dev_dbg(&dev->dev, "%s: allowed - 0x%llx, enabled - %d\n", in show_wakeup_protocols()
1515 for (i = 0; i < ARRAY_SIZE(protocols); i++) { in show_wakeup_protocols()
1564 for (i = 0; i < ARRAY_SIZE(protocols); i++) { in store_wakeup_protocols()
1593 dev->scancode_wakeup_filter.data = 0x800f0000; in store_wakeup_protocols()
1595 dev->scancode_wakeup_filter.data = 0; in store_wakeup_protocols()
1596 dev->scancode_wakeup_filter.mask = 0; in store_wakeup_protocols()
1599 if (rc == 0) in store_wakeup_protocols()
1620 int ret = 0; in rc_dev_uevent()
1626 if (ret == 0 && dev->rc_map.name) in rc_dev_uevent()
1628 if (ret == 0 && dev->driver_name) in rc_dev_uevent()
1630 if (ret == 0 && dev->device_name) in rc_dev_uevent()
1720 timer_setup(&dev->timer_keyup, ir_timer_keyup, 0); in rc_allocate_device()
1721 timer_setup(&dev->timer_repeat, ir_timer_repeat, 0); in rc_allocate_device()
1796 if (!rc_map || !rc_map->scan || rc_map->size == 0) in rc_prepare_rx_device()
1813 if (rc < 0) in rc_prepare_rx_device()
1840 return 0; in rc_prepare_rx_device()
1864 dev->input_dev->rep[REP_DELAY] = 0; in rc_setup_rx_device()
1875 return 0; in rc_setup_rx_device()
1894 int attr = 0; in rc_register_device()
1902 if (minor < 0) in rc_register_device()
1922 if (rc < 0) in rc_register_device()
1951 if (rc < 0) in rc_register_device()
1963 if (rc < 0) in rc_register_device()
1970 return 0; in rc_register_device()
2012 return 0; in devm_rc_register_device()
2077 return 0; in rc_core_init()