vlanmc 87 drivers/net/dsa/realtek-smi-core.h struct rtl8366_vlan_mc *vlanmc); vlanmc 89 drivers/net/dsa/realtek-smi-core.h const struct rtl8366_vlan_mc *vlanmc); vlanmc 60 drivers/net/dsa/rtl8366.c struct rtl8366_vlan_mc vlanmc; vlanmc 62 drivers/net/dsa/rtl8366.c ret = smi->ops->get_vlan_mc(smi, i, &vlanmc); vlanmc 66 drivers/net/dsa/rtl8366.c if (vid == vlanmc.vid) { vlanmc 68 drivers/net/dsa/rtl8366.c vlanmc.member = member; vlanmc 69 drivers/net/dsa/rtl8366.c vlanmc.untag = untag; vlanmc 70 drivers/net/dsa/rtl8366.c vlanmc.fid = fid; vlanmc 72 drivers/net/dsa/rtl8366.c ret = smi->ops->set_vlan_mc(smi, i, &vlanmc); vlanmc 83 drivers/net/dsa/rtl8366.c struct rtl8366_vlan_mc vlanmc; vlanmc 91 drivers/net/dsa/rtl8366.c ret = smi->ops->get_vlan_mc(smi, index, &vlanmc); vlanmc 95 drivers/net/dsa/rtl8366.c *val = vlanmc.vid; vlanmc 103 drivers/net/dsa/rtl8366.c struct rtl8366_vlan_mc vlanmc; vlanmc 110 drivers/net/dsa/rtl8366.c ret = smi->ops->get_vlan_mc(smi, i, &vlanmc); vlanmc 114 drivers/net/dsa/rtl8366.c if (vid == vlanmc.vid) { vlanmc 115 drivers/net/dsa/rtl8366.c ret = smi->ops->set_vlan_mc(smi, i, &vlanmc); vlanmc 126 drivers/net/dsa/rtl8366.c ret = smi->ops->get_vlan_mc(smi, i, &vlanmc); vlanmc 130 drivers/net/dsa/rtl8366.c if (vlanmc.vid == 0 && vlanmc.member == 0) { vlanmc 136 drivers/net/dsa/rtl8366.c vlanmc.vid = vid; vlanmc 137 drivers/net/dsa/rtl8366.c vlanmc.member = vlan4k.member; vlanmc 138 drivers/net/dsa/rtl8366.c vlanmc.untag = vlan4k.untag; vlanmc 139 drivers/net/dsa/rtl8366.c vlanmc.fid = vlan4k.fid; vlanmc 140 drivers/net/dsa/rtl8366.c ret = smi->ops->set_vlan_mc(smi, i, &vlanmc); vlanmc 163 drivers/net/dsa/rtl8366.c vlanmc.vid = vid; vlanmc 164 drivers/net/dsa/rtl8366.c vlanmc.member = vlan4k.member; vlanmc 165 drivers/net/dsa/rtl8366.c vlanmc.untag = vlan4k.untag; vlanmc 166 drivers/net/dsa/rtl8366.c vlanmc.fid = vlan4k.fid; vlanmc 167 drivers/net/dsa/rtl8366.c ret = smi->ops->set_vlan_mc(smi, i, &vlanmc); vlanmc 233 drivers/net/dsa/rtl8366.c struct rtl8366_vlan_mc vlanmc; vlanmc 241 drivers/net/dsa/rtl8366.c vlanmc.vid = 0; vlanmc 242 drivers/net/dsa/rtl8366.c vlanmc.priority = 0; vlanmc 243 drivers/net/dsa/rtl8366.c vlanmc.member = 0; vlanmc 244 drivers/net/dsa/rtl8366.c vlanmc.untag = 0; vlanmc 245 drivers/net/dsa/rtl8366.c vlanmc.fid = 0; vlanmc 247 drivers/net/dsa/rtl8366.c ret = smi->ops->set_vlan_mc(smi, i, &vlanmc); vlanmc 435 drivers/net/dsa/rtl8366.c struct rtl8366_vlan_mc vlanmc; vlanmc 437 drivers/net/dsa/rtl8366.c ret = smi->ops->get_vlan_mc(smi, i, &vlanmc); vlanmc 441 drivers/net/dsa/rtl8366.c if (vid == vlanmc.vid) { vlanmc 443 drivers/net/dsa/rtl8366.c vlanmc.vid = 0; vlanmc 444 drivers/net/dsa/rtl8366.c vlanmc.priority = 0; vlanmc 445 drivers/net/dsa/rtl8366.c vlanmc.member = 0; vlanmc 446 drivers/net/dsa/rtl8366.c vlanmc.untag = 0; vlanmc 447 drivers/net/dsa/rtl8366.c vlanmc.fid = 0; vlanmc 449 drivers/net/dsa/rtl8366.c ret = smi->ops->set_vlan_mc(smi, i, &vlanmc); vlanmc 1170 drivers/net/dsa/rtl8366rb.c struct rtl8366_vlan_mc *vlanmc) vlanmc 1176 drivers/net/dsa/rtl8366rb.c memset(vlanmc, '\0', sizeof(struct rtl8366_vlan_mc)); vlanmc 1189 drivers/net/dsa/rtl8366rb.c vlanmc->vid = data[0] & RTL8366RB_VLAN_VID_MASK; vlanmc 1190 drivers/net/dsa/rtl8366rb.c vlanmc->priority = (data[0] >> RTL8366RB_VLAN_PRIORITY_SHIFT) & vlanmc 1192 drivers/net/dsa/rtl8366rb.c vlanmc->untag = (data[1] >> RTL8366RB_VLAN_UNTAG_SHIFT) & vlanmc 1194 drivers/net/dsa/rtl8366rb.c vlanmc->member = data[1] & RTL8366RB_VLAN_MEMBER_MASK; vlanmc 1195 drivers/net/dsa/rtl8366rb.c vlanmc->fid = data[2] & RTL8366RB_VLAN_FID_MASK; vlanmc 1201 drivers/net/dsa/rtl8366rb.c const struct rtl8366_vlan_mc *vlanmc) vlanmc 1208 drivers/net/dsa/rtl8366rb.c vlanmc->vid >= RTL8366RB_NUM_VIDS || vlanmc 1209 drivers/net/dsa/rtl8366rb.c vlanmc->priority > RTL8366RB_PRIORITYMAX || vlanmc 1210 drivers/net/dsa/rtl8366rb.c vlanmc->member > RTL8366RB_VLAN_MEMBER_MASK || vlanmc 1211 drivers/net/dsa/rtl8366rb.c vlanmc->untag > RTL8366RB_VLAN_UNTAG_MASK || vlanmc 1212 drivers/net/dsa/rtl8366rb.c vlanmc->fid > RTL8366RB_FIDMAX) vlanmc 1215 drivers/net/dsa/rtl8366rb.c data[0] = (vlanmc->vid & RTL8366RB_VLAN_VID_MASK) | vlanmc 1216 drivers/net/dsa/rtl8366rb.c ((vlanmc->priority & RTL8366RB_VLAN_PRIORITY_MASK) << vlanmc 1218 drivers/net/dsa/rtl8366rb.c data[1] = (vlanmc->member & RTL8366RB_VLAN_MEMBER_MASK) | vlanmc 1219 drivers/net/dsa/rtl8366rb.c ((vlanmc->untag & RTL8366RB_VLAN_UNTAG_MASK) << vlanmc 1221 drivers/net/dsa/rtl8366rb.c data[2] = vlanmc->fid & RTL8366RB_VLAN_FID_MASK;