Lines Matching refs:prio
41 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_new_head() argument
52 p->prio = prio; in sctp_sched_prio_new_head()
59 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_get_head() argument
68 if (p->prio == prio) in sctp_sched_prio_get_head()
70 if (p->prio > prio) in sctp_sched_prio_get_head()
85 if (p->prio == prio) in sctp_sched_prio_get_head()
90 return sctp_sched_prio_new_head(stream, prio, gfp); in sctp_sched_prio_get_head()
133 struct sctp_stream_priorities *prio, *prio_head; in sctp_sched_prio_sched() local
153 list_for_each_entry(prio, &stream->prio_list, prio_sched) { in sctp_sched_prio_sched()
154 if (prio->prio > prio_head->prio) { in sctp_sched_prio_sched()
155 list_add(&prio_head->prio_sched, prio->prio_sched.prev); in sctp_sched_prio_sched()
164 __u16 prio, gfp_t gfp) in sctp_sched_prio_set() argument
172 if (old && old->prio == prio) in sctp_sched_prio_set()
175 prio_head = sctp_sched_prio_get_head(stream, prio, gfp); in sctp_sched_prio_set()
191 *value = SCTP_SO(stream, sid)->ext->prio_head->prio; in sctp_sched_prio_get()
231 struct sctp_stream_priorities *prio; in sctp_sched_prio_dequeue() local
245 prio = list_entry(stream->prio_list.next, in sctp_sched_prio_dequeue()
247 soute = prio->next; in sctp_sched_prio_dequeue()
259 struct sctp_stream_priorities *prio; in sctp_sched_prio_dequeue_done() local
268 prio = soute->prio_head; in sctp_sched_prio_dequeue_done()
270 sctp_sched_prio_next_stream(prio); in sctp_sched_prio_dequeue_done()