Lines Matching refs:netdev

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