Home
last modified time | relevance | path

Searched refs:vlanmc (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/net/dsa/realtek/
Drtl8366-core.c48 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()
[all …]
Drtl8366rb.c1503 struct rtl8366_vlan_mc *vlanmc) in rtl8366rb_get_vlan_mc() argument
1509 memset(vlanmc, '\0', sizeof(struct rtl8366_vlan_mc)); in rtl8366rb_get_vlan_mc()
1522 vlanmc->vid = data[0] & RTL8366RB_VLAN_VID_MASK; in rtl8366rb_get_vlan_mc()
1523 vlanmc->priority = (data[0] >> RTL8366RB_VLAN_PRIORITY_SHIFT) & in rtl8366rb_get_vlan_mc()
1525 vlanmc->untag = (data[1] >> RTL8366RB_VLAN_UNTAG_SHIFT) & in rtl8366rb_get_vlan_mc()
1527 vlanmc->member = data[1] & RTL8366RB_VLAN_MEMBER_MASK; in rtl8366rb_get_vlan_mc()
1528 vlanmc->fid = data[2] & RTL8366RB_VLAN_FID_MASK; in rtl8366rb_get_vlan_mc()
1534 const struct rtl8366_vlan_mc *vlanmc) in rtl8366rb_set_vlan_mc() argument
1541 vlanmc->vid >= RTL8366RB_NUM_VIDS || in rtl8366rb_set_vlan_mc()
1542 vlanmc->priority > RTL8366RB_PRIORITYMAX || in rtl8366rb_set_vlan_mc()
[all …]
Drealtek.h100 struct rtl8366_vlan_mc *vlanmc);
102 const struct rtl8366_vlan_mc *vlanmc);