Lines Matching refs:vlanmc
48 struct rtl8366_vlan_mc *vlanmc) in rtl8366_obtain_mc() argument
56 ret = priv->ops->get_vlan_mc(priv, i, vlanmc); in rtl8366_obtain_mc()
63 if (vid == vlanmc->vid) in rtl8366_obtain_mc()
69 ret = priv->ops->get_vlan_mc(priv, i, vlanmc); in rtl8366_obtain_mc()
76 if (vlanmc->vid == 0 && vlanmc->member == 0) { in rtl8366_obtain_mc()
85 vlanmc->vid = vid; in rtl8366_obtain_mc()
86 vlanmc->member = vlan4k.member; in rtl8366_obtain_mc()
87 vlanmc->untag = vlan4k.untag; in rtl8366_obtain_mc()
88 vlanmc->fid = vlan4k.fid; in rtl8366_obtain_mc()
89 ret = priv->ops->set_vlan_mc(priv, i, vlanmc); in rtl8366_obtain_mc()
116 vlanmc->vid = vid; in rtl8366_obtain_mc()
117 vlanmc->member = vlan4k.member; in rtl8366_obtain_mc()
118 vlanmc->untag = vlan4k.untag; in rtl8366_obtain_mc()
119 vlanmc->fid = vlan4k.fid; in rtl8366_obtain_mc()
120 ret = priv->ops->set_vlan_mc(priv, i, vlanmc); in rtl8366_obtain_mc()
139 struct rtl8366_vlan_mc vlanmc; in rtl8366_set_vlan() local
168 ret = rtl8366_obtain_mc(priv, vid, &vlanmc); in rtl8366_set_vlan()
174 vlanmc.member |= member; in rtl8366_set_vlan()
175 vlanmc.untag |= untag; in rtl8366_set_vlan()
176 vlanmc.fid = fid; in rtl8366_set_vlan()
179 ret = priv->ops->set_vlan_mc(priv, mc, &vlanmc); in rtl8366_set_vlan()
186 vid, vlanmc.member, vlanmc.untag); in rtl8366_set_vlan()
195 struct rtl8366_vlan_mc vlanmc; in rtl8366_set_pvid() local
203 ret = rtl8366_obtain_mc(priv, vid, &vlanmc); in rtl8366_set_pvid()
272 struct rtl8366_vlan_mc vlanmc; in rtl8366_reset_vlan() local
280 vlanmc.vid = 0; in rtl8366_reset_vlan()
281 vlanmc.priority = 0; in rtl8366_reset_vlan()
282 vlanmc.member = 0; in rtl8366_reset_vlan()
283 vlanmc.untag = 0; in rtl8366_reset_vlan()
284 vlanmc.fid = 0; in rtl8366_reset_vlan()
286 ret = priv->ops->set_vlan_mc(priv, i, &vlanmc); in rtl8366_reset_vlan()
359 struct rtl8366_vlan_mc vlanmc; in rtl8366_vlan_del() local
361 ret = priv->ops->get_vlan_mc(priv, i, &vlanmc); in rtl8366_vlan_del()
365 if (vlan->vid == vlanmc.vid) { in rtl8366_vlan_del()
367 vlanmc.member &= ~BIT(port); in rtl8366_vlan_del()
368 vlanmc.untag &= ~BIT(port); in rtl8366_vlan_del()
374 if (!vlanmc.member) { in rtl8366_vlan_del()
375 vlanmc.vid = 0; in rtl8366_vlan_del()
376 vlanmc.priority = 0; in rtl8366_vlan_del()
377 vlanmc.fid = 0; in rtl8366_vlan_del()
379 ret = priv->ops->set_vlan_mc(priv, i, &vlanmc); in rtl8366_vlan_del()