/net/openvswitch/ |
D | vport-internal_dev.c | 27 static struct internal_dev *internal_dev_priv(struct net_device *netdev) in internal_dev_priv() argument 29 return netdev_priv(netdev); in internal_dev_priv() 34 internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) in internal_dev_xmit() argument 42 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit() 46 dev_sw_netstats_tx_add(netdev, 1, len); in internal_dev_xmit() 48 netdev->stats.tx_errors++; in internal_dev_xmit() 53 static int internal_dev_open(struct net_device *netdev) in internal_dev_open() argument 55 netif_start_queue(netdev); in internal_dev_open() 59 static int internal_dev_stop(struct net_device *netdev) in internal_dev_stop() argument 61 netif_stop_queue(netdev); in internal_dev_stop() [all …]
|
/net/dcb/ |
D | dcbnl.c | 207 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate() argument 211 if (!netdev->dcbnl_ops->getstate) in dcbnl_getstate() 215 netdev->dcbnl_ops->getstate(netdev)); in dcbnl_getstate() 218 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg() argument 230 if (!netdev->dcbnl_ops->getpfccfg) in dcbnl_getpfccfg() 250 netdev->dcbnl_ops->getpfccfg(netdev, i - DCB_PFC_UP_ATTR_0, in dcbnl_getpfccfg() 263 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getperm_hwaddr() argument 268 if (!netdev->dcbnl_ops->getpermhwaddr) in dcbnl_getperm_hwaddr() 272 netdev->dcbnl_ops->getpermhwaddr(netdev, perm_addr); in dcbnl_getperm_hwaddr() 277 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap() argument [all …]
|
/net/bluetooth/ |
D | 6lowpan.c | 69 struct net_device *netdev; member 78 lowpan_btle_dev(const struct net_device *netdev) in lowpan_btle_dev() argument 80 return (struct lowpan_btle_dev *)lowpan_dev(netdev)->priv; in lowpan_btle_dev() 181 neigh = __ipv6_neigh_lookup(dev->netdev, nexthop); in peer_lookup_dst() 246 static int iphc_decompress(struct sk_buff *skb, struct net_device *netdev, in iphc_decompress() argument 253 return lowpan_header_decompress(skb, netdev, netdev->dev_addr, saddr); in iphc_decompress() 355 if (!dev || !dev->netdev) in chan_recv_cb() 358 err = recv_pkt(skb, dev->netdev, peer); in chan_recv_cb() 367 static int setup_header(struct sk_buff *skb, struct net_device *netdev, in setup_header() argument 379 dev = lowpan_btle_dev(netdev); in setup_header() [all …]
|
/net/wireless/ |
D | trace.h | 41 memcpy(__entry->name, netdev->name, IFNAMSIZ); \ 42 (__entry->ifindex) = (netdev->ifindex); \ 419 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 421 TP_ARGS(wiphy, netdev, type), 437 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id, 439 TP_ARGS(wiphy, netdev, link_id, key_index, pairwise, mac_addr), 464 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id, 466 TP_ARGS(wiphy, netdev, link_id, key_index, pairwise, mac_addr) 470 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id, 472 TP_ARGS(wiphy, netdev, link_id, key_index, pairwise, mac_addr) [all …]
|
D | nl80211.h | 59 struct net_device *netdev, 62 struct net_device *netdev, 65 struct net_device *netdev, 69 struct net_device *netdev, 73 struct net_device *netdev, 76 struct net_device *netdev, 79 struct net_device *netdev, 83 struct net_device *netdev, 86 struct net_device *netdev, const u8 *bssid, 89 struct net_device *netdev, u16 reason, [all …]
|
D | core.c | 165 if (!wdev->netdev) in cfg80211_switch_netns() 167 wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns() 168 err = dev_change_net_namespace(wdev->netdev, net, "wlan%d"); in cfg80211_switch_netns() 171 wdev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns() 181 if (!wdev->netdev) in cfg80211_switch_netns() 183 wdev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns() 184 err = dev_change_net_namespace(wdev->netdev, net, in cfg80211_switch_netns() 187 wdev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg80211_switch_netns() 194 if (!wdev->netdev) in cfg80211_switch_netns() 207 if (!wdev->netdev) in cfg80211_switch_netns() [all …]
|
D | rdev-ops.h | 80 struct net_device *netdev, int link_id, in rdev_add_key() argument 85 trace_rdev_add_key(&rdev->wiphy, netdev, link_id, key_index, pairwise, in rdev_add_key() 87 ret = rdev->ops->add_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_add_key() 94 rdev_get_key(struct cfg80211_registered_device *rdev, struct net_device *netdev, in rdev_get_key() argument 100 trace_rdev_get_key(&rdev->wiphy, netdev, link_id, key_index, pairwise, in rdev_get_key() 102 ret = rdev->ops->get_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_get_key() 109 struct net_device *netdev, int link_id, in rdev_del_key() argument 113 trace_rdev_del_key(&rdev->wiphy, netdev, link_id, key_index, pairwise, in rdev_del_key() 115 ret = rdev->ops->del_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_del_key() 123 struct net_device *netdev, int link_id, u8 key_index, in rdev_set_default_key() argument [all …]
|
D | mlme.c | 97 nl80211_send_rx_auth(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_auth() 109 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth() 111 nl80211_send_deauth(rdev, wdev->netdev, buf, len, reconnect, GFP_KERNEL); in cfg80211_process_deauth() 116 __cfg80211_disconnected(wdev->netdev, NULL, 0, reason_code, from_ap); in cfg80211_process_deauth() 128 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_disassoc() 130 nl80211_send_disassoc(rdev, wdev->netdev, buf, len, reconnect, in cfg80211_process_disassoc() 137 __cfg80211_disconnected(wdev->netdev, NULL, 0, reason_code, from_ap); in cfg80211_process_disassoc() 966 void cfg80211_cac_event(struct net_device *netdev, in cfg80211_cac_event() argument 970 struct wireless_dev *wdev = netdev->ieee80211_ptr; in cfg80211_cac_event() 979 trace_cfg80211_cac_event(netdev, event); in cfg80211_cac_event() [all …]
|
D | sme.c | 137 dev_hold(wdev->netdev); in cfg80211_conn_scan() 181 err = cfg80211_mlme_auth(rdev, wdev->netdev, &auth_req); in cfg80211_conn_do_work() 212 err = cfg80211_mlme_assoc(rdev, wdev->netdev, &req); in cfg80211_conn_do_work() 217 cfg80211_mlme_deauth(rdev, wdev->netdev, params->bssid, in cfg80211_conn_do_work() 226 cfg80211_mlme_deauth(rdev, wdev->netdev, params->bssid, in cfg80211_conn_do_work() 231 cfg80211_mlme_deauth(rdev, wdev->netdev, params->bssid, in cfg80211_conn_do_work() 255 if (!wdev->netdev) in cfg80211_conn_work() 259 if (!netif_running(wdev->netdev)) { in cfg80211_conn_work() 280 __cfg80211_connect_result(wdev->netdev, &cr, false); in cfg80211_conn_work() 395 __cfg80211_connect_result(wdev->netdev, &cr, false); in cfg80211_sme_rx_auth() [all …]
|
D | nl80211.c | 93 if (have_ifidx && wdev->netdev && in __cfg80211_wdev_from_attrs() 94 wdev->netdev->ifindex == ifidx) { in __cfg80211_wdev_from_attrs() 119 if (have_ifidx && wdev->netdev && in __cfg80211_wdev_from_attrs() 120 wdev->netdev->ifindex == ifidx) { in __cfg80211_wdev_from_attrs() 143 struct net_device *netdev; in __cfg80211_rdev_from_attrs() local 183 netdev = __dev_get_by_index(netns, ifindex); in __cfg80211_rdev_from_attrs() 184 if (netdev) { in __cfg80211_rdev_from_attrs() 185 if (netdev->ieee80211_ptr) in __cfg80211_rdev_from_attrs() 187 netdev->ieee80211_ptr->wiphy); in __cfg80211_rdev_from_attrs() 3007 struct net_device *netdev; in nl80211_dump_wiphy_parse() local [all …]
|
/net/tls/ |
D | tls_device.c | 75 struct net_device *netdev = ctx->netdev; in tls_device_tx_del_task() local 77 netdev->tlsdev_ops->tls_dev_del(netdev, ctx, TLS_OFFLOAD_CTX_DIR_TX); in tls_device_tx_del_task() 78 dev_put(netdev); in tls_device_tx_del_task() 79 ctx->netdev = NULL; in tls_device_tx_del_task() 95 async_cleanup = ctx->netdev && ctx->tx_conf == TLS_HW; in tls_device_queue_ctx_destruction() 114 struct net_device *netdev = NULL; in get_netdev_for_sock() local 117 netdev = netdev_sk_get_lowest_dev(dst->dev, sk); in get_netdev_for_sock() 118 dev_hold(netdev); in get_netdev_for_sock() 123 return netdev; in get_netdev_for_sock() 220 struct net_device *netdev; in tls_device_resync_tx() local [all …]
|
/net/xdp/ |
D | xsk_buff_pool.c | 130 err = pool->netdev->netdev_ops->ndo_bpf(pool->netdev, &bpf); in xp_disable_drv_zc() 138 struct net_device *netdev, u16 queue_id, u16 flags) in xp_assign_dev() argument 152 if (xsk_get_pool_from_qid(netdev, queue_id)) in xp_assign_dev() 155 pool->netdev = netdev; in xp_assign_dev() 157 err = xsk_reg_pool_at_qid(netdev, pool, queue_id); in xp_assign_dev() 169 dev_hold(netdev); in xp_assign_dev() 175 if (!netdev->netdev_ops->ndo_bpf || in xp_assign_dev() 176 !netdev->netdev_ops->ndo_xsk_wakeup) { in xp_assign_dev() 185 err = netdev->netdev_ops->ndo_bpf(netdev, &bpf); in xp_assign_dev() 203 xsk_clear_pool_at_qid(netdev, queue_id); in xp_assign_dev() [all …]
|
/net/core/ |
D | net-sysfs.c | 82 struct net_device *netdev = to_net_dev(dev); in netdev_store() local 83 struct net *net = dev_net(netdev); in netdev_store() 97 if (dev_isalive(netdev)) { in netdev_store() 98 ret = (*set)(netdev, new); in netdev_store() 179 struct net_device *netdev = to_net_dev(dev); in carrier_store() local 184 if (!netdev->netdev_ops->ndo_change_carrier) in carrier_store() 193 struct net_device *netdev = to_net_dev(dev); in carrier_show() local 195 if (netif_running(netdev)) in carrier_show() 196 return sprintf(buf, fmt_dec, !!netif_carrier_ok(netdev)); in carrier_show() 205 struct net_device *netdev = to_net_dev(dev); in speed_show() local [all …]
|
/net/dsa/ |
D | tag_ocelot.c | 7 static void ocelot_xmit_common(struct sk_buff *skb, struct net_device *netdev, in ocelot_xmit_common() argument 10 struct dsa_port *dp = dsa_slave_to_port(netdev); in ocelot_xmit_common() 33 struct net_device *netdev) in ocelot_xmit() argument 35 struct dsa_port *dp = dsa_slave_to_port(netdev); in ocelot_xmit() 38 ocelot_xmit_common(skb, netdev, cpu_to_be32(0x8880000a), &injection); in ocelot_xmit() 45 struct net_device *netdev) in seville_xmit() argument 47 struct dsa_port *dp = dsa_slave_to_port(netdev); in seville_xmit() 50 ocelot_xmit_common(skb, netdev, cpu_to_be32(0x88800005), &injection); in seville_xmit() 57 struct net_device *netdev) in ocelot_rcv() argument 97 skb->dev = dsa_master_find_slave(netdev, 0, src_port); in ocelot_rcv()
|
D | tag_sja1105.c | 183 struct net_device *netdev) in sja1105_imprecise_xmit() argument 185 struct dsa_port *dp = dsa_slave_to_port(netdev); in sja1105_imprecise_xmit() 204 return dsa_8021q_xmit(skb, netdev, sja1105_xmit_tpid(dp), tx_vid); in sja1105_imprecise_xmit() 238 struct net_device *netdev) in sja1105_xmit() argument 240 struct dsa_port *dp = dsa_slave_to_port(netdev); in sja1105_xmit() 243 u8 pcp = netdev_txq_to_tc(netdev, queue_mapping); in sja1105_xmit() 246 return sja1105_imprecise_xmit(skb, netdev); in sja1105_xmit() 260 return dsa_8021q_xmit(skb, netdev, sja1105_xmit_tpid(dp), in sja1105_xmit() 265 struct net_device *netdev) in sja1110_xmit() argument 268 struct dsa_port *dp = dsa_slave_to_port(netdev); in sja1110_xmit() [all …]
|
D | tag_ocelot_8021q.c | 39 struct net_device *netdev) in ocelot_xmit() argument 41 struct dsa_port *dp = dsa_slave_to_port(netdev); in ocelot_xmit() 44 u8 pcp = netdev_txq_to_tc(netdev, queue_mapping); in ocelot_xmit() 50 return dsa_8021q_xmit(skb, netdev, ETH_P_8021Q, in ocelot_xmit() 55 struct net_device *netdev) in ocelot_rcv() argument 61 skb->dev = dsa_master_find_slave(netdev, switch_id, src_port); in ocelot_rcv()
|
/net/atm/ |
D | br2684.c | 631 static void br2684_setup(struct net_device *netdev) in br2684_setup() argument 633 struct br2684_dev *brdev = BRPRIV(netdev); in br2684_setup() 635 ether_setup(netdev); in br2684_setup() 636 netdev->hard_header_len += sizeof(llc_oui_pid_pad); /* worst case */ in br2684_setup() 637 brdev->net_dev = netdev; in br2684_setup() 639 netdev->netdev_ops = &br2684_netdev_ops; in br2684_setup() 644 static void br2684_setup_routed(struct net_device *netdev) in br2684_setup_routed() argument 646 struct br2684_dev *brdev = BRPRIV(netdev); in br2684_setup_routed() 648 brdev->net_dev = netdev; in br2684_setup_routed() 649 netdev->hard_header_len = sizeof(llc_oui_ipv4); /* worst case */ in br2684_setup_routed() [all …]
|
/net/caif/ |
D | chnl_net.c | 48 struct net_device *netdev; member 74 skb->dev = priv->netdev; in chnl_recv_cb() 92 priv->netdev->stats.rx_errors++; in chnl_recv_cb() 105 priv->netdev->stats.rx_packets++; in chnl_recv_cb() 106 priv->netdev->stats.rx_bytes += pktlen; in chnl_recv_cb() 114 if (dev->netdev) in delete_device() 115 unregister_netdevice(dev->netdev); in delete_device() 129 dev_close(dev->netdev); in close_work() 138 dev_hold(priv->netdev); in chnl_hold() 144 dev_put(priv->netdev); in chnl_put() [all …]
|
D | caif_dev.c | 36 struct net_device *netdev; member 104 caifd->netdev = dev; in caif_device_alloc() 117 if (caifd->netdev == dev) in caif_get() 178 skb->dev = caifd->netdev; in transmit() 183 if (likely(caifd->netdev->priv_flags & IFF_NO_QUEUE)) in transmit() 189 if (likely(!netif_queue_stopped(caifd->netdev))) { in transmit() 201 high = (caifd->netdev->tx_queue_len * q_high) / 100; in transmit() 221 netif_queue_stopped(caifd->netdev), in transmit() 259 !netif_oper_up(caifd->netdev)) { in receive() 491 dev_put(caifd->netdev); in caif_device_notify() [all …]
|
/net/mac802154/ |
D | cfg.c | 192 ret = mac802154_wpan_update_llsec(wpan_dev->netdev); in ieee802154_set_pan_id() 269 struct net_device *dev = wpan_dev->netdev; in ieee802154_get_llsec_table() 279 struct net_device *dev = wpan_dev->netdev; in ieee802154_lock_llsec_table() 289 struct net_device *dev = wpan_dev->netdev; in ieee802154_unlock_llsec_table() 301 struct net_device *dev = wpan_dev->netdev; in ieee802154_set_llsec_params() 317 struct net_device *dev = wpan_dev->netdev; in ieee802154_get_llsec_params() 333 struct net_device *dev = wpan_dev->netdev; in ieee802154_add_llsec_key() 348 struct net_device *dev = wpan_dev->netdev; in ieee802154_del_llsec_key() 363 struct net_device *dev = wpan_dev->netdev; in ieee802154_add_seclevel() 378 struct net_device *dev = wpan_dev->netdev; in ieee802154_del_seclevel() [all …]
|
/net/ieee802154/ |
D | core.c | 205 if (!wpan_dev->netdev) in cfg802154_switch_netns() 207 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns() 208 err = dev_change_net_namespace(wpan_dev->netdev, net, "wpan%d"); in cfg802154_switch_netns() 211 wpan_dev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns() 221 if (!wpan_dev->netdev) in cfg802154_switch_netns() 223 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns() 224 err = dev_change_net_namespace(wpan_dev->netdev, net, in cfg802154_switch_netns() 227 wpan_dev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns() 277 wpan_dev->netdev = dev; in cfg802154_netdev_notifier_call()
|
D | nl802154.c | 69 if (have_ifidx && wpan_dev->netdev && in __cfg802154_wpan_dev_from_attrs() 70 wpan_dev->netdev->ifindex == ifidx) { in __cfg802154_wpan_dev_from_attrs() 95 struct net_device *netdev; in __cfg802154_rdev_from_attrs() local 135 netdev = __dev_get_by_index(netns, ifindex); in __cfg802154_rdev_from_attrs() 136 if (netdev) { in __cfg802154_rdev_from_attrs() 137 if (netdev->ieee802154_ptr) in __cfg802154_rdev_from_attrs() 139 netdev->ieee802154_ptr->wpan_phy); in __cfg802154_rdev_from_attrs() 561 struct net_device *netdev; in nl802154_dump_wpan_phy_parse() local 565 netdev = __dev_get_by_index(&init_net, ifidx); in nl802154_dump_wpan_phy_parse() 566 if (!netdev) in nl802154_dump_wpan_phy_parse() [all …]
|
/net/batman-adv/ |
D | hard-interface.c | 89 static struct net *batadv_getlink_net(const struct net_device *netdev, in batadv_getlink_net() argument 92 if (!netdev->rtnl_link_ops) in batadv_getlink_net() 95 if (!netdev->rtnl_link_ops->get_link_net) in batadv_getlink_net() 98 return netdev->rtnl_link_ops->get_link_net(netdev); in batadv_getlink_net() 214 static struct net_device *batadv_get_real_netdevice(struct net_device *netdev) in batadv_get_real_netdevice() argument 224 if (!netdev) in batadv_get_real_netdevice() 227 iflink = dev_get_iflink(netdev); in batadv_get_real_netdevice() 229 dev_hold(netdev); in batadv_get_real_netdevice() 230 return netdev; in batadv_get_real_netdevice() 233 hard_iface = batadv_hardif_get_by_netdev(netdev); in batadv_get_real_netdevice() [all …]
|
/net/phonet/ |
D | pn_dev.c | 54 pnd->netdev = dev; in __phonet_device_alloc() 69 if (pnd->netdev == dev) in __phonet_get() 81 if (pnd->netdev == dev) in __phonet_get_rcu() 117 dev = pnd->netdev; in phonet_device_get() 121 ((pnd->netdev->flags & IFF_UP)) == IFF_UP) in phonet_device_get() 215 if ((pnd->netdev->reg_state != NETREG_REGISTERED) || in phonet_address_lookup() 216 ((pnd->netdev->flags & IFF_UP)) != IFF_UP) in phonet_address_lookup()
|
/net/netfilter/ |
D | nfnetlink_hook.c | 189 struct net_device *netdev; in nfnl_hook_entries_head() local 225 netdev = dev_get_by_name_rcu(net, dev); in nfnl_hook_entries_head() 226 if (!netdev) in nfnl_hook_entries_head() 229 return rcu_dereference(netdev->nf_hooks_ingress); in nfnl_hook_entries_head()
|