Lines Matching full:cpsw
41 #include "cpsw.h"
52 MODULE_PARM_DESC(debug_level, "cpsw debug level (NETIF_MSG bits)");
56 MODULE_PARM_DESC(ale_ageout, "cpsw ale ageout interval (seconds)");
69 struct cpsw_common *cpsw = (priv)->cpsw; \
71 if (cpsw->data.dual_emac) \
72 (func)((cpsw)->slaves + priv->emac_port, ##arg);\
74 for (n = cpsw->data.slaves, \
75 slave = cpsw->slaves; \
80 static int cpsw_slave_index_priv(struct cpsw_common *cpsw, in cpsw_slave_index_priv() argument
83 return cpsw->data.dual_emac ? priv->emac_port : cpsw->data.active_slave; in cpsw_slave_index_priv()
96 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_set_promiscious() local
97 struct cpsw_ale *ale = cpsw->ale; in cpsw_set_promiscious()
100 if (cpsw->data.dual_emac) { in cpsw_set_promiscious()
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()
131 for (i = 0; i <= cpsw->data.slaves; i++) { in cpsw_set_promiscious()
159 for (i = 0; i <= cpsw->data.slaves; i++) { in cpsw_set_promiscious()
182 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_mc() local
186 if (cpsw->data.dual_emac) in cpsw_set_mc()
187 vid = cpsw->slaves[priv->emac_port].port_vlan; in cpsw_set_mc()
192 mask = cpsw->data.dual_emac ? ALE_PORT_HOST : ALE_ALL_PORTS; in cpsw_set_mc()
196 ret = cpsw_ale_add_mcast(cpsw->ale, addr, mask, flags, vid, 0); in cpsw_set_mc()
198 ret = cpsw_ale_del_mcast(cpsw->ale, addr, 0, flags, vid); in cpsw_set_mc()
311 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_set_rx_mode() local
314 if (cpsw->data.dual_emac) in cpsw_ndo_set_rx_mode()
320 cpsw_ale_set_allmulti(cpsw->ale, IFF_ALLMULTI, slave_port); in cpsw_ndo_set_rx_mode()
328 cpsw_ale_set_allmulti(cpsw->ale, in cpsw_ndo_set_rx_mode()
349 struct cpsw_common *cpsw = ndev_to_cpsw(xmeta->ndev); in cpsw_rx_handler() local
350 int pkt_size = cpsw->rx_packet_max; in cpsw_rx_handler()
360 if (cpsw->data.dual_emac && status >= 0) { in cpsw_rx_handler()
363 ndev = cpsw->slaves[--port].ndev; in cpsw_rx_handler()
367 pool = cpsw->page_pool[ch]; in cpsw_rx_handler()
370 if (cpsw->data.dual_emac && cpsw->usage_count && in cpsw_rx_handler()
405 port = priv->emac_port + cpsw->data.dual_emac; in cpsw_rx_handler()
430 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler()
446 ret = cpdma_chan_submit_mapped(cpsw->rxv[ch].ch, new_page, dma, in cpsw_rx_handler()
460 struct cpsw_common *cpsw = priv->cpsw; in _cpsw_adjust_link() local
492 cpsw_ale_control_set(cpsw->ale, slave_port, in _cpsw_adjust_link()
505 cpsw_ale_control_set(cpsw->ale, slave_port, in _cpsw_adjust_link()
522 struct cpsw_common *cpsw = priv->cpsw; in cpsw_adjust_link() local
528 if (cpsw_need_resplit(cpsw)) in cpsw_adjust_link()
529 cpsw_split_res(cpsw); in cpsw_adjust_link()
544 struct cpsw_common *cpsw = priv->cpsw; in cpsw_add_dual_emac_def_ale_entries() local
547 if (cpsw->version == CPSW_VERSION_1) in cpsw_add_dual_emac_def_ale_entries()
551 cpsw_ale_add_vlan(cpsw->ale, slave->port_vlan, port_mask, in cpsw_add_dual_emac_def_ale_entries()
553 cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_add_dual_emac_def_ale_entries()
555 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_dual_emac_def_ale_entries()
558 cpsw_ale_control_set(cpsw->ale, slave_port, in cpsw_add_dual_emac_def_ale_entries()
566 struct cpsw_common *cpsw = priv->cpsw; in cpsw_slave_open() local
575 switch (cpsw->version) { in cpsw_slave_open()
600 cpsw->rx_packet_max); in cpsw_slave_open()
607 if (cpsw->data.dual_emac) in cpsw_slave_open()
610 cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_slave_open()
647 cpsw_phy_sel(cpsw->dev, slave->phy->interface, in cpsw_slave_open()
653 struct cpsw_common *cpsw = priv->cpsw; in cpsw_add_default_vlan() local
654 const int vlan = cpsw->data.default_vlan; in cpsw_add_default_vlan()
659 reg = (cpsw->version == CPSW_VERSION_1) ? CPSW1_PORT_VLAN : in cpsw_add_default_vlan()
662 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_add_default_vlan()
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()
672 cpsw_ale_add_vlan(cpsw->ale, vlan, ALE_ALL_PORTS, in cpsw_add_default_vlan()
681 struct cpsw_common *cpsw = priv->cpsw; in cpsw_init_host_port() local
684 soft_reset("cpsw", &cpsw->regs->soft_reset); in cpsw_init_host_port()
685 cpsw_ale_start(cpsw->ale); in cpsw_init_host_port()
688 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, ALE_VLAN_AWARE, in cpsw_init_host_port()
690 control_reg = readl(&cpsw->regs->control); in cpsw_init_host_port()
692 writel(control_reg, &cpsw->regs->control); in cpsw_init_host_port()
693 fifo_mode = (cpsw->data.dual_emac) ? CPSW_FIFO_DUAL_MAC_MODE : in cpsw_init_host_port()
695 writel(fifo_mode, &cpsw->host_port_regs->tx_in_ctl); in cpsw_init_host_port()
699 &cpsw->host_port_regs->cpdma_tx_pri_map); in cpsw_init_host_port()
700 writel_relaxed(0, &cpsw->host_port_regs->cpdma_rx_chan_map); in cpsw_init_host_port()
702 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, in cpsw_init_host_port()
705 if (!cpsw->data.dual_emac) { in cpsw_init_host_port()
706 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, HOST_PORT_NUM, in cpsw_init_host_port()
708 cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_init_host_port()
713 static void cpsw_slave_stop(struct cpsw_slave *slave, struct cpsw_common *cpsw) in cpsw_slave_stop() argument
724 cpsw_ale_control_set(cpsw->ale, slave_port, in cpsw_slave_stop()
757 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_open() local
761 ret = pm_runtime_resume_and_get(cpsw->dev); in cpsw_ndo_open()
768 ret = netif_set_real_num_tx_queues(ndev, cpsw->tx_ch_num); in cpsw_ndo_open()
774 ret = netif_set_real_num_rx_queues(ndev, cpsw->rx_ch_num); in cpsw_ndo_open()
780 reg = cpsw->version; in cpsw_ndo_open()
782 dev_info(priv->dev, "initializing cpsw version %d.%d (%d)\n", in cpsw_ndo_open()
787 if (!cpsw->usage_count) in cpsw_ndo_open()
792 if (!cpsw->data.dual_emac) in cpsw_ndo_open()
795 cpsw_ale_add_vlan(cpsw->ale, cpsw->data.default_vlan, in cpsw_ndo_open()
799 if (!cpsw->usage_count) { in cpsw_ndo_open()
801 writel_relaxed(0, &cpsw->regs->ptype); in cpsw_ndo_open()
804 writel_relaxed(0x7, &cpsw->regs->stat_port_en); in cpsw_ndo_open()
807 writel(0x7, &cpsw->regs->flow_control); in cpsw_ndo_open()
809 napi_enable(&cpsw->napi_rx); in cpsw_ndo_open()
810 napi_enable(&cpsw->napi_tx); in cpsw_ndo_open()
812 if (cpsw->tx_irq_disabled) { in cpsw_ndo_open()
813 cpsw->tx_irq_disabled = false; in cpsw_ndo_open()
814 enable_irq(cpsw->irqs_table[1]); in cpsw_ndo_open()
817 if (cpsw->rx_irq_disabled) { in cpsw_ndo_open()
818 cpsw->rx_irq_disabled = false; in cpsw_ndo_open()
819 enable_irq(cpsw->irqs_table[0]); in cpsw_ndo_open()
825 ret = cpsw_create_xdp_rxqs(cpsw); in cpsw_ndo_open()
833 if (cpsw->cpts) { in cpsw_ndo_open()
834 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open()
837 writel(0x10, &cpsw->wr_regs->misc_en); in cpsw_ndo_open()
844 if (cpsw->coal_intvl != 0) { in cpsw_ndo_open()
847 coal.rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_ndo_open()
851 cpdma_ctlr_start(cpsw->dma); in cpsw_ndo_open()
852 cpsw_intr_enable(cpsw); in cpsw_ndo_open()
853 cpsw->usage_count++; in cpsw_ndo_open()
858 if (!cpsw->usage_count) { in cpsw_ndo_open()
859 napi_disable(&cpsw->napi_rx); in cpsw_ndo_open()
860 napi_disable(&cpsw->napi_tx); in cpsw_ndo_open()
861 cpdma_ctlr_stop(cpsw->dma); in cpsw_ndo_open()
862 cpsw_destroy_xdp_rxqs(cpsw); in cpsw_ndo_open()
865 for_each_slave(priv, cpsw_slave_stop, cpsw); in cpsw_ndo_open()
866 pm_runtime_put_sync(cpsw->dev); in cpsw_ndo_open()
874 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_stop() local
876 cpsw_info(priv, ifdown, "shutting down cpsw device\n"); in cpsw_ndo_stop()
881 if (cpsw->usage_count <= 1) { in cpsw_ndo_stop()
882 napi_disable(&cpsw->napi_rx); in cpsw_ndo_stop()
883 napi_disable(&cpsw->napi_tx); in cpsw_ndo_stop()
884 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop()
885 cpsw_intr_disable(cpsw); in cpsw_ndo_stop()
886 cpdma_ctlr_stop(cpsw->dma); in cpsw_ndo_stop()
887 cpsw_ale_stop(cpsw->ale); in cpsw_ndo_stop()
888 cpsw_destroy_xdp_rxqs(cpsw); in cpsw_ndo_stop()
890 for_each_slave(priv, cpsw_slave_stop, cpsw); in cpsw_ndo_stop()
892 if (cpsw_need_resplit(cpsw)) in cpsw_ndo_stop()
893 cpsw_split_res(cpsw); in cpsw_ndo_stop()
895 cpsw->usage_count--; in cpsw_ndo_stop()
896 pm_runtime_put_sync(cpsw->dev); in cpsw_ndo_stop()
904 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_start_xmit() local
905 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit()
921 if (q_idx >= cpsw->tx_ch_num) in cpsw_ndo_start_xmit()
922 q_idx = q_idx % cpsw->tx_ch_num; in cpsw_ndo_start_xmit()
924 txch = cpsw->txv[q_idx].ch; in cpsw_ndo_start_xmit()
928 priv->emac_port + cpsw->data.dual_emac); in cpsw_ndo_start_xmit()
965 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_set_mac_address() local
973 ret = pm_runtime_resume_and_get(cpsw->dev); in cpsw_ndo_set_mac_address()
977 if (cpsw->data.dual_emac) { in cpsw_ndo_set_mac_address()
978 vid = cpsw->slaves[priv->emac_port].port_vlan; in cpsw_ndo_set_mac_address()
982 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, HOST_PORT_NUM, in cpsw_ndo_set_mac_address()
984 cpsw_ale_add_ucast(cpsw->ale, addr->sa_data, HOST_PORT_NUM, in cpsw_ndo_set_mac_address()
991 pm_runtime_put(cpsw->dev); in cpsw_ndo_set_mac_address()
1003 struct cpsw_common *cpsw = priv->cpsw; in cpsw_add_vlan_ale_entry() local
1005 if (cpsw->data.dual_emac) { in cpsw_add_vlan_ale_entry()
1021 ret = cpsw_ale_add_vlan(cpsw->ale, vid, port_mask, 0, port_mask, in cpsw_add_vlan_ale_entry()
1026 ret = cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
1031 ret = cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_add_vlan_ale_entry()
1038 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
1041 cpsw_ale_del_vlan(cpsw->ale, vid, 0); in cpsw_add_vlan_ale_entry()
1049 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_vlan_rx_add_vid() local
1052 if (vid == cpsw->data.default_vlan) in cpsw_ndo_vlan_rx_add_vid()
1055 ret = pm_runtime_resume_and_get(cpsw->dev); in cpsw_ndo_vlan_rx_add_vid()
1059 if (cpsw->data.dual_emac) { in cpsw_ndo_vlan_rx_add_vid()
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()
1077 pm_runtime_put(cpsw->dev); in cpsw_ndo_vlan_rx_add_vid()
1085 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_vlan_rx_kill_vid() local
1088 if (vid == cpsw->data.default_vlan) in cpsw_ndo_vlan_rx_kill_vid()
1091 ret = pm_runtime_resume_and_get(cpsw->dev); in cpsw_ndo_vlan_rx_kill_vid()
1095 if (cpsw->data.dual_emac) { in cpsw_ndo_vlan_rx_kill_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()
1105 ret = cpsw_ale_del_vlan(cpsw->ale, vid, 0); in cpsw_ndo_vlan_rx_kill_vid()
1106 ret |= cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_ndo_vlan_rx_kill_vid()
1108 ret |= cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_ndo_vlan_rx_kill_vid()
1110 ret |= cpsw_ale_flush_multicast(cpsw->ale, ALE_PORT_HOST, vid); in cpsw_ndo_vlan_rx_kill_vid()
1112 pm_runtime_put(cpsw->dev); in cpsw_ndo_vlan_rx_kill_vid()
1120 struct cpsw_common *cpsw = priv->cpsw; in cpsw_ndo_xdp_xmit() local
1132 port = priv->emac_port + cpsw->data.dual_emac; in cpsw_ndo_xdp_xmit()
1144 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_ndo_poll_controller() local
1146 cpsw_intr_disable(cpsw); in cpsw_ndo_poll_controller()
1147 cpsw_rx_interrupt(cpsw->irqs_table[0], cpsw); in cpsw_ndo_poll_controller()
1148 cpsw_tx_interrupt(cpsw->irqs_table[1], cpsw); in cpsw_ndo_poll_controller()
1149 cpsw_intr_enable(cpsw); in cpsw_ndo_poll_controller()
1176 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_get_drvinfo() local
1177 struct platform_device *pdev = to_platform_device(cpsw->dev); in cpsw_get_drvinfo()
1179 strscpy(info->driver, "cpsw", sizeof(info->driver)); in cpsw_get_drvinfo()
1400 struct cpsw_common *cpsw = platform_get_drvdata(pdev); in cpsw_remove_dt() local
1401 struct cpsw_platform_data *data = &cpsw->data; in cpsw_remove_dt()
1429 struct cpsw_common *cpsw = priv->cpsw; in cpsw_probe_dual_emac() local
1430 struct cpsw_platform_data *data = &cpsw->data; in cpsw_probe_dual_emac()
1435 ndev = devm_alloc_etherdev_mqs(cpsw->dev, sizeof(struct cpsw_priv), in cpsw_probe_dual_emac()
1438 dev_err(cpsw->dev, "cpsw: error allocating net_device\n"); in cpsw_probe_dual_emac()
1443 priv_sl2->cpsw = cpsw; in cpsw_probe_dual_emac()
1451 dev_info(cpsw->dev, "cpsw: Detected MACID = %pM\n", in cpsw_probe_dual_emac()
1455 dev_info(cpsw->dev, "cpsw: Random MACID = %pM\n", in cpsw_probe_dual_emac()
1461 cpsw->slaves[1].ndev = ndev; in cpsw_probe_dual_emac()
1470 SET_NETDEV_DEV(ndev, cpsw->dev); in cpsw_probe_dual_emac()
1471 ndev->dev.of_node = cpsw->slaves[1].data->slave_node; in cpsw_probe_dual_emac()
1474 dev_err(cpsw->dev, "cpsw: error registering net device\n"); in cpsw_probe_dual_emac()
1480 { .compatible = "ti,cpsw"},
1481 { .compatible = "ti,am335x-cpsw"},
1482 { .compatible = "ti,am4372-cpsw"},
1483 { .compatible = "ti,dra7-cpsw"},
1504 struct cpsw_common *cpsw; in cpsw_probe() local
1508 cpsw = devm_kzalloc(dev, sizeof(struct cpsw_common), GFP_KERNEL); in cpsw_probe()
1509 if (!cpsw) in cpsw_probe()
1512 platform_set_drvdata(pdev, cpsw); in cpsw_probe()
1515 cpsw->dev = dev; in cpsw_probe()
1530 cpsw->bus_freq_mhz = clk_get_rate(clk) / 1000000; in cpsw_probe()
1535 cpsw->regs = ss_regs; in cpsw_probe()
1537 cpsw->wr_regs = devm_platform_ioremap_resource(pdev, 1); in cpsw_probe()
1538 if (IS_ERR(cpsw->wr_regs)) in cpsw_probe()
1539 return PTR_ERR(cpsw->wr_regs); in cpsw_probe()
1545 cpsw->irqs_table[0] = irq; in cpsw_probe()
1551 cpsw->irqs_table[1] = irq; in cpsw_probe()
1557 cpsw->misc_irq = irq; in cpsw_probe()
1571 ret = cpsw_probe_dt(&cpsw->data, pdev); in cpsw_probe()
1577 cpsw->quirk_irq = true; in cpsw_probe()
1579 data = &cpsw->data; in cpsw_probe()
1580 cpsw->slaves = devm_kcalloc(dev, in cpsw_probe()
1583 if (!cpsw->slaves) { in cpsw_probe()
1588 cpsw->rx_packet_max = max(rx_packet_max, CPSW_MAX_PACKET_SIZE); in cpsw_probe()
1589 cpsw->descs_pool_size = descs_pool_size; in cpsw_probe()
1591 ret = cpsw_init_common(cpsw, ss_regs, ale_ageout, in cpsw_probe()
1597 ch = cpsw->quirk_irq ? 0 : 7; in cpsw_probe()
1598 cpsw->txv[0].ch = cpdma_chan_create(cpsw->dma, ch, cpsw_tx_handler, 0); in cpsw_probe()
1599 if (IS_ERR(cpsw->txv[0].ch)) { in cpsw_probe()
1601 ret = PTR_ERR(cpsw->txv[0].ch); in cpsw_probe()
1605 cpsw->rxv[0].ch = cpdma_chan_create(cpsw->dma, 0, cpsw_rx_handler, 1); in cpsw_probe()
1606 if (IS_ERR(cpsw->rxv[0].ch)) { in cpsw_probe()
1608 ret = PTR_ERR(cpsw->rxv[0].ch); in cpsw_probe()
1611 cpsw_split_res(cpsw); in cpsw_probe()
1623 priv->cpsw = cpsw; in cpsw_probe()
1639 cpsw->slaves[0].ndev = ndev; in cpsw_probe()
1647 netif_napi_add(ndev, &cpsw->napi_rx, in cpsw_probe()
1648 cpsw->quirk_irq ? cpsw_rx_poll : cpsw_rx_mq_poll); in cpsw_probe()
1649 netif_napi_add_tx(ndev, &cpsw->napi_tx, in cpsw_probe()
1650 cpsw->quirk_irq ? cpsw_tx_poll : cpsw_tx_mq_poll); in cpsw_probe()
1654 ndev->dev.of_node = cpsw->slaves[0].data->slave_node; in cpsw_probe()
1662 if (cpsw->data.dual_emac) { in cpsw_probe()
1677 ret = devm_request_irq(dev, cpsw->irqs_table[0], cpsw_rx_interrupt, in cpsw_probe()
1678 0, dev_name(dev), cpsw); in cpsw_probe()
1685 ret = devm_request_irq(dev, cpsw->irqs_table[1], cpsw_tx_interrupt, in cpsw_probe()
1686 0, dev_name(&pdev->dev), cpsw); in cpsw_probe()
1692 if (!cpsw->cpts) in cpsw_probe()
1695 ret = devm_request_irq(&pdev->dev, cpsw->misc_irq, cpsw_misc_interrupt, in cpsw_probe()
1696 0, dev_name(&pdev->dev), cpsw); in cpsw_probe()
1703 cpts_set_irqpoll(cpsw->cpts, false); in cpsw_probe()
1708 &ss_res->start, cpsw->irqs_table[0], descs_pool_size); in cpsw_probe()
1717 cpts_release(cpsw->cpts); in cpsw_probe()
1718 cpdma_ctlr_destroy(cpsw->dma); in cpsw_probe()
1729 struct cpsw_common *cpsw = platform_get_drvdata(pdev); in cpsw_remove() local
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()
1746 cpts_release(cpsw->cpts); in cpsw_remove()
1747 cpdma_ctlr_destroy(cpsw->dma); in cpsw_remove()
1756 struct cpsw_common *cpsw = dev_get_drvdata(dev); in cpsw_suspend() local
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()
1776 struct cpsw_common *cpsw = dev_get_drvdata(dev); in cpsw_resume() local
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()
1800 .name = "cpsw",
1813 MODULE_DESCRIPTION("TI CPSW Ethernet driver");