Lines Matching refs: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()
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()
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);