Lines Matching refs:i

106 static nxt_unit_mmap_t *nxt_unit_mmap_at(nxt_unit_mmaps_t *mmaps, uint32_t i);
1933 uint32_t i, j; in nxt_unit_request_group_dup_fields() local
1946 for (i = 0; i < r->fields_count; i++) { in nxt_unit_request_group_dup_fields()
1947 name = nxt_unit_sptr_get(&fields[i].name); in nxt_unit_request_group_dup_fields()
1949 switch (fields[i].hash) { in nxt_unit_request_group_dup_fields()
1951 if (fields[i].name_length == content_length.length in nxt_unit_request_group_dup_fields()
1955 r->content_length_field = i; in nxt_unit_request_group_dup_fields()
1961 if (fields[i].name_length == content_type.length in nxt_unit_request_group_dup_fields()
1965 r->content_type_field = i; in nxt_unit_request_group_dup_fields()
1971 if (fields[i].name_length == cookie.length in nxt_unit_request_group_dup_fields()
1975 r->cookie_field = i; in nxt_unit_request_group_dup_fields()
1981 for (j = i + 1; j < r->fields_count; j++) { in nxt_unit_request_group_dup_fields()
1982 if (fields[i].hash != fields[j].hash in nxt_unit_request_group_dup_fields()
1983 || fields[i].name_length != fields[j].name_length in nxt_unit_request_group_dup_fields()
1992 f.value.offset += (j - (i + 1)) * sizeof(f); in nxt_unit_request_group_dup_fields()
1994 while (j > i + 1) { in nxt_unit_request_group_dup_fields()
2006 i++; in nxt_unit_request_group_dup_fields()
2088 uint32_t i, buf_size; in nxt_unit_response_realloc() local
2140 for (i = 0; i < req->response->fields_count; i++) { in nxt_unit_response_realloc()
2141 src = req->response->fields + i; in nxt_unit_response_realloc()
2152 i, src, src->name_length, src->value_length); in nxt_unit_response_realloc()
2180 i, req->response->piggyback_content_length); in nxt_unit_response_realloc()
3319 int i, rc; in nxt_unit_websocket_sendv() local
3330 for (i = 0; i < iovcnt; i++) { in nxt_unit_websocket_sendv()
3331 payload_len += iov[i].iov_len; in nxt_unit_websocket_sendv()
3357 for (i = 0; i < iovcnt; i++) { in nxt_unit_websocket_sendv()
3358 b = iov[i].iov_base; in nxt_unit_websocket_sendv()
3359 l = iov[i].iov_len; in nxt_unit_websocket_sendv()
3406 uint64_t i, d; in nxt_unit_websocket_read() local
3418 for (i = 0; i < (uint64_t) res; i++) { in nxt_unit_websocket_read()
3419 b[i] ^= ws->mask[ (i + d) % 4 ]; in nxt_unit_websocket_read()
3480 int res, nchunks, i; in nxt_unit_mmap_get() local
3522 for (i = 0; i < nchunks; i++) { in nxt_unit_mmap_get()
3523 nxt_port_mmap_set_chunk_free(hdr->free_map, *c + i); in nxt_unit_mmap_get()
3677 nxt_unit_mmap_at(nxt_unit_mmaps_t *mmaps, uint32_t i) in nxt_unit_mmap_at() argument
3682 if (nxt_fast_path(mmaps->size > i)) { in nxt_unit_mmap_at()
3683 return mmaps->elts + i; in nxt_unit_mmap_at()
3689 cap = i + 1; in nxt_unit_mmap_at()
3692 while (i + 1 > cap) { in nxt_unit_mmap_at()
3721 if (i + 1 > mmaps->size) { in nxt_unit_mmap_at()
3722 mmaps->size = i + 1; in nxt_unit_mmap_at()
3725 return mmaps->elts + i; in nxt_unit_mmap_at()
3732 int i, fd, rc; in nxt_unit_new_mmap() local
3775 for (i = 0; i < n; i++) { in nxt_unit_new_mmap()
3776 nxt_port_mmap_set_chunk_busy(hdr->free_map, i); in nxt_unit_new_mmap()