Lines Matching refs:priority
355 * @SSH_PACKET_PRIORITY_FLUSH: Base priority for flush packets.
356 * @SSH_PACKET_PRIORITY_DATA: Base priority for normal data packets.
357 * @SSH_PACKET_PRIORITY_NAK: Base priority for NAK packets.
358 * @SSH_PACKET_PRIORITY_ACK: Base priority for ACK packets.
374 * SSH_PACKET_PRIORITY() - Compute packet priority from base priority and
376 * @base: The base priority as suffix of &enum ssh_packet_base_priority, e.g.
380 * Compute the combined packet priority. The combined priority is dominated by
381 * the base priority, whereas the number of (re-)tries decides the precedence
382 * of packets with the same base priority, giving higher priority to packets
385 * Return: Returns the computed priority as value fitting inside a &u8. A
386 * higher number means a higher priority.
392 * ssh_packet_priority_get_try() - Get number of tries from packet priority.
393 * @priority: The packet priority.
396 * priority.
398 static inline u8 ssh_packet_priority_get_try(u8 priority)
400 return priority & 0x0f;
404 * ssh_packet_priority_get_base - Get base priority from packet priority.
405 * @priority: The packet priority.
407 * Return: Returns the base priority encoded in the given packet priority.
409 static inline u8 ssh_packet_priority_get_base(u8 priority)
411 return (priority & 0xf0) >> 4;
473 * @priority: Priority of the packet. Must be computed via
495 u8 priority;