Lines Matching full:slaves

72 			(func)((cpsw)->slaves + priv->emac_port, ##arg);\
74 for (n = cpsw->data.slaves, \
75 slave = cpsw->slaves; \
107 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_set_promiscious()
108 if (cpsw->slaves[i].ndev->flags & IFF_PROMISC) in cpsw_set_promiscious()
130 /* Disable Learn for all ports (host is port 0 and slaves are port 1 and up */ in cpsw_set_promiscious()
131 for (i = 0; i <= cpsw->data.slaves; i++) { in cpsw_set_promiscious()
158 /* Enable Learn for all ports (host is port 0 and slaves are port 1 and up */ in cpsw_set_promiscious()
159 for (i = 0; i <= cpsw->data.slaves; i++) { in cpsw_set_promiscious()
187 vid = cpsw->slaves[priv->emac_port].port_vlan; in cpsw_set_mc()
363 ndev = cpsw->slaves[--port].ndev; in cpsw_rx_handler()
664 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_add_default_vlan()
665 slave_write(cpsw->slaves + i, vlan, reg); in cpsw_add_default_vlan()
978 vid = cpsw->slaves[priv->emac_port].port_vlan; in cpsw_ndo_set_mac_address()
1066 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_ndo_vlan_rx_add_vid()
1067 if (vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_add_vid()
1098 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_ndo_vlan_rx_kill_vid()
1099 if (vid == cpsw->slaves[i].port_vlan) in cpsw_ndo_vlan_rx_kill_vid()
1245 if (of_property_read_u32(node, "slaves", &prop)) { in cpsw_probe_dt()
1246 dev_err(&pdev->dev, "Missing slaves property in the DT.\n"); in cpsw_probe_dt()
1249 data->slaves = prop; in cpsw_probe_dt()
1258 data->slaves, in cpsw_probe_dt()
1385 if (i == data->slaves) { in cpsw_probe_dt()
1418 if (i == data->slaves) { in cpsw_remove_dt()
1461 cpsw->slaves[1].ndev = ndev; in cpsw_probe_dual_emac()
1471 ndev->dev.of_node = cpsw->slaves[1].data->slave_node; in cpsw_probe_dual_emac()
1580 cpsw->slaves = devm_kcalloc(dev, in cpsw_probe()
1581 data->slaves, sizeof(struct cpsw_slave), in cpsw_probe()
1583 if (!cpsw->slaves) { in cpsw_probe()
1639 cpsw->slaves[0].ndev = ndev; in cpsw_probe()
1654 ndev->dev.of_node = cpsw->slaves[0].data->slave_node; in cpsw_probe()
1742 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_remove()
1743 if (cpsw->slaves[i].ndev) in cpsw_remove()
1744 unregister_netdev(cpsw->slaves[i].ndev); in cpsw_remove()
1761 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_suspend()
1762 if (cpsw->slaves[i].ndev) in cpsw_suspend()
1763 if (netif_running(cpsw->slaves[i].ndev)) in cpsw_suspend()
1764 cpsw_ndo_stop(cpsw->slaves[i].ndev); in cpsw_suspend()
1785 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_resume()
1786 if (cpsw->slaves[i].ndev) in cpsw_resume()
1787 if (netif_running(cpsw->slaves[i].ndev)) in cpsw_resume()
1788 cpsw_ndo_open(cpsw->slaves[i].ndev); in cpsw_resume()