Lines Matching full:priority

341  * @SSH_PACKET_PRIORITY_FLUSH: Base priority for flush packets.
342 * @SSH_PACKET_PRIORITY_DATA: Base priority for normal data packets.
343 * @SSH_PACKET_PRIORITY_NAK: Base priority for NAK packets.
344 * @SSH_PACKET_PRIORITY_ACK: Base priority for ACK packets.
360 * SSH_PACKET_PRIORITY() - Compute packet priority from base priority and
362 * @base: The base priority as suffix of &enum ssh_packet_base_priority, e.g.
366 * Compute the combined packet priority. The combined priority is dominated by
367 * the base priority, whereas the number of (re-)tries decides the precedence
368 * of packets with the same base priority, giving higher priority to packets
371 * Return: Returns the computed priority as value fitting inside a &u8. A
372 * higher number means a higher priority.
378 * ssh_packet_priority_get_try() - Get number of tries from packet priority.
379 * @priority: The packet priority.
382 * priority.
384 static inline u8 ssh_packet_priority_get_try(u8 priority) in ssh_packet_priority_get_try() argument
386 return priority & 0x0f; in ssh_packet_priority_get_try()
390 * ssh_packet_priority_get_base - Get base priority from packet priority.
391 * @priority: The packet priority.
393 * Return: Returns the base priority encoded in the given packet priority.
395 static inline u8 ssh_packet_priority_get_base(u8 priority) in ssh_packet_priority_get_base() argument
397 return (priority & 0xf0) >> 4; in ssh_packet_priority_get_base()
459 * @priority: Priority of the packet. Must be computed via
481 u8 priority; member