Home
last modified time | relevance | path

Searched refs:net (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/drivers/net/
Dthunderbolt.c238 static int tbnet_login_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_login_response() argument
242 struct tb_xdomain *xd = net->xd; in tbnet_login_response()
248 memcpy(reply.receiver_mac, net->dev->dev_addr, ETH_ALEN); in tbnet_login_response()
255 static int tbnet_login_request(struct tbnet *net, u8 sequence) in tbnet_login_request() argument
259 struct tb_xdomain *xd = net->xd; in tbnet_login_request()
264 atomic_inc_return(&net->command_id)); in tbnet_login_request()
267 request.transmit_path = net->local_transmit_path; in tbnet_login_request()
275 static int tbnet_logout_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_logout_response() argument
279 struct tb_xdomain *xd = net->xd; in tbnet_logout_response()
284 atomic_inc_return(&net->command_id)); in tbnet_logout_response()
[all …]
Dvrf.c177 static struct vrf_map *netns_vrf_map(struct net *net) in netns_vrf_map() argument
179 struct netns_vrf *nn_vrf = net_generic(net, vrf_net_id); in netns_vrf_map()
358 static int vrf_ifindex_lookup_by_table_id(struct net *net, u32 table_id) in vrf_ifindex_lookup_by_table_id() argument
360 struct vrf_map *vmap = netns_vrf_map(net); in vrf_ifindex_lookup_by_table_id()
442 static int vrf_ip6_local_out(struct net *net, struct sock *sk, in vrf_ip6_local_out() argument
449 err = nf_hook(NFPROTO_IPV6, NF_INET_LOCAL_OUT, net, in vrf_ip6_local_out()
453 err = dst_output(net, sk, skb); in vrf_ip6_local_out()
462 struct net *net = dev_net(skb->dev); in vrf_process_v6_outbound() local
466 struct dst_entry *dst_null = &net->ipv6.ip6_null_entry->dst; in vrf_process_v6_outbound()
483 dst = ip6_dst_lookup_flow(net, NULL, &fl6, NULL); in vrf_process_v6_outbound()
[all …]
/drivers/net/ethernet/
DKconfig21 source "drivers/net/ethernet/3com/Kconfig"
22 source "drivers/net/ethernet/actions/Kconfig"
23 source "drivers/net/ethernet/adaptec/Kconfig"
24 source "drivers/net/ethernet/aeroflex/Kconfig"
25 source "drivers/net/ethernet/agere/Kconfig"
26 source "drivers/net/ethernet/alacritech/Kconfig"
27 source "drivers/net/ethernet/allwinner/Kconfig"
28 source "drivers/net/ethernet/alteon/Kconfig"
29 source "drivers/net/ethernet/altera/Kconfig"
30 source "drivers/net/ethernet/amazon/Kconfig"
[all …]
/drivers/net/usb/
Dsmsc75xx.c96 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc75xx_read_reg()
128 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg()
170 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy()
193 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read()
205 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read()
211 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read()
217 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read()
240 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write()
247 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write()
259 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write()
[all …]
Dsr9800.c67 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()
160 if (netif_carrier_ok(dev->net) != link) { in sr_status()
162 netdev_dbg(dev->net, "Link Status is: %d\n", link); in sr_status()
174 netdev_err(dev->net, "Failed to enable software MII access\n"); in sr_set_sw_mii()
184 netdev_err(dev->net, "Failed to enable hardware MII access\n"); in sr_set_hw_mii()
[all …]
Dpegasus.c116 netif_dbg(pegasus, drv, pegasus->net, "%s failed with %d\n", __func__, ret); in set_registers()
135 netif_dbg(pegasus, drv, pegasus->net, "%s failed with %d\n", __func__, ret); in set_register()
168 netif_device_detach(pegasus->net); in update_eth_regs_async()
169 netif_err(pegasus, drv, pegasus->net, in update_eth_regs_async()
207 netif_dbg(p, drv, p->net, "%s failed\n", __func__); in __mii_op()
273 netif_dbg(pegasus, drv, pegasus->net, "%s failed\n", __func__); in read_eprom_word()
322 netif_dbg(pegasus, drv, pegasus->net, "%s failed\n", __func__); in write_eprom_word()
360 eth_hw_addr_set(pegasus->net, node_id); in set_ethernet_addr()
364 eth_hw_addr_random(pegasus->net); in set_ethernet_addr()
365 netif_dbg(pegasus, drv, pegasus->net, "software assigned MAC address.\n"); in set_ethernet_addr()
[all …]
Dusbnet.c179 eth_hw_addr_set(dev->net, addr); in usbnet_get_ethernet_addr()
198 netif_dbg(dev, ifdown, dev->net, in intr_complete()
206 netdev_dbg(dev->net, "intr status %d\n", status); in intr_complete()
212 netif_err(dev, timer, dev->net, in intr_complete()
323 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); in usbnet_skb_return()
334 skb->protocol = eth_type_trans (skb, dev->net); in usbnet_skb_return()
341 netif_dbg(dev, rx_status, dev->net, "< rx, len %zu, type 0x%x\n", in usbnet_skb_return()
350 netif_dbg(dev, rx_err, dev->net, in usbnet_skb_return()
391 int usbnet_change_mtu (struct net_device *net, int new_mtu) in usbnet_change_mtu() argument
393 struct usbnet *dev = netdev_priv(net); in usbnet_change_mtu()
[all …]
Dasix_devices.c53 if (netif_carrier_ok(dev->net) != link) { in asix_status()
55 netdev_dbg(dev->net, "Link Status is: %d\n", link); in asix_status()
62 eth_hw_addr_set(dev->net, addr); in asix_set_netdev_dev_addr()
64 netdev_info(dev->net, "invalid hw address, using random\n"); in asix_set_netdev_dev_addr()
65 eth_hw_addr_random(dev->net); in asix_set_netdev_dev_addr()
78 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1); in asix_get_phyid()
91 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2); in asix_get_phyid()
100 static u32 asix_get_link(struct net_device *net) in asix_get_link() argument
102 struct usbnet *dev = netdev_priv(net); in asix_get_link()
107 static int asix_ioctl (struct net_device *net, struct ifreq *rq, int cmd) in asix_ioctl() argument
[all …]
Ddm9601.c134 netdev_err(dev->net, "%s read timed out!\n", phy ? "phy" : "eeprom"); in dm_read_shared_word()
142 netdev_dbg(dev->net, "read shared %d 0x%02x returned 0x%04x, %d\n", in dm_read_shared_word()
177 netdev_err(dev->net, "%s write timed out!\n", phy ? "phy" : "eeprom"); in dm_write_shared_word()
201 static int dm9601_get_eeprom(struct net_device *net, in dm9601_get_eeprom() argument
204 struct usbnet *dev = netdev_priv(net); in dm9601_get_eeprom()
228 netdev_dbg(dev->net, "Only internal phy supported\n"); in dm9601_mdio_read()
234 netdev_err(dev->net, "MDIO read error: %d\n", err); in dm9601_mdio_read()
238 netdev_dbg(dev->net, in dm9601_mdio_read()
252 netdev_dbg(dev->net, "Only internal phy supported\n"); in dm9601_mdio_write()
256 netdev_dbg(dev->net, "dm9601_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n", in dm9601_mdio_write()
[all …]
Dsmsc95xx.c102 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in smsc95xx_read_reg()
133 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in smsc95xx_write_reg()
153 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in smsc95xx_phy_wait_not_busy()
179 netdev_warn(dev->net, "%s: MII is busy\n", __func__); in smsc95xx_mdio_read()
188 netdev_warn(dev->net, "Error writing MII_ADDR\n"); in smsc95xx_mdio_read()
194 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in smsc95xx_mdio_read()
201 netdev_warn(dev->net, "Error reading MII_DATA\n"); in smsc95xx_mdio_read()
227 netdev_warn(dev->net, "%s: MII is busy\n", __func__); in smsc95xx_mdio_write()
235 netdev_warn(dev->net, "Error writing MII_DATA\n"); in smsc95xx_mdio_write()
244 netdev_warn(dev->net, "Error writing MII_ADDR\n"); in smsc95xx_mdio_write()
[all …]
Dasix_common.c33 netdev_warn(dev->net, "Failed to read reg index 0x%04x: %d\n", in asix_read_cmd()
57 netdev_warn(dev->net, "Failed to write reg index 0x%04x: %d\n", in asix_write_cmd()
78 netdev_err(dev->net, "Failed to enable software MII access\n"); in asix_set_sw_mii()
88 netdev_err(dev->net, "Failed to enable hardware MII access\n"); in asix_set_hw_mii()
158 netdev_err(dev->net, "asix_rx_fixup() Data Header synchronisation was lost, remaining %d\n", in asix_rx_fixup_internal()
190 netdev_err(dev->net, "asix_rx_fixup() Bad Header Length 0x%x, offset %d\n", in asix_rx_fixup_internal()
195 if (size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) { in asix_rx_fixup_internal()
196 netdev_dbg(dev->net, "asix_rx_fixup() Bad RX Length %d\n", in asix_rx_fixup_internal()
207 rx->ax_skb = netdev_alloc_skb_ip_align(dev->net, size); in asix_rx_fixup_internal()
233 netdev_err(dev->net, "asix_rx_fixup() Bad SKB Length %d, %d\n", in asix_rx_fixup_internal()
[all …]
Dipheth.c90 struct net_device *net; member
191 dev->net->stats.rx_length_errors++; in ipheth_rcvbulk_callback()
201 dev->net->stats.rx_dropped++; in ipheth_rcvbulk_callback()
206 skb->dev = dev->net; in ipheth_rcvbulk_callback()
207 skb->protocol = eth_type_trans(skb, dev->net); in ipheth_rcvbulk_callback()
209 dev->net->stats.rx_packets++; in ipheth_rcvbulk_callback()
210 dev->net->stats.rx_bytes += len; in ipheth_rcvbulk_callback()
233 netif_wake_queue(dev->net); in ipheth_sndbulk_callback()
263 netif_carrier_on(dev->net); in ipheth_carrier_set()
265 netif_wake_queue(dev->net); in ipheth_carrier_set()
[all …]
Dkaweth.c212 struct net_device *net; member
253 netdev_dbg(kaweth->net, "Setting URB size to %d\n", (unsigned)urb_size); in kaweth_set_urb_size()
268 netdev_dbg(kaweth->net, "Set SOFS wait to %d\n", (unsigned)sofs_wait); in kaweth_set_sofs_wait()
284 netdev_dbg(kaweth->net, "Set receive filter to %d\n", in kaweth_set_receive_filter()
329 netdev_dbg(kaweth->net, "High: %i, Low:%i\n", kaweth->firmware_buf[3], in kaweth_download_firmware()
332 netdev_dbg(kaweth->net, in kaweth_download_firmware()
335 netdev_dbg(kaweth->net, "Firmware length: %d\n", data_len); in kaweth_download_firmware()
378 netdev_dbg(kaweth->net, "kaweth_reset() returns %d.\n", result); in kaweth_reset()
430 netif_carrier_on(kaweth->net); in int_callback()
432 netif_carrier_off(kaweth->net); in int_callback()
[all …]
Dnet1080.c140 netdev_dbg(dev->net, "registers:\n");
152 netdev_dbg(dev->net, "reg [0x%x] ==> error %d\n",
155 netdev_dbg(dev->net, "reg [0x%x] = 0x%x\n", reg, *vp);
183 netif_dbg(dev, link, dev->net, in nc_dump_usbctl()
226 netif_dbg(dev, link, dev->net, in nc_dump_status()
268 netdev_dbg(dev->net, "can't read %s-%s status: %d\n", in net1080_reset()
276 netdev_dbg(dev->net, "can't read USBCTL, %d\n", retval); in net1080_reset()
286 netdev_dbg(dev->net, "can't read TTL, %d\n", retval); in net1080_reset()
293 netdev_dbg(dev->net, "assigned TTL, %d ms\n", NC_READ_TTL_MS); in net1080_reset()
295 netif_info(dev, link, dev->net, "port %c, peer %sconnected\n", in net1080_reset()
[all …]
Dmcs7830.c328 static int mcs7830_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in mcs7830_ioctl() argument
330 struct usbnet *dev = netdev_priv(net); in mcs7830_ioctl()
355 static void mcs7830_data_set_multicast(struct net_device *net) in mcs7830_data_set_multicast() argument
357 struct usbnet *dev = netdev_priv(net); in mcs7830_data_set_multicast()
367 if (net->flags & IFF_PROMISC) { in mcs7830_data_set_multicast()
369 } else if (net->flags & IFF_ALLMULTI || in mcs7830_data_set_multicast()
370 netdev_mc_count(net) > MCS7830_MAX_MCAST) { in mcs7830_data_set_multicast()
372 } else if (netdev_mc_empty(net)) { in mcs7830_data_set_multicast()
383 netdev_for_each_mc_addr(ha, net) { in mcs7830_data_set_multicast()
395 ret = mcs7830_hif_set_mac_address(dev, dev->net->dev_addr); in mcs7830_apply_base_config()
[all …]
Dax88172a.c68 netdev_err(dev->net, "Could not allocate MDIO bus\n"); in ax88172a_init_mdio()
82 netdev_err(dev->net, "Could not register MDIO bus\n"); in ax88172a_init_mdio()
86 netdev_info(dev->net, "registered mdio bus %s\n", priv->mdio->id); in ax88172a_init_mdio()
98 netdev_info(dev->net, "deregistering mdio bus %s\n", priv->mdio->id); in ax88172a_remove_mdio()
177 netdev_err(dev->net, "Failed to read MAC address: %d\n", ret); in ax88172a_bind()
181 eth_hw_addr_set(dev->net, buf); in ax88172a_bind()
183 dev->net->netdev_ops = &ax88172a_netdev_ops; in ax88172a_bind()
184 dev->net->ethtool_ops = &ax88172a_ethtool_ops; in ax88172a_bind()
189 netdev_err(dev->net, "Failed to read software interface selection register: %d\n", in ax88172a_bind()
194 netdev_dbg(dev->net, "AX_CMD_SW_PHY_STATUS = 0x%02x\n", buf[0]); in ax88172a_bind()
[all …]
Daqc111.c34 netdev_warn(dev->net, in aqc111_read_cmd_nopm()
50 netdev_warn(dev->net, in aqc111_read_cmd()
85 netdev_dbg(dev->net, in __aqc111_write_cmd()
101 netdev_warn(dev->net, in __aqc111_write_cmd()
196 static void aqc111_get_drvinfo(struct net_device *net, in aqc111_get_drvinfo() argument
199 struct usbnet *dev = netdev_priv(net); in aqc111_get_drvinfo()
203 usbnet_get_drvinfo(net, info); in aqc111_get_drvinfo()
213 static void aqc111_get_wol(struct net_device *net, in aqc111_get_wol() argument
216 struct usbnet *dev = netdev_priv(net); in aqc111_get_wol()
226 static int aqc111_set_wol(struct net_device *net, in aqc111_set_wol() argument
[all …]
Dlan78xx.c418 struct net_device *net; member
632 netdev_warn(dev->net, in lan78xx_read_reg()
663 netdev_warn(dev->net, in lan78xx_write_reg()
723 netdev_warn(dev->net, in lan78xx_read_stats()
872 netdev_warn(dev->net, "EEPROM read operation timeout"); in lan78xx_wait_eeprom()
896 netdev_warn(dev->net, "EEPROM is busy"); in lan78xx_eeprom_confirm_not_busy()
1053 netdev_warn(dev->net, in lan78xx_read_raw_otp()
1074 netdev_warn(dev->net, in lan78xx_read_raw_otp()
1106 netdev_warn(dev->net, in lan78xx_write_raw_otp()
1130 netdev_warn(dev->net, in lan78xx_write_raw_otp()
[all …]
/drivers/usb/gadget/function/
Du_ether.c60 struct net_device *net; member
117 printk(level "%s: " fmt , (d)->net->name , ## args)
144 static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) in eth_get_drvinfo() argument
146 struct eth_dev *dev = netdev_priv(net); in eth_get_drvinfo()
211 size += sizeof(struct ethhdr) + dev->net->mtu + RX_EXTRA; in rx_submit()
223 skb = __netdev_alloc_skb(dev->net, size + NET_IP_ALIGN, gfp_flags); in rx_submit()
291 dev->net->stats.rx_errors++; in rx_complete()
292 dev->net->stats.rx_length_errors++; in rx_complete()
297 skb2->protocol = eth_type_trans(skb2, dev->net); in rx_complete()
298 dev->net->stats.rx_packets++; in rx_complete()
[all …]
/drivers/rapidio/
Drio-scan.c56 static u16 rio_destid_alloc(struct rio_net *net) in rio_destid_alloc() argument
59 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_alloc()
82 static int rio_destid_reserve(struct rio_net *net, u16 destid) in rio_destid_reserve() argument
85 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_reserve()
101 static void rio_destid_free(struct rio_net *net, u16 destid) in rio_destid_free() argument
103 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_free()
115 static u16 rio_destid_first(struct rio_net *net) in rio_destid_first() argument
118 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_first()
135 static u16 rio_destid_next(struct rio_net *net, u16 from) in rio_destid_next() argument
138 struct rio_id_table *idtab = (struct rio_id_table *)net->enum_data; in rio_destid_next()
[all …]
/drivers/net/can/spi/
Dhi311x.c146 struct net_device *net; member
175 static void hi3110_clean(struct net_device *net) in hi3110_clean() argument
177 struct hi3110_priv *priv = netdev_priv(net); in hi3110_clean()
180 net->stats.tx_errors++; in hi3110_clean()
183 can_free_echo_skb(priv->net, 0, NULL); in hi3110_clean()
321 skb = alloc_can_skb(priv->net, &frame); in hi3110_hw_rx()
323 priv->net->stats.rx_dropped++; in hi3110_hw_rx()
353 priv->net->stats.rx_bytes += frame->len; in hi3110_hw_rx()
355 priv->net->stats.rx_packets++; in hi3110_hw_rx()
366 struct net_device *net) in hi3110_hard_start_xmit() argument
[all …]
Dmcp251x.c230 struct net_device *net; member
272 static void mcp251x_clean(struct net_device *net) in mcp251x_clean() argument
274 struct mcp251x_priv *priv = netdev_priv(net); in mcp251x_clean()
277 net->stats.tx_errors++; in mcp251x_clean()
280 can_free_echo_skb(priv->net, 0, NULL); in mcp251x_clean()
702 skb = alloc_can_skb(priv->net, &frame); in mcp251x_hw_rx()
705 priv->net->stats.rx_dropped++; in mcp251x_hw_rx()
737 priv->net->stats.rx_bytes += frame->len; in mcp251x_hw_rx()
739 priv->net->stats.rx_packets++; in mcp251x_hw_rx()
782 struct net_device *net) in mcp251x_hard_start_xmit() argument
[all …]
/drivers/tty/ipwireless/
Dnetwork.h34 void ipwireless_network_notify_control_line_change(struct ipw_network *net,
37 void ipwireless_network_packet_received(struct ipw_network *net,
41 void ipwireless_network_free(struct ipw_network *net);
42 void ipwireless_associate_network_tty(struct ipw_network *net,
44 void ipwireless_disassociate_network_ttys(struct ipw_network *net,
47 void ipwireless_ppp_open(struct ipw_network *net);
49 void ipwireless_ppp_close(struct ipw_network *net);
50 int ipwireless_ppp_channel_index(struct ipw_network *net);
51 int ipwireless_ppp_unit_number(struct ipw_network *net);
52 int ipwireless_ppp_mru(const struct ipw_network *net);
/drivers/firewire/
Dnet.c208 static int fwnet_header_create(struct sk_buff *skb, struct net_device *net, in fwnet_header_create() argument
217 if (net->flags & (IFF_LOOPBACK | IFF_NOARP)) { in fwnet_header_create()
218 memset(h->h_dest, 0, net->addr_len); in fwnet_header_create()
220 return net->hard_header_len; in fwnet_header_create()
224 memcpy(h->h_dest, daddr, net->addr_len); in fwnet_header_create()
226 return net->hard_header_len; in fwnet_header_create()
229 return -net->hard_header_len; in fwnet_header_create()
235 struct net_device *net; in fwnet_header_cache() local
240 net = neigh->dev; in fwnet_header_cache()
243 memcpy(h->h_dest, neigh->ha, net->addr_len); in fwnet_header_cache()
[all …]
/drivers/vhost/
Dnet.c319 static void vhost_net_tx_packet(struct vhost_net *net) in vhost_net_tx_packet() argument
321 ++net->tx_packets; in vhost_net_tx_packet()
322 if (net->tx_packets < 1024) in vhost_net_tx_packet()
324 net->tx_packets = 0; in vhost_net_tx_packet()
325 net->tx_zcopy_err = 0; in vhost_net_tx_packet()
328 static void vhost_net_tx_err(struct vhost_net *net) in vhost_net_tx_err() argument
330 ++net->tx_zcopy_err; in vhost_net_tx_err()
333 static bool vhost_net_tx_select_zcopy(struct vhost_net *net) in vhost_net_tx_select_zcopy() argument
338 return !net->tx_flush && in vhost_net_tx_select_zcopy()
339 net->tx_packets / 64 >= net->tx_zcopy_err; in vhost_net_tx_select_zcopy()
[all …]

12345678910>>...13