Lines Matching refs:asoc

109 		    struct sctp_association *asoc);
142 struct sctp_association *asoc,
228 static inline void sctp_max_rto(struct sctp_association *asoc, in sctp_max_rto() argument
231 if (asoc->stats.max_obs_rto < (__u64)trans->rto) { in sctp_max_rto()
232 asoc->stats.max_obs_rto = trans->rto; in sctp_max_rto()
233 memset(&asoc->stats.obs_rto_ipaddr, 0, in sctp_max_rto()
235 memcpy(&asoc->stats.obs_rto_ipaddr, &trans->ipaddr, in sctp_max_rto()
321 static inline sctp_assoc_t sctp_assoc2id(const struct sctp_association *asoc) in sctp_assoc2id() argument
323 return asoc ? asoc->assoc_id : 0; in sctp_assoc2id()
327 sctp_assoc_to_state(const struct sctp_association *asoc) in sctp_assoc_to_state() argument
336 return asoc->state + 1; in sctp_assoc_to_state()
409 static inline int sctp_frag_point(const struct sctp_association *asoc, int pmtu) in sctp_frag_point() argument
411 struct sctp_sock *sp = sctp_sk(asoc->base.sk); in sctp_frag_point()
417 if (asoc->user_frag) in sctp_frag_point()
418 frag = min_t(int, frag, asoc->user_frag); in sctp_frag_point()
425 static inline void sctp_assoc_pending_pmtu(struct sock *sk, struct sctp_association *asoc) in sctp_assoc_pending_pmtu() argument
428 sctp_assoc_sync_pmtu(sk, asoc); in sctp_assoc_pending_pmtu()
429 asoc->pmtu_pending = 0; in sctp_assoc_pending_pmtu()
552 #define sctp_state(asoc, state) __sctp_state((asoc), (SCTP_STATE_##state)) argument
553 static inline int __sctp_state(const struct sctp_association *asoc, in __sctp_state() argument
556 return asoc->state == state; in __sctp_state()