Lines Matching refs:prio

29 			struct sctp_stream *stream, int prio, gfp_t gfp)  in sctp_sched_prio_new_head()  argument
40 p->prio = prio; in sctp_sched_prio_new_head()
46 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_get_head() argument
55 if (p->prio == prio) in sctp_sched_prio_get_head()
57 if (p->prio > prio) in sctp_sched_prio_get_head()
72 if (p->prio == prio) in sctp_sched_prio_get_head()
77 return sctp_sched_prio_new_head(stream, prio, gfp); in sctp_sched_prio_get_head()
120 struct sctp_stream_priorities *prio, *prio_head; in sctp_sched_prio_sched() local
140 list_for_each_entry(prio, &stream->prio_list, prio_sched) { in sctp_sched_prio_sched()
141 if (prio->prio > prio_head->prio) { in sctp_sched_prio_sched()
142 list_add(&prio_head->prio_sched, prio->prio_sched.prev); in sctp_sched_prio_sched()
151 __u16 prio, gfp_t gfp) in sctp_sched_prio_set() argument
159 prio_head = sctp_sched_prio_get_head(stream, prio, gfp); in sctp_sched_prio_set()
189 *value = SCTP_SO(stream, sid)->ext->prio_head->prio; in sctp_sched_prio_get()
209 struct sctp_stream_priorities *prio = SCTP_SO(stream, sid)->ext->prio_head; in sctp_sched_prio_free_sid() local
212 if (!prio) in sctp_sched_prio_free_sid()
218 SCTP_SO(stream, i)->ext->prio_head == prio) in sctp_sched_prio_free_sid()
222 kfree(prio); in sctp_sched_prio_free_sid()
227 struct sctp_stream_priorities *prio, *n; in sctp_sched_prio_free() local
241 prio = SCTP_SO(stream, i)->ext->prio_head; in sctp_sched_prio_free()
242 if (prio && list_empty(&prio->prio_sched)) in sctp_sched_prio_free()
243 list_add(&prio->prio_sched, &list); in sctp_sched_prio_free()
245 list_for_each_entry_safe(prio, n, &list, prio_sched) { in sctp_sched_prio_free()
246 list_del_init(&prio->prio_sched); in sctp_sched_prio_free()
247 kfree(prio); in sctp_sched_prio_free()
267 struct sctp_stream_priorities *prio; in sctp_sched_prio_dequeue() local
281 prio = list_entry(stream->prio_list.next, in sctp_sched_prio_dequeue()
283 soute = prio->next; in sctp_sched_prio_dequeue()
295 struct sctp_stream_priorities *prio; in sctp_sched_prio_dequeue_done() local
304 prio = soute->prio_head; in sctp_sched_prio_dequeue_done()
306 sctp_sched_prio_next_stream(prio); in sctp_sched_prio_dequeue_done()