Lines Matching defs:hsize

906  * [v4=1/v6=0][hsize]
942 static __inline uint32_t hash_ip(uint32_t addr, int hsize);
945 static __inline uint32_t hash_ip6(struct in6_addr *addr6, int hsize);
946 static __inline uint16_t hash_ip64(struct in6_addr *addr6, int hsize);
948 int mask, int hsize);
950 int hsize);
998 hash_ip(uint32_t addr, int hsize)
1001 return (addr % (hsize - 1));
1007 hash_ip6(struct in6_addr *addr6, int hsize)
1014 return (i % (hsize - 1));
1019 hash_ip64(struct in6_addr *addr6, int hsize)
1025 return (i % (hsize - 1));
1030 hash_ip6_slow(struct in6_addr *addr6, void *key, int mask, int hsize)
1037 return (hash_ip6(addr6, hsize));
1041 hash_ip6_al(struct in6_addr *addr6, void *key, int mask, int hsize)
1049 return (hash_ip6(addr6, hsize));
1059 uint16_t hash, hsize;
1066 hsize = 1 << ((ti->data & 0xFFFF) >> 8);
1070 hash = hash_ip(a, hsize);
1084 hsize = 1 << (ti->data & 0xFF);
1085 hash = hash_ip6_slow(&addr6, key, imask, hsize);
1104 uint16_t hash, hsize;
1111 hsize = 1 << ((ti->data & 0xFFFF) >> 8);
1115 hash = hash_ip(a, hsize);
1130 hsize = 1 << (ti->data & 0xFF);
1132 hash = hash_ip6_al(&addr6, key, imask, hsize);
1153 uint16_t hash, hsize;
1160 hsize = 1 << ((ti->data & 0xFFFF) >> 8);
1164 hash = hash_ip(a, hsize);
1178 hsize = 1 << (ti->data & 0xFF);
1180 hash = hash_ip64((struct in6_addr *)key, hsize);
1276 uint32_t hsize;
1307 hsize = ta_log2(cfg->size4) << 8 | ta_log2(cfg->size6);
1310 hsize;
1314 cfg->mask6 << 13 | hsize;
1319 cfg->mask6 << 16 | hsize;
3111 static __inline uint32_t hash_flow4(struct fhashentry4 *f, int hsize);
3112 static __inline uint32_t hash_flow6(struct fhashentry6 *f, int hsize);
3162 hash_flow4(struct fhashentry4 *f, int hsize)
3168 return (i % (hsize - 1));
3172 hash_flow6(struct fhashentry6 *f, int hsize)
3182 return (i % (hsize - 1));
3207 uint16_t hash, hsize;
3211 hsize = ti->data;
3225 hash = hash_flow4(&f, hsize);
3250 hash = hash_flow6(&f, hsize);