Lines Matching full:protocols
28 } protocols[] = { variable
684 if (protocol >= ARRAY_SIZE(protocols)) in repeat_period()
687 return protocols[protocol].repeat_period; in repeat_period()
906 if (protocol >= ARRAY_SIZE(protocols)) in rc_validate_filter()
909 mask = protocols[protocol].scancode_bits; in rc_validate_filter()
988 * used by the sysfs protocols file. Note that the order
1050 * it is trigged by reading /sys/class/rc/rc?/protocols.
1051 * It returns the protocol names of supported protocols.
1052 * Enabled protocols are printed in brackets.
1102 * @protocols: pointer to the bitmask of current protocols
1108 * Writing "none" will disable all protocols.
1111 static int parse_protocol_change(struct rc_dev *dev, u64 *protocols, in parse_protocol_change() argument
1157 *protocols |= mask; in parse_protocol_change()
1159 *protocols &= ~mask; in parse_protocol_change()
1161 *protocols = mask; in parse_protocol_change()
1172 void ir_raw_load_modules(u64 *protocols) in ir_raw_load_modules() argument
1184 if (!(*protocols & proto_names[i].type & ~available)) in ir_raw_load_modules()
1190 *protocols &= ~proto_names[i].type; in ir_raw_load_modules()
1198 *protocols &= ~proto_names[i].type; in ir_raw_load_modules()
1203 if (!(*protocols & proto_names[i].type & ~available)) in ir_raw_load_modules()
1209 *protocols &= ~proto_names[i].type; in ir_raw_load_modules()
1221 * It is trigged by writing to /sys/class/rc/rc?/[wakeup_]protocols.
1264 dev_dbg(&dev->dev, "Error setting protocols to 0x%llx\n", in store_protocols()
1271 dev_dbg(&dev->dev, "Protocols changed to 0x%llx\n", in store_protocols()
1441 * It returns the protocol names of supported protocols.
1442 * The enabled protocols are printed in brackets.
1467 for (i = 0; i < ARRAY_SIZE(protocols); i++) { in show_wakeup_protocols()
1470 tmp += sprintf(tmp, "[%s] ", protocols[i].name); in show_wakeup_protocols()
1472 tmp += sprintf(tmp, "%s ", protocols[i].name); in show_wakeup_protocols()
1518 for (i = 0; i < ARRAY_SIZE(protocols); i++) { in store_wakeup_protocols()
1520 sysfs_streq(buf, protocols[i].name)) { in store_wakeup_protocols()
1526 if (i == ARRAY_SIZE(protocols)) { in store_wakeup_protocols()
1596 __ATTR(protocols, 0444, show_protocols, NULL);
1598 __ATTR(protocols, 0644, show_protocols, store_protocols);
1804 * Default delay of 250ms is too short for some protocols, especially in rc_setup_rx_device()
1815 * As a repeat event on protocols like RC-5 and NEC take as long as in rc_setup_rx_device()