Lines Matching full:cpsw
15 #include "cpsw.h"
30 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_stp_state_set() local
55 ret = cpsw_ale_control_set(cpsw->ale, priv->emac_port, in cpsw_port_stp_state_set()
67 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_attr_br_flags_set() local
78 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(priv->emac_port), in cpsw_port_attr_br_flags_set()
126 struct cpsw_common *cpsw = priv->cpsw; in cpsw_get_pvid() local
133 if (cpsw->version == CPSW_VERSION_1) in cpsw_get_pvid()
135 pvid = slave_read(cpsw->slaves + (priv->emac_port - 1), reg); in cpsw_get_pvid()
137 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_get_pvid()
148 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_pvid() local
159 if (cpsw->version == CPSW_VERSION_1) in cpsw_set_pvid()
162 slave_write(cpsw->slaves + (priv->emac_port - 1), pvid, reg); in cpsw_set_pvid()
165 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_set_pvid()
174 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_vlan_add() local
197 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add()
205 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_add()
221 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_vlan_del() local
230 ret = cpsw_ale_del_vlan(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del()
238 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_del()
247 cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_port_vlan_del()
310 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_mdb_add() local
322 err = cpsw_ale_add_mcast(cpsw->ale, mdb->addr, port_mask, in cpsw_port_mdb_add()
336 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_mdb_del() local
345 err = cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in cpsw_port_mdb_del()
427 struct cpsw_common *cpsw = priv->cpsw; in cpsw_switchdev_event_work() local
435 dev_dbg(cpsw->dev, "cpsw_fdb_add: MACID = %pM vid = %u flags = %u %u -- port %d\n", in cpsw_switchdev_event_work()
444 cpsw_ale_add_ucast(cpsw->ale, (u8 *)fdb->addr, port, in cpsw_switchdev_event_work()
451 dev_dbg(cpsw->dev, "cpsw_fdb_del: MACID = %pM vid = %u flags = %u %u -- port %d\n", in cpsw_switchdev_event_work()
460 cpsw_ale_del_ucast(cpsw->ale, (u8 *)fdb->addr, port, in cpsw_switchdev_event_work()
564 int cpsw_switchdev_register_notifiers(struct cpsw_common *cpsw) in cpsw_switchdev_register_notifiers() argument
570 dev_err(cpsw->dev, "register switchdev notifier fail ret:%d\n", in cpsw_switchdev_register_notifiers()
577 dev_err(cpsw->dev, "register switchdev blocking notifier ret:%d\n", in cpsw_switchdev_register_notifiers()
585 void cpsw_switchdev_unregister_notifiers(struct cpsw_common *cpsw) in cpsw_switchdev_unregister_notifiers() argument