Lines Matching defs:ops
233 const struct rtnl_link_ops *ops,
247 if (strlen(ops->kind) > (IFNAMSIZ - 3))
249 strcpy(name, ops->kind);
254 dev = alloc_netdev(ops->priv_size, name, NET_NAME_UNKNOWN, ops->setup);
261 dev->rtnl_link_ops = ops;
444 int ip_tunnel_encap_add_ops(const struct ip_tunnel_encap_ops *ops,
452 NULL, ops) ? 0 : -1;
456 int ip_tunnel_encap_del_ops(const struct ip_tunnel_encap_ops *ops,
466 ops, NULL) == ops) ? 0 : -1;
1072 struct rtnl_link_ops *ops, char *devname)
1078 itn->rtnl_link_ops = ops;
1082 if (!ops || !net_has_fallback_tunnels(net)) {
1096 itn->fb_tunnel_dev = __ip_tunnel_create(net, ops, &parms);
1114 struct rtnl_link_ops *ops)
1120 if (dev->rtnl_link_ops == ops)
1138 struct rtnl_link_ops *ops)
1147 ip_tunnel_destroy(net, itn, &list, ops);