Lines Matching full:cpsw

15 #include "cpsw.h"
29 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_stp_state_set() local
51 ret = cpsw_ale_control_set(cpsw->ale, priv->emac_port, in cpsw_port_stp_state_set()
62 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_attr_br_flags_set() local
73 cpsw_ale_set_unreg_mcast(cpsw->ale, BIT(priv->emac_port), in cpsw_port_attr_br_flags_set()
121 struct cpsw_common *cpsw = priv->cpsw; in cpsw_get_pvid() local
128 if (cpsw->version == CPSW_VERSION_1) in cpsw_get_pvid()
130 pvid = slave_read(cpsw->slaves + (priv->emac_port - 1), reg); in cpsw_get_pvid()
132 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_get_pvid()
143 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_pvid() local
154 if (cpsw->version == CPSW_VERSION_1) in cpsw_set_pvid()
157 slave_write(cpsw->slaves + (priv->emac_port - 1), pvid, reg); in cpsw_set_pvid()
160 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_set_pvid()
169 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_vlan_add() local
192 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add()
200 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_add()
216 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_vlan_del() local
225 ret = cpsw_ale_vlan_del_modify(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del()
233 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_port_vlan_del()
242 cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_port_vlan_del()
269 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_mdb_add() local
278 err = cpsw_ale_add_mcast(cpsw->ale, mdb->addr, port_mask, in cpsw_port_mdb_add()
292 struct cpsw_common *cpsw = priv->cpsw; in cpsw_port_mdb_del() local
301 err = cpsw_ale_del_mcast(cpsw->ale, mdb->addr, del_mask, in cpsw_port_mdb_del()
382 struct cpsw_common *cpsw = priv->cpsw; in cpsw_switchdev_event_work() local
390 dev_dbg(cpsw->dev, "cpsw_fdb_add: MACID = %pM vid = %u flags = %u %u -- port %d\n", in cpsw_switchdev_event_work()
399 cpsw_ale_add_ucast(cpsw->ale, (u8 *)fdb->addr, port, in cpsw_switchdev_event_work()
406 dev_dbg(cpsw->dev, "cpsw_fdb_del: MACID = %pM vid = %u flags = %u %u -- port %d\n", in cpsw_switchdev_event_work()
415 cpsw_ale_del_ucast(cpsw->ale, (u8 *)fdb->addr, port, in cpsw_switchdev_event_work()
519 int cpsw_switchdev_register_notifiers(struct cpsw_common *cpsw) in cpsw_switchdev_register_notifiers() argument
525 dev_err(cpsw->dev, "register switchdev notifier fail ret:%d\n", in cpsw_switchdev_register_notifiers()
532 dev_err(cpsw->dev, "register switchdev blocking notifier ret:%d\n", in cpsw_switchdev_register_notifiers()
540 void cpsw_switchdev_unregister_notifiers(struct cpsw_common *cpsw) in cpsw_switchdev_unregister_notifiers() argument