Lines Matching refs:vid

39 int rtl8366_set_vlan(struct realtek_smi *smi, int vid, u32 member,  in rtl8366_set_vlan()  argument
47 ret = smi->ops->get_vlan_4k(smi, vid, &vlan4k); in rtl8366_set_vlan()
66 if (vid == vlanmc.vid) { in rtl8366_set_vlan()
95 *val = vlanmc.vid; in rtl8366_get_pvid()
101 unsigned int vid) in rtl8366_set_pvid() argument
114 if (vid == vlanmc.vid) { in rtl8366_set_pvid()
130 if (vlanmc.vid == 0 && vlanmc.member == 0) { in rtl8366_set_pvid()
132 ret = smi->ops->get_vlan_4k(smi, vid, &vlan4k); in rtl8366_set_pvid()
136 vlanmc.vid = vid; in rtl8366_set_pvid()
159 ret = smi->ops->get_vlan_4k(smi, vid, &vlan4k); in rtl8366_set_pvid()
163 vlanmc.vid = vid; in rtl8366_set_pvid()
241 vlanmc.vid = 0; in rtl8366_reset_vlan()
342 u16 vid; in rtl8366_vlan_prepare() local
345 for (vid = vlan->vid_begin; vid < vlan->vid_end; vid++) in rtl8366_vlan_prepare()
346 if (!smi->ops->is_vlan_valid(smi, vid)) in rtl8366_vlan_prepare()
372 u16 vid; in rtl8366_vlan_add() local
375 for (vid = vlan->vid_begin; vid < vlan->vid_end; vid++) in rtl8366_vlan_add()
376 if (!smi->ops->is_vlan_valid(smi, vid)) in rtl8366_vlan_add()
387 for (vid = vlan->vid_begin; vid <= vlan->vid_end; ++vid) { in rtl8366_vlan_add()
390 dev_info(smi->dev, "add VLAN %04x\n", vid); in rtl8366_vlan_add()
406 ret = rtl8366_set_pvid(smi, port, vid); in rtl8366_vlan_add()
416 vid); in rtl8366_vlan_add()
424 u16 vid; in rtl8366_vlan_del() local
429 for (vid = vlan->vid_begin; vid <= vlan->vid_end; ++vid) { in rtl8366_vlan_del()
432 dev_info(smi->dev, "del VLAN %04x\n", vid); in rtl8366_vlan_del()
441 if (vid == vlanmc.vid) { in rtl8366_vlan_del()
443 vlanmc.vid = 0; in rtl8366_vlan_del()
453 vid); in rtl8366_vlan_del()