/external/qemu/slirp/ |
D | sbuf.c | 33 if(num > sb->sb_cc) in sbdrop() 34 num = sb->sb_cc; in sbdrop() 35 sb->sb_cc -= num; in sbdrop() 49 sb->sb_cc = 0; in sbreserve() 57 sb->sb_cc = 0; in sbreserve() 103 if (!so->so_rcv.sb_cc) in sbappend() 157 sb->sb_cc += n; in sbappendsb() 178 if (len > sb->sb_cc) len = sb->sb_cc; in sbcopy()
|
D | sbuf.h | 11 #define sbflush(sb) sbdrop((sb),(sb)->sb_cc) 12 #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc) 15 u_int sb_cc; /* actual chars in buffer */ member
|
D | tcp_subr.c | 657 so_rcv->sb_cc = snprintf(so_rcv->sb_data, in tcp_emu() 661 so_rcv->sb_wptr = so_rcv->sb_data + so_rcv->sb_cc; in tcp_emu() 687 so_snd->sb_cc += 18; in tcp_emu() 747 so_snd->sb_cc++; in tcp_emu() 771 so_snd->sb_cc += 18; in tcp_emu() 799 so_snd->sb_cc += 18; in tcp_emu() 866 so_snd->sb_cc++; in tcp_emu() 898 if (so_snd->sb_cc == 0) in tcp_emu() 921 while (num < so->so_rcv.sb_cc) { in tcp_emu() 946 so_snd->sb_cc += n; in tcp_emu() [all …]
|
D | socket.c | 92 int len = sb->sb_datalen - sb->sb_cc; in sopreprbuf() 98 len = sb->sb_datalen - sb->sb_cc; in sopreprbuf() 208 sb->sb_cc += nn; in soread() 244 sb->sb_cc += size; in soreadbuf() 281 tp->snd_up = tp->snd_una + so->so_snd.sb_cc; in sorecvoob() 301 DEBUG_ARG("sb->sb_cc = %d", sb->sb_cc); in sosendoob() 337 sb->sb_cc -= n; in sosendoob() 354 int len = sb->sb_cc; in sowrite() 362 if (sb->sb_cc == 0) in sowrite() 371 len = sb->sb_cc; in sowrite() [all …]
|
D | tcp_output.c | 128 if (off < so->so_snd.sb_cc) 137 len = min(so->so_snd.sb_cc, win) - off; 161 if (SEQ_LT(tp->snd_nxt + len, tp->snd_una + so->so_snd.sb_cc)) 180 len + off >= so->so_snd.sb_cc) 252 if (so->so_snd.sb_cc && tp->t_timer[TCPT_REXMT] == 0 && 376 if (off + len == so->so_snd.sb_cc)
|
D | debug.c | 318 so->so_rcv.sb_cc, so->so_snd.sb_cc); in sockstats() 332 so->so_rcv.sb_cc, so->so_snd.sb_cc); in sockstats()
|
D | slirp.c | 305 if (CONN_CANFSEND(so) && so->so_rcv.sb_cc) { in slirp_select_fill() 314 if (CONN_CANFRCV(so) && (so->so_snd.sb_cc < (so->so_snd.sb_datalen/2))) { in slirp_select_fill() 845 if (!CONN_CANFRCV(so) || so->so_snd.sb_cc >= (so->so_snd.sb_datalen/2)) in slirp_socket_can_recv() 917 qemu_put_be32(f, sbuf->sb_cc); in slirp_sbuf_save() 1009 uint32_t off, sb_cc, sb_datalen; in slirp_sbuf_load() local 1011 sb_cc = qemu_get_be32(f); in slirp_sbuf_load() 1019 sbuf->sb_cc = sb_cc; in slirp_sbuf_load()
|
D | tcp_input.c | 551 if (so->so_snd.sb_cc) in tcp_input() 1196 if (acked > so->so_snd.sb_cc) { in tcp_input() 1197 tp->snd_wnd -= so->so_snd.sb_cc; in tcp_input() 1198 sbdrop(&so->so_snd, (int )so->so_snd.sb_cc); in tcp_input() 1311 if (ti->ti_urp + so->so_rcv.sb_cc > so->so_rcv.sb_datalen) { in tcp_input() 1332 so->so_urgc = so->so_rcv.sb_cc + in tcp_input()
|
/external/qemu/slirp-android/ |
D | sbuf.c | 33 if(num > sb->sb_cc) in sbdrop() 34 num = sb->sb_cc; in sbdrop() 35 sb->sb_cc -= num; in sbdrop() 49 sb->sb_cc = 0; in sbreserve() 57 sb->sb_cc = 0; in sbreserve() 103 if (!so->so_rcv.sb_cc) in sbappend() 157 sb->sb_cc += n; in sbappendsb() 178 if (len > sb->sb_cc) len = sb->sb_cc; in sbcopy()
|
D | sbuf.h | 11 #define sbflush(sb) sbdrop((sb),(sb)->sb_cc) 12 #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc) 15 u_int sb_cc; /* actual chars in buffer */ member
|
D | socket.c | 100 int len = sb->sb_datalen - sb->sb_cc; in sopreprbuf() 106 len = sb->sb_datalen - sb->sb_cc; in sopreprbuf() 216 sb->sb_cc += nn; in soread() 252 sb->sb_cc += size; in soreadbuf() 289 tp->snd_up = tp->snd_una + so->so_snd.sb_cc; in sorecvoob() 309 DEBUG_ARG("sb->sb_cc = %d", sb->sb_cc); in sosendoob() 345 sb->sb_cc -= n; in sosendoob() 362 int len = sb->sb_cc; in sowrite() 370 if (sb->sb_cc == 0) in sowrite() 379 len = sb->sb_cc; in sowrite() [all …]
|
D | tcp_output.c | 128 if (off < so->so_snd.sb_cc) 137 len = min(so->so_snd.sb_cc, win) - off; 161 if (SEQ_LT(tp->snd_nxt + len, tp->snd_una + so->so_snd.sb_cc)) 180 len + off >= so->so_snd.sb_cc) 252 if (so->so_snd.sb_cc && tp->t_timer[TCPT_REXMT] == 0 && 376 if (off + len == so->so_snd.sb_cc)
|
D | tcp_subr.c | 808 so_rcv->sb_cc = snprintf(so_rcv->sb_data, in tcp_emu() 812 so_rcv->sb_wptr = so_rcv->sb_data + so_rcv->sb_cc; in tcp_emu() 1102 sb->sb_cc = sprintf(sb->sb_wptr,"Error: Permission denied.\r\n"); in tcp_ctl() 1103 sb->sb_wptr += sb->sb_cc; in tcp_ctl() 1135 sb->sb_cc = snprintf(sb->sb_wptr, sb->sb_datalen - (sb->sb_wptr - sb->sb_data), in tcp_ctl() 1137 sb->sb_wptr += sb->sb_cc; in tcp_ctl() 1152 sb->sb_cc = sprintf(sb->sb_wptr,"Sorry, already connected.\r\n"); in tcp_ctl() 1153 sb->sb_wptr += sb->sb_cc; in tcp_ctl() 1159 … sb->sb_cc = sprintf(sb->sb_wptr, "Slirp command-line ready (type \"help\" for help).\r\nSlirp> "); in tcp_ctl() 1160 sb->sb_wptr += sb->sb_cc; in tcp_ctl()
|
D | debug.c | 290 so->so_rcv.sb_cc, so->so_snd.sb_cc); 304 so->so_rcv.sb_cc, so->so_snd.sb_cc);
|
D | slirp.c | 371 if (CONN_CANFSEND(so) && so->so_rcv.sb_cc) { in slirp_select_fill() 380 if (CONN_CANFRCV(so) && (so->so_snd.sb_cc < (so->so_snd.sb_datalen/2))) { in slirp_select_fill() 1248 if (!CONN_CANFRCV(so) || so->so_snd.sb_cc >= (so->so_snd.sb_datalen/2)) in slirp_socket_can_recv() 1320 qemu_put_be32(f, sbuf->sb_cc); in slirp_sbuf_save() 1412 uint32_t off, sb_cc, sb_datalen; in slirp_sbuf_load() local 1414 sb_cc = qemu_get_be32(f); in slirp_sbuf_load() 1422 sbuf->sb_cc = sb_cc; in slirp_sbuf_load()
|
D | tcp_input.c | 556 if (so->so_snd.sb_cc) in tcp_input() 1202 if (acked > so->so_snd.sb_cc) { in tcp_input() 1203 tp->snd_wnd -= so->so_snd.sb_cc; in tcp_input() 1204 sbdrop(&so->so_snd, (int )so->so_snd.sb_cc); in tcp_input() 1317 if (ti->ti_urp + so->so_rcv.sb_cc > so->so_rcv.sb_datalen) { in tcp_input() 1338 so->so_urgc = so->so_rcv.sb_cc + in tcp_input()
|
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
D | sctp_var.h | 89 …bspace(asoc, sb) ((long) ((sctp_maxspace(sb) > (asoc)->sb_cc) ? (sctp_maxspace(sb) - (asoc)->sb_cc… 91 …pace_failedmsgs(sb) ((long) ((sctp_maxspace(sb) > (sb)->sb_cc) ? (sctp_maxspace(sb) - (sb)->sb_cc)… 203 SCTP_SAVE_ATOMIC_DECREMENT(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \ 206 SCTP_SAVE_ATOMIC_DECREMENT(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \ 215 atomic_add_int(&(sb)->sb_cc,SCTP_BUF_LEN((m))); \ 218 atomic_add_int(&(stcb)->asoc.sb_cc,SCTP_BUF_LEN((m))); \ 252 if ((sb)->sb_cc >= (uint32_t)SCTP_BUF_LEN((m))) { \ 253 atomic_subtract_int(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \ 255 (sb)->sb_cc = 0; \ 258 if ((stcb)->asoc.sb_cc >= (uint32_t)SCTP_BUF_LEN((m))) { \ [all …]
|
D | sctputil.h | 302 if (stcb->sctp_socket->so_snd.sb_cc >= tp1->book_size) { \ 303 atomic_subtract_int(&((stcb)->sctp_socket->so_snd.sb_cc), tp1->book_size); \ 305 stcb->sctp_socket->so_snd.sb_cc = 0; \ 323 if (stcb->sctp_socket->so_snd.sb_cc >= sp->length) { \ 324 atomic_subtract_int(&stcb->sctp_socket->so_snd.sb_cc,sp->length); \ 326 stcb->sctp_socket->so_snd.sb_cc = 0; \ 338 atomic_add_int(&stcb->sctp_socket->so_snd.sb_cc,sz); \
|
D | sctputil.c | 90 sctp_clog.x.sb.so_sbcc = sb->sb_cc; in sctp_sblog() 92 sctp_clog.x.sb.stcb_sbcc = stcb->asoc.sb_cc; in sctp_sblog() 5149 if (stcb->sctp_socket->so_snd.sb_cc >= tp1->book_size) { 5150 stcb->sctp_socket->so_snd.sb_cc -= tp1->book_size; 5152 stcb->sctp_socket->so_snd.sb_cc = 0; 5751 rwnd_req, in_eeor_mode, so->so_rcv.sb_cc, uio->uio_resid); 5754 rwnd_req, in_eeor_mode, so->so_rcv.sb_cc, uio_resid(uio)); 5758 rwnd_req, in_eeor_mode, so->so_rcv.sb_cc, uio->uio_resid); 5769 rwnd_req, block_allowed, so->so_rcv.sb_cc, uio->uio_resid); 5772 rwnd_req, block_allowed, so->so_rcv.sb_cc, uio_resid(uio)); [all …]
|
D | sctp_structs.h | 1036 uint32_t sb_cc; /* shadow of sb_cc */ member
|
D | sctp_os_userspace.h | 992 (sb).sb_cc = 0; \
|
D | sctp_usrreq.c | 932 (so->so_rcv.sb_cc > 0)) { 935 (so->so_rcv.sb_cc > 0)) { 1000 (so->so_rcv.sb_cc > 0)) { 1003 (so->so_rcv.sb_cc > 0)) { 1193 (so->so_rcv.sb_cc > 0)) { 1197 (so->so_rcv.sb_cc > 0)) { 1361 so->so_rcv.sb_cc = 0; 1369 so->so_snd.sb_cc = 0;
|
D | sctp_pcb.c | 3902 (so && (so->so_rcv.sb_cc > 0))) { 4149 so->so_rcv.sb_cc -= sq->length; 5531 if (so->so_rcv.sb_cc == 0) {
|
/external/chromium_org/third_party/usrsctp/usrsctplib/ |
D | user_socketvar.h | 184 u_int sb_cc; /* (c/d) actual chars in buffer */ member 370 u_int sb_cc; member 401 ((long) imin((int)((sb)->sb_hiwat - (sb)->sb_cc), \ 410 ((so)->so_rcv.sb_cc >= (so)->so_rcv.sb_lowat || \ 424 (sb)->sb_cc += (m)->m_len; \ 434 (sb)->sb_cc -= (m)->m_len; \ 731 ((long) min((int)((sb)->sb_hiwat - (sb)->sb_cc), \ 740 ((int)((so)->so_rcv.sb_cc) >= (so)->so_rcv.sb_lowat || \
|
D | user_socket.c | 146 return (msleep(&sb->sb_cc, &sb->sb_mtx, in sbwait() 1508 wakeup(&sb->sb_cc); in sowakeup()
|