Home
last modified time | relevance | path

Searched refs:ifr (Results 1 – 20 of 20) sorted by relevance

/net/core/
Ddev_ioctl.c24 static int dev_ifname(struct net *net, struct ifreq *ifr) in dev_ifname() argument
26 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ifname()
27 return netdev_get_name(net, ifr->ifr_name, ifr->ifr_ifindex); in dev_ifname()
82 static int dev_getifmap(struct net_device *dev, struct ifreq *ifr) in dev_getifmap() argument
84 struct ifmap *ifmap = &ifr->ifr_map; in dev_getifmap()
109 static int dev_setifmap(struct net_device *dev, struct ifreq *ifr) in dev_setifmap() argument
111 struct compat_ifmap *cifmap = (struct compat_ifmap *)&ifr->ifr_map; in dev_setifmap()
129 return dev->netdev_ops->ndo_set_config(dev, &ifr->ifr_map); in dev_setifmap()
135 static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc_locked() argument
138 struct net_device *dev = dev_get_by_name_rcu(net, ifr->ifr_name); in dev_ifsioc_locked()
[all …]
/net/
Dsocket.c1103 unsigned int cmd, struct ifreq *ifr,
1107 unsigned int cmd, struct ifreq *ifr, in brioctl_set() argument
1117 struct ifreq *ifr, void __user *uarg) in br_ioctl_call() argument
1126 err = br_ioctl_hook(net, br, cmd, ifr, uarg); in br_ioctl_call()
1146 struct ifreq ifr; in sock_do_ioctl() local
1164 if (get_user_ifreq(&ifr, &data, argp)) in sock_do_ioctl()
1166 err = dev_ioctl(net, cmd, &ifr, data, &need_copyout); in sock_do_ioctl()
1168 if (put_user_ifreq(&ifr, argp)) in sock_do_ioctl()
1191 struct ifreq ifr; in sock_ioctl() local
1194 if (get_user_ifreq(&ifr, &data, argp)) in sock_ioctl()
[all …]
/net/ipv4/
Ddevinet.c1009 int devinet_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr) in devinet_ioctl() argument
1012 struct sockaddr_in *sin = (struct sockaddr_in *)&ifr->ifr_addr; in devinet_ioctl()
1021 ifr->ifr_name[IFNAMSIZ - 1] = 0; in devinet_ioctl()
1026 colon = strchr(ifr->ifr_name, ':'); in devinet_ioctl()
1030 dev_load(net, ifr->ifr_name); in devinet_ioctl()
1070 dev = __dev_get_by_name(net, ifr->ifr_name); in devinet_ioctl()
1089 if (!strcmp(ifr->ifr_name, ifa->ifa_label) && in devinet_ioctl()
1103 if (!strcmp(ifr->ifr_name, ifa->ifa_label)) in devinet_ioctl()
1139 if (!(ifr->ifr_flags & IFF_UP)) in devinet_ioctl()
1143 ret = dev_change_flags(dev, ifr->ifr_flags, NULL); in devinet_ioctl()
[all …]
Daf_inet.c944 struct ifreq ifr; in inet_ioctl() local
967 if (get_user_ifreq(&ifr, NULL, p)) in inet_ioctl()
969 err = devinet_ioctl(net, cmd, &ifr); in inet_ioctl()
970 if (!err && put_user_ifreq(&ifr, p)) in inet_ioctl()
980 if (get_user_ifreq(&ifr, NULL, p)) in inet_ioctl()
982 err = devinet_ioctl(net, cmd, &ifr); in inet_ioctl()
Dip_tunnel.c975 int ip_tunnel_siocdevprivate(struct net_device *dev, struct ifreq *ifr, in ip_tunnel_siocdevprivate() argument
/net/ieee802154/
Dsocket.c127 struct ifreq ifr; in ieee802154_dev_ioctl() local
131 if (get_user_ifreq(&ifr, NULL, arg)) in ieee802154_dev_ioctl()
134 ifr.ifr_name[IFNAMSIZ-1] = 0; in ieee802154_dev_ioctl()
136 dev_load(sock_net(sk), ifr.ifr_name); in ieee802154_dev_ioctl()
137 dev = dev_get_by_name(sock_net(sk), ifr.ifr_name); in ieee802154_dev_ioctl()
143 ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, cmd); in ieee802154_dev_ioctl()
145 if (!ret && put_user_ifreq(&ifr, arg)) in ieee802154_dev_ioctl()
/net/dsa/
Dmaster.c190 static int dsa_master_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in dsa_master_ioctl() argument
207 if (dsa_port_supports_hwtstamp(dp, ifr)) in dsa_master_ioctl()
213 err = dev->netdev_ops->ndo_eth_ioctl(dev, ifr, cmd); in dsa_master_ioctl()
Ddsa_priv.h201 bool dsa_port_supports_hwtstamp(struct dsa_port *dp, struct ifreq *ifr);
Dslave.c253 static int dsa_slave_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in dsa_slave_ioctl() argument
263 return ds->ops->port_hwtstamp_get(ds, port, ifr); in dsa_slave_ioctl()
267 return ds->ops->port_hwtstamp_set(ds, port, ifr); in dsa_slave_ioctl()
271 return phylink_mii_ioctl(p->dp->pl, ifr, cmd); in dsa_slave_ioctl()
Dport.c78 bool dsa_port_supports_hwtstamp(struct dsa_port *dp, struct ifreq *ifr) in dsa_port_supports_hwtstamp() argument
90 err = ds->ops->port_hwtstamp_get(ds, dp->index, ifr); in dsa_port_supports_hwtstamp()
/net/bridge/
Dbr_ioctl.c372 struct ifreq *ifr, void __user *uarg) in br_ioctl_stub() argument
407 ret = add_del_if(br, ifr->ifr_ifindex, cmd == SIOCBRADDIF); in br_ioctl_stub()
Dbr_private.h874 struct ifreq *ifr, void __user *uarg);
/net/qrtr/
Daf_qrtr.c1148 struct ifreq ifr; in qrtr_ioctl() local
1168 if (get_user_ifreq(&ifr, NULL, argp)) { in qrtr_ioctl()
1173 sq = (struct sockaddr_qrtr *)&ifr.ifr_addr; in qrtr_ioctl()
1175 if (put_user_ifreq(&ifr, argp)) { in qrtr_ioctl()
/net/8021q/
Dvlan_dev.c356 static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in vlan_dev_ioctl() argument
364 ifrr.ifr_ifru = ifr->ifr_ifru; in vlan_dev_ioctl()
381 ifr->ifr_ifru = ifrr.ifr_ifru; in vlan_dev_ioctl()
/net/mac802154/
Diface.c49 mac802154_wpan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in mac802154_wpan_ioctl() argument
54 (struct sockaddr_ieee802154 *)&ifr->ifr_addr; in mac802154_wpan_ioctl()
/net/ipv6/
Dsit.c1374 ipip6_tunnel_siocdevprivate(struct net_device *dev, struct ifreq *ifr, in ipip6_tunnel_siocdevprivate() argument
1382 return ip_tunnel_siocdevprivate(dev, ifr, data, cmd); in ipip6_tunnel_siocdevprivate()
Dip6_vti.c802 vti6_siocdevprivate(struct net_device *dev, struct ifreq *ifr, void __user *data, int cmd) in vti6_siocdevprivate() argument
Dip6_tunnel.c1624 ip6_tnl_siocdevprivate(struct net_device *dev, struct ifreq *ifr, in ip6_tnl_siocdevprivate() argument
Dip6_gre.c1266 struct ifreq *ifr, void __user *data, in ip6gre_tunnel_siocdevprivate() argument
/net/ethtool/
Dioctl.c2700 int dev_ethtool(struct net *net, struct ifreq *ifr, void __user *useraddr) in dev_ethtool() argument
2702 struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); in dev_ethtool()