Lines Matching refs:vid

250 static void b53_set_vlan_entry(struct b53_device *dev, u16 vid,  in b53_set_vlan_entry()  argument
260 entry |= VA_VALID_25_R4 | vid << VA_VID_HIGH_S; in b53_set_vlan_entry()
266 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_25, vid | in b53_set_vlan_entry()
276 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_65, vid | in b53_set_vlan_entry()
279 b53_write16(dev, B53_ARLIO_PAGE, dev->vta_regs[1], vid); in b53_set_vlan_entry()
287 vid, vlan->members, vlan->untag); in b53_set_vlan_entry()
290 static void b53_get_vlan_entry(struct b53_device *dev, u16 vid, in b53_get_vlan_entry() argument
296 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_25, vid | in b53_get_vlan_entry()
310 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_65, vid | in b53_get_vlan_entry()
320 b53_write16(dev, B53_ARLIO_PAGE, dev->vta_regs[1], vid); in b53_get_vlan_entry()
495 static int b53_fast_age_vlan(struct b53_device *dev, u16 vid) in b53_fast_age_vlan() argument
497 b53_write16(dev, B53_CTRL_PAGE, B53_FAST_AGE_VID_CTRL, vid); in b53_fast_age_vlan()
748 u16 vid; in b53_configure_vlan() local
780 for (vid = def_vid; vid < dev->num_vlans; vid++) { in b53_configure_vlan()
781 v = &dev->vlans[vid]; in b53_configure_vlan()
786 b53_set_vlan_entry(dev, vid, v); in b53_configure_vlan()
787 b53_fast_age_vlan(dev, vid); in b53_configure_vlan()
1485 if ((is5325(dev) || is5365(dev)) && vlan->vid == 0) in b53_vlan_prepare()
1496 if (vlan->vid >= dev->num_vlans) in b53_vlan_prepare()
1518 vl = &dev->vlans[vlan->vid]; in b53_vlan_add()
1520 b53_get_vlan_entry(dev, vlan->vid, vl); in b53_vlan_add()
1522 if (vlan->vid == 0 && vlan->vid == b53_default_pvid(dev)) in b53_vlan_add()
1531 b53_set_vlan_entry(dev, vlan->vid, vl); in b53_vlan_add()
1532 b53_fast_age_vlan(dev, vlan->vid); in b53_vlan_add()
1536 vlan->vid); in b53_vlan_add()
1537 b53_fast_age_vlan(dev, vlan->vid); in b53_vlan_add()
1554 vl = &dev->vlans[vlan->vid]; in b53_vlan_del()
1556 b53_get_vlan_entry(dev, vlan->vid, vl); in b53_vlan_del()
1560 if (pvid == vlan->vid) in b53_vlan_del()
1566 b53_set_vlan_entry(dev, vlan->vid, vl); in b53_vlan_del()
1567 b53_fast_age_vlan(dev, vlan->vid); in b53_vlan_del()
1618 u16 vid, struct b53_arl_entry *ent, u8 *idx) in b53_arl_read() argument
1648 ((mac_vid >> ARLTBL_VID_S) & ARLTBL_VID_MASK) != vid) in b53_arl_read()
1659 const unsigned char *addr, u16 vid, bool is_valid) in b53_arl_op() argument
1672 b53_write16(dev, B53_ARLIO_PAGE, B53_VLAN_ID_IDX, vid); in b53_arl_op()
1679 ret = b53_arl_read(dev, mac, vid, &ent, &idx); in b53_arl_op()
1690 addr, vid); in b53_arl_op()
1695 addr, vid, idx); in b53_arl_op()
1700 addr, vid, idx); in b53_arl_op()
1719 ent.vid = vid; in b53_arl_op()
1734 const unsigned char *addr, u16 vid, in b53_fdb_add() argument
1747 ret = b53_arl_op(priv, 0, port, addr, vid, true); in b53_fdb_add()
1755 const unsigned char *addr, u16 vid, in b53_fdb_del() argument
1762 ret = b53_arl_op(priv, 0, port, addr, vid, false); in b53_fdb_del()
1810 return cb(ent->mac, ent->vid, ent->is_static, data); in b53_fdb_copy()
1870 ret = b53_arl_op(priv, 0, port, mdb->addr, mdb->vid, true); in b53_mdb_add()
1885 ret = b53_arl_op(priv, 0, port, mdb->addr, mdb->vid, false); in b53_mdb_del()