Lines Matching refs:hwidth
101 uint16_t hwidth; member
119 for (_i = 0; _i < (1 << (_trunk)->hwidth); _i++) \
147 !(_cond) && _i < (1 << (_trunk)->hwidth); \
329 KASSERT(trunk->hwidth == 0 && trunk->hash == NULL, in vlan_inithash()
332 trunk->hwidth = VLAN_DEF_HWIDTH; in vlan_inithash()
333 n = 1 << trunk->hwidth; in vlan_inithash()
346 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_freehash()
347 for (i = 0; i < (1 << trunk->hwidth); i++) in vlan_freehash()
353 trunk->hwidth = trunk->hmask = 0; in vlan_freehash()
363 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_inshash()
365 b = 1 << trunk->hwidth; in vlan_inshash()
393 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_remhash()
395 b = 1 << trunk->hwidth; in vlan_remhash()
421 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_growhash()
429 hwidth2 = trunk->hwidth + howmuch; in vlan_growhash()
430 n = 1 << trunk->hwidth; in vlan_growhash()
453 trunk->hwidth = hwidth2; in vlan_growhash()
482 for (i = 0; i < (1 << trunk->hwidth); i++) {