Lines Matching refs:dev

23 	struct net_device *dev;  in get_bridge_ifindices()  local
27 for_each_netdev_rcu(net, dev) { in get_bridge_ifindices()
30 if (netif_is_bridge_master(dev)) in get_bridge_ifindices()
31 indices[i++] = dev->ifindex; in get_bridge_ifindices()
45 ifindices[p->port_no] = p->dev->ifindex; in get_port_ifindices()
87 struct net *net = dev_net(br->dev); in add_del_if()
88 struct net_device *dev; in add_del_if() local
94 dev = __dev_get_by_index(net, ifindex); in add_del_if()
95 if (dev == NULL) in add_del_if()
99 ret = br_add_if(br, dev, NULL); in add_del_if()
101 ret = br_del_if(br, dev); in add_del_if()
144 int br_dev_siocdevprivate(struct net_device *dev, struct ifreq *rq, in br_dev_siocdevprivate() argument
147 struct net_bridge *br = netdev_priv(dev); in br_dev_siocdevprivate()
219 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
226 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
233 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
240 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
280 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
287 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
296 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
310 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in br_dev_siocdevprivate()
333 netdev_state_change(br->dev); in br_dev_siocdevprivate()