Searched refs:sb_wptr (Results 1 – 12 of 12) sorted by relevance
/external/qemu/slirp/ |
D | sbuf.c | 48 sb->sb_wptr = sb->sb_rptr = sb->sb_data = (char *)realloc(sb->sb_data, size); in sbreserve() 50 if (sb->sb_wptr) in sbreserve() 56 sb->sb_wptr = sb->sb_rptr = sb->sb_data = (char *)malloc(size); in sbreserve() 58 if (sb->sb_wptr) in sbreserve() 138 if (sb->sb_wptr < sb->sb_rptr) { in sbappendsb() 139 n = sb->sb_rptr - sb->sb_wptr; in sbappendsb() 141 memcpy(sb->sb_wptr, m->m_data, n); in sbappendsb() 144 n = sb->sb_data + sb->sb_datalen - sb->sb_wptr; in sbappendsb() 146 memcpy(sb->sb_wptr, m->m_data, n); in sbappendsb() 158 sb->sb_wptr += n; in sbappendsb() [all …]
|
D | tcp_subr.c | 636 memcpy(so_rcv->sb_wptr, m->m_data, m->m_len); in tcp_emu() 637 so_rcv->sb_wptr += m->m_len; in tcp_emu() 661 so_rcv->sb_wptr = so_rcv->sb_data + so_rcv->sb_cc; in tcp_emu() 684 (m->m_len + so_rcv->sb_wptr) > (so_rcv->sb_data + so_rcv->sb_datalen)) { in tcp_emu() 685 memcpy(so_snd->sb_wptr, "Permission denied\n", 18); in tcp_emu() 686 so_snd->sb_wptr += 18; in tcp_emu() 694 memcpy(so_rcv->sb_wptr, m->m_data, m->m_len); in tcp_emu() 695 so_rcv->sb_wptr += m->m_len; in tcp_emu() 707 while (ptr < so_rcv->sb_wptr) { in tcp_emu() 714 i2 = so_rcv->sb_wptr - ptr; in tcp_emu() [all …]
|
D | socket.c | 103 iov[0].iov_base = sb->sb_wptr; in sopreprbuf() 106 if (sb->sb_wptr < sb->sb_rptr) { in sopreprbuf() 107 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr; in sopreprbuf() 115 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; in sopreprbuf() 209 sb->sb_wptr += nn; in soread() 210 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) in soread() 211 sb->sb_wptr -= sb->sb_datalen; in soread() 245 sb->sb_wptr += size; in soreadbuf() 246 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) in soreadbuf() 247 sb->sb_wptr -= sb->sb_datalen; in soreadbuf() [all …]
|
D | sbuf.h | 17 char *sb_wptr; /* write pointer. points to where the next member
|
D | misc.c | 586 if ((lprint_ptr - lprint_sb->sb_wptr) >= in lprint() 588 int deltaw = lprint_sb->sb_wptr - lprint_sb->sb_data; in lprint() 596 lprint_sb->sb_wptr = lprint_sb->sb_data + deltaw; in lprint()
|
D | slirp.c | 919 off = (uint32_t)(sbuf->sb_wptr - sbuf->sb_data); in slirp_sbuf_save() 1022 sbuf->sb_wptr = sbuf->sb_data + off; in slirp_sbuf_load()
|
/external/qemu/slirp-android/ |
D | sbuf.c | 48 sb->sb_wptr = sb->sb_rptr = sb->sb_data = (char *)realloc(sb->sb_data, size); in sbreserve() 50 if (sb->sb_wptr) in sbreserve() 56 sb->sb_wptr = sb->sb_rptr = sb->sb_data = (char *)malloc(size); in sbreserve() 58 if (sb->sb_wptr) in sbreserve() 138 if (sb->sb_wptr < sb->sb_rptr) { in sbappendsb() 139 n = sb->sb_rptr - sb->sb_wptr; in sbappendsb() 141 memcpy(sb->sb_wptr, m->m_data, n); in sbappendsb() 144 n = sb->sb_data + sb->sb_datalen - sb->sb_wptr; in sbappendsb() 146 memcpy(sb->sb_wptr, m->m_data, n); in sbappendsb() 158 sb->sb_wptr += n; in sbappendsb() [all …]
|
D | socket.c | 111 iov[0].iov_base = sb->sb_wptr; in sopreprbuf() 114 if (sb->sb_wptr < sb->sb_rptr) { in sopreprbuf() 115 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr; in sopreprbuf() 123 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; in sopreprbuf() 217 sb->sb_wptr += nn; in soread() 218 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) in soread() 219 sb->sb_wptr -= sb->sb_datalen; in soread() 253 sb->sb_wptr += size; in soreadbuf() 254 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) in soreadbuf() 255 sb->sb_wptr -= sb->sb_datalen; in soreadbuf() [all …]
|
D | tcp_subr.c | 790 memcpy(so_rcv->sb_wptr, m->m_data, m->m_len); in tcp_emu() 791 so_rcv->sb_wptr += m->m_len; 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() [all …]
|
D | sbuf.h | 17 char *sb_wptr; /* write pointer. points to where the next member
|
D | misc.c | 550 if ((lprint_ptr - lprint_sb->sb_wptr) >= in lprint() 552 int deltaw = lprint_sb->sb_wptr - lprint_sb->sb_data; in lprint() 560 lprint_sb->sb_wptr = lprint_sb->sb_data + deltaw; in lprint()
|
D | slirp.c | 1322 off = (uint32_t)(sbuf->sb_wptr - sbuf->sb_data); in slirp_sbuf_save() 1425 sbuf->sb_wptr = sbuf->sb_data + off; in slirp_sbuf_load()
|