Lines Matching full:protocols
28 } protocols[] = { variable
723 if (protocol >= ARRAY_SIZE(protocols)) in repeat_period()
726 return protocols[protocol].repeat_period; in repeat_period()
950 if (protocol >= ARRAY_SIZE(protocols)) in rc_validate_filter()
953 mask = protocols[protocol].scancode_bits; in rc_validate_filter()
1032 * used by the sysfs protocols file. Note that the order
1098 * it is triggered by reading /sys/class/rc/rc?/protocols.
1099 * It returns the protocol names of supported protocols.
1100 * Enabled protocols are printed in brackets.
1150 * @protocols: pointer to the bitmask of current protocols
1156 * Writing "none" will disable all protocols.
1159 static int parse_protocol_change(struct rc_dev *dev, u64 *protocols, in parse_protocol_change() argument
1205 *protocols |= mask; in parse_protocol_change()
1207 *protocols &= ~mask; in parse_protocol_change()
1209 *protocols = mask; in parse_protocol_change()
1220 void ir_raw_load_modules(u64 *protocols) in ir_raw_load_modules() argument
1232 if (!(*protocols & proto_names[i].type & ~available)) in ir_raw_load_modules()
1238 *protocols &= ~proto_names[i].type; in ir_raw_load_modules()
1246 *protocols &= ~proto_names[i].type; in ir_raw_load_modules()
1251 if (!(*protocols & proto_names[i].type & ~available)) in ir_raw_load_modules()
1257 *protocols &= ~proto_names[i].type; in ir_raw_load_modules()
1269 * It is triggered by writing to /sys/class/rc/rc?/[wakeup_]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()
1489 * It returns the protocol names of supported protocols.
1490 * The enabled protocols are printed in brackets.
1515 for (i = 0; i < ARRAY_SIZE(protocols); i++) { in show_wakeup_protocols()
1518 tmp += sprintf(tmp, "[%s] ", protocols[i].name); in show_wakeup_protocols()
1520 tmp += sprintf(tmp, "%s ", protocols[i].name); in show_wakeup_protocols()
1564 for (i = 0; i < ARRAY_SIZE(protocols); i++) { in store_wakeup_protocols()
1566 sysfs_streq(buf, protocols[i].name)) { in store_wakeup_protocols()
1572 if (i == ARRAY_SIZE(protocols)) { in store_wakeup_protocols()
1642 __ATTR(protocols, 0444, show_protocols, NULL);
1644 __ATTR(protocols, 0644, show_protocols, store_protocols);
1858 * Default delay of 250ms is too short for some protocols, especially in rc_setup_rx_device()
1869 * As a repeat event on protocols like RC-5 and NEC take as long as in rc_setup_rx_device()