Lines Matching refs:hwidth
112 uint16_t hwidth; member
144 for (_i = 0; _i < (1 << (_trunk)->hwidth); _i++) \
172 !(_cond) && _i < (1 << (_trunk)->hwidth); \
360 KASSERT(trunk->hwidth == 0 && trunk->hash == NULL, in vlan_inithash()
363 trunk->hwidth = VLAN_DEF_HWIDTH; in vlan_inithash()
364 n = 1 << trunk->hwidth; in vlan_inithash()
377 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_freehash()
378 for (i = 0; i < (1 << trunk->hwidth); i++) in vlan_freehash()
384 trunk->hwidth = trunk->hmask = 0; in vlan_freehash()
394 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_inshash()
396 b = 1 << trunk->hwidth; in vlan_inshash()
424 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_remhash()
426 b = 1 << trunk->hwidth; in vlan_remhash()
452 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_growhash()
460 hwidth2 = trunk->hwidth + howmuch; in vlan_growhash()
461 n = 1 << trunk->hwidth; in vlan_growhash()
484 trunk->hwidth = hwidth2; in vlan_growhash()
513 for (i = 0; i < (1 << trunk->hwidth); i++) {