Lines Matching refs:netdev
46 netif_info(pdata, drv, pdata->netdev,
48 netif_stop_subqueue(pdata->netdev, channel->queue_index);
189 static int xlgmac_calc_rx_buf_size(struct net_device *netdev, unsigned int mtu)
194 netdev_alert(netdev, "MTU exceeds maximum supported value\n");
269 netif_dbg(pdata, intr, pdata->netdev, "DMA_ISR=%#010x\n", dma_isr);
278 netif_dbg(pdata, intr, pdata->netdev, "DMA_CH%u_ISR=%#010x\n",
421 netif_napi_add(pdata->netdev, &channel->napi,
428 netif_napi_add(pdata->netdev, &pdata->napi,
458 struct net_device *netdev = pdata->netdev;
464 IRQF_SHARED, netdev->name, pdata);
466 netdev_alert(netdev, "error requesting irq %d\n",
478 "%s-TxRx-%u", netdev_name(netdev),
485 netdev_alert(netdev, "error requesting irq %d\n",
563 struct net_device *netdev = pdata->netdev;
575 netif_tx_start_all_queues(netdev);
589 struct net_device *netdev = pdata->netdev;
594 netif_tx_stop_all_queues(netdev);
607 txq = netdev_get_tx_queue(netdev, channel->queue_index);
615 if (!netif_running(pdata->netdev))
639 static int xlgmac_open(struct net_device *netdev)
641 struct xlgmac_pdata *pdata = netdev_priv(netdev);
650 ret = xlgmac_calc_rx_buf_size(netdev, netdev->mtu);
675 static int xlgmac_close(struct net_device *netdev)
677 struct xlgmac_pdata *pdata = netdev_priv(netdev);
691 static void xlgmac_tx_timeout(struct net_device *netdev, unsigned int txqueue)
693 struct xlgmac_pdata *pdata = netdev_priv(netdev);
695 netdev_warn(netdev, "tx timeout, device restarting\n");
699 static netdev_tx_t xlgmac_xmit(struct sk_buff *skb, struct net_device *netdev)
701 struct xlgmac_pdata *pdata = netdev_priv(netdev);
716 txq = netdev_get_tx_queue(netdev, channel->queue_index);
721 netif_err(pdata, tx_err, netdev,
739 netif_err(pdata, tx_err, netdev,
758 xlgmac_print_pkt(netdev, skb, true);
766 static void xlgmac_get_stats64(struct net_device *netdev,
769 struct xlgmac_pdata *pdata = netdev_priv(netdev);
788 s->tx_dropped = netdev->stats.tx_dropped;
791 static int xlgmac_set_mac_address(struct net_device *netdev, void *addr)
793 struct xlgmac_pdata *pdata = netdev_priv(netdev);
800 eth_hw_addr_set(netdev, saddr->sa_data);
802 hw_ops->set_mac_address(pdata, netdev->dev_addr);
807 static int xlgmac_ioctl(struct net_device *netdev,
810 if (!netif_running(netdev))
816 static int xlgmac_change_mtu(struct net_device *netdev, int mtu)
818 struct xlgmac_pdata *pdata = netdev_priv(netdev);
821 ret = xlgmac_calc_rx_buf_size(netdev, mtu);
826 netdev->mtu = mtu;
833 static int xlgmac_vlan_rx_add_vid(struct net_device *netdev,
837 struct xlgmac_pdata *pdata = netdev_priv(netdev);
846 static int xlgmac_vlan_rx_kill_vid(struct net_device *netdev,
850 struct xlgmac_pdata *pdata = netdev_priv(netdev);
860 static void xlgmac_poll_controller(struct net_device *netdev)
862 struct xlgmac_pdata *pdata = netdev_priv(netdev);
878 static int xlgmac_set_features(struct net_device *netdev,
882 struct xlgmac_pdata *pdata = netdev_priv(netdev);
918 static void xlgmac_set_rx_mode(struct net_device *netdev)
920 struct xlgmac_pdata *pdata = netdev_priv(netdev);
1037 struct net_device *netdev = pdata->netdev;
1059 txq = netdev_get_tx_queue(netdev, channel->queue_index);
1110 struct net_device *netdev = pdata->netdev;
1179 netif_err(pdata, rx_err, netdev,
1220 max_len = netdev->mtu + ETH_HLEN;
1221 if (!(netdev->features & NETIF_F_HW_VLAN_CTAG_RX) &&
1226 netif_err(pdata, rx_err, netdev,
1233 xlgmac_print_pkt(netdev, skb, false);
1255 skb->dev = netdev;
1256 skb->protocol = eth_type_trans(skb, netdev);