Home
last modified time | relevance | path

Searched refs:PORT_MMAP_CHUNK_SIZE (Results 1 – 3 of 3) sorted by relevance

/unit/src/
H A Dnxt_port_memory_int.h17 #define PORT_MMAP_CHUNK_SIZE 16 macro
23 #define PORT_MMAP_CHUNK_SIZE (1024 * 16) macro
31 #define PORT_MMAP_CHUNK_COUNT (PORT_MMAP_DATA_SIZE / PORT_MMAP_CHUNK_SIZE)
109 return ((p - mm_start) - PORT_MMAP_HEADER_SIZE) / PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_chunk_id()
120 return mm_start + PORT_MMAP_HEADER_SIZE + c * PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_chunk_start()
H A Dnxt_port_memory.c172 p += PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_buf_completion()
554 nchunks = (size + PORT_MMAP_CHUNK_SIZE - 1) / PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_get_buf()
587 b->mem.end = b->mem.start + nchunks * PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_get_buf()
627 nchunks = (size + PORT_MMAP_CHUNK_SIZE - 1) / PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_increase_buf()
643 && min_size > free_size + PORT_MMAP_CHUNK_SIZE * (c - start)) in nxt_port_mmap_increase_buf()
656 b->mem.end += PORT_MMAP_CHUNK_SIZE * (c - start); in nxt_port_mmap_increase_buf()
687 nchunks = mmap_msg->size / PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_get_incoming_buf()
688 if ((mmap_msg->size % PORT_MMAP_CHUNK_SIZE) != 0) { in nxt_port_mmap_get_incoming_buf()
697 b->mem.end = b->mem.start + nchunks * PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_get_incoming_buf()
H A Dnxt_unit.c2684 if (buf->end - buf->free >= PORT_MMAP_CHUNK_SIZE) { in nxt_unit_mmap_buf_send()
2868 return PORT_MMAP_CHUNK_SIZE; in nxt_unit_buf_min()
2934 min_part_size = nxt_min(min_part_size, PORT_MMAP_CHUNK_SIZE); in nxt_unit_response_write_nb()
3964 nchunks = (size + PORT_MMAP_CHUNK_SIZE - 1) / PORT_MMAP_CHUNK_SIZE; in nxt_unit_get_outgoing_buf()
3965 min_nchunks = (min_size + PORT_MMAP_CHUNK_SIZE - 1) / PORT_MMAP_CHUNK_SIZE; in nxt_unit_get_outgoing_buf()
3985 mmap_buf->buf.end = mmap_buf->buf.start + nchunks * PORT_MMAP_CHUNK_SIZE; in nxt_unit_get_outgoing_buf()
3991 (int) (nchunks * PORT_MMAP_CHUNK_SIZE)); in nxt_unit_get_outgoing_buf()
4361 p += PORT_MMAP_CHUNK_SIZE; in nxt_unit_mmap_release()