Home
last modified time | relevance | path

Searched refs:devname (Results 1 – 19 of 19) sorted by relevance

/net/decnet/
Dsysctl_net_decnet.c193 char devname[17]; in dn_def_dev_handler() local
204 if (copy_from_user(devname, buffer, *lenp)) in dn_def_dev_handler()
207 devname[*lenp] = 0; in dn_def_dev_handler()
208 strip_it(devname); in dn_def_dev_handler()
210 dev = dev_get_by_name(&init_net, devname); in dn_def_dev_handler()
234 strcpy(devname, dev->name); in dn_def_dev_handler()
236 len = strlen(devname); in dn_def_dev_handler()
237 devname[len++] = '\n'; in dn_def_dev_handler()
241 if (copy_to_user(buffer, devname, len)) in dn_def_dev_handler()
Ddn_nsp_in.c76 char *devname = skb->dev ? skb->dev->name : "???"; in dn_log_martian() local
79 msg, devname, in dn_log_martian()
Ddn_route.c511 char *devname = skb->dev ? skb->dev->name : "???"; in dn_route_rx_packet() local
515 (int)cb->rt_flags, devname, skb->len, in dn_route_rx_packet()
/net/ieee802154/
Dnl-phy.c166 const char *devname; in ieee802154_add_iface() local
182 devname = nla_data(info->attrs[IEEE802154_ATTR_DEV_NAME]); in ieee802154_add_iface()
183 if (devname[nla_len(info->attrs[IEEE802154_ATTR_DEV_NAME]) - 1] in ieee802154_add_iface()
188 devname = "wpan%d"; in ieee802154_add_iface()
192 if (strlen(devname) >= IFNAMSIZ) in ieee802154_add_iface()
218 dev = rdev_add_virtual_intf_deprecated(wpan_phy_to_rdev(phy), devname, in ieee802154_add_iface()
/net/x25/
Dx25_proc.c83 const char *devname; in x25_seq_socket_show() local
95 devname = "???"; in x25_seq_socket_show()
97 devname = x25->neighbour->dev->name; in x25_seq_socket_show()
103 devname, x25->lci & 0x0FFF, x25->state, x25->vs, x25->vr, in x25_seq_socket_show()
Dx25_route.c126 struct net_device *x25_dev_get(char *devname) in x25_dev_get() argument
128 struct net_device *dev = dev_get_by_name(&init_net, devname); in x25_dev_get()
/net/core/
Dnetprio_cgroup.c198 char devname[IFNAMSIZ + 1]; in write_priomap() local
203 if (sscanf(buf, "%"__stringify(IFNAMSIZ)"s %u", devname, &prio) != 2) in write_priomap()
206 dev = dev_get_by_name(&init_net, devname); in write_priomap()
Dsock.c606 char devname[IFNAMSIZ]; in sock_setbindtodevice() local
620 memset(devname, 0, sizeof(devname)); in sock_setbindtodevice()
623 if (copy_from_user(devname, optval, optlen)) in sock_setbindtodevice()
627 if (devname[0] != '\0') { in sock_setbindtodevice()
631 dev = dev_get_by_name_rcu(net, devname); in sock_setbindtodevice()
656 char devname[IFNAMSIZ]; in sock_getbindtodevice() local
667 ret = netdev_get_name(net, devname, sk->sk_bound_dev_if); in sock_getbindtodevice()
671 len = strlen(devname) + 1; in sock_getbindtodevice()
674 if (copy_to_user(optval, devname, len)) in sock_getbindtodevice()
Ddevlink.c113 char *devname; in devlink_get_from_attrs() local
119 devname = nla_data(attrs[DEVLINK_ATTR_DEV_NAME]); in devlink_get_from_attrs()
125 strcmp(dev_name(devlink->dev), devname) == 0 && in devlink_get_from_attrs()
/net/9p/
Dtrans_virtio.c652 p9_virtio_create(struct p9_client *client, const char *devname, char *args) in p9_virtio_create() argument
658 if (devname == NULL) in p9_virtio_create()
663 if (!strcmp(devname, chan->tag)) { in p9_virtio_create()
675 pr_err("no channels available for device %s\n", devname); in p9_virtio_create()
/net/ax25/
Daf_ax25.c536 char devname[IFNAMSIZ]; in ax25_setsockopt() local
641 if (copy_from_user(devname, optval, optlen)) { in ax25_setsockopt()
654 dev = __dev_get_by_name(&init_net, devname); in ax25_setsockopt()
685 char devname[IFNAMSIZ]; in ax25_getsockopt() local
754 strlcpy(devname, ax25_dev->dev->name, sizeof(devname)); in ax25_getsockopt()
755 length = strlen(devname) + 1; in ax25_getsockopt()
757 *devname = '\0'; in ax25_getsockopt()
761 valptr = (void *) devname; in ax25_getsockopt()
/net/ipv4/
Dfib_frontend.c533 char devname[IFNAMSIZ]; in rtentry_to_fib_config() local
535 if (copy_from_user(devname, rt->rt_dev, IFNAMSIZ-1)) in rtentry_to_fib_config()
538 devname[IFNAMSIZ-1] = 0; in rtentry_to_fib_config()
539 colon = strchr(devname, ':'); in rtentry_to_fib_config()
542 dev = __dev_get_by_name(net, devname); in rtentry_to_fib_config()
559 if (strcmp(ifa->ifa_label, devname) == 0) in rtentry_to_fib_config()
Dip_tunnel.c1036 struct rtnl_link_ops *ops, char *devname) in ip_tunnel_init_net() argument
1056 if (devname) in ip_tunnel_init_net()
1057 strlcpy(parms.name, devname, IFNAMSIZ); in ip_tunnel_init_net()
/net/netrom/
Daf_netrom.c1253 const char *devname; in nr_info_show() local
1266 devname = "???"; in nr_info_show()
1268 devname = dev->name; in nr_info_show()
1275 devname, in nr_info_show()
Dnr_route.c553 static struct net_device *nr_ax25_dev_get(char *devname) in nr_ax25_dev_get() argument
557 if ((dev = dev_get_by_name(&init_net, devname)) == NULL) in nr_ax25_dev_get()
/net/rose/
Daf_rose.c1378 const char *devname, *callsign; in rose_info_show() local
1382 devname = "???"; in rose_info_show()
1384 devname = dev->name; in rose_info_show()
1399 devname, in rose_info_show()
Drose_route.c590 static struct net_device *rose_ax25_dev_find(char *devname) in rose_ax25_dev_find() argument
594 if ((dev = __dev_get_by_name(&init_net, devname)) == NULL) in rose_ax25_dev_find()
/net/bridge/netfilter/
Debtables.c103 const char *devname; in ebt_dev_check() local
109 devname = device->name; in ebt_dev_check()
111 while (entry[i] != '\0' && entry[i] != 1 && entry[i] == devname[i]) in ebt_dev_check()
113 return devname[i] != entry[i] && entry[i] != 1; in ebt_dev_check()
/net/
Dsocket.c3374 char devname[16]; in routing_ioctl() local
3402 ret |= copy_from_user(devname, compat_ptr(rtdev), 15); in routing_ioctl()
3403 r4.rt_dev = (char __user __force *)devname; in routing_ioctl()
3404 devname[15] = 0; in routing_ioctl()