Searched refs:hash_size (Results 1 – 11 of 11) sorted by relevance
| /f-stack/freebsd/net/route/ |
| H A D | nhop_utils.h | 35 uint32_t hash_size; member 45 if ((head->items_count * 2 > head->hash_size) && (head->hash_size < 65536)) in _cht_get_resize_size() 46 new_size = head->hash_size * 2; in _cht_get_resize_size() 47 else if ((head->items_count * 4 < head->hash_size) && head->hash_size > 16) in _cht_get_resize_size() 48 new_size = head->hash_size / 2; in _cht_get_resize_size() 72 uint32_t hash_size; \ 78 (_head)->hash_size = _num_buckets; \ 84 #define CHT_GET_BUCK(_head, _PX, _key) _PX##_hash_key(_key) & ((_head)->hash_size - 1) 155 for (uint32_t _i = 0; _i < (_head)->hash_size; _i++) { \ 163 for (uint32_t _old_idx = 0; _old_idx < (_head)->hash_size; _old_idx++) {\ [all …]
|
| H A D | nhgrp.c | 291 if (ctl->gr_head.hash_size == 0) { in nhgrp_ctl_alloc_default()
|
| H A D | nhgrp_ctl.c | 442 if (ctl->gr_head.hash_size == 0) { in get_nhgrp()
|
| /f-stack/dpdk/drivers/net/bnxt/tf_core/ |
| H A D | tf_shadow_tbl.c | 245 uint16_t hash_size = 1; in tf_shadow_tbl_ctxt_create() local 257 while (hash_size < num_entries) in tf_shadow_tbl_ctxt_create() 258 hash_size = hash_size << 1; in tf_shadow_tbl_ctxt_create() 260 hash_mask = hash_size - 1; in tf_shadow_tbl_ctxt_create() 263 cparms.nitems = hash_size; in tf_shadow_tbl_ctxt_create() 271 ctxt->hash_ctxt.hash_entries = hash_size; in tf_shadow_tbl_ctxt_create()
|
| H A D | tf_shadow_tcam.c | 254 uint16_t hash_size = 1; in tf_shadow_tcam_ctxt_create() local 266 while (hash_size < num_entries) in tf_shadow_tcam_ctxt_create() 267 hash_size = hash_size << 1; in tf_shadow_tcam_ctxt_create() 269 hash_mask = hash_size - 1; in tf_shadow_tcam_ctxt_create() 272 cparms.nitems = hash_size; in tf_shadow_tcam_ctxt_create() 280 ctxt->hash_ctxt.hash_entries = hash_size; in tf_shadow_tcam_ctxt_create()
|
| /f-stack/dpdk/drivers/net/bonding/ |
| H A D | rte_eth_bond_alb.c | 9 simple_hash(uint8_t *hash_start, int hash_size) in simple_hash() argument 15 for (i = 0; i < hash_size; ++i) in simple_hash()
|
| /f-stack/freebsd/contrib/zlib/ |
| H A D | deflate.c | 194 s->head[s->hash_size-1] = NIL; \ 196 (unsigned)(s->hash_size-1)*sizeof(*s->head)); \ 211 n = s->hash_size; 320 s->hash_size = 1 << s->hash_bits; 321 s->hash_mask = s->hash_size - 1; 326 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos)); 1133 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos)); 1145 zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos));
|
| H A D | deflate.h | 143 uInt hash_size; /* number of elements in hash table */ member
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_dn_io.c | 121 value = dn_cfg.hash_size; in sysctl_hash_size() 127 dn_cfg.hash_size = value; in sysctl_hash_size() 175 SYSCTL_PROC(_net_inet_ip_dummynet, OID_AUTO, hash_size,
|
| H A D | ip_dn_private.h | 116 int hash_size; member
|
| H A D | ip_dummynet.c | 1626 ipdn_bound_var((int *)&nfs->buckets, dn_cfg.hash_size, in config_fs() 1732 ipdn_bound_var((int *)&a.sch->buckets, dn_cfg.hash_size, in config_sched() 2529 dn_cfg.hash_size = 64; /* default hash size */ in ip_dn_init() 2534 dn_cfg.schedhash = dn_ht_init(NULL, dn_cfg.hash_size, in ip_dn_init() 2537 dn_cfg.fshash = dn_ht_init(NULL, dn_cfg.hash_size, in ip_dn_init()
|