Lines Matching defs:protocol

721 static unsigned int repeat_period(int protocol)
723 if (protocol >= ARRAY_SIZE(protocols))
726 return protocols[protocol].repeat_period;
772 * @protocol: the protocol of the keypress
780 static void ir_do_keydown(struct rc_dev *dev, enum rc_proto protocol,
784 dev->last_protocol != protocol ||
788 .scancode = scancode, .rc_proto = protocol,
803 dev->last_protocol = protocol;
812 dev_dbg(&dev->dev, "%s: key down event, key 0x%04x, protocol 0x%04x, scancode 0x%08llx\n",
813 dev->device_name, keycode, protocol, scancode);
841 * @protocol: the protocol for the keypress
843 * @toggle: the toggle value (protocol dependent, if the protocol doesn't
849 void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u64 scancode,
856 ir_do_keydown(dev, protocol, scancode, keycode, toggle);
860 msecs_to_jiffies(repeat_period(protocol));
871 * @protocol: the protocol for the keypress
873 * @toggle: the toggle value (protocol dependent, if the protocol doesn't
879 void rc_keydown_notimeout(struct rc_dev *dev, enum rc_proto protocol,
886 ir_do_keydown(dev, protocol, scancode, keycode, toggle);
892 * rc_validate_scancode() - checks that a scancode is valid for a protocol.
894 * @proto: protocol
948 enum rc_proto protocol = dev->wakeup_protocol;
950 if (protocol >= ARRAY_SIZE(protocols))
953 mask = protocols[protocol].scancode_bits;
955 if (!rc_validate_scancode(protocol, s))
1031 * These are the protocol textual descriptions that are
1092 * show_protocols() - shows the current IR protocol(s)
1097 * This routine is a callback routine for input read the IR protocol type(s).
1099 * It returns the protocol names of supported protocols.
1148 * parse_protocol_change() - parses a protocol change request
1153 * Writing "+proto" will add a protocol to the protocol mask.
1154 * Writing "-proto" will remove a protocol from protocol mask.
1196 dev_dbg(&dev->dev, "Unknown protocol: '%s'\n",
1236 pr_err("Can't enable IR protocol %s\n",
1244 pr_err("Couldn't load IR protocol module %s\n",
1254 pr_err("Loaded IR protocol module %s, but protocol %s still not available\n",
1262 * store_protocols() - changes the current/wakeup IR protocol(s)
1268 * This routine is for changing the IR protocol type.
1286 dev_dbg(&dev->dev, "Normal protocol change requested\n");
1324 * If a protocol change was attempted the filter may need updating, even
1325 * if the actual protocol mask hasn't changed (since the driver may have
1327 * Try setting the same filter with the new protocol (if any).
1401 * Returns -EINVAL if an invalid filter value for the current protocol was
1451 * Refuse to set a filter unless a protocol is enabled
1452 * and the filter is valid for that protocol
1465 /* refuse to set a filter unless a protocol is enabled */
1482 * show_wakeup_protocols() - shows the wakeup IR protocol
1487 * This routine is a callback routine for input read the IR protocol type(s).
1489 * It returns the protocol names of supported protocols.
1532 * store_wakeup_protocols() - changes the wakeup IR protocol(s)
1538 * This routine is for changing the IR protocol type.
1550 enum rc_proto protocol = RC_PROTO_UNKNOWN;
1567 protocol = i;
1578 u64 mask = 1ULL << protocol;
1588 if (dev->wakeup_protocol != protocol) {
1589 dev->wakeup_protocol = protocol;
1590 dev_dbg(&dev->dev, "Wakeup protocol changed to %d\n", protocol);
1592 if (protocol == RC_PROTO_RC6_MCE)