Lines Matching refs:soute
103 static bool sctp_sched_prio_unsched(struct sctp_stream_out_ext *soute) in sctp_sched_prio_unsched() argument
107 if (!list_empty(&soute->prio_list)) { in sctp_sched_prio_unsched()
108 struct sctp_stream_priorities *prio_head = soute->prio_head; in sctp_sched_prio_unsched()
113 if (prio_head->next == soute) in sctp_sched_prio_unsched()
117 list_del_init(&soute->prio_list); in sctp_sched_prio_unsched()
131 struct sctp_stream_out_ext *soute) in sctp_sched_prio_sched() argument
135 prio_head = soute->prio_head; in sctp_sched_prio_sched()
138 if (!list_empty(&soute->prio_list)) in sctp_sched_prio_sched()
146 list_add(&soute->prio_list, prio_head->next->prio_list.prev); in sctp_sched_prio_sched()
150 list_add(&soute->prio_list, &prio_head->active); in sctp_sched_prio_sched()
151 prio_head->next = soute; in sctp_sched_prio_sched()
167 struct sctp_stream_out_ext *soute = sout->ext; in sctp_sched_prio_set() local
171 old = soute->prio_head; in sctp_sched_prio_set()
179 reschedule = sctp_sched_prio_unsched(soute); in sctp_sched_prio_set()
180 soute->prio_head = prio_head; in sctp_sched_prio_set()
182 sctp_sched_prio_sched(stream, soute); in sctp_sched_prio_set()
232 struct sctp_stream_out_ext *soute; in sctp_sched_prio_dequeue() local
243 soute = stream->out_curr->ext; in sctp_sched_prio_dequeue()
247 soute = prio->next; in sctp_sched_prio_dequeue()
249 ch = list_entry(soute->outq.next, struct sctp_chunk, stream_list); in sctp_sched_prio_dequeue()
260 struct sctp_stream_out_ext *soute; in sctp_sched_prio_dequeue_done() local
267 soute = SCTP_SO(&q->asoc->stream, sid)->ext; in sctp_sched_prio_dequeue_done()
268 prio = soute->prio_head; in sctp_sched_prio_dequeue_done()
272 if (list_empty(&soute->outq)) in sctp_sched_prio_dequeue_done()
273 sctp_sched_prio_unsched(soute); in sctp_sched_prio_dequeue_done()
296 struct sctp_stream_out_ext *soute, *souttmp; in sctp_sched_prio_unsched_all() local
299 list_for_each_entry_safe(soute, souttmp, &p->active, prio_list) in sctp_sched_prio_unsched_all()
300 sctp_sched_prio_unsched(soute); in sctp_sched_prio_unsched_all()