/drivers/net/ethernet/ |
D | Kconfig | 20 source "drivers/net/ethernet/3com/Kconfig" 21 source "drivers/net/ethernet/adaptec/Kconfig" 22 source "drivers/net/ethernet/aeroflex/Kconfig" 23 source "drivers/net/ethernet/agere/Kconfig" 24 source "drivers/net/ethernet/allwinner/Kconfig" 25 source "drivers/net/ethernet/alteon/Kconfig" 26 source "drivers/net/ethernet/altera/Kconfig" 27 source "drivers/net/ethernet/amazon/Kconfig" 28 source "drivers/net/ethernet/amd/Kconfig" 29 source "drivers/net/ethernet/apm/Kconfig" [all …]
|
/drivers/net/usb/ |
D | smsc75xx.c | 103 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc75xx_read_reg() 135 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg() 177 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy() 200 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read() 212 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read() 218 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read() 224 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read() 247 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write() 254 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write() 266 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write() [all …]
|
D | sr9800.c | 67 if (skb->len < dev->net->hard_header_len) in sr_rx_fixup() 79 netdev_err(dev->net, "%s : Bad Header Length\n", in sr_rx_fixup() 84 if ((size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) || in sr_rx_fixup() 86 netdev_err(dev->net, "%s : Bad RX Length %d\n", in sr_rx_fixup() 90 sr_skb = netdev_alloc_skb_ip_align(dev->net, size); in sr_rx_fixup() 102 netdev_err(dev->net, "%s : Bad SKB Length %d\n", __func__, in sr_rx_fixup() 161 if (netif_carrier_ok(dev->net) != link) { in sr_status() 163 netdev_dbg(dev->net, "Link Status is: %d\n", link); in sr_status() 175 netdev_err(dev->net, "Failed to enable software MII access\n"); in sr_set_sw_mii() 185 netdev_err(dev->net, "Failed to enable hardware MII access\n"); in sr_set_hw_mii() [all …]
|
D | asix_devices.c | 65 if (netif_carrier_ok(dev->net) != link) { in asix_status() 67 netdev_dbg(dev->net, "Link Status is: %d\n", link); in asix_status() 74 memcpy(dev->net->dev_addr, addr, ETH_ALEN); in asix_set_netdev_dev_addr() 76 netdev_info(dev->net, "invalid hw address, using random\n"); in asix_set_netdev_dev_addr() 77 eth_hw_addr_random(dev->net); in asix_set_netdev_dev_addr() 90 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1); in asix_get_phyid() 103 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2); in asix_get_phyid() 112 static u32 asix_get_link(struct net_device *net) in asix_get_link() argument 114 struct usbnet *dev = netdev_priv(net); in asix_get_link() 119 static int asix_ioctl (struct net_device *net, struct ifreq *rq, int cmd) in asix_ioctl() argument [all …]
|
D | usbnet.c | 168 tmp = hex2bin(dev->net->dev_addr, buf, 6); in usbnet_get_ethernet_addr() 194 netif_dbg(dev, ifdown, dev->net, in intr_complete() 202 netdev_dbg(dev->net, "intr status %d\n", status); in intr_complete() 208 netif_err(dev, timer, dev->net, in intr_complete() 328 skb->protocol = eth_type_trans (skb, dev->net); in usbnet_skb_return() 330 dev->net->stats.rx_packets++; in usbnet_skb_return() 331 dev->net->stats.rx_bytes += skb->len; in usbnet_skb_return() 333 netif_dbg(dev, rx_status, dev->net, "< rx, len %zu, type 0x%x\n", in usbnet_skb_return() 342 netif_dbg(dev, rx_err, dev->net, in usbnet_skb_return() 380 int usbnet_change_mtu (struct net_device *net, int new_mtu) in usbnet_change_mtu() argument [all …]
|
D | smsc95xx.c | 103 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc95xx_read_reg() 135 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc95xx_write_reg() 177 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc95xx_phy_wait_not_busy() 200 netdev_warn(dev->net, "MII is busy in smsc95xx_mdio_read\n"); in __smsc95xx_mdio_read() 210 netdev_warn(dev->net, "Error writing MII_ADDR\n"); in __smsc95xx_mdio_read() 216 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc95xx_mdio_read() 222 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc95xx_mdio_read() 245 netdev_warn(dev->net, "MII is busy in smsc95xx_mdio_write\n"); in __smsc95xx_mdio_write() 252 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc95xx_mdio_write() 262 netdev_warn(dev->net, "Error writing MII_ADDR\n"); in __smsc95xx_mdio_write() [all …]
|
D | dm9601.c | 133 netdev_err(dev->net, "%s read timed out!\n", phy ? "phy" : "eeprom"); in dm_read_shared_word() 141 netdev_dbg(dev->net, "read shared %d 0x%02x returned 0x%04x, %d\n", in dm_read_shared_word() 176 netdev_err(dev->net, "%s write timed out!\n", phy ? "phy" : "eeprom"); in dm_write_shared_word() 200 static int dm9601_get_eeprom(struct net_device *net, in dm9601_get_eeprom() argument 203 struct usbnet *dev = netdev_priv(net); in dm9601_get_eeprom() 226 netdev_dbg(dev->net, "Only internal phy supported\n"); in dm9601_mdio_read() 232 netdev_dbg(dev->net, in dm9601_mdio_read() 246 netdev_dbg(dev->net, "Only internal phy supported\n"); in dm9601_mdio_write() 250 netdev_dbg(dev->net, "dm9601_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n", in dm9601_mdio_write() 256 static void dm9601_get_drvinfo(struct net_device *net, in dm9601_get_drvinfo() argument [all …]
|
D | ax88172a.c | 43 return asix_mdio_read(((struct usbnet *)bus->priv)->net, phy_id, in asix_mdio_bus_read() 50 asix_mdio_write(((struct usbnet *)bus->priv)->net, phy_id, regnum, val); in asix_mdio_bus_write() 54 static int ax88172a_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in ax88172a_ioctl() argument 56 if (!netif_running(net)) in ax88172a_ioctl() 59 if (!net->phydev) in ax88172a_ioctl() 62 return phy_mii_ioctl(net->phydev, rq, cmd); in ax88172a_ioctl() 105 netdev_err(dev->net, "Could not allocate MDIO bus\n"); in ax88172a_init_mdio() 119 netdev_err(dev->net, "Could not register MDIO bus\n"); in ax88172a_init_mdio() 123 netdev_info(dev->net, "registered mdio bus %s\n", priv->mdio->id); in ax88172a_init_mdio() 135 netdev_info(dev->net, "deregistering mdio bus %s\n", priv->mdio->id); in ax88172a_remove_mdio() [all …]
|
D | pegasus.c | 140 netif_dbg(pegasus, drv, pegasus->net, in get_registers() 162 netif_dbg(pegasus, drv, pegasus->net, in set_registers() 181 netif_dbg(pegasus, drv, pegasus->net, in set_register() 215 netif_device_detach(pegasus->net); in update_eth_regs_async() 216 netif_err(pegasus, drv, pegasus->net, in update_eth_regs_async() 252 netif_dbg(p, drv, p->net, "%s failed\n", __func__); in __mii_op() 311 netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__); in read_eprom_word() 360 netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__); in write_eprom_word() 386 memcpy(pegasus->net->dev_addr, node_id, sizeof(node_id)); in set_ethernet_addr() 463 struct net_device *net; in read_bulk_callback() local [all …]
|
D | asix_common.c | 41 netdev_warn(dev->net, "Failed to read reg index 0x%04x: %d\n", in asix_read_cmd() 64 netdev_warn(dev->net, "Failed to write reg index 0x%04x: %d\n", in asix_write_cmd() 100 netdev_err(dev->net, "asix_rx_fixup() Data Header synchronisation was lost, remaining %d\n", in asix_rx_fixup_internal() 141 netdev_err(dev->net, "asix_rx_fixup() Bad Header Length 0x%x, offset %d\n", in asix_rx_fixup_internal() 145 if (size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) { in asix_rx_fixup_internal() 146 netdev_dbg(dev->net, "asix_rx_fixup() Bad RX Length %d\n", in asix_rx_fixup_internal() 156 rx->ax_skb = netdev_alloc_skb_ip_align(dev->net, size); in asix_rx_fixup_internal() 180 netdev_err(dev->net, "asix_rx_fixup() Bad SKB Length %d, %d\n", in asix_rx_fixup_internal() 259 netdev_err(dev->net, "Failed to enable software MII access\n"); in asix_set_sw_mii() 268 netdev_err(dev->net, "Failed to enable hardware MII access\n"); in asix_set_hw_mii() [all …]
|
D | net1080.c | 153 netdev_dbg(dev->net, "registers:\n"); 165 netdev_dbg(dev->net, "reg [0x%x] ==> error %d\n", 168 netdev_dbg(dev->net, "reg [0x%x] = 0x%x\n", reg, *vp); 196 netif_dbg(dev, link, dev->net, in nc_dump_usbctl() 239 netif_dbg(dev, link, dev->net, in nc_dump_status() 273 netif_dbg(dev, link, dev->net, "net1080 %s-%s ttl 0x%x this = %d, other = %d\n", in nc_dump_ttl() 289 netdev_dbg(dev->net, "can't read %s-%s status: %d\n", in net1080_reset() 297 netdev_dbg(dev->net, "can't read USBCTL, %d\n", retval); in net1080_reset() 307 netdev_dbg(dev->net, "can't read TTL, %d\n", retval); in net1080_reset() 315 netdev_dbg(dev->net, "assigned TTL, %d ms\n", NC_READ_TTL_MS); in net1080_reset() [all …]
|
D | mcs7830.c | 332 static int mcs7830_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in mcs7830_ioctl() argument 334 struct usbnet *dev = netdev_priv(net); in mcs7830_ioctl() 359 static void mcs7830_data_set_multicast(struct net_device *net) in mcs7830_data_set_multicast() argument 361 struct usbnet *dev = netdev_priv(net); in mcs7830_data_set_multicast() 371 if (net->flags & IFF_PROMISC) { in mcs7830_data_set_multicast() 373 } else if (net->flags & IFF_ALLMULTI || in mcs7830_data_set_multicast() 374 netdev_mc_count(net) > MCS7830_MAX_MCAST) { in mcs7830_data_set_multicast() 376 } else if (netdev_mc_empty(net)) { in mcs7830_data_set_multicast() 387 netdev_for_each_mc_addr(ha, net) { in mcs7830_data_set_multicast() 399 ret = mcs7830_hif_set_mac_address(dev, dev->net->dev_addr); in mcs7830_apply_base_config() [all …]
|
D | ipheth.c | 142 struct net_device *net; member 242 dev->net->stats.rx_length_errors++; in ipheth_rcvbulk_callback() 252 dev->net->stats.rx_dropped++; in ipheth_rcvbulk_callback() 257 skb->dev = dev->net; in ipheth_rcvbulk_callback() 258 skb->protocol = eth_type_trans(skb, dev->net); in ipheth_rcvbulk_callback() 260 dev->net->stats.rx_packets++; in ipheth_rcvbulk_callback() 261 dev->net->stats.rx_bytes += len; in ipheth_rcvbulk_callback() 284 netif_wake_queue(dev->net); in ipheth_sndbulk_callback() 307 netif_carrier_on(dev->net); in ipheth_carrier_set() 309 netif_carrier_off(dev->net); in ipheth_carrier_set() [all …]
|
D | sierra_net.c | 194 static int sierra_net_change_mtu(struct net_device *net, int new_mtu); 237 netdev_err(dev->net, "Non linear buffer-dropping\n"); in check_ethip_packet() 345 netdev_err(dev->net, "Submit %s failed %d\n", cmd_name, status); in sierra_net_send_cmd() 383 netdev_err(dev->net, "%s: Data length %d, exp >= %Zu\n", in sierra_net_parse_lsi() 390 netdev_err(dev->net, "Session idle, 0x%02x\n", in sierra_net_parse_lsi() 402 netdev_err(dev->net, "Link type unsupported: 0x%02x\n", in sierra_net_parse_lsi() 410 netdev_err(dev->net, "Protocol unsupported, 0x%02x\n", in sierra_net_parse_lsi() 416 netdev_err(dev->net, "%s: LSI_UMTS_STATUS_LEN %d, exp %u\n", in sierra_net_parse_lsi() 424 netdev_err(dev->net, "No coverage, 0x%02x\n", lsi->coverage); in sierra_net_parse_lsi() 441 netdev_err(dev->net, "Invalid LSI\n"); in sierra_net_handle_lsi() [all …]
|
D | lan78xx.c | 300 struct net_device *net; member 377 netdev_warn(dev->net, in lan78xx_read_reg() 403 netdev_warn(dev->net, in lan78xx_write_reg() 443 netdev_warn(dev->net, in lan78xx_read_stats() 591 netdev_warn(dev->net, "EEPROM read operation timeout"); in lan78xx_wait_eeprom() 615 netdev_warn(dev->net, "EEPROM is busy"); in lan78xx_eeprom_confirm_not_busy() 773 netdev_warn(dev->net, in lan78xx_read_raw_otp() 794 netdev_warn(dev->net, in lan78xx_read_raw_otp() 827 netdev_warn(dev->net, in lan78xx_write_raw_otp() 851 netdev_warn(dev->net, in lan78xx_write_raw_otp() [all …]
|
D | kaweth.c | 228 struct net_device *net; member 269 netdev_dbg(kaweth->net, "in_interrupt()\n"); in kaweth_control() 321 netdev_dbg(kaweth->net, "Setting URB size to %d\n", (unsigned)urb_size); in kaweth_set_urb_size() 343 netdev_dbg(kaweth->net, "Set SOFS wait to %d\n", (unsigned)sofs_wait); in kaweth_set_sofs_wait() 366 netdev_dbg(kaweth->net, "Set receive filter to %d\n", in kaweth_set_receive_filter() 416 netdev_dbg(kaweth->net, "High: %i, Low:%i\n", kaweth->firmware_buf[3], in kaweth_download_firmware() 419 netdev_dbg(kaweth->net, in kaweth_download_firmware() 422 netdev_dbg(kaweth->net, "Firmware length: %d\n", data_len); in kaweth_download_firmware() 471 netdev_dbg(kaweth->net, "kaweth_reset() returns %d.\n", result); in kaweth_reset() 523 netif_carrier_on(kaweth->net); in int_callback() [all …]
|
/drivers/usb/gadget/function/ |
D | u_ether.c | 62 struct net_device *net; member 118 printk(level "%s: " fmt , (d)->net->name , ## args) 145 static int ueth_change_mtu(struct net_device *net, int new_mtu) in ueth_change_mtu() argument 149 net->mtu = new_mtu; in ueth_change_mtu() 154 static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) in eth_get_drvinfo() argument 156 struct eth_dev *dev = netdev_priv(net); in eth_get_drvinfo() 219 size += sizeof(struct ethhdr) + dev->net->mtu + RX_EXTRA; in rx_submit() 295 dev->net->stats.rx_errors++; in rx_complete() 296 dev->net->stats.rx_length_errors++; in rx_complete() 301 skb2->protocol = eth_type_trans(skb2, dev->net); in rx_complete() [all …]
|
D | u_ether.h | 132 int gether_register_netdev(struct net_device *net); 155 void gether_set_gadget(struct net_device *net, struct usb_gadget *g); 166 int gether_set_dev_addr(struct net_device *net, const char *dev_addr); 177 int gether_get_dev_addr(struct net_device *net, char *dev_addr, int len); 188 int gether_set_host_addr(struct net_device *net, const char *host_addr); 199 int gether_get_host_addr(struct net_device *net, char *host_addr, int len); 211 int gether_get_host_addr_cdc(struct net_device *net, char *host_addr, int len); 221 void gether_get_host_addr_u8(struct net_device *net, u8 host_mac[ETH_ALEN]); 231 void gether_set_qmult(struct net_device *net, unsigned qmult); 239 unsigned gether_get_qmult(struct net_device *net); [all …]
|
/drivers/rapidio/ |
D | rio-scan.c | 60 static u16 rio_destid_alloc(struct rio_net *net) in rio_destid_alloc() argument 63 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_alloc() 86 static int rio_destid_reserve(struct rio_net *net, u16 destid) in rio_destid_reserve() argument 89 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_reserve() 105 static void rio_destid_free(struct rio_net *net, u16 destid) in rio_destid_free() argument 107 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_free() 119 static u16 rio_destid_first(struct rio_net *net) in rio_destid_first() argument 122 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_first() 139 static u16 rio_destid_next(struct rio_net *net, u16 from) in rio_destid_next() argument 142 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_next() [all …]
|
/drivers/net/can/spi/ |
D | mcp251x.c | 245 struct net_device *net; member 285 static void mcp251x_clean(struct net_device *net) in mcp251x_clean() argument 287 struct mcp251x_priv *priv = netdev_priv(net); in mcp251x_clean() 290 net->stats.tx_errors++; in mcp251x_clean() 294 can_free_echo_skb(priv->net, 0); in mcp251x_clean() 468 skb = alloc_can_skb(priv->net, &frame); in mcp251x_hw_rx() 471 priv->net->stats.rx_dropped++; in mcp251x_hw_rx() 502 priv->net->stats.rx_packets++; in mcp251x_hw_rx() 503 priv->net->stats.rx_bytes += frame->can_dlc; in mcp251x_hw_rx() 505 can_led_event(priv->net, CAN_LED_EVENT_RX); in mcp251x_hw_rx() [all …]
|
/drivers/net/hyperv/ |
D | netvsc_drv.c | 95 static void netvsc_set_multicast_list(struct net_device *net) in netvsc_set_multicast_list() argument 97 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_set_multicast_list() 102 static int netvsc_open(struct net_device *net) in netvsc_open() argument 104 struct netvsc_device *nvdev = net_device_to_netvsc_device(net); in netvsc_open() 108 netif_carrier_off(net); in netvsc_open() 113 netdev_err(net, "unable to open device (ret %d).\n", ret); in netvsc_open() 117 netif_tx_wake_all_queues(net); in netvsc_open() 121 netif_carrier_on(net); in netvsc_open() 126 static int netvsc_close(struct net_device *net) in netvsc_close() argument 128 struct net_device_context *net_device_ctx = netdev_priv(net); in netvsc_close() [all …]
|
/drivers/staging/rtl8188eu/os_dep/ |
D | rtw_android.c | 83 static int rtw_android_get_rssi(struct net_device *net, char *command, in rtw_android_get_rssi() argument 86 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(net); in rtw_android_get_rssi() 100 static int rtw_android_get_link_speed(struct net_device *net, char *command, in rtw_android_get_link_speed() argument 103 struct adapter *padapter = (struct adapter *)rtw_netdev_priv(net); in rtw_android_get_link_speed() 111 static int rtw_android_get_macaddr(struct net_device *net, char *command, in rtw_android_get_macaddr() argument 115 net->dev_addr); in rtw_android_get_macaddr() 118 static int android_set_cntry(struct net_device *net, char *command, in android_set_cntry() argument 121 struct adapter *adapter = (struct adapter *)rtw_netdev_priv(net); in android_set_cntry() 129 static int android_get_p2p_addr(struct net_device *net, char *command, in android_get_p2p_addr() argument 133 memcpy(command, net->dev_addr, ETH_ALEN); in android_get_p2p_addr() [all …]
|
/drivers/tty/ipwireless/ |
D | network.h | 33 void ipwireless_network_notify_control_line_change(struct ipw_network *net, 36 void ipwireless_network_packet_received(struct ipw_network *net, 40 void ipwireless_network_free(struct ipw_network *net); 41 void ipwireless_associate_network_tty(struct ipw_network *net, 43 void ipwireless_disassociate_network_ttys(struct ipw_network *net, 46 void ipwireless_ppp_open(struct ipw_network *net); 48 void ipwireless_ppp_close(struct ipw_network *net); 49 int ipwireless_ppp_channel_index(struct ipw_network *net); 50 int ipwireless_ppp_unit_number(struct ipw_network *net); 51 int ipwireless_ppp_mru(const struct ipw_network *net);
|
/drivers/firewire/ |
D | net.c | 216 static int fwnet_header_create(struct sk_buff *skb, struct net_device *net, in fwnet_header_create() argument 225 if (net->flags & (IFF_LOOPBACK | IFF_NOARP)) { in fwnet_header_create() 226 memset(h->h_dest, 0, net->addr_len); in fwnet_header_create() 228 return net->hard_header_len; in fwnet_header_create() 232 memcpy(h->h_dest, daddr, net->addr_len); in fwnet_header_create() 234 return net->hard_header_len; in fwnet_header_create() 237 return -net->hard_header_len; in fwnet_header_create() 243 struct net_device *net; in fwnet_header_cache() local 248 net = neigh->dev; in fwnet_header_cache() 251 memcpy(h->h_dest, neigh->ha, net->addr_len); in fwnet_header_cache() [all …]
|
/drivers/net/ |
D | vrf.c | 139 static int vrf_ip6_local_out(struct net *net, struct sock *sk, in vrf_ip6_local_out() argument 144 err = nf_hook(NFPROTO_IPV6, NF_INET_LOCAL_OUT, net, in vrf_ip6_local_out() 148 err = dst_output(net, sk, skb); in vrf_ip6_local_out() 157 struct net *net = dev_net(skb->dev); in vrf_process_v6_outbound() local 171 struct dst_entry *dst_null = &net->ipv6.ip6_null_entry->dst; in vrf_process_v6_outbound() 173 dst = ip6_route_output(net, NULL, &fl6); in vrf_process_v6_outbound() 183 if (dst->dev == net->loopback_dev || dst->dev == dev) { in vrf_process_v6_outbound() 223 ret = vrf_ip6_local_out(net, skb->sk, skb); in vrf_process_v6_outbound() 244 static int vrf_ip_local_out(struct net *net, struct sock *sk, in vrf_ip_local_out() argument 249 err = nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT, net, sk, in vrf_ip_local_out() [all …]
|