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,
429 netif_napi_add(pdata->netdev, &pdata->napi,
459 struct net_device *netdev = pdata->netdev;
465 IRQF_SHARED, netdev->name, pdata);
467 netdev_alert(netdev, "error requesting irq %d\n",
479 "%s-TxRx-%u", netdev_name(netdev),
486 netdev_alert(netdev, "error requesting irq %d\n",
564 struct net_device *netdev = pdata->netdev;
576 netif_tx_start_all_queues(netdev);
590 struct net_device *netdev = pdata->netdev;
595 netif_tx_stop_all_queues(netdev);
608 txq = netdev_get_tx_queue(netdev, channel->queue_index);
616 if (!netif_running(pdata->netdev))
640 static int xlgmac_open(struct net_device *netdev)
642 struct xlgmac_pdata *pdata = netdev_priv(netdev);
651 ret = xlgmac_calc_rx_buf_size(netdev, netdev->mtu);
676 static int xlgmac_close(struct net_device *netdev)
678 struct xlgmac_pdata *pdata = netdev_priv(netdev);
692 static void xlgmac_tx_timeout(struct net_device *netdev, unsigned int txqueue)
694 struct xlgmac_pdata *pdata = netdev_priv(netdev);
696 netdev_warn(netdev, "tx timeout, device restarting\n");
700 static netdev_tx_t xlgmac_xmit(struct sk_buff *skb, struct net_device *netdev)
702 struct xlgmac_pdata *pdata = netdev_priv(netdev);
717 txq = netdev_get_tx_queue(netdev, channel->queue_index);
722 netif_err(pdata, tx_err, netdev,
740 netif_err(pdata, tx_err, netdev,
759 xlgmac_print_pkt(netdev, skb, true);
767 static void xlgmac_get_stats64(struct net_device *netdev,
770 struct xlgmac_pdata *pdata = netdev_priv(netdev);
789 s->tx_dropped = netdev->stats.tx_dropped;
792 static int xlgmac_set_mac_address(struct net_device *netdev, void *addr)
794 struct xlgmac_pdata *pdata = netdev_priv(netdev);
801 memcpy(netdev->dev_addr, saddr->sa_data, netdev->addr_len);
803 hw_ops->set_mac_address(pdata, netdev->dev_addr);
808 static int xlgmac_ioctl(struct net_device *netdev,
811 if (!netif_running(netdev))
817 static int xlgmac_change_mtu(struct net_device *netdev, int mtu)
819 struct xlgmac_pdata *pdata = netdev_priv(netdev);
822 ret = xlgmac_calc_rx_buf_size(netdev, mtu);
827 netdev->mtu = mtu;
834 static int xlgmac_vlan_rx_add_vid(struct net_device *netdev,
838 struct xlgmac_pdata *pdata = netdev_priv(netdev);
847 static int xlgmac_vlan_rx_kill_vid(struct net_device *netdev,
851 struct xlgmac_pdata *pdata = netdev_priv(netdev);
861 static void xlgmac_poll_controller(struct net_device *netdev)
863 struct xlgmac_pdata *pdata = netdev_priv(netdev);
879 static int xlgmac_set_features(struct net_device *netdev,
883 struct xlgmac_pdata *pdata = netdev_priv(netdev);
919 static void xlgmac_set_rx_mode(struct net_device *netdev)
921 struct xlgmac_pdata *pdata = netdev_priv(netdev);
1038 struct net_device *netdev = pdata->netdev;
1060 txq = netdev_get_tx_queue(netdev, channel->queue_index);
1111 struct net_device *netdev = pdata->netdev;
1180 netif_err(pdata, rx_err, netdev,
1221 max_len = netdev->mtu + ETH_HLEN;
1222 if (!(netdev->features & NETIF_F_HW_VLAN_CTAG_RX) &&
1227 netif_err(pdata, rx_err, netdev,
1234 xlgmac_print_pkt(netdev, skb, false);
1256 skb->dev = netdev;
1257 skb->protocol = eth_type_trans(skb, netdev);