Lines Matching defs:protocols

28 } protocols[] = {
723 if (protocol >= ARRAY_SIZE(protocols))
726 return protocols[protocol].repeat_period;
950 if (protocol >= ARRAY_SIZE(protocols))
953 mask = protocols[protocol].scancode_bits;
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,
1205 *protocols |= mask;
1207 *protocols &= ~mask;
1209 *protocols = mask;
1220 void ir_raw_load_modules(u64 *protocols)
1232 if (!(*protocols & proto_names[i].type & ~available))
1238 *protocols &= ~proto_names[i].type;
1246 *protocols &= ~proto_names[i].type;
1251 if (!(*protocols & proto_names[i].type & ~available))
1257 *protocols &= ~proto_names[i].type;
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",
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++) {
1518 tmp += sprintf(tmp, "[%s] ", protocols[i].name);
1520 tmp += sprintf(tmp, "%s ", protocols[i].name);
1564 for (i = 0; i < ARRAY_SIZE(protocols); i++) {
1566 sysfs_streq(buf, protocols[i].name)) {
1572 if (i == ARRAY_SIZE(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
1869 * As a repeat event on protocols like RC-5 and NEC take as long as