Lines Matching refs:sb_cc
91 …bspace(asoc, sb) ((long) ((sctp_maxspace(sb) > (asoc)->sb_cc) ? (sctp_maxspace(sb) - (asoc)->sb_cc…
93 …pace_failedmsgs(sb) ((long) ((sctp_maxspace(sb) > (sb)->sb_cc) ? (sctp_maxspace(sb) - (sb)->sb_cc)…
209 SCTP_SAVE_ATOMIC_DECREMENT(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \
212 SCTP_SAVE_ATOMIC_DECREMENT(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \
221 atomic_add_int(&(sb)->sb_cc,SCTP_BUF_LEN((m))); \
224 atomic_add_int(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \
256 if ((sb)->sb_cc >= (uint32_t)SCTP_BUF_LEN((m))) { \
257 atomic_subtract_int(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \
259 (sb)->sb_cc = 0; \
262 if ((stcb)->asoc.sb_cc >= (uint32_t)SCTP_BUF_LEN((m))) { \
263 atomic_subtract_int(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \
265 (stcb)->asoc.sb_cc = 0; \
271 atomic_add_int(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \
273 atomic_add_int(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \
280 SCTP_SAVE_ATOMIC_DECREMENT(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \
283 SCTP_SAVE_ATOMIC_DECREMENT(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \
289 atomic_add_int(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \
292 atomic_add_int(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \