Lines Matching full:asoc
32 struct sctp_association *asoc);
77 const struct sctp_association *asoc) in sctp_ulpevent_set_owner() argument
85 sctp_association_hold((struct sctp_association *)asoc); in sctp_ulpevent_set_owner()
87 event->asoc = (struct sctp_association *)asoc; in sctp_ulpevent_set_owner()
88 atomic_add(event->rmem_len, &event->asoc->rmem_alloc); in sctp_ulpevent_set_owner()
89 sctp_skb_set_owner_r(skb, asoc->base.sk); in sctp_ulpevent_set_owner()
91 chunk->head_skb->sk = asoc->base.sk; in sctp_ulpevent_set_owner()
97 struct sctp_association *asoc = event->asoc; in sctp_ulpevent_release_owner() local
99 atomic_sub(event->rmem_len, &asoc->rmem_alloc); in sctp_ulpevent_release_owner()
100 sctp_association_put(asoc); in sctp_ulpevent_release_owner()
115 const struct sctp_association *asoc, in sctp_ulpevent_make_assoc_change() argument
224 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_assoc_change()
225 sac->sac_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_assoc_change()
242 const struct sctp_association *asoc, in sctp_ulpevent_make_peer_addr_change() argument
315 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_peer_addr_change()
316 spc->spc_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_peer_addr_change()
329 sctp_get_pf_specific(asoc->base.sk->sk_family)->addr_to_user( in sctp_ulpevent_make_peer_addr_change()
330 sctp_sk(asoc->base.sk), in sctp_ulpevent_make_peer_addr_change()
342 struct sctp_association *asoc = transport->asoc; in sctp_ulpevent_notify_peer_addr_change() local
346 if (asoc->state < SCTP_STATE_ESTABLISHED) in sctp_ulpevent_notify_peer_addr_change()
352 event = sctp_ulpevent_make_peer_addr_change(asoc, &addr, 0, state, in sctp_ulpevent_notify_peer_addr_change()
355 asoc->stream.si->enqueue_event(&asoc->ulpq, event); in sctp_ulpevent_notify_peer_addr_change()
374 sctp_ulpevent_make_remote_error(const struct sctp_association *asoc, in sctp_ulpevent_make_remote_error() argument
417 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_remote_error()
418 sre->sre_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_remote_error()
431 const struct sctp_association *asoc, struct sctp_chunk *chunk, in sctp_ulpevent_make_send_failed() argument
450 skb_pull(skb, sctp_datachk_len(&asoc->stream)); in sctp_ulpevent_make_send_failed()
451 len -= sctp_datachk_len(&asoc->stream); in sctp_ulpevent_make_send_failed()
525 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_send_failed()
526 ssf->ssf_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_send_failed()
534 const struct sctp_association *asoc, struct sctp_chunk *chunk, in sctp_ulpevent_make_send_failed_event() argument
547 len -= sctp_datachk_len(&asoc->stream); in sctp_ulpevent_make_send_failed_event()
549 skb_pull(skb, sctp_datachk_len(&asoc->stream)); in sctp_ulpevent_make_send_failed_event()
566 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_send_failed_event()
567 ssf->ssf_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_send_failed_event()
578 const struct sctp_association *asoc, in sctp_ulpevent_make_shutdown_event() argument
626 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_shutdown_event()
627 sse->sse_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_shutdown_event()
641 const struct sctp_association *asoc, gfp_t gfp) in sctp_ulpevent_make_adaptation_indication() argument
658 sai->sai_adaptation_ind = asoc->peer.adaptation_ind; in sctp_ulpevent_make_adaptation_indication()
659 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_adaptation_indication()
660 sai->sai_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_adaptation_indication()
675 struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc, in sctp_ulpevent_make_rcvmsg() argument
681 struct sock *sk = asoc->base.sk; in sctp_ulpevent_make_rcvmsg()
690 if (asoc->ep->rcvbuf_policy) in sctp_ulpevent_make_rcvmsg()
691 rx_count = atomic_read(&asoc->rmem_alloc); in sctp_ulpevent_make_rcvmsg()
708 if (sctp_tsnmap_mark(&asoc->peer.tsn_map, in sctp_ulpevent_make_rcvmsg()
745 sctp_ulpevent_receive_data(event, asoc); in sctp_ulpevent_make_rcvmsg()
750 event->cumtsn = sctp_tsnmap_get_ctsn(&asoc->peer.tsn_map); in sctp_ulpevent_make_rcvmsg()
772 const struct sctp_association *asoc, in sctp_ulpevent_make_pdapi() argument
817 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_pdapi()
818 pd->pdapi_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_pdapi()
826 const struct sctp_association *asoc, __u16 key_id, in sctp_ulpevent_make_authkey() argument
852 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_authkey()
853 ak->auth_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_authkey()
865 const struct sctp_association *asoc, gfp_t gfp) in sctp_ulpevent_make_sender_dry_event() argument
882 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_sender_dry_event()
883 sdry->sender_dry_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_sender_dry_event()
889 const struct sctp_association *asoc, __u16 flags, __u16 stream_num, in sctp_ulpevent_make_stream_reset_event() argument
908 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_stream_reset_event()
909 sreset->strreset_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_stream_reset_event()
918 const struct sctp_association *asoc, __u16 flags, __u32 local_tsn, in sctp_ulpevent_make_assoc_reset_event() argument
936 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_assoc_reset_event()
937 areset->assocreset_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_assoc_reset_event()
945 const struct sctp_association *asoc, __u16 flags, in sctp_ulpevent_make_stream_change_event() argument
963 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_make_stream_change_event()
964 schange->strchange_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_stream_change_event()
1002 sinfo.sinfo_assoc_id = sctp_assoc2id(event->asoc); in sctp_ulpevent_read_sndrcvinfo()
1004 sinfo.sinfo_context = event->asoc->default_rcv_context; in sctp_ulpevent_read_sndrcvinfo()
1030 rinfo.rcv_assoc_id = sctp_assoc2id(event->asoc); in sctp_ulpevent_read_rcvinfo()
1031 rinfo.rcv_context = event->asoc->default_rcv_context; in sctp_ulpevent_read_rcvinfo()
1053 nxtinfo.nxt_assoc_id = sctp_assoc2id(event->asoc); in __sctp_ulpevent_read_nxtinfo()
1079 struct sctp_association *asoc) in sctp_ulpevent_receive_data() argument
1085 sctp_ulpevent_set_owner(event, asoc); in sctp_ulpevent_receive_data()
1086 sctp_assoc_rwnd_decrease(asoc, skb_headlen(skb)); in sctp_ulpevent_receive_data()
1098 sctp_ulpevent_receive_data(sctp_skb2event(frag), asoc); in sctp_ulpevent_receive_data()
1132 sctp_assoc_rwnd_increase(event->asoc, len); in sctp_ulpevent_release_data()