Lines Matching refs:ifd

114 		    struct ifc_data_nl *ifd);
190 ifc_create_ifp(const char *name, struct ifc_data *ifd, struct ifnet **ifpp) in ifc_create_ifp() argument
198 .flags = ifd->flags, in ifc_create_ifp()
199 .unit = ifd->unit, in ifc_create_ifp()
200 .params = ifd->params, in ifc_create_ifp()
212 ifc_create_ifp_nl(const char *name, struct ifc_data_nl *ifd) in ifc_create_ifp_nl() argument
216 ifd->error = EINVAL; in ifc_create_ifp_nl()
220 ifd->error = if_clone_createif_nl(ifc, name, ifd); in ifc_create_ifp_nl()
228 struct ifc_data ifd = { .params = params }; in if_clone_create() local
231 int error = ifc_create_ifp(name, &ifd, &ifp); in if_clone_create()
240 ifc_modify_ifp_nl(struct ifnet *ifp, struct ifc_data_nl *ifd) in ifc_modify_ifp_nl() argument
244 ifd->error = EINVAL; in ifc_modify_ifp_nl()
248 ifd->error = (*ifc->modify_nl)(ifp, ifd); in ifc_modify_ifp_nl()
265 struct ifc_data_nl *ifd) in ifc_create_ifp_nl_default() argument
268 .flags = ifd->flags, in ifc_create_ifp_nl_default()
269 .unit = ifd->unit, in ifc_create_ifp_nl_default()
270 .params = ifd->params, in ifc_create_ifp_nl_default()
273 return ((*ifc->ifc_create)(ifc, name, len, &ifd_new, &ifd->ifp)); in ifc_create_ifp_nl_default()
277 ifc_modify_ifp_nl_default(struct ifnet *ifp, struct ifc_data_nl *ifd) in ifc_modify_ifp_nl_default() argument
279 if (ifd->lattrs != NULL) in ifc_modify_ifp_nl_default()
280 return (nl_modify_ifp_generic(ifp, ifd->lattrs, ifd->bm, ifd->npt)); in ifc_modify_ifp_nl_default()
377 if_clone_createif_nl(struct if_clone *ifc, const char *ifname, struct ifc_data_nl *ifd) in if_clone_createif_nl() argument
388 if ((error = ifc_handle_unit(ifc, name, sizeof(name), &ifd->unit)) != 0) in if_clone_createif_nl()
392 if (ifd->lattrs != NULL) in if_clone_createif_nl()
393 error = (*ifc->create_nl)(ifc, name, sizeof(name), ifd); in if_clone_createif_nl()
395 error = ifc_create_ifp_nl_default(ifc, name, sizeof(name), ifd); in if_clone_createif_nl()
398 ifc_free_unit(ifc, ifd->unit); in if_clone_createif_nl()
402 MPASS(ifd->ifp != NULL); in if_clone_createif_nl()
403 if_clone_addif(ifc, ifd->ifp); in if_clone_createif_nl()
405 if (ifd->lattrs != NULL) in if_clone_createif_nl()
406 error = (*ifc->modify_nl)(ifd->ifp, ifd); in if_clone_createif_nl()
645 struct ifc_data_nl ifd = {}; in if_clone_simple() local
648 error = if_clone_createif_nl(ifc, name, &ifd); in if_clone_simple()
940 ifc_copyin(const struct ifc_data *ifd, void *target, size_t len) in ifc_copyin() argument
942 if (ifd->params == NULL) in ifc_copyin()
945 if (ifd->flags & IFC_F_SYSSPACE) { in ifc_copyin()
946 memcpy(target, ifd->params, len); in ifc_copyin()
949 return (copyin(ifd->params, target, len)); in ifc_copyin()