Lines Matching refs:nvids

110 	vsw_vlanid_t *vids2, int nvids);
1787 &vswp->vids, &vswp->nvids, &vswp->default_vlan_id); in vsw_get_initial_md_properties()
1822 uint_t nvids = 0; in vsw_vlan_read_ids() local
1883 nvids = size; in vsw_vlan_read_ids()
1885 if (nvids != 0) { in vsw_vlan_read_ids()
1887 vids_size = sizeof (vsw_vlanid_t) * nvids; in vsw_vlan_read_ids()
1889 for (i = 0; i < nvids; i++) { in vsw_vlan_read_ids()
1897 *nvidsp = nvids; in vsw_vlan_read_ids()
2149 uint16_t nvids; in vsw_update_md_prop() local
2238 &nvids, NULL); in vsw_update_md_prop()
2242 (nvids != vswp->nvids) || /* # of vids changed? */ in vsw_update_md_prop()
2243 ((nvids != 0) && (vswp->nvids != 0) && /* vids changed? */ in vsw_update_md_prop()
2244 !vsw_cmp_vids(vids, vswp->vids, nvids))) { in vsw_update_md_prop()
2412 vsw_if_mac_reconfig(vswp, B_TRUE, pvid, vids, nvids); in vsw_update_md_prop()
2414 if (vswp->nvids != 0) { in vsw_update_md_prop()
2416 sizeof (vsw_vlanid_t) * vswp->nvids); in vsw_update_md_prop()
2419 vswp->nvids = nvids; in vsw_update_md_prop()
2426 if (nvids != 0) { in vsw_update_md_prop()
2427 kmem_free(vids, sizeof (vsw_vlanid_t) * nvids); in vsw_update_md_prop()
2548 &portp->vids, &portp->nvids, NULL); in vsw_port_read_props()
2607 uint16_t nvids; in vsw_port_update() local
2644 &vids, &nvids, NULL); in vsw_port_update()
2648 (nvids != portp->nvids) || /* # of vids changed? */ in vsw_port_update()
2649 ((nvids != 0) && (portp->nvids != 0) && /* vids changed? */ in vsw_port_update()
2650 !vsw_cmp_vids(vids, portp->vids, nvids))) { in vsw_port_update()
2682 vsw_mac_port_reconfig_vlans(portp, pvid, vids, nvids); in vsw_port_update()
2786 vsw_cmp_vids(vsw_vlanid_t *vids1, vsw_vlanid_t *vids2, int nvids) in vsw_cmp_vids() argument
2791 for (i = 0; i < nvids; i++) { in vsw_cmp_vids()
2793 for (j = 0; j < nvids; j++) { in vsw_cmp_vids()
2797 if (j == nvids) { in vsw_cmp_vids()