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()
949 if (protocol >= ARRAY_SIZE(protocols)) in rc_validate_filter()
952 mask = protocols[protocol].scancode_bits; in rc_validate_filter()
1158 static int parse_protocol_change(struct rc_dev *dev, u64 *protocols, in parse_protocol_change() argument
1204 *protocols |= mask; in parse_protocol_change()
1206 *protocols &= ~mask; in parse_protocol_change()
1208 *protocols = mask; in parse_protocol_change()
1219 void ir_raw_load_modules(u64 *protocols) in ir_raw_load_modules() argument
1231 if (!(*protocols & proto_names[i].type & ~available)) in ir_raw_load_modules()
1237 *protocols &= ~proto_names[i].type; in ir_raw_load_modules()
1245 *protocols &= ~proto_names[i].type; in ir_raw_load_modules()
1250 if (!(*protocols & proto_names[i].type & ~available)) in ir_raw_load_modules()
1256 *protocols &= ~proto_names[i].type; in ir_raw_load_modules()
1514 for (i = 0; i < ARRAY_SIZE(protocols); i++) { in show_wakeup_protocols()
1517 tmp += sprintf(tmp, "[%s] ", protocols[i].name); in show_wakeup_protocols()
1519 tmp += sprintf(tmp, "%s ", protocols[i].name); in show_wakeup_protocols()
1563 for (i = 0; i < ARRAY_SIZE(protocols); i++) { in store_wakeup_protocols()
1565 sysfs_streq(buf, protocols[i].name)) { in store_wakeup_protocols()
1571 if (i == ARRAY_SIZE(protocols)) { in store_wakeup_protocols()
1641 __ATTR(protocols, 0444, show_protocols, NULL);
1643 __ATTR(protocols, 0644, show_protocols, store_protocols);