/net/openvswitch/ |
H A D | vport-internal_dev.c | 33 #include "vport-netdev.h" 39 static struct internal_dev *internal_dev_priv(struct net_device *netdev) argument 41 return netdev_priv(netdev); 45 static struct rtnl_link_stats64 *internal_dev_get_stats(struct net_device *netdev, argument 48 struct vport *vport = ovs_internal_dev_get_vport(netdev); 68 static int internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) argument 71 ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); 76 static int internal_dev_open(struct net_device *netdev) argument 78 netif_start_queue(netdev); 82 static int internal_dev_stop(struct net_device *netdev) argument 88 internal_dev_getinfo(struct net_device *netdev, struct ethtool_drvinfo *info) argument 99 internal_dev_change_mtu(struct net_device *netdev, int new_mtu) argument 129 do_setup(struct net_device *netdev) argument 222 struct net_device *netdev = netdev_vport_priv(vport)->dev; local 249 ovs_is_internal_dev(const struct net_device *netdev) argument 254 ovs_internal_dev_get_vport(struct net_device *netdev) argument [all...] |
/net/caif/ |
H A D | caif_dev.c | 36 struct net_device *netdev; member in struct:caif_device_entry 104 caifd->netdev = dev; 116 if (caifd->netdev == dev) 175 skb->dev = caifd->netdev; 180 if (likely(caifd->netdev->tx_queue_len == 0)) 186 if (likely(!netif_queue_stopped(caifd->netdev))) { 194 high = (caifd->netdev->tx_queue_len * q_high) / 100; 214 netif_queue_stopped(caifd->netdev), 252 !netif_oper_up(caifd->netdev)) { 480 dev_put(caifd->netdev); [all...] |
H A D | cfcnfg.c | 380 struct net_device *netdev; local 425 netdev = phyinfo->dev_info.dev; 427 netdev->mtu);
|
H A D | chnl_net.c | 51 struct net_device *netdev; member in struct:chnl_net 93 skb->dev = priv->netdev; 111 priv->netdev->stats.rx_errors++; 127 priv->netdev->stats.rx_packets++; 128 priv->netdev->stats.rx_bytes += pktlen; 136 if (dev->netdev) 137 unregister_netdevice(dev->netdev); 151 dev_close(dev->netdev); 160 dev_hold(priv->netdev); 166 dev_put(priv->netdev); [all...] |
/net/atm/ |
H A D | br2684.c | 547 * the next one from the netdev queue, when we need it. More than that 601 /* initialize netdev carrier state */ 633 static void br2684_setup(struct net_device *netdev) argument 635 struct br2684_dev *brdev = BRPRIV(netdev); 637 ether_setup(netdev); 638 netdev->hard_header_len += sizeof(llc_oui_pid_pad); /* worst case */ 639 brdev->net_dev = netdev; 641 netdev->netdev_ops = &br2684_netdev_ops; 646 static void br2684_setup_routed(struct net_device *netdev) argument 648 struct br2684_dev *brdev = BRPRIV(netdev); 664 struct net_device *netdev; local [all...] |
/net/wireless/ |
H A D | mlme.c | 59 nl80211_send_rx_auth(rdev, wdev->netdev, buf, len, GFP_KERNEL); 70 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); 72 nl80211_send_deauth(rdev, wdev->netdev, buf, len, GFP_KERNEL); 78 __cfg80211_disconnected(wdev->netdev, NULL, 0, reason_code, from_ap); 89 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); 91 nl80211_send_disassoc(rdev, wdev->netdev, buf, len, GFP_KERNEL); 97 __cfg80211_disconnected(wdev->netdev, NULL, 0, reason_code, from_ap); 749 void cfg80211_cac_event(struct net_device *netdev, argument 753 struct wireless_dev *wdev = netdev->ieee80211_ptr; 758 trace_cfg80211_cac_event(netdev, even [all...] |
H A D | rdev-ops.h | 74 struct net_device *netdev, u8 key_index, 79 trace_rdev_add_key(&rdev->wiphy, netdev, key_index, pairwise, mac_addr); 80 ret = rdev->ops->add_key(&rdev->wiphy, netdev, key_index, pairwise, 87 rdev_get_key(struct cfg80211_registered_device *rdev, struct net_device *netdev, argument 92 trace_rdev_get_key(&rdev->wiphy, netdev, key_index, pairwise, mac_addr); 93 ret = rdev->ops->get_key(&rdev->wiphy, netdev, key_index, pairwise, 100 struct net_device *netdev, u8 key_index, 104 trace_rdev_del_key(&rdev->wiphy, netdev, key_index, pairwise, mac_addr); 105 ret = rdev->ops->del_key(&rdev->wiphy, netdev, key_index, pairwise, 113 struct net_device *netdev, u 73 rdev_add_key(struct cfg80211_registered_device *rdev, struct net_device *netdev, u8 key_index, bool pairwise, const u8 *mac_addr, struct key_params *params) argument 99 rdev_del_key(struct cfg80211_registered_device *rdev, struct net_device *netdev, u8 key_index, bool pairwise, const u8 *mac_addr) argument 112 rdev_set_default_key(struct cfg80211_registered_device *rdev, struct net_device *netdev, u8 key_index, bool unicast, bool multicast) argument 126 rdev_set_default_mgmt_key(struct cfg80211_registered_device *rdev, struct net_device *netdev, u8 key_index) argument 554 rdev_dump_survey(struct cfg80211_registered_device *rdev, struct net_device *netdev, int idx, struct survey_info *info) argument 568 rdev_set_pmksa(struct cfg80211_registered_device *rdev, struct net_device *netdev, struct cfg80211_pmksa *pmksa) argument 579 rdev_del_pmksa(struct cfg80211_registered_device *rdev, struct net_device *netdev, struct cfg80211_pmksa *pmksa) argument 590 rdev_flush_pmksa(struct cfg80211_registered_device *rdev, struct net_device *netdev) argument [all...] |
H A D | nl80211.c | 106 if (have_ifidx && wdev->netdev && 107 wdev->netdev->ifindex == ifidx) { 130 struct net_device *netdev; local 169 netdev = __dev_get_by_index(netns, ifindex); 170 if (netdev) { 171 if (netdev->ieee80211_ptr) 173 netdev->ieee80211_ptr->wiphy); 1724 struct net_device *netdev; local 1728 netdev = __dev_get_by_index(sock_net(skb->sk), ifidx); 1729 if (!netdev) 2020 struct net_device *netdev = info->user_ptr[1]; local 2052 struct net_device *netdev = NULL; local 2477 nl80211_valid_4addr(struct cfg80211_registered_device *rdev, struct net_device *netdev, u8 use_4addr, enum nl80211_iftype iftype) argument 10393 nl80211_send_sched_scan_msg(struct sk_buff *msg, struct cfg80211_registered_device *rdev, struct net_device *netdev, u32 portid, u32 seq, int flags, u32 cmd) argument 10463 nl80211_send_sched_scan_results(struct cfg80211_registered_device *rdev, struct net_device *netdev) argument 10482 nl80211_send_sched_scan(struct cfg80211_registered_device *rdev, struct net_device *netdev, u32 cmd) argument 10562 nl80211_send_mlme_event(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *buf, size_t len, enum nl80211_commands cmd, gfp_t gfp, int uapsd_queues) argument 10610 nl80211_send_rx_auth(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *buf, size_t len, gfp_t gfp) argument 10618 nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *buf, size_t len, gfp_t gfp, int uapsd_queues) argument 10626 nl80211_send_deauth(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *buf, size_t len, gfp_t gfp) argument 10634 nl80211_send_disassoc(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *buf, size_t len, gfp_t gfp) argument 10664 nl80211_send_mlme_timeout(struct cfg80211_registered_device *rdev, struct net_device *netdev, int cmd, const u8 *addr, gfp_t gfp) argument 10698 nl80211_send_auth_timeout(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *addr, gfp_t gfp) argument 10706 nl80211_send_assoc_timeout(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *addr, gfp_t gfp) argument 10714 nl80211_send_connect_result(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *bssid, const u8 *req_ie, size_t req_ie_len, const u8 *resp_ie, size_t resp_ie_len, u16 status, gfp_t gfp) argument 10755 nl80211_send_roamed(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *bssid, const u8 *req_ie, size_t req_ie_len, const u8 *resp_ie, size_t resp_ie_len, gfp_t gfp) argument 10794 nl80211_send_disconnected(struct cfg80211_registered_device *rdev, struct net_device *netdev, u16 reason, const u8 *ie, size_t ie_len, bool from_ap) argument 10832 nl80211_send_ibss_bssid(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *bssid, gfp_t gfp) argument 10907 nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *addr, enum nl80211_key_type key_type, int key_id, const u8 *tsc, gfp_t gfp) argument 11250 struct net_device *netdev = wdev->netdev; local 11291 struct net_device *netdev = wdev->netdev; local 11377 nl80211_gtk_rekey_notify(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *bssid, const u8 *replay_ctr, gfp_t gfp) argument 11434 nl80211_pmksa_candidate_notify(struct cfg80211_registered_device *rdev, struct net_device *netdev, int index, const u8 *bssid, bool preauth, gfp_t gfp) argument 11491 nl80211_ch_switch_notify(struct cfg80211_registered_device *rdev, struct net_device *netdev, struct cfg80211_chan_def *chandef, gfp_t gfp) argument 11603 nl80211_radar_notify(struct cfg80211_registered_device *rdev, const struct cfg80211_chan_def *chandef, enum nl80211_radar_event event, struct net_device *netdev, gfp_t gfp) argument 11994 cfg80211_ft_event(struct net_device *netdev, struct cfg80211_ft_event_params *ft_event) argument [all...] |
/net/bluetooth/ |
H A D | 6lowpan.c | 81 struct net_device *netdev; member in struct:lowpan_dev 89 static inline struct lowpan_dev *lowpan_dev(const struct net_device *netdev) argument 91 return netdev_priv(netdev); 267 static int process_data(struct sk_buff *skb, struct net_device *netdev, argument 276 dev = lowpan_dev(netdev); 285 daddr = dev->netdev->dev_addr; 297 return lowpan_process_data(skb, netdev, 386 if (!dev || !dev->netdev) 389 err = recv_pkt(skb, dev->netdev, chan); 429 static int setup_header(struct sk_buff *skb, struct net_device *netdev, argument 494 header_create(struct sk_buff *skb, struct net_device *netdev, unsigned short type, const void *_daddr, const void *_saddr, unsigned int len) argument 511 send_pkt(struct l2cap_chan *chan, struct sk_buff *skb, struct net_device *netdev) argument 549 send_mcast_pkt(struct sk_buff *skb, struct net_device *netdev) argument 589 bt_xmit(struct sk_buff *skb, struct net_device *netdev) argument 692 set_dev_addr(struct net_device *netdev, bdaddr_t *addr, u8 addr_type) argument 699 ifup(struct net_device *netdev) argument 710 ifdown(struct net_device *netdev) argument 823 struct net_device *netdev; local 1361 struct net_device *netdev = netdev_notifier_info_to_dev(ptr); local [all...] |
/net/dcb/ |
H A D | dcbnl.c | 222 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, argument 225 /* if (!tb[DCB_ATTR_STATE] || !netdev->dcbnl_ops->getstate) */ 226 if (!netdev->dcbnl_ops->getstate) 230 netdev->dcbnl_ops->getstate(netdev)); 233 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, argument 245 if (!netdev->dcbnl_ops->getpfccfg) 265 netdev->dcbnl_ops->getpfccfg(netdev, i - DCB_PFC_UP_ATTR_0, 278 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struc argument 292 dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 336 dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 382 dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 415 dcbnl_getpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 425 dcbnl_setpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 443 dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 512 dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 561 __dcbnl_pg_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, struct nlattr **tb, struct sk_buff *skb, int dir) argument 695 dcbnl_pgtx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 701 dcbnl_pgrx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 707 dcbnl_setstate(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 724 dcbnl_setpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 755 dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 773 __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb, int dir) argument 863 dcbnl_pgtx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 869 dcbnl_pgrx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 875 dcbnl_bcn_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 936 dcbnl_bcn_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 977 dcbnl_build_peer_app(struct net_device *netdev, struct sk_buff* skb, int app_nested_type, int app_info_type, int app_entry_type) argument 1034 dcbnl_ieee_fill(struct sk_buff *skb, struct net_device *netdev) argument 1194 dcbnl_cee_fill(struct sk_buff *skb, struct net_device *netdev) argument 1387 dcbnl_ieee_set(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 1451 dcbnl_ieee_get(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 1462 dcbnl_ieee_del(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 1507 dcbnl_getdcbx(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 1517 dcbnl_setdcbx(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 1534 dcbnl_getfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 1579 dcbnl_setfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 1616 dcbnl_cee_get(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) argument 1669 struct net_device *netdev; local [all...] |
/net/batman-adv/ |
H A D | network-coding.c | 1385 struct net_device *netdev = neigh_node->if_incoming->soft_iface; local 1386 struct batadv_priv *bat_priv = netdev_priv(netdev); 1472 const struct net_device *netdev = neigh_node->if_incoming->soft_iface; local 1473 struct batadv_priv *bat_priv = netdev_priv(netdev);
|
/net/core/ |
H A D | net-sysfs.c | 82 struct net_device *netdev = to_net_dev(dev); local 83 struct net *net = dev_net(netdev); 97 if (dev_isalive(netdev)) { 98 if ((ret = (*set)(netdev, new)) == 0) 175 struct net_device *netdev = to_net_dev(dev); local 176 if (netif_running(netdev)) { 177 return sprintf(buf, fmt_dec, !!netif_carrier_ok(netdev)); 186 struct net_device *netdev = to_net_dev(dev); local 192 if (netif_running(netdev)) { 194 if (!__ethtool_get_settings(netdev, 205 struct net_device *netdev = to_net_dev(dev); local 237 struct net_device *netdev = to_net_dev(dev); local 259 const struct net_device *netdev = to_net_dev(dev); local 279 struct net_device *netdev = to_net_dev(dev); local 331 struct net_device *netdev = to_net_dev(dev); local 354 const struct net_device *netdev = to_net_dev(dev); local 383 struct net_device *netdev = to_net_dev(dev); local [all...] |