Home
last modified time | relevance | path

Searched refs:hsize (Results 1 – 16 of 16) sorted by relevance

/f-stack/tools/libutil/
H A Drealhostname.c51 realhostname(char *host, size_t hsize, const struct in_addr *ip) in realhostname() argument
63 if (strlen(trimmed) <= hsize) { in realhostname()
76 strncpy(host, trimmed, hsize); in realhostname()
83 strncpy(host, inet_ntoa(*ip), hsize); in realhostname()
101 realhostname_sa(char *host, size_t hsize, struct sockaddr *addr, int addrlen) in realhostname_sa() argument
180 trimdomain(buf, hsize); in realhostname_sa()
181 if (strlen(buf) > hsize && in realhostname_sa()
186 strncpy(host, buf, hsize); in realhostname_sa()
196 strncpy(host, buf, hsize); in realhostname_sa()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_table_algo.c946 int mask, int hsize);
948 int hsize);
1011 return (i % (hsize - 1)); in hash_ip6()
1021 return (i % (hsize - 1)); in hash_ip64()
1054 uint16_t hash, hsize; in ta_lookup_chash_slow() local
1099 uint16_t hash, hsize; in ta_lookup_chash_aligned() local
1148 uint16_t hash, hsize; in ta_lookup_chash_64() local
1271 uint32_t hsize; in ta_init_chash() local
1304 hsize; in ta_init_chash()
3194 uint32_t hsize; in ta_lookup_fhash() local
[all …]
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_hash.c664 ha->hsize = 107; in ngx_hash_keys_array_init()
668 ha->hsize = NGX_HASH_LARGE_HSIZE; in ngx_hash_keys_array_init()
691 ha->keys_hash = ngx_pcalloc(ha->temp_pool, sizeof(ngx_array_t) * ha->hsize); in ngx_hash_keys_array_init()
697 sizeof(ngx_array_t) * ha->hsize); in ngx_hash_keys_array_init()
703 sizeof(ngx_array_t) * ha->hsize); in ngx_hash_keys_array_init()
786 k %= ha->hsize; in ngx_hash_add_key()
837 k %= ha->hsize; in ngx_hash_add_key()
H A Dngx_hash.h76 ngx_uint_t hsize; member
/f-stack/app/redis-5.0.5/deps/jemalloc/test/unit/
H A Dstats.c320 size_t curlextents, sz, hsize; in TEST_BEGIN() local
324 assert_d_eq(mallctl("arenas.lextent.0.size", (void *)&hsize, &sz, NULL, in TEST_BEGIN()
327 p = mallocx(hsize, MALLOCX_ARENA(0)); in TEST_BEGIN()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_gzip_filter_module.c1257 size_t memlevel, hsize; in ngx_http_gzip_hash() local
1261 for (hsize = 128 * 1024; hsize > 256; hsize >>= 1) { in ngx_http_gzip_hash()
1263 if (hsize == *np) { in ngx_http_gzip_hash()
H A Dngx_http_map_module.c251 ctx.values_hash = ngx_pcalloc(pool, sizeof(ngx_array_t) * ctx.keys.hsize); in ngx_http_map_block()
427 key %= ctx->keys.hsize; in ngx_http_map()
/f-stack/freebsd/arm64/broadcom/genet/
H A Dif_genet.c1181 int hsize = size; \ in gen_parse_tx()
1192 bcopy(p, copy_p, hsize); \ in gen_parse_tx()
1193 m0->m_len += hsize; \ in gen_parse_tx()
1194 m0->m_pkthdr.len += hsize; /* unneeded */ \ in gen_parse_tx()
1195 m->m_len -= hsize; \ in gen_parse_tx()
1196 m->m_data += hsize; \ in gen_parse_tx()
1198 copy_p += hsize; \ in gen_parse_tx()
/f-stack/freebsd/net/
H A Dif_llatbl.c567 lltable_allocate_htbl(uint32_t hsize) in lltable_allocate_htbl() argument
573 llt->llt_hsize = hsize; in lltable_allocate_htbl()
574 llt->lle_head = malloc(sizeof(struct llentries) * hsize, in lltable_allocate_htbl()
H A Dif_llatbl.h211 struct lltable *lltable_allocate_htbl(uint32_t hsize);
/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_map_module.c249 ctx.values_hash = ngx_pcalloc(pool, sizeof(ngx_array_t) * ctx.keys.hsize); in ngx_stream_map_block()
426 key %= ctx->keys.hsize; in ngx_stream_map()
/f-stack/freebsd/netinet/
H A Din.c1459 in_lltable_hash_dst(const struct in_addr dst, uint32_t hsize) in in_lltable_hash_dst() argument
1462 return (IN_LLTBL_HASH(dst.s_addr, hsize)); in in_lltable_hash_dst()
1466 in_lltable_hash(const struct llentry *lle, uint32_t hsize) in in_lltable_hash() argument
1469 return (in_lltable_hash_dst(lle->r_l3addr.addr4, hsize)); in in_lltable_hash()
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64lsn.c951 int i, j, hsize;
958 hsize = h->states_hashsize * 2;
959 hash = malloc(sizeof(*hash)* hsize, M_NOWAIT);
962 for (j = 0; j < hsize; j++)
/f-stack/freebsd/netinet6/
H A Din6.c2244 in6_lltable_hash_dst(const struct in6_addr *dst, uint32_t hsize) in in6_lltable_hash_dst() argument
2247 return (IN6_LLTBL_HASH(dst->s6_addr32[3], hsize)); in in6_lltable_hash_dst()
2251 in6_lltable_hash(const struct llentry *lle, uint32_t hsize) in in6_lltable_hash() argument
2254 return (in6_lltable_hash_dst(&lle->r_l3addr.addr6, hsize)); in in6_lltable_hash()
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Ddbuf.c789 uint64_t hsize = 1ULL << 16; in dbuf_init() local
799 while (hsize * zfs_arc_average_blocksize < physmem * PAGESIZE) in dbuf_init()
800 hsize <<= 1; in dbuf_init()
803 h->hash_table_mask = hsize - 1; in dbuf_init()
809 h->hash_table = vmem_zalloc(hsize * sizeof (void *), KM_SLEEP); in dbuf_init()
811 h->hash_table = kmem_zalloc(hsize * sizeof (void *), KM_NOSLEEP); in dbuf_init()
815 ASSERT(hsize > (1ULL << 10)); in dbuf_init()
816 hsize >>= 1; in dbuf_init()
H A Darc.c1267 uint64_t hsize = 1ULL << 12; in buf_init() local
1276 while (hsize * zfs_arc_average_blocksize < arc_all_memory()) in buf_init()
1277 hsize <<= 1; in buf_init()
1279 buf_hash_table.ht_mask = hsize - 1; in buf_init()
1286 vmem_zalloc(hsize * sizeof (void*), KM_SLEEP); in buf_init()
1289 kmem_zalloc(hsize * sizeof (void*), KM_NOSLEEP); in buf_init()
1292 ASSERT(hsize > (1ULL << 8)); in buf_init()
1293 hsize >>= 1; in buf_init()