Lines Matching refs:netdev

129 	return pdata->netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN;  in xgbe_get_max_frame()
452 if (pdata->netdev->features & NETIF_F_RXHASH) in xgbe_config_rss()
458 netdev_err(pdata->netdev, in xgbe_config_rss()
488 netif_dbg(pdata, drv, pdata->netdev, "VXLAN tunnel id set to %hx\n", in xgbe_set_vxlan_id()
507 netif_dbg(pdata, drv, pdata->netdev, "VXLAN acceleration enabled\n"); in xgbe_enable_vxlan()
524 netif_dbg(pdata, drv, pdata->netdev, "VXLAN acceleration disabled\n"); in xgbe_disable_vxlan()
584 netif_dbg(pdata, drv, pdata->netdev, in xgbe_enable_tx_flow_control()
953 netif_dbg(pdata, drv, pdata->netdev, "%s promiscuous mode\n", in xgbe_set_promiscuous_mode()
961 if (pdata->netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER) in xgbe_set_promiscuous_mode()
976 netif_dbg(pdata, drv, pdata->netdev, "%s allmulti mode\n", in xgbe_set_all_multicast_mode()
1002 netif_dbg(pdata, drv, pdata->netdev, in xgbe_set_mac_reg()
1017 struct net_device *netdev = pdata->netdev; in xgbe_set_mac_addn_addrs() local
1025 if (netdev_uc_count(netdev) > addn_macs) { in xgbe_set_mac_addn_addrs()
1028 netdev_for_each_uc_addr(ha, netdev) { in xgbe_set_mac_addn_addrs()
1033 if (netdev_mc_count(netdev) > addn_macs) { in xgbe_set_mac_addn_addrs()
1036 netdev_for_each_mc_addr(ha, netdev) { in xgbe_set_mac_addn_addrs()
1050 struct net_device *netdev = pdata->netdev; in xgbe_set_mac_hash_table() local
1063 netdev_for_each_uc_addr(ha, netdev) { in xgbe_set_mac_hash_table()
1069 netdev_for_each_mc_addr(ha, netdev) { in xgbe_set_mac_hash_table()
1109 struct net_device *netdev = pdata->netdev; in xgbe_config_rx_mode() local
1112 pr_mode = ((netdev->flags & IFF_PROMISC) != 0); in xgbe_config_rx_mode()
1113 am_mode = ((netdev->flags & IFF_ALLMULTI) != 0); in xgbe_config_rx_mode()
1336 netdev_err(pdata->netdev, "mdio write operation timed out\n"); in xgbe_write_ext_mii_regs()
1378 netdev_err(pdata->netdev, "mdio read operation timed out\n"); in xgbe_read_ext_mii_regs()
1593 netdev_err(pdata->netdev, in xgbe_update_tstamp_addend()
1612 netdev_err(pdata->netdev, "timed out initializing timestamp\n"); in xgbe_set_tstamp_time()
1788 netif_dbg(pdata, tx_queued, pdata->netdev, in xgbe_dev_xmit()
1808 netif_dbg(pdata, tx_queued, pdata->netdev, in xgbe_dev_xmit()
1948 netif_xmit_stopped(netdev_get_tx_queue(pdata->netdev, in xgbe_dev_xmit()
1968 struct net_device *netdev = pdata->netdev; in xgbe_dev_read() local
2050 if (netdev->features & NETIF_F_RXCSUM) { in xgbe_dev_read()
2076 netif_dbg(pdata, rx_status, netdev, "err=%u, etlt=%#x\n", err, etlt); in xgbe_dev_read()
2081 (netdev->features & NETIF_F_HW_VLAN_CTAG_RX)) { in xgbe_dev_read()
2087 netif_dbg(pdata, rx_status, netdev, "vlan-ctag=%#06x\n", in xgbe_dev_read()
2575 netdev_warn(pdata->netdev, in xgbe_calculate_dcb_fifo()
2609 netif_info(pdata, drv, pdata->netdev, in xgbe_config_tx_fifo_size()
2643 netif_info(pdata, drv, pdata->netdev, in xgbe_config_rx_fifo_size()
2646 netif_info(pdata, drv, pdata->netdev, in xgbe_config_rx_fifo_size()
2650 netif_info(pdata, drv, pdata->netdev, in xgbe_config_rx_fifo_size()
2673 netif_dbg(pdata, drv, pdata->netdev, in xgbe_config_queue_mapping()
2681 netif_dbg(pdata, drv, pdata->netdev, in xgbe_config_queue_mapping()
2699 netif_dbg(pdata, drv, pdata->netdev, in xgbe_config_queue_mapping()
2706 netif_dbg(pdata, drv, pdata->netdev, in xgbe_config_queue_mapping()
2743 netdev_reset_tc(pdata->netdev); in xgbe_config_tc()
2747 netdev_set_num_tc(pdata->netdev, pdata->num_tcs); in xgbe_config_tc()
2754 netif_dbg(pdata, drv, pdata->netdev, "TC%u using TXq%u-%u\n", in xgbe_config_tc()
2756 netdev_set_tc_queue(pdata->netdev, i, queue - offset, offset); in xgbe_config_tc()
2764 netdev_set_prio_tc_map(pdata->netdev, prio, in xgbe_config_tc()
2784 total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; in xgbe_config_dcb_tc()
2798 netif_dbg(pdata, drv, pdata->netdev, "TC%u PRIO mask=%#x\n", in xgbe_config_dcb_tc()
2811 netif_dbg(pdata, drv, pdata->netdev, in xgbe_config_dcb_tc()
2820 netif_dbg(pdata, drv, pdata->netdev, in xgbe_config_dcb_tc()
2837 netif_tx_stop_all_queues(pdata->netdev); in xgbe_config_dcb_pfc()
2851 netif_tx_start_all_queues(pdata->netdev); in xgbe_config_dcb_pfc()
2857 xgbe_set_mac_address(pdata, pdata->netdev->dev_addr); in xgbe_config_mac_address()
2871 val = (pdata->netdev->mtu > XGMAC_STD_PACKET_MTU) ? 1 : 0; in xgbe_config_jumbo_enable()
2883 if (pdata->netdev->features & NETIF_F_RXCSUM) in xgbe_config_checksum_offload()
2898 if (pdata->netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER) in xgbe_config_vlan_support()
2903 if (pdata->netdev->features & NETIF_F_HW_VLAN_CTAG_RX) in xgbe_config_vlan_support()
3291 netdev_info(pdata->netdev, in xgbe_txq_prepare_tx_stop()
3334 netdev_info(pdata->netdev, in xgbe_prepare_tx_stop()
3405 netdev_info(pdata->netdev, in xgbe_prepare_rx_stop()
3533 netdev_err(pdata->netdev, "error flushing TX queues\n"); in xgbe_init()