Home
last modified time | relevance | path

Searched refs:netdev (Results 1 – 13 of 13) sorted by relevance

/net/dcb/
Ddcbnl.c198 static int dcbnl_getstate(struct net_device *netdev, struct nlattr **tb, in dcbnl_getstate() argument
204 if (!netdev->dcbnl_ops->getstate) in dcbnl_getstate()
207 ret = dcbnl_reply(netdev->dcbnl_ops->getstate(netdev), RTM_GETDCB, in dcbnl_getstate()
213 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlattr **tb, in dcbnl_getpfccfg() argument
225 if (!tb[DCB_ATTR_PFC_CFG] || !netdev->dcbnl_ops->getpfccfg) in dcbnl_getpfccfg()
255 netdev->dcbnl_ops->getpfccfg(netdev, i - DCB_PFC_UP_ATTR_0, in dcbnl_getpfccfg()
280 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlattr **tb, in dcbnl_getperm_hwaddr() argument
289 if (!netdev->dcbnl_ops->getpermhwaddr) in dcbnl_getperm_hwaddr()
302 netdev->dcbnl_ops->getpermhwaddr(netdev, perm_addr); in dcbnl_getperm_hwaddr()
322 static int dcbnl_getcap(struct net_device *netdev, struct nlattr **tb, in dcbnl_getcap() argument
[all …]
/net/atm/
Dbr2684.c547 static void br2684_setup(struct net_device *netdev) in br2684_setup() argument
549 struct br2684_dev *brdev = BRPRIV(netdev); in br2684_setup()
551 ether_setup(netdev); in br2684_setup()
552 brdev->net_dev = netdev; in br2684_setup()
554 my_eth_mac_addr = netdev->set_mac_address; in br2684_setup()
555 netdev->set_mac_address = br2684_mac_addr; in br2684_setup()
556 netdev->hard_start_xmit = br2684_start_xmit; in br2684_setup()
557 netdev->get_stats = br2684_get_stats; in br2684_setup()
562 static void br2684_setup_routed(struct net_device *netdev) in br2684_setup_routed() argument
564 struct br2684_dev *brdev = BRPRIV(netdev); in br2684_setup_routed()
[all …]
/net/phonet/
Dpn_dev.c45 pnd->netdev = dev; in __phonet_device_alloc()
57 if (pnd->netdev == dev) in __phonet_get()
76 dev = pnd->netdev; in phonet_device_get()
81 ((pnd->netdev->flags & IFF_UP)) == IFF_UP) in phonet_device_get()
149 if (!net_eq(dev_net(pnd->netdev), net)) in phonet_address_lookup()
152 if ((pnd->netdev->reg_state != NETREG_REGISTERED) || in phonet_address_lookup()
153 ((pnd->netdev->flags & IFF_UP)) != IFF_UP) in phonet_address_lookup()
Dpn_netlink.c135 if (!net_eq(dev_net(pnd->netdev), net)) in getaddr_dumpit()
148 if (fill_addr(skb, pnd->netdev, addr << 2, in getaddr_dumpit()
/net/core/
Dnet-sysfs.c126 struct net_device *netdev = to_net_dev(dev); in show_carrier() local
127 if (netif_running(netdev)) { in show_carrier()
128 return sprintf(buf, fmt_dec, !!netif_carrier_ok(netdev)); in show_carrier()
136 struct net_device *netdev = to_net_dev(dev); in show_dormant() local
138 if (netif_running(netdev)) in show_dormant()
139 return sprintf(buf, fmt_dec, !!netif_dormant(netdev)); in show_dormant()
157 const struct net_device *netdev = to_net_dev(dev); in show_operstate() local
161 operstate = netdev->operstate; in show_operstate()
162 if (!netif_running(netdev)) in show_operstate()
217 struct net_device *netdev = to_net_dev(dev); in store_ifalias() local
[all …]
/net/wireless/
Dnl80211.c480 wdev->netdev) < 0) { in nl80211_dump_interface()
503 struct net_device *netdev; in nl80211_get_interface() local
506 err = get_drv_dev_by_info_ifindex(info->attrs, &dev, &netdev); in nl80211_get_interface()
514 if (nl80211_send_iface(msg, info->snd_pid, info->snd_seq, 0, netdev) < 0) in nl80211_get_interface()
517 dev_put(netdev); in nl80211_get_interface()
525 dev_put(netdev); in nl80211_get_interface()
1199 struct net_device *netdev; in nl80211_dump_station() local
1220 netdev = dev_get_by_index(&init_net, ifidx); in nl80211_dump_station()
1221 if (!netdev) in nl80211_dump_station()
1238 err = dev->ops->dump_station(&dev->wiphy, netdev, sta_idx, in nl80211_dump_station()
[all …]
Dcore.c398 dev->ieee80211_ptr->netdev = dev; in cfg80211_netdev_notifier_call()
/net/irda/
Dirlap.c126 self->netdev = dev; in irlap_open()
587 irda_device_set_media_busy(self->netdev, FALSE); in irlap_discovery_confirm()
618 irda_device_set_media_busy(self->netdev, SMALL); in irlap_discovery_indication()
903 IRDA_ASSERT(self->netdev != NULL, return;); in irlap_init_qos_capabilities()
960 irda_device_set_media_busy(self->netdev, TRUE); in irlap_apply_default_connection_parameters()
1148 (self->netdev) ? self->netdev->name : "bug"); in irlap_seq_show()
Dirlap_event.c336 IRDA_ASSERT(self->netdev != NULL, return -1;); in irlap_state_ndm()
515 irda_device_set_media_busy(self->netdev, TRUE); in irlap_state_ndm()
614 if (irda_device_is_receiving(self->netdev) && !self->add_wait) { in irlap_state_query()
750 IRDA_ASSERT(self->netdev != NULL, return -1;); in irlap_state_conn()
877 IRDA_ASSERT(self->netdev != NULL, return -1;); in irlap_state_setup()
913 IRDA_ASSERT(self->netdev != NULL, return -1;); in irlap_state_setup()
1513 if (irda_device_is_receiving(self->netdev) && !self->add_wait) { in irlap_state_nrm_p()
1695 IRDA_ASSERT(self->netdev != NULL, return -1;); in irlap_state_reset()
Dtimer.c228 irda_device_set_media_busy(self->netdev, FALSE); in irlap_media_busy_expired()
Dirlap_frame.c95 skb->dev = self->netdev; in irlap_queue_xmit()
106 self->netdev->name); in irlap_queue_xmit()
/net/bluetooth/bnep/
DMakefile7 bnep-objs := core.o sock.o netdev.o
/net/dsa/
Ddsa.c313 if (pd == NULL || pd->mii_bus == NULL || pd->netdev == NULL) in dsa_probe()
320 dev = dev_to_net_device(pd->netdev); in dsa_probe()