Lines Matching defs:hsize
914 * [v4=1/v6=0][hsize]
950 static __inline uint32_t hash_ip(uint32_t addr, int hsize);
953 static __inline uint32_t hash_ip6(struct in6_addr *addr6, int hsize);
954 static __inline uint16_t hash_ip64(struct in6_addr *addr6, int hsize);
956 int mask, int hsize);
958 int hsize);
1005 hash_ip(uint32_t addr, int hsize)
1008 return (addr % (hsize - 1));
1014 hash_ip6(struct in6_addr *addr6, int hsize)
1021 return (i % (hsize - 1));
1025 hash_ip64(struct in6_addr *addr6, int hsize)
1031 return (i % (hsize - 1));
1035 hash_ip6_slow(struct in6_addr *addr6, void *key, int mask, int hsize)
1042 return (hash_ip6(addr6, hsize));
1046 hash_ip6_al(struct in6_addr *addr6, void *key, int mask, int hsize)
1054 return (hash_ip6(addr6, hsize));
1064 uint16_t hash, hsize;
1071 hsize = 1 << ((ti->data & 0xFFFF) >> 8);
1075 hash = hash_ip(a, hsize);
1089 hsize = 1 << (ti->data & 0xFF);
1090 hash = hash_ip6_slow(&addr6, key, imask, hsize);
1109 uint16_t hash, hsize;
1116 hsize = 1 << ((ti->data & 0xFFFF) >> 8);
1120 hash = hash_ip(a, hsize);
1135 hsize = 1 << (ti->data & 0xFF);
1137 hash = hash_ip6_al(&addr6, key, imask, hsize);
1158 uint16_t hash, hsize;
1165 hsize = 1 << ((ti->data & 0xFFFF) >> 8);
1169 hash = hash_ip(a, hsize);
1183 hsize = 1 << (ti->data & 0xFF);
1185 hash = hash_ip64((struct in6_addr *)key, hsize);
1281 uint32_t hsize;
1311 hsize = ta_log2(cfg->size4) << 8 | ta_log2(cfg->size6);
1314 hsize;
1318 cfg->mask6 << 13 | hsize;
1323 cfg->mask6 << 16 | hsize;
3102 static __inline uint32_t hash_flow4(struct fhashentry4 *f, int hsize);
3103 static __inline uint32_t hash_flow6(struct fhashentry6 *f, int hsize);
3153 hash_flow4(struct fhashentry4 *f, int hsize)
3159 return (i % (hsize - 1));
3163 hash_flow6(struct fhashentry6 *f, int hsize)
3173 return (i % (hsize - 1));
3198 uint32_t hsize;
3203 hsize = ti->data;
3217 hash = hash_flow4(&f, hsize);
3242 hash = hash_flow6(&f, hsize);