Lines Matching full:priority
336 * @SSH_PACKET_PRIORITY_FLUSH: Base priority for flush packets.
337 * @SSH_PACKET_PRIORITY_DATA: Base priority for normal data packets.
338 * @SSH_PACKET_PRIORITY_NAK: Base priority for NAK packets.
339 * @SSH_PACKET_PRIORITY_ACK: Base priority for ACK packets.
355 * SSH_PACKET_PRIORITY() - Compute packet priority from base priority and
357 * @base: The base priority as suffix of &enum ssh_packet_base_priority, e.g.
361 * Compute the combined packet priority. The combined priority is dominated by
362 * the base priority, whereas the number of (re-)tries decides the precedence
363 * of packets with the same base priority, giving higher priority to packets
366 * Return: Returns the computed priority as value fitting inside a &u8. A
367 * higher number means a higher priority.
373 * ssh_packet_priority_get_try() - Get number of tries from packet priority.
374 * @priority: The packet priority.
377 * priority.
379 static inline u8 ssh_packet_priority_get_try(u8 priority) in ssh_packet_priority_get_try() argument
381 return priority & 0x0f; in ssh_packet_priority_get_try()
385 * ssh_packet_priority_get_base - Get base priority from packet priority.
386 * @priority: The packet priority.
388 * Return: Returns the base priority encoded in the given packet priority.
390 static inline u8 ssh_packet_priority_get_base(u8 priority) in ssh_packet_priority_get_base() argument
392 return (priority & 0xf0) >> 4; in ssh_packet_priority_get_base()
454 * @priority: Priority of the packet. Must be computed via
476 u8 priority; member