Lines Matching refs:ctgp
1269 struct ctgas *ctgp;
1270 if ((ctgp = kmem_zalloc(sizeof (*ctgp), KM_NOSLEEP)) != NULL) {
1271 ctgp->ctg_addr = addr;
1272 ctgp->ctg_size = size;
1274 avl_add(&ctgtree, ctgp);
1277 return (ctgp);
1286 struct ctgas *ctgp;
1292 if ((ctgp = avl_find(&ctgtree, &find, NULL)) != NULL) {
1293 avl_remove(&ctgtree, ctgp);
1297 if (ctgp != NULL) {
1298 sz = ctgp->ctg_size;
1299 kmem_free(ctgp, sizeof (*ctgp));