Lines Matching refs:prio
1056 lpcb->prio = pcb->prio;
1819 * @param prio new priority
1822 tcp_setprio(struct tcp_pcb *pcb, u8_t prio)
1828 pcb->prio = prio;
1879 * Kills the oldest active connection that has a lower priority than 'prio'.
1881 * @param prio minimum priority
1884 tcp_kill_prio(u8_t prio)
1890 mprio = LWIP_MIN(TCP_PRIO_MAX, prio);
1892 /* We want to kill connections with a lower prio, so bail out if
1893 * supplied prio is 0 - there can never be a lower prio
1899 /* We only want kill connections with a lower prio, so decrement prio by one
1901 * We want to find the connections with the lowest possible prio, and among
1909 /* lower prio is always a kill candidate */
1910 if ((pcb->prio < mprio) ||
1912 ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) {
1915 mprio = pcb->prio;
2008 * @param prio priority for the new pcb
2012 tcp_alloc(u8_t prio)
2042 LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing oldest connection with prio lower than %d\n", prio));
2043 tcp_kill_prio(prio);
2069 pcb->prio = prio;
2119 * to allocate a pcb with higher prio (@see tcp_kill_prio())