Lines Matching defs:newct
2267 struct cfiscsi_target *ct, *newct;
2272 newct = malloc(sizeof(*newct), M_CFISCSI, M_WAITOK | M_ZERO);
2282 free(newct, M_CFISCSI);
2286 strlcpy(newct->ct_name, name, sizeof(newct->ct_name));
2288 strlcpy(newct->ct_alias, alias, sizeof(newct->ct_alias));
2289 newct->ct_tag = tag;
2290 refcount_init(&newct->ct_refcount, 1);
2291 newct->ct_softc = softc;
2294 newct->ct_target_id = ++softc->last_target_id;
2295 TAILQ_INSERT_TAIL(&softc->targets, newct, ct_next);
2298 return (newct);