Home
last modified time | relevance | path

Searched refs:bm (Results 1 – 5 of 5) 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);
2592 nxt_h1p_peer_header_parse(nxt_http_peer_t *peer, nxt_buf_mem_t *bm) in nxt_h1p_peer_header_parse() argument
2599 length = nxt_buf_mem_used_size(bm); in nxt_h1p_peer_header_parse()
2605 p = bm->pos; in nxt_h1p_peer_header_parse()
2628 bm->pos = p + 1; in nxt_h1p_peer_header_parse()
2632 return nxt_http_parse_fields(&peer->proto.h1->parser, bm); in nxt_h1p_peer_header_parse()
H A Dnxt_controller.c1959 nxt_buf_mem_t *bm; in nxt_controller_process_script() local
2022 bm = &c->read->mem; in nxt_controller_process_script()
2024 script = nxt_script_new(task, &name, bm->pos, in nxt_controller_process_script()
2025 nxt_buf_mem_used_size(bm), error); in nxt_controller_process_script()