Home
last modified time | relevance | path

Searched refs:bm (Results 1 – 4 of 4) sorted by relevance

/unit/src/
H A Dnxt_sendbuf.c223 if (size > bsize && bm->pos == bm->free) { 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()
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()
267 bm->free = bm->start; in nxt_sendbuf_copy_coalesce()
306 bsize = bm->end - bm->free; in nxt_sendbuf_copy()
313 bm->free += size; in nxt_sendbuf_copy()
[all …]
H A Dnxt_buf.h190 #define nxt_buf_mem_set_size(bm, size) \ argument
192 (bm)->start = 0; \
193 (bm)->end = (void *) size; \
197 #define nxt_buf_mem_size(bm) \ argument
198 ((bm)->end - (bm)->start)
201 #define nxt_buf_mem_used_size(bm) \ argument
202 ((bm)->free - (bm)->pos)
205 #define nxt_buf_mem_free_size(bm) \ argument
206 ((bm)->end - (bm)->free)
H A Dnxt_sendbuf.h122 ssize_t nxt_sendbuf_copy_coalesce(nxt_conn_t *c, nxt_buf_mem_t *bm,
H A Dnxt_h1proto.c99 nxt_buf_mem_t *bm);
2581 nxt_h1p_peer_header_parse(nxt_http_peer_t *peer, nxt_buf_mem_t *bm) in nxt_h1p_peer_header_parse() argument
2588 length = nxt_buf_mem_used_size(bm); in nxt_h1p_peer_header_parse()
2594 p = bm->pos; in nxt_h1p_peer_header_parse()
2617 bm->pos = p + 1; in nxt_h1p_peer_header_parse()
2621 return nxt_http_parse_fields(&peer->proto.h1->parser, bm); in nxt_h1p_peer_header_parse()