Lines Matching refs: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++)
108 if (cpsw->slaves[i].ndev->flags & IFF_PROMISC)
130 /* Disable Learn for all ports (host is port 0 and slaves are port 1 and up */
131 for (i = 0; i <= cpsw->data.slaves; i++) {
158 /* Enable Learn for all ports (host is port 0 and slaves are port 1 and up */
159 for (i = 0; i <= cpsw->data.slaves; i++) {
187 vid = cpsw->slaves[priv->emac_port].port_vlan;
363 ndev = cpsw->slaves[--port].ndev;
664 for (i = 0; i < cpsw->data.slaves; i++)
665 slave_write(cpsw->slaves + i, vlan, reg);
978 vid = cpsw->slaves[priv->emac_port].port_vlan;
1066 for (i = 0; i < cpsw->data.slaves; i++) {
1067 if (vid == cpsw->slaves[i].port_vlan) {
1098 for (i = 0; i < cpsw->data.slaves; i++) {
1099 if (vid == cpsw->slaves[i].port_vlan)
1245 if (of_property_read_u32(node, "slaves", &prop)) {
1246 dev_err(&pdev->dev, "Missing slaves property in the DT.\n");
1249 data->slaves = prop;
1258 data->slaves,
1385 if (i == data->slaves) {
1418 if (i == data->slaves) {
1461 cpsw->slaves[1].ndev = ndev;
1471 ndev->dev.of_node = cpsw->slaves[1].data->slave_node;
1580 cpsw->slaves = devm_kcalloc(dev,
1581 data->slaves, sizeof(struct cpsw_slave),
1583 if (!cpsw->slaves) {
1639 cpsw->slaves[0].ndev = ndev;
1654 ndev->dev.of_node = cpsw->slaves[0].data->slave_node;
1736 for (i = 0; i < cpsw->data.slaves; i++)
1737 if (cpsw->slaves[i].ndev)
1738 unregister_netdev(cpsw->slaves[i].ndev);
1756 for (i = 0; i < cpsw->data.slaves; i++)
1757 if (cpsw->slaves[i].ndev)
1758 if (netif_running(cpsw->slaves[i].ndev))
1759 cpsw_ndo_stop(cpsw->slaves[i].ndev);
1780 for (i = 0; i < cpsw->data.slaves; i++)
1781 if (cpsw->slaves[i].ndev)
1782 if (netif_running(cpsw->slaves[i].ndev))
1783 cpsw_ndo_open(cpsw->slaves[i].ndev);