ha                651 core/ngx_hash.c ngx_hash_keys_array_init(ngx_hash_keys_arrays_t *ha, ngx_uint_t type)
ha                657 core/ngx_hash.c         ha->hsize = 107;
ha                661 core/ngx_hash.c         ha->hsize = NGX_HASH_LARGE_HSIZE;
ha                664 core/ngx_hash.c     if (ngx_array_init(&ha->keys, ha->temp_pool, asize, sizeof(ngx_hash_key_t))
ha                670 core/ngx_hash.c     if (ngx_array_init(&ha->dns_wc_head, ha->temp_pool, asize,
ha                677 core/ngx_hash.c     if (ngx_array_init(&ha->dns_wc_tail, ha->temp_pool, asize,
ha                684 core/ngx_hash.c     ha->keys_hash = ngx_pcalloc(ha->temp_pool, sizeof(ngx_array_t) * ha->hsize);
ha                685 core/ngx_hash.c     if (ha->keys_hash == NULL) {
ha                689 core/ngx_hash.c     ha->dns_wc_head_hash = ngx_pcalloc(ha->temp_pool,
ha                690 core/ngx_hash.c                                        sizeof(ngx_array_t) * ha->hsize);
ha                691 core/ngx_hash.c     if (ha->dns_wc_head_hash == NULL) {
ha                695 core/ngx_hash.c     ha->dns_wc_tail_hash = ngx_pcalloc(ha->temp_pool,
ha                696 core/ngx_hash.c                                        sizeof(ngx_array_t) * ha->hsize);
ha                697 core/ngx_hash.c     if (ha->dns_wc_tail_hash == NULL) {
ha                706 core/ngx_hash.c ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key, void *value,
ha                775 core/ngx_hash.c     k %= ha->hsize;
ha                779 core/ngx_hash.c     name = ha->keys_hash[k].elts;
ha                782 core/ngx_hash.c         for (i = 0; i < ha->keys_hash[k].nelts; i++) {
ha                793 core/ngx_hash.c         if (ngx_array_init(&ha->keys_hash[k], ha->temp_pool, 4,
ha                801 core/ngx_hash.c     name = ngx_array_push(&ha->keys_hash[k]);
ha                808 core/ngx_hash.c     hk = ngx_array_push(&ha->keys);
ha                826 core/ngx_hash.c     k %= ha->hsize;
ha                832 core/ngx_hash.c         name = ha->keys_hash[k].elts;
ha                837 core/ngx_hash.c             for (i = 0; i < ha->keys_hash[k].nelts; i++) {
ha                848 core/ngx_hash.c             if (ngx_array_init(&ha->keys_hash[k], ha->temp_pool, 4,
ha                856 core/ngx_hash.c         name = ngx_array_push(&ha->keys_hash[k]);
ha                862 core/ngx_hash.c         name->data = ngx_pnalloc(ha->temp_pool, name->len);
ha                878 core/ngx_hash.c         p = ngx_pnalloc(ha->temp_pool, last);
ha                905 core/ngx_hash.c         hwc = &ha->dns_wc_head;
ha                906 core/ngx_hash.c         keys = &ha->dns_wc_head_hash[k];
ha                914 core/ngx_hash.c         p = ngx_pnalloc(ha->temp_pool, last);
ha                921 core/ngx_hash.c         hwc = &ha->dns_wc_tail;
ha                922 core/ngx_hash.c         keys = &ha->dns_wc_tail_hash[k];
ha                955 core/ngx_hash.c         if (ngx_array_init(keys, ha->temp_pool, 4, sizeof(ngx_str_t)) != NGX_OK)
ha                967 core/ngx_hash.c     name->data = ngx_pnalloc(ha->temp_pool, name->len);
ha                116 core/ngx_hash.h ngx_int_t ngx_hash_keys_array_init(ngx_hash_keys_arrays_t *ha, ngx_uint_t type);
ha                117 core/ngx_hash.h ngx_int_t ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key,
ha               1453 http/ngx_http.c     ngx_hash_keys_arrays_t      ha;
ha               1462 http/ngx_http.c     ngx_memzero(&ha, sizeof(ngx_hash_keys_arrays_t));
ha               1464 http/ngx_http.c     ha.temp_pool = ngx_create_pool(16384, cf->log);
ha               1465 http/ngx_http.c     if (ha.temp_pool == NULL) {
ha               1469 http/ngx_http.c     ha.pool = cf->pool;
ha               1471 http/ngx_http.c     if (ngx_hash_keys_array_init(&ha, NGX_HASH_LARGE) != NGX_OK) {
ha               1490 http/ngx_http.c             rc = ngx_hash_add_key(&ha, &name[n].name, name[n].server,
ha               1518 http/ngx_http.c     if (ha.keys.nelts) {
ha               1522 http/ngx_http.c         if (ngx_hash_init(&hash, ha.keys.elts, ha.keys.nelts) != NGX_OK) {
ha               1527 http/ngx_http.c     if (ha.dns_wc_head.nelts) {
ha               1529 http/ngx_http.c         ngx_qsort(ha.dns_wc_head.elts, (size_t) ha.dns_wc_head.nelts,
ha               1533 http/ngx_http.c         hash.temp_pool = ha.temp_pool;
ha               1535 http/ngx_http.c         if (ngx_hash_wildcard_init(&hash, ha.dns_wc_head.elts,
ha               1536 http/ngx_http.c                                    ha.dns_wc_head.nelts)
ha               1545 http/ngx_http.c     if (ha.dns_wc_tail.nelts) {
ha               1547 http/ngx_http.c         ngx_qsort(ha.dns_wc_tail.elts, (size_t) ha.dns_wc_tail.nelts,
ha               1551 http/ngx_http.c         hash.temp_pool = ha.temp_pool;
ha               1553 http/ngx_http.c         if (ngx_hash_wildcard_init(&hash, ha.dns_wc_tail.elts,
ha               1554 http/ngx_http.c                                    ha.dns_wc_tail.nelts)
ha               1563 http/ngx_http.c     ngx_destroy_pool(ha.temp_pool);
ha               1596 http/ngx_http.c     ngx_destroy_pool(ha.temp_pool);