Home
last modified time | relevance | path

Searched refs:sb_datalen (Results 1 – 16 of 16) sorted by relevance

/external/qemu/slirp-android/
Dsbuf.c37 if(sb->sb_rptr >= sb->sb_data + sb->sb_datalen) in sbdrop()
38 sb->sb_rptr -= sb->sb_datalen; in sbdrop()
47 if (sb->sb_datalen != size) { in sbreserve()
51 sb->sb_datalen = size; in sbreserve()
53 sb->sb_datalen = 0; in sbreserve()
59 sb->sb_datalen = size; in sbreserve()
61 sb->sb_datalen = 0; in sbreserve()
144 n = sb->sb_data + sb->sb_datalen - sb->sb_wptr; in sbappendsb()
159 if (sb->sb_wptr >= sb->sb_data + sb->sb_datalen) in sbappendsb()
160 sb->sb_wptr -= sb->sb_datalen; in sbappendsb()
[all …]
Dsocket.c100 int len = sb->sb_datalen - sb->sb_cc; in sopreprbuf()
106 len = sb->sb_datalen - sb->sb_cc; in sopreprbuf()
123 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; in sopreprbuf()
218 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) in soread()
219 sb->sb_wptr -= sb->sb_datalen; in soread()
254 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) in soreadbuf()
255 sb->sb_wptr -= sb->sb_datalen; in soreadbuf()
326 len = (sb->sb_data + sb->sb_datalen) - sb->sb_rptr; in sosendoob()
347 if (sb->sb_rptr >= (sb->sb_data + sb->sb_datalen)) in sosendoob()
348 sb->sb_rptr -= sb->sb_datalen; in sosendoob()
[all …]
Dsbuf.h12 #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc)
16 u_int sb_datalen; /* Length of data */ member
Dslirp.c380 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()
1321 qemu_put_be32(f, sbuf->sb_datalen); in slirp_sbuf_save()
1326 qemu_put_buffer(f, (unsigned char*)sbuf->sb_data, sbuf->sb_datalen); in slirp_sbuf_save()
1412 uint32_t off, sb_cc, sb_datalen; in slirp_sbuf_load() local
1415 sb_datalen = qemu_get_be32(f); in slirp_sbuf_load()
1417 sbreserve(sbuf, sb_datalen); in slirp_sbuf_load()
1419 if (sbuf->sb_datalen != sb_datalen) in slirp_sbuf_load()
1428 qemu_get_buffer(f, (unsigned char*)sbuf->sb_data, sbuf->sb_datalen); in slirp_sbuf_load()
Dtcp_output.c208 if (2 * adv >= (long) so->so_rcv.sb_datalen)
437 if (win < (long)(so->so_rcv.sb_datalen / 4) && win < (long)tp->t_maxseg)
Dmisc.c551 (lprint_sb->sb_datalen - (strlen(format) + 100))) { in lprint()
557 lprint_sb->sb_datalen + TCP_SNDSPACE); in lprint()
564 lprint_sb->sb_datalen += TCP_SNDSPACE; in lprint()
Dtcp_subr.c809 so_rcv->sb_datalen, in tcp_emu()
1135 sb->sb_cc = snprintf(sb->sb_wptr, sb->sb_datalen - (sb->sb_wptr - sb->sb_data), in tcp_ctl()
Dtcp_input.c1317 if (ti->ti_urp + so->so_rcv.sb_cc > so->so_rcv.sb_datalen) { in tcp_input()
1369 len = so->so_rcv.sb_datalen - (tp->rcv_adv - tp->rcv_nxt); in tcp_input()
/external/qemu/slirp/
Dsbuf.c37 if(sb->sb_rptr >= sb->sb_data + sb->sb_datalen) in sbdrop()
38 sb->sb_rptr -= sb->sb_datalen; in sbdrop()
47 if (sb->sb_datalen != size) { in sbreserve()
51 sb->sb_datalen = size; in sbreserve()
53 sb->sb_datalen = 0; in sbreserve()
59 sb->sb_datalen = size; in sbreserve()
61 sb->sb_datalen = 0; in sbreserve()
144 n = sb->sb_data + sb->sb_datalen - sb->sb_wptr; in sbappendsb()
159 if (sb->sb_wptr >= sb->sb_data + sb->sb_datalen) in sbappendsb()
160 sb->sb_wptr -= sb->sb_datalen; in sbappendsb()
[all …]
Dsocket.c92 int len = sb->sb_datalen - sb->sb_cc; in sopreprbuf()
98 len = sb->sb_datalen - sb->sb_cc; in sopreprbuf()
115 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; in sopreprbuf()
210 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) in soread()
211 sb->sb_wptr -= sb->sb_datalen; in soread()
246 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) in soreadbuf()
247 sb->sb_wptr -= sb->sb_datalen; in soreadbuf()
318 len = (sb->sb_data + sb->sb_datalen) - sb->sb_rptr; in sosendoob()
339 if (sb->sb_rptr >= (sb->sb_data + sb->sb_datalen)) in sosendoob()
340 sb->sb_rptr -= sb->sb_datalen; in sosendoob()
[all …]
Dsbuf.h12 #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc)
16 u_int sb_datalen; /* Length of data */ member
Dslirp.c314 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()
918 qemu_put_be32(f, sbuf->sb_datalen); in slirp_sbuf_save()
923 qemu_put_buffer(f, (unsigned char*)sbuf->sb_data, sbuf->sb_datalen); in slirp_sbuf_save()
1009 uint32_t off, sb_cc, sb_datalen; in slirp_sbuf_load() local
1012 sb_datalen = qemu_get_be32(f); in slirp_sbuf_load()
1014 sbreserve(sbuf, sb_datalen); in slirp_sbuf_load()
1016 if (sbuf->sb_datalen != sb_datalen) in slirp_sbuf_load()
1025 qemu_get_buffer(f, (unsigned char*)sbuf->sb_data, sbuf->sb_datalen); in slirp_sbuf_load()
Dtcp_output.c208 if (2 * adv >= (long) so->so_rcv.sb_datalen)
437 if (win < (long)(so->so_rcv.sb_datalen / 4) && win < (long)tp->t_maxseg)
Dmisc.c587 (lprint_sb->sb_datalen - (strlen(format) + 100))) { in lprint()
593 lprint_sb->sb_datalen + TCP_SNDSPACE); in lprint()
600 lprint_sb->sb_datalen += TCP_SNDSPACE; in lprint()
Dtcp_subr.c658 so_rcv->sb_datalen, in tcp_emu()
684 (m->m_len + so_rcv->sb_wptr) > (so_rcv->sb_data + so_rcv->sb_datalen)) { in tcp_emu()
768 (m->m_len + so_rcv->sb_wptr) > (so_rcv->sb_data + so_rcv->sb_datalen)) { in tcp_emu()
1281 sb->sb_cc = snprintf(sb->sb_wptr, sb->sb_datalen - (sb->sb_wptr - sb->sb_data), in tcp_ctl()
Dtcp_input.c1311 if (ti->ti_urp + so->so_rcv.sb_cc > so->so_rcv.sb_datalen) { in tcp_input()
1363 len = so->so_rcv.sb_datalen - (tp->rcv_adv - tp->rcv_nxt); in tcp_input()