/drivers/net/ethernet/qlogic/qede/ |
D | qede_dcbnl.c | 15 static u8 qede_dcbnl_getstate(struct net_device *netdev) in qede_dcbnl_getstate() argument 17 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getstate() 22 static u8 qede_dcbnl_setstate(struct net_device *netdev, u8 state) in qede_dcbnl_setstate() argument 24 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_setstate() 29 static void qede_dcbnl_getpermhwaddr(struct net_device *netdev, in qede_dcbnl_getpermhwaddr() argument 32 memcpy(perm_addr, netdev->dev_addr, netdev->addr_len); in qede_dcbnl_getpermhwaddr() 35 static void qede_dcbnl_getpgtccfgtx(struct net_device *netdev, int prio, in qede_dcbnl_getpgtccfgtx() argument 39 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgtccfgtx() 45 static void qede_dcbnl_getpgbwgcfgtx(struct net_device *netdev, in qede_dcbnl_getpgbwgcfgtx() argument 48 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgbwgcfgtx() [all …]
|
/drivers/net/ethernet/micrel/ |
D | ks8842.c | 169 struct net_device *netdev; member 269 static void ks8842_update_link_status(struct net_device *netdev, in ks8842_update_link_status() argument 274 netif_carrier_on(netdev); in ks8842_update_link_status() 275 netif_wake_queue(netdev); in ks8842_update_link_status() 277 netif_stop_queue(netdev); in ks8842_update_link_status() 278 netif_carrier_off(netdev); in ks8842_update_link_status() 431 static int ks8842_tx_frame_dma(struct sk_buff *skb, struct net_device *netdev) in ks8842_tx_frame_dma() argument 433 struct ks8842_adapter *adapter = netdev_priv(netdev); in ks8842_tx_frame_dma() 438 netdev_dbg(netdev, "%s: TX ongoing\n", __func__); in ks8842_tx_frame_dma() 466 ctl->adesc->callback_param = netdev; in ks8842_tx_frame_dma() [all …]
|
D | ks8851_mll.c | 433 struct net_device *netdev; member 625 netif_dbg(ks, hw, ks->netdev, "setting power mode %d\n", pwrmode); in ks_set_powermode() 779 static void ks_rcv(struct ks_net *ks, struct net_device *netdev) in ks_rcv() argument 804 netdev->stats.rx_dropped++; in ks_rcv() 806 netdev->stats.rx_frame_errors++; in ks_rcv() 808 netdev->stats.rx_length_errors++; in ks_rcv() 813 skb = netdev_alloc_skb(netdev, frame_hdr->len + 16); in ks_rcv() 819 skb->protocol = eth_type_trans(skb, netdev); in ks_rcv() 822 netdev->stats.rx_bytes += frame_hdr->len - 4; in ks_rcv() 823 netdev->stats.rx_packets++; in ks_rcv() [all …]
|
/drivers/net/ethernet/faraday/ |
D | ftmac100.c | 77 struct net_device *netdev; member 127 struct net_device *netdev = priv->netdev; in ftmac100_reset() local 150 netdev_err(netdev, "software reset failed\n"); in ftmac100_reset() 174 struct net_device *netdev = priv->netdev; in ftmac100_start_hw() local 189 ftmac100_set_mac(priv, netdev->dev_addr); in ftmac100_start_hw() 334 struct net_device *netdev = priv->netdev; in ftmac100_rx_packet_error() local 339 netdev_info(netdev, "rx err\n"); in ftmac100_rx_packet_error() 341 netdev->stats.rx_errors++; in ftmac100_rx_packet_error() 347 netdev_info(netdev, "rx crc err\n"); in ftmac100_rx_packet_error() 349 netdev->stats.rx_crc_errors++; in ftmac100_rx_packet_error() [all …]
|
D | ftgmac100.c | 73 struct net_device *netdev; member 119 struct net_device *netdev = priv->netdev; in ftgmac100_reset_hw() local 134 netdev_err(netdev, "software reset failed\n"); in ftgmac100_reset_hw() 156 ether_addr_copy(priv->netdev->dev_addr, mac); in ftgmac100_setup_mac() 173 ether_addr_copy(priv->netdev->dev_addr, mac); in ftgmac100_setup_mac() 176 eth_hw_addr_random(priv->netdev); in ftgmac100_setup_mac() 178 priv->netdev->dev_addr); in ftgmac100_setup_mac() 210 ftgmac100_set_mac(priv, priv->netdev->dev_addr); in ftgmac100_init_hw() 413 struct net_device *netdev = priv->netdev; in ftgmac100_rx_packet_error() local 418 netdev_info(netdev, "rx err\n"); in ftgmac100_rx_packet_error() [all …]
|
/drivers/net/usb/ |
D | rtl8150.c | 131 struct net_device *netdev; member 227 netif_device_detach(dev->netdev); in async_set_registers() 285 memcpy(dev->netdev->dev_addr, node_id, sizeof(node_id)); in set_ethernet_addr() 288 static int rtl8150_set_mac_address(struct net_device *netdev, void *p) in rtl8150_set_mac_address() argument 291 rtl8150_t *dev = netdev_priv(netdev); in rtl8150_set_mac_address() 293 if (netif_running(netdev)) in rtl8150_set_mac_address() 296 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in rtl8150_set_mac_address() 297 netdev_dbg(netdev, "Setting MAC address to %pM\n", netdev->dev_addr); in rtl8150_set_mac_address() 299 set_registers(dev, IDR, netdev->addr_len, netdev->dev_addr); in rtl8150_set_mac_address() 311 for (i = 0; i * 2 < netdev->addr_len; i++) { in rtl8150_set_mac_address() [all …]
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 118 static int pch_gbe_mdio_read(struct net_device *netdev, int addr, int reg); 119 static void pch_gbe_mdio_write(struct net_device *netdev, int addr, int reg, 121 static void pch_gbe_set_multi(struct net_device *netdev); 227 static int hwtstamp_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) in hwtstamp_ioctl() argument 230 struct pch_gbe_adapter *adapter = netdev_priv(netdev); in hwtstamp_ioctl() 308 netdev_dbg(adapter->netdev, "hw->mac.addr : %pM\n", hw->mac.addr); in pch_gbe_mac_read_mac_addr() 340 netdev_dbg(adapter->netdev, "index : 0x%x\n", index); in pch_gbe_mac_mar_set() 470 netdev_dbg(adapter->netdev, "mac->fc = %u\n", mac->fc); in pch_gbe_mac_force_mac_fc() 492 netdev_err(adapter->netdev, in pch_gbe_mac_force_mac_fc() 499 netdev_dbg(adapter->netdev, in pch_gbe_mac_force_mac_fc() [all …]
|
/drivers/net/can/usb/ |
D | usb_8dev.c | 138 struct net_device *netdev; member 213 struct net_device *netdev; in usb_8dev_send_cmd() local 215 netdev = priv->netdev; in usb_8dev_send_cmd() 228 netdev_err(netdev, "sending command message failed\n"); in usb_8dev_send_cmd() 236 netdev_err(netdev, "no command message answer\n"); in usb_8dev_send_cmd() 326 static int usb_8dev_set_mode(struct net_device *netdev, enum can_mode mode) in usb_8dev_set_mode() argument 328 struct usb_8dev_priv *priv = netdev_priv(netdev); in usb_8dev_set_mode() 335 netdev_warn(netdev, "couldn't start device"); in usb_8dev_set_mode() 351 struct net_device_stats *stats = &priv->netdev->stats; in usb_8dev_rx_err_msg() 367 skb = alloc_can_err_skb(priv->netdev, &cf); in usb_8dev_rx_err_msg() [all …]
|
D | ems_usb.c | 254 struct net_device *netdev; member 275 struct net_device *netdev = dev->netdev; in ems_usb_read_interrupt_callback() local 278 if (!netif_device_present(netdev)) in ems_usb_read_interrupt_callback() 285 netif_queue_stopped(netdev)) in ems_usb_read_interrupt_callback() 286 netif_wake_queue(netdev); in ems_usb_read_interrupt_callback() 297 netdev_info(netdev, "Rx interrupt aborted %d\n", urb->status); in ems_usb_read_interrupt_callback() 304 netif_device_detach(netdev); in ems_usb_read_interrupt_callback() 306 netdev_err(netdev, "failed resubmitting intr urb: %d\n", err); in ems_usb_read_interrupt_callback() 314 struct net_device_stats *stats = &dev->netdev->stats; in ems_usb_rx_can_msg() 316 skb = alloc_can_skb(dev->netdev, &cf); in ems_usb_rx_can_msg() [all …]
|
/drivers/staging/wlan-ng/ |
D | p80211netdev.c | 94 static int p80211knetdev_init(struct net_device *netdev); 95 static int p80211knetdev_open(struct net_device *netdev); 96 static int p80211knetdev_stop(struct net_device *netdev); 98 struct net_device *netdev); 103 static void p80211knetdev_tx_timeout(struct net_device *netdev); 126 static int p80211knetdev_init(struct net_device *netdev) in p80211knetdev_init() argument 149 static int p80211knetdev_open(struct net_device *netdev) in p80211knetdev_open() argument 152 struct wlandevice *wlandev = netdev->ml_priv; in p80211knetdev_open() 162 netif_start_queue(wlandev->netdev); in p80211knetdev_open() 184 static int p80211knetdev_stop(struct net_device *netdev) in p80211knetdev_stop() argument [all …]
|
/drivers/scsi/fcoe/ |
D | fcoe_transport.c | 130 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_link_speed_update() local 133 if (!__ethtool_get_link_ksettings(netdev, &ecmd)) { in fcoe_link_speed_update() 182 struct net_device *netdev) in __fcoe_get_lesb() argument 205 htonl(dev_get_stats(netdev, &temp)->rx_crc_errors); in __fcoe_get_lesb() 217 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_get_lesb() local 219 __fcoe_get_lesb(lport, fc_lesb, netdev); in fcoe_get_lesb() 232 struct net_device *netdev = fcoe_get_netdev(fip->lp); in fcoe_ctlr_get_lesb() local 236 __fcoe_get_lesb(fip->lp, fc_lesb, netdev); in fcoe_ctlr_get_lesb() 302 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in fcoe_get_wwn() argument 304 const struct net_device_ops *ops = netdev->netdev_ops; in fcoe_get_wwn() [all …]
|
D | fcoe.c | 111 static bool fcoe_match(struct net_device *netdev); 112 static int fcoe_create(struct net_device *netdev, enum fip_mode fip_mode); 113 static int fcoe_destroy(struct net_device *netdev); 114 static int fcoe_enable(struct net_device *netdev); 115 static int fcoe_disable(struct net_device *netdev); 118 static int fcoe_ctlr_alloc(struct net_device *netdev); 295 struct net_device *netdev) in fcoe_interface_setup() argument 303 fcoe->netdev = netdev; in fcoe_interface_setup() 306 ops = netdev->netdev_ops; in fcoe_interface_setup() 308 if (ops->ndo_fcoe_enable(netdev)) in fcoe_interface_setup() [all …]
|
/drivers/net/ethernet/freescale/ |
D | ucc_geth_ethtool.c | 108 uec_get_ksettings(struct net_device *netdev, struct ethtool_link_ksettings *cmd) in uec_get_ksettings() argument 110 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_ksettings() 120 uec_set_ksettings(struct net_device *netdev, in uec_set_ksettings() argument 123 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_ksettings() 133 uec_get_pauseparam(struct net_device *netdev, in uec_get_pauseparam() argument 136 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_pauseparam() 147 uec_set_pauseparam(struct net_device *netdev, in uec_set_pauseparam() argument 150 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_pauseparam() 157 if (netif_running(netdev)) { in uec_set_pauseparam() 159 netdev_info(netdev, "Please re-open the interface\n"); in uec_set_pauseparam() [all …]
|
/drivers/net/ethernet/toshiba/ |
D | spider_net_ethtool.c | 50 spider_net_ethtool_get_settings(struct net_device *netdev, in spider_net_ethtool_get_settings() argument 54 card = netdev_priv(netdev); in spider_net_ethtool_get_settings() 68 spider_net_ethtool_get_drvinfo(struct net_device *netdev, in spider_net_ethtool_get_drvinfo() argument 72 card = netdev_priv(netdev); in spider_net_ethtool_get_drvinfo() 85 spider_net_ethtool_get_wol(struct net_device *netdev, in spider_net_ethtool_get_wol() argument 94 spider_net_ethtool_get_msglevel(struct net_device *netdev) in spider_net_ethtool_get_msglevel() argument 97 card = netdev_priv(netdev); in spider_net_ethtool_get_msglevel() 102 spider_net_ethtool_set_msglevel(struct net_device *netdev, in spider_net_ethtool_set_msglevel() argument 106 card = netdev_priv(netdev); in spider_net_ethtool_set_msglevel() 111 spider_net_ethtool_nway_reset(struct net_device *netdev) in spider_net_ethtool_nway_reset() argument [all …]
|
D | spider_net.c | 128 spider_net_write_phy(struct net_device *netdev, int mii_id, in spider_net_write_phy() argument 131 struct spider_net_card *card = netdev_priv(netdev); in spider_net_write_phy() 152 spider_net_read_phy(struct net_device *netdev, int mii_id, int reg) in spider_net_read_phy() argument 154 struct spider_net_card *card = netdev_priv(netdev); in spider_net_read_phy() 183 bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); in spider_net_setup_aneg() 184 estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); in spider_net_setup_aneg() 246 struct net_device *netdev = card->netdev; in spider_net_set_promisc() local 248 if (netdev->flags & IFF_PROMISC) { in spider_net_set_promisc() 255 macu = netdev->dev_addr[0]; in spider_net_set_promisc() 257 macu |= netdev->dev_addr[1]; in spider_net_set_promisc() [all …]
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_core.c | 193 struct net_device *netdev; in peak_usb_read_bulk_callback() local 196 netdev = dev->netdev; in peak_usb_read_bulk_callback() 198 if (!netif_device_present(netdev)) in peak_usb_read_bulk_callback() 215 netdev_err(netdev, in peak_usb_read_bulk_callback() 246 netif_device_detach(netdev); in peak_usb_read_bulk_callback() 248 netdev_err(netdev, "failed resubmitting read bulk urb: %d\n", in peak_usb_read_bulk_callback() 259 struct net_device *netdev; in peak_usb_write_bulk_callback() local 264 netdev = dev->netdev; in peak_usb_write_bulk_callback() 268 if (!netif_device_present(netdev)) in peak_usb_write_bulk_callback() 275 netdev->stats.tx_packets++; in peak_usb_write_bulk_callback() [all …]
|
/drivers/staging/unisys/visornic/ |
D | visornic_main.c | 78 struct net_device *netdev; member 265 struct net_device *netdev; in visornic_serverdown_complete() local 267 netdev = devdata->netdev; in visornic_serverdown_complete() 273 dev_close(netdev); in visornic_serverdown_complete() 344 alloc_rcv_buf(struct net_device *netdev) in alloc_rcv_buf() argument 355 skb->dev = netdev; in alloc_rcv_buf() 411 send_enbdis(struct net_device *netdev, int state, in send_enbdis() argument 415 devdata->cmdrsp_rcv->net.enbdis.context = netdev; in send_enbdis() 436 visornic_disable_with_timeout(struct net_device *netdev, const int timeout) in visornic_disable_with_timeout() argument 438 struct visornic_devdata *devdata = netdev_priv(netdev); in visornic_disable_with_timeout() [all …]
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_main.c | 78 static int ixgb_open(struct net_device *netdev); 79 static int ixgb_close(struct net_device *netdev); 85 static void ixgb_set_multi(struct net_device *netdev); 88 struct net_device *netdev); 89 static struct net_device_stats *ixgb_get_stats(struct net_device *netdev); 90 static int ixgb_change_mtu(struct net_device *netdev, int new_mtu); 91 static int ixgb_set_mac(struct net_device *netdev, void *p); 104 static int ixgb_vlan_rx_add_vid(struct net_device *netdev, 106 static int ixgb_vlan_rx_kill_vid(struct net_device *netdev, 209 struct net_device *netdev = adapter->netdev; in ixgb_up() local [all …]
|
/drivers/net/ethernet/intel/ |
D | e100.c | 568 struct net_device *netdev; member 696 netif_err(nic, hw, nic->netdev, in e100_self_test() 702 netif_err(nic, hw, nic->netdev, "Self-test failed: timed out\n"); in e100_self_test() 805 netif_err(nic, probe, nic->netdev, "EEPROM corrupted\n"); in e100_eeprom_load() 930 static int mdio_read(struct net_device *netdev, int addr, int reg) in mdio_read() argument 932 struct nic *nic = netdev_priv(netdev); in mdio_read() 936 static void mdio_write(struct net_device *netdev, int addr, int reg, int data) in mdio_write() argument 938 struct nic *nic = netdev_priv(netdev); in mdio_write() 964 netdev_err(nic->netdev, "e100.mdio_ctrl won't go Ready\n"); in mdio_ctrl_hw() 976 netif_printk(nic, hw, KERN_DEBUG, nic->netdev, in mdio_ctrl_hw() [all …]
|
/drivers/net/ethernet/qualcomm/emac/ |
D | emac.c | 125 struct emac_adapter *adpt = netdev_priv(rx_q->netdev); in emac_napi_rtx() 142 static int emac_start_xmit(struct sk_buff *skb, struct net_device *netdev) in emac_start_xmit() argument 144 struct emac_adapter *adpt = netdev_priv(netdev); in emac_start_xmit() 167 netif_warn(adpt, intr, adpt->netdev, in emac_isr() 202 static int emac_set_features(struct net_device *netdev, in emac_set_features() argument 205 netdev_features_t changed = features ^ netdev->features; in emac_set_features() 206 struct emac_adapter *adpt = netdev_priv(netdev); in emac_set_features() 214 if (!netif_running(netdev)) in emac_set_features() 220 netdev->features = features; in emac_set_features() 226 static void emac_rx_mode_set(struct net_device *netdev) in emac_rx_mode_set() argument [all …]
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40evf_ethtool.c | 74 static int i40evf_get_settings(struct net_device *netdev, in i40evf_get_settings() argument 77 struct i40evf_adapter *adapter = netdev_priv(netdev); in i40evf_get_settings() 116 static int i40evf_get_sset_count(struct net_device *netdev, int sset) in i40evf_get_sset_count() argument 119 return I40EVF_STATS_LEN(netdev); in i40evf_get_sset_count() 132 static void i40evf_get_ethtool_stats(struct net_device *netdev, in i40evf_get_ethtool_stats() argument 135 struct i40evf_adapter *adapter = netdev_priv(netdev); in i40evf_get_ethtool_stats() 161 static void i40evf_get_strings(struct net_device *netdev, u32 sset, u8 *data) in i40evf_get_strings() argument 163 struct i40evf_adapter *adapter = netdev_priv(netdev); in i40evf_get_strings() 194 static u32 i40evf_get_msglevel(struct net_device *netdev) in i40evf_get_msglevel() argument 196 struct i40evf_adapter *adapter = netdev_priv(netdev); in i40evf_get_msglevel() [all …]
|
/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_main.c | 129 netdev_err(nic->netdev, in nicvf_send_msg_to_pf() 139 netdev_err(nic->netdev, in nicvf_send_msg_to_pf() 157 netdev_err(nic->netdev, in nicvf_check_pf_ready() 189 netdev_dbg(nic->netdev, "Mbox message: msg: 0x%x\n", mbx.msg.msg); in nicvf_handle_mbx_intr() 197 ether_addr_copy(nic->netdev->dev_addr, in nicvf_handle_mbx_intr() 225 netdev_info(nic->netdev, "%s: Link is Up %d Mbps %s\n", in nicvf_handle_mbx_intr() 226 nic->netdev->name, nic->speed, in nicvf_handle_mbx_intr() 229 netif_carrier_on(nic->netdev); in nicvf_handle_mbx_intr() 230 netif_tx_start_all_queues(nic->netdev); in nicvf_handle_mbx_intr() 232 netdev_info(nic->netdev, "%s: Link is Down\n", in nicvf_handle_mbx_intr() [all …]
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 166 struct net_device *netdev = adapter->netdev; in atl1e_check_link() local 175 if (netif_carrier_ok(netdev)) { /* old link state: Up */ in atl1e_check_link() 182 netif_carrier_off(netdev); in atl1e_check_link() 183 netif_stop_queue(netdev); in atl1e_check_link() 197 netdev_info(netdev, in atl1e_check_link() 204 if (!netif_carrier_ok(netdev)) { in atl1e_check_link() 206 netif_carrier_on(netdev); in atl1e_check_link() 207 netif_wake_queue(netdev); in atl1e_check_link() 230 struct net_device *netdev = adapter->netdev; in atl1e_link_chg_event() local 241 if (netif_carrier_ok(netdev)) { in atl1e_link_chg_event() [all …]
|
/drivers/net/ethernet/atheros/atlx/ |
D | atlx.c | 55 static int atlx_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) in atlx_ioctl() argument 61 return atlx_mii_ioctl(netdev, ifr, cmd); in atlx_ioctl() 74 static int atlx_set_mac(struct net_device *netdev, void *p) in atlx_set_mac() argument 76 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_set_mac() 79 if (netif_running(netdev)) in atlx_set_mac() 85 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac() 86 memcpy(adapter->hw.mac_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac() 94 struct net_device *netdev = adapter->netdev; in atlx_check_for_link() local 106 if (netif_carrier_ok(netdev)) { in atlx_check_for_link() 109 netdev->name); in atlx_check_for_link() [all …]
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ethtool.c | 187 static void xgbe_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in xgbe_get_strings() argument 202 static void xgbe_get_ethtool_stats(struct net_device *netdev, in xgbe_get_ethtool_stats() argument 205 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ethtool_stats() 216 static int xgbe_get_sset_count(struct net_device *netdev, int stringset) in xgbe_get_sset_count() argument 232 static void xgbe_get_pauseparam(struct net_device *netdev, in xgbe_get_pauseparam() argument 235 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_pauseparam() 242 static int xgbe_set_pauseparam(struct net_device *netdev, in xgbe_set_pauseparam() argument 245 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_pauseparam() 249 netdev_err(netdev, in xgbe_set_pauseparam() 269 if (netif_running(netdev)) in xgbe_set_pauseparam() [all …]
|