Lines Matching refs:i

25 nxt_port_mmap_handler_use(nxt_port_mmap_handler_t *mmap_handler, int i)  in nxt_port_mmap_handler_use()  argument
29 c = nxt_atomic_fetch_add(&mmap_handler->use_count, i); in nxt_port_mmap_handler_use()
31 if (i < 0 && c == -i) { in nxt_port_mmap_handler_use()
47 nxt_port_mmap_at(nxt_port_mmaps_t *port_mmaps, uint32_t i) in nxt_port_mmap_at() argument
54 cap = i + 1; in nxt_port_mmap_at()
57 while (i + 1 > cap) { in nxt_port_mmap_at()
81 if (i + 1 > port_mmaps->size) { in nxt_port_mmap_at()
82 port_mmaps->size = i + 1; in nxt_port_mmap_at()
85 return port_mmaps->elts + i; in nxt_port_mmap_at()
92 uint32_t i; in nxt_port_mmaps_destroy() local
101 for (i = 0; i < port_mmaps->size; i++) { in nxt_port_mmaps_destroy()
102 nxt_port_mmap_handler_use(port_mmap[i].mmap_handler, -1); in nxt_port_mmaps_destroy()
292 nxt_int_t i; in nxt_port_new_port_mmap() local
344 for (i = 0; i < n; i++) { in nxt_port_new_port_mmap()
345 nxt_port_mmap_set_chunk_busy(free_map, i); in nxt_port_new_port_mmap()
448 nxt_int_t i, res, nchunks; in nxt_port_mmap_get() local
481 for (i = 0; i < nchunks; i++) { in nxt_port_mmap_get()
482 nxt_port_mmap_set_chunk_free(free_map, *c + i); in nxt_port_mmap_get()
716 nxt_uint_t i; in nxt_port_mmap_write() local
729 for (i = 0; i < sb->niov; i++, mmap_msg++) { in nxt_port_mmap_write()
732 while (bmem && sb->iobuf[i].iov_base != bmem->mem.pos) { in nxt_port_mmap_write()
738 "failed to find buf for iobuf[%d]", i); in nxt_port_mmap_write()
748 mmap_msg->size = sb->iobuf[i].iov_len; in nxt_port_mmap_write()