Lines Matching refs:pos

39             size = b->mem.free - b->mem.pos;  in nxt_sendbuf_mem_coalesce0()
51 if (b->mem.pos != last) { in nxt_sendbuf_mem_coalesce0()
57 iov[n].iov_base = b->mem.pos; in nxt_sendbuf_mem_coalesce0()
68 last = b->mem.pos + size; in nxt_sendbuf_mem_coalesce0()
109 size = b->mem.free - b->mem.pos; in nxt_sendbuf_mem_coalesce()
123 if (b->mem.pos != last) { in nxt_sendbuf_mem_coalesce()
131 sb->iobuf[n].iov_base = b->mem.pos; in nxt_sendbuf_mem_coalesce()
142 last = b->mem.pos + size; in nxt_sendbuf_mem_coalesce()
223 if (size > bsize && bm->pos == bm->free) { in nxt_sendbuf_copy_coalesce()
231 if (bm->pos == NULL) { in nxt_sendbuf_copy_coalesce()
232 bm->pos = nxt_malloc(bsize); in nxt_sendbuf_copy_coalesce()
233 if (nxt_slow_path(bm->pos == NULL)) { in nxt_sendbuf_copy_coalesce()
237 bm->start = bm->pos; in nxt_sendbuf_copy_coalesce()
238 bm->free = bm->pos; in nxt_sendbuf_copy_coalesce()
239 bm->end += (uintptr_t) bm->pos; in nxt_sendbuf_copy_coalesce()
258 n = c->io->send(c, bm->pos, nxt_min(size, limit)); in nxt_sendbuf_copy_coalesce()
263 bm->pos += n; in nxt_sendbuf_copy_coalesce()
265 if (bm->pos == bm->free) { in nxt_sendbuf_copy_coalesce()
266 bm->pos = bm->start; in nxt_sendbuf_copy_coalesce()
284 return c->io->send(c, b->mem.pos, nxt_min(size, limit)); in nxt_sendbuf_copy_coalesce()
307 size = b->mem.free - b->mem.pos; in nxt_sendbuf_copy()
310 nxt_memcpy(bm->free, b->mem.pos, size); in nxt_sendbuf_copy()
352 b->mem.pos += sent; in nxt_sendbuf_update()
363 b->mem.pos = b->mem.free; in nxt_sendbuf_update()