Lines Matching refs:hwidth
108 uint16_t hwidth; member
140 for (_i = 0; _i < (1 << (_trunk)->hwidth); _i++) \
168 !(_cond) && _i < (1 << (_trunk)->hwidth); \
403 KASSERT(trunk->hwidth == 0 && trunk->hash == NULL, in vlan_inithash()
406 trunk->hwidth = VLAN_DEF_HWIDTH; in vlan_inithash()
407 n = 1 << trunk->hwidth; in vlan_inithash()
420 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_freehash()
421 for (i = 0; i < (1 << trunk->hwidth); i++) in vlan_freehash()
427 trunk->hwidth = trunk->hmask = 0; in vlan_freehash()
437 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_inshash()
439 b = 1 << trunk->hwidth; in vlan_inshash()
467 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_remhash()
469 b = 1 << (trunk->hwidth - 1); in vlan_remhash()
495 KASSERT(trunk->hwidth > 0, ("%s: hwidth not positive", __func__)); in vlan_growhash()
503 hwidth2 = trunk->hwidth + howmuch; in vlan_growhash()
504 n = 1 << trunk->hwidth; in vlan_growhash()
522 trunk->hwidth = hwidth2; in vlan_growhash()
551 for (i = 0; i < (1 << trunk->hwidth); i++) {