Lines Matching refs:idef
886 static int ipxitf_create_internal(struct ipx_interface_definition *idef) in ipxitf_create_internal() argument
897 if (!idef->ipx_network) in ipxitf_create_internal()
899 intrfc = ipxitf_find_using_net(idef->ipx_network); in ipxitf_create_internal()
905 intrfc = ipxitf_alloc(NULL, idef->ipx_network, 0, NULL, 1, 0); in ipxitf_create_internal()
909 memcpy((char *)&(intrfc->if_node), idef->ipx_node, IPX_NODE_LEN); in ipxitf_create_internal()
934 static int ipxitf_create(struct ipx_interface_definition *idef) in ipxitf_create() argument
942 if (idef->ipx_special == IPX_INTERNAL) { in ipxitf_create()
943 rc = ipxitf_create_internal(idef); in ipxitf_create()
948 if (idef->ipx_special == IPX_PRIMARY && ipx_primary_net) in ipxitf_create()
951 intrfc = ipxitf_find_using_net(idef->ipx_network); in ipxitf_create()
953 if (idef->ipx_network && intrfc) { in ipxitf_create()
961 dev = dev_get_by_name(&init_net, idef->ipx_device); in ipxitf_create()
966 switch (idef->ipx_dlink_type) { in ipxitf_create()
1004 intrfc = ipxitf_alloc(dev, idef->ipx_network, dlink_type, in ipxitf_create()
1011 if (idef->ipx_special == IPX_PRIMARY) in ipxitf_create()
1013 if (!memcmp(idef->ipx_node, "\000\000\000\000\000\000", in ipxitf_create()
1019 memcpy(intrfc->if_node, idef->ipx_node, IPX_NODE_LEN); in ipxitf_create()
1040 static int ipxitf_delete(struct ipx_interface_definition *idef) in ipxitf_delete() argument
1048 if (idef->ipx_special == IPX_INTERNAL) { in ipxitf_delete()
1057 dlink_type = ipx_map_frame_type(idef->ipx_dlink_type); in ipxitf_delete()
1062 dev = __dev_get_by_name(&init_net, idef->ipx_device); in ipxitf_delete()