Home
last modified time | relevance | path

Searched refs:sb_cc (Results 1 – 12 of 12) sorted by relevance

/external/usrsctp/usrsctplib/netinet/
Dsctp_var.h91 …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))) { \
[all …]
Dsctputil.h317 if (stcb->sctp_socket->so_snd.sb_cc >= tp1->book_size) { \
318 atomic_subtract_int(&((stcb)->sctp_socket->so_snd.sb_cc), tp1->book_size); \
320 stcb->sctp_socket->so_snd.sb_cc = 0; \
338 if (stcb->sctp_socket->so_snd.sb_cc >= sp->length) { \
339 atomic_subtract_int(&stcb->sctp_socket->so_snd.sb_cc,sp->length); \
341 stcb->sctp_socket->so_snd.sb_cc = 0; \
353 atomic_add_int(&stcb->sctp_socket->so_snd.sb_cc,sz); \
Dsctputil.c99 sctp_clog.x.sb.so_sbcc = sb->sb_cc; in sctp_sblog()
101 sctp_clog.x.sb.stcb_sbcc = stcb->asoc.sb_cc; in sctp_sblog()
5552 if (stcb->sctp_socket->so_snd.sb_cc >= tp1->book_size) {
5553 stcb->sctp_socket->so_snd.sb_cc -= tp1->book_size;
5555 stcb->sctp_socket->so_snd.sb_cc = 0;
6191 rwnd_req, in_eeor_mode, so->so_rcv.sb_cc, uio->uio_resid);
6194 rwnd_req, in_eeor_mode, so->so_rcv.sb_cc, uio_resid(uio));
6198 rwnd_req, in_eeor_mode, so->so_rcv.sb_cc, (uint32_t)uio->uio_resid);
6209 rwnd_req, block_allowed, so->so_rcv.sb_cc, uio->uio_resid);
6212 rwnd_req, block_allowed, so->so_rcv.sb_cc, uio_resid(uio));
[all …]
Dsctp_structs.h1066 uint32_t sb_cc; /* shadow of sb_cc */ member
Dsctp_os_userspace.h1000 (sb).sb_cc = 0; \
Dsctp_usrreq.c890 (so->so_rcv.sb_cc > 0)) {
893 (so->so_rcv.sb_cc > 0)) {
961 (so->so_rcv.sb_cc > 0)) {
964 (so->so_rcv.sb_cc > 0)) {
1168 (so->so_rcv.sb_cc > 0)) {
1172 (so->so_rcv.sb_cc > 0)) {
1316 so->so_rcv.sb_cc = 0;
1324 so->so_snd.sb_cc = 0;
Dsctp_indata.c104 if (stcb->asoc.sb_cc == 0 && in sctp_calc_rwnd()
1943 if (stcb->sctp_socket->so_rcv.sb_cc) { in sctp_process_a_data_chunk()
Dsctp_pcb.c3988 (so && (so->so_rcv.sb_cc > 0))) {
4208 so->so_rcv.sb_cc -= sq->length;
Dsctp_output.c7869 atomic_subtract_int(&stcb->sctp_socket->so_snd.sb_cc, sp->length);
12465 stcb->sctp_socket->so_rcv.sb_cc);
Dsctp_input.c1159 stcb->sctp_socket->so_snd.sb_cc = 0; in sctp_handle_shutdown_ack()
/external/usrsctp/usrsctplib/
Duser_socketvar.h186 u_int sb_cc; /* (c/d) actual chars in buffer */ member
397 u_int sb_cc; member
428 ((long) imin((int)((sb)->sb_hiwat - (sb)->sb_cc), \
437 ((so)->so_rcv.sb_cc >= (so)->so_rcv.sb_lowat || \
451 (sb)->sb_cc += (m)->m_len; \
461 (sb)->sb_cc -= (m)->m_len; \
759 ((long) min((int)((sb)->sb_hiwat - (sb)->sb_cc), \
768 ((int)((so)->so_rcv.sb_cc) >= (so)->so_rcv.sb_lowat || \
Duser_socket.c190 return (msleep(&sb->sb_cc, &sb->sb_mtx, in sbwait()
1605 wakeup(&sb->sb_cc); in sowakeup()