Lines Matching defs:asoc
60 struct sctp_stream *stream = &q->asoc->stream;
148 int sctp_sched_set_sched(struct sctp_association *asoc,
151 struct sctp_sched_ops *old = asoc->outqueue.sched;
165 sctp_sched_free_sched(&asoc->stream);
167 asoc->outqueue.sched = n;
168 n->init(&asoc->stream);
169 for (i = 0; i < asoc->stream.outcnt; i++) {
170 if (!SCTP_SO(&asoc->stream, i)->ext)
173 ret = n->init_sid(&asoc->stream, i, GFP_ATOMIC);
179 list_for_each_entry(ch, &asoc->outqueue.out_chunk_list, list) {
183 n->enqueue(&asoc->outqueue, msg);
189 sctp_sched_free_sched(&asoc->stream);
190 asoc->outqueue.sched = &sctp_sched_fcfs; /* Always safe */
195 int sctp_sched_get_sched(struct sctp_association *asoc)
200 if (asoc->outqueue.sched == sctp_sched_ops[i])
206 int sctp_sched_set_value(struct sctp_association *asoc, __u16 sid,
209 if (sid >= asoc->stream.outcnt)
212 if (!SCTP_SO(&asoc->stream, sid)->ext) {
215 ret = sctp_stream_init_ext(&asoc->stream, sid);
220 return asoc->outqueue.sched->set(&asoc->stream, sid, value, gfp);
223 int sctp_sched_get_value(struct sctp_association *asoc, __u16 sid,
226 if (sid >= asoc->stream.outcnt)
229 if (!SCTP_SO(&asoc->stream, sid)->ext)
232 return asoc->outqueue.sched->get(&asoc->stream, sid, value);
238 !q->asoc->peer.intl_capable) {
247 sout = SCTP_SO(&q->asoc->stream, sid);
248 q->asoc->stream.out_curr = sout;
252 q->asoc->stream.out_curr = NULL;
275 struct sctp_association *asoc;
277 asoc = container_of(stream, struct sctp_association, stream);
279 return asoc->outqueue.sched;