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.c84 char *devname = skb->dev ? skb->dev->name : "???"; in dn_log_martian() local
87 msg, devname, in dn_log_martian()
Ddn_route.c519 char *devname = skb->dev ? skb->dev->name : "???"; in dn_route_rx_packet() local
523 (int)cb->rt_flags, devname, skb->len, in dn_route_rx_packet()
/net/ieee802154/
Dnl-phy.c174 const char *devname; in ieee802154_add_iface() local
190 devname = nla_data(info->attrs[IEEE802154_ATTR_DEV_NAME]); in ieee802154_add_iface()
191 if (devname[nla_len(info->attrs[IEEE802154_ATTR_DEV_NAME]) - 1] in ieee802154_add_iface()
196 devname = "wpan%d"; in ieee802154_add_iface()
200 if (strlen(devname) >= IFNAMSIZ) in ieee802154_add_iface()
226 dev = rdev_add_virtual_intf_deprecated(wpan_phy_to_rdev(phy), devname, in ieee802154_add_iface()
/net/x25/
Dx25_proc.c88 const char *devname; in x25_seq_socket_show() local
100 devname = "???"; in x25_seq_socket_show()
102 devname = x25->neighbour->dev->name; in x25_seq_socket_show()
108 devname, x25->lci & 0x0FFF, x25->state, x25->vs, x25->vr, in x25_seq_socket_show()
Dx25_route.c131 struct net_device *x25_dev_get(char *devname) in x25_dev_get() argument
133 struct net_device *dev = dev_get_by_name(&init_net, devname); in x25_dev_get()
/net/core/
Dnetprio_cgroup.c203 char devname[IFNAMSIZ + 1]; in write_priomap() local
208 if (sscanf(buf, "%"__stringify(IFNAMSIZ)"s %u", devname, &prio) != 2) in write_priomap()
211 dev = dev_get_by_name(&init_net, devname); in write_priomap()
Dsock.c567 char devname[IFNAMSIZ]; in sock_setbindtodevice() local
586 memset(devname, 0, sizeof(devname)); in sock_setbindtodevice()
589 if (copy_from_user(devname, optval, optlen)) in sock_setbindtodevice()
593 if (devname[0] != '\0') { in sock_setbindtodevice()
597 dev = dev_get_by_name_rcu(net, devname); in sock_setbindtodevice()
625 char devname[IFNAMSIZ]; in sock_getbindtodevice() local
636 ret = netdev_get_name(net, devname, sk->sk_bound_dev_if); in sock_getbindtodevice()
640 len = strlen(devname) + 1; in sock_getbindtodevice()
643 if (copy_to_user(optval, devname, len)) in sock_getbindtodevice()
Ddevlink.c116 char *devname; in devlink_get_from_attrs() local
122 devname = nla_data(attrs[DEVLINK_ATTR_DEV_NAME]); in devlink_get_from_attrs()
126 strcmp(dev_name(devlink->dev), devname) == 0 && in devlink_get_from_attrs()
/net/9p/
Dtrans_virtio.c649 p9_virtio_create(struct p9_client *client, const char *devname, char *args) in p9_virtio_create() argument
655 if (devname == NULL) in p9_virtio_create()
660 if (!strncmp(devname, chan->tag, chan->tag_len) && in p9_virtio_create()
661 strlen(devname) == chan->tag_len) { in p9_virtio_create()
673 pr_err("no channels available for device %s\n", devname); in p9_virtio_create()
/net/ax25/
Daf_ax25.c540 char devname[IFNAMSIZ]; in ax25_setsockopt() local
645 if (copy_from_user(devname, optval, optlen)) { in ax25_setsockopt()
658 dev = __dev_get_by_name(&init_net, devname); in ax25_setsockopt()
689 char devname[IFNAMSIZ]; in ax25_getsockopt() local
758 strlcpy(devname, ax25_dev->dev->name, sizeof(devname)); in ax25_getsockopt()
759 length = strlen(devname) + 1; in ax25_getsockopt()
761 *devname = '\0'; in ax25_getsockopt()
765 valptr = (void *) devname; in ax25_getsockopt()
/net/ipv4/
Dfib_frontend.c492 char devname[IFNAMSIZ]; in rtentry_to_fib_config() local
494 if (copy_from_user(devname, rt->rt_dev, IFNAMSIZ-1)) in rtentry_to_fib_config()
497 devname[IFNAMSIZ-1] = 0; in rtentry_to_fib_config()
498 colon = strchr(devname, ':'); in rtentry_to_fib_config()
501 dev = __dev_get_by_name(net, devname); in rtentry_to_fib_config()
513 if (strcmp(ifa->ifa_label, devname) == 0) in rtentry_to_fib_config()
Dip_tunnel.c1020 struct rtnl_link_ops *ops, char *devname) in ip_tunnel_init_net() argument
1035 if (devname) in ip_tunnel_init_net()
1036 strlcpy(parms.name, devname, IFNAMSIZ); in ip_tunnel_init_net()
/net/netrom/
Daf_netrom.c1290 const char *devname; in nr_info_show() local
1303 devname = "???"; in nr_info_show()
1305 devname = dev->name; in nr_info_show()
1312 devname, in nr_info_show()
Dnr_route.c580 static struct net_device *nr_ax25_dev_get(char *devname) in nr_ax25_dev_get() argument
584 if ((dev = dev_get_by_name(&init_net, devname)) == NULL) in nr_ax25_dev_get()
/net/rose/
Daf_rose.c1408 const char *devname, *callsign; in rose_info_show() local
1412 devname = "???"; in rose_info_show()
1414 devname = dev->name; in rose_info_show()
1429 devname, in rose_info_show()
Drose_route.c591 static struct net_device *rose_ax25_dev_find(char *devname) in rose_ax25_dev_find() argument
595 if ((dev = __dev_get_by_name(&init_net, devname)) == NULL) in rose_ax25_dev_find()
/net/bridge/netfilter/
Debtables.c107 const char *devname; in ebt_dev_check() local
113 devname = device->name; in ebt_dev_check()
115 while (entry[i] != '\0' && entry[i] != 1 && entry[i] == devname[i]) in ebt_dev_check()
117 return devname[i] != entry[i] && entry[i] != 1; in ebt_dev_check()
/net/
Dsocket.c3111 char devname[16]; in routing_ioctl() local
3139 ret |= copy_from_user(devname, compat_ptr(rtdev), 15); in routing_ioctl()
3140 r4.rt_dev = (char __user __force *)devname; in routing_ioctl()
3141 devname[15] = 0; in routing_ioctl()