Lines Matching refs:bcp

813 	umem_bufctl_t *bcp = NULL;
849 for (bcp = *UMEM_HASH(cp, buf); bcp; bcp = bcp->bc_next)
850 if (bcp->bc_addr == buf)
853 if (bcp == NULL && btp != NULL)
854 bcp = btp->bt_bufctl;
855 if (umem_findslab(cp->cache_bufctl_cache, bcp) ==
856 NULL || P2PHASE((uintptr_t)bcp, UMEM_ALIGN) ||
857 bcp->bc_addr != buf) {
859 bcp = NULL;
870 umem_abort_info.ump_bufctl = bcp;
901 umem_printf("bcp ^ bxstat = %lx, should be %lx\n",
930 bufarg, (void *)bcp, cparg->cache_name);
932 if (bcp != NULL && (cp->cache_flags & UMF_AUDIT) &&
937 umem_bufctl_audit_t *bcap = (umem_bufctl_audit_t *)bcp;
1104 #define UMEM_AUDIT(lp, cp, bcp) \
1106 umem_bufctl_audit_t *_bcp = (umem_bufctl_audit_t *)(bcp); \
1119 umem_bufctl_audit_t *bcp;
1120 UMEM_LOCAL_BUFCTL_AUDIT(&bcp);
1122 bzero(bcp, UMEM_BUFCTL_AUDIT_SIZE);
1123 bcp->bc_addr = addr;
1124 bcp->bc_slab = sp;
1125 bcp->bc_cache = cp;
1126 UMEM_AUDIT(lp, cp, bcp);
1141 umem_bufctl_t *bcp;
1178 bcp = _umem_cache_alloc(cp->cache_bufctl_cache, umflag);
1179 if (bcp == NULL)
1183 (umem_bufctl_audit_t *)bcp;
1187 bcp->bc_addr = buf;
1188 bcp->bc_slab = sp;
1190 bcp = UMEM_BUFCTL(cp, buf);
1195 btp->bt_bufctl = bcp;
1196 btp->bt_bxstat = (intptr_t)bcp ^ UMEM_BUFTAG_FREE;
1202 bcp->bc_next = sp->slab_head;
1203 sp->slab_head = bcp;
1213 while ((bcp = sp->slab_head) != NULL) {
1214 sp->slab_head = bcp->bc_next;
1215 _umem_cache_free(cp->cache_bufctl_cache, bcp);
1241 umem_bufctl_t *bcp;
1242 while ((bcp = sp->slab_head) != NULL) {
1243 sp->slab_head = bcp->bc_next;
1244 _umem_cache_free(cp->cache_bufctl_cache, bcp);
1257 umem_bufctl_t *bcp, **hash_bucket;
1292 bcp = sp->slab_head;
1293 if ((sp->slab_head = bcp->bc_next) == NULL) {
1302 buf = bcp->bc_addr;
1304 bcp->bc_next = *hash_bucket;
1305 *hash_bucket = bcp;
1307 UMEM_AUDIT(umem_transaction_log, cp, bcp);
1310 buf = UMEM_BUF(cp, bcp);
1327 umem_bufctl_t *bcp, **prev_bcpp;
1339 while ((bcp = *prev_bcpp) != NULL) {
1340 if (bcp->bc_addr == buf) {
1341 *prev_bcpp = bcp->bc_next;
1342 sp = bcp->bc_slab;
1346 prev_bcpp = &bcp->bc_next;
1349 bcp = UMEM_BUFCTL(cp, buf);
1353 if (bcp == NULL || sp->slab_cache != cp || !UMEM_SLAB_MEMBER(sp, buf)) {
1361 ((umem_bufctl_audit_t *)bcp)->bc_contents =
1364 UMEM_AUDIT(umem_transaction_log, cp, bcp);
1382 bcp->bc_next = sp->slab_head;
1383 sp->slab_head = bcp;
1408 umem_bufctl_audit_t *bcp = (umem_bufctl_audit_t *)btp->bt_bufctl;
1412 if (btp->bt_bxstat != ((intptr_t)bcp ^ UMEM_BUFTAG_FREE)) {
1417 btp->bt_bxstat = (intptr_t)bcp ^ UMEM_BUFTAG_ALLOC;
1419 if ((cp->cache_flags & UMF_HASH) && bcp->bc_addr != buf) {
1450 btp->bt_bxstat = (intptr_t)bcp ^ UMEM_BUFTAG_FREE;
1457 UMEM_AUDIT(umem_transaction_log, cp, bcp);
1467 umem_bufctl_audit_t *bcp = (umem_bufctl_audit_t *)btp->bt_bufctl;
1470 if (btp->bt_bxstat != ((intptr_t)bcp ^ UMEM_BUFTAG_ALLOC)) {
1471 if (btp->bt_bxstat == ((intptr_t)bcp ^ UMEM_BUFTAG_FREE)) {
1483 btp->bt_bxstat = (intptr_t)bcp ^ UMEM_BUFTAG_FREE;
1485 if ((cp->cache_flags & UMF_HASH) && bcp->bc_addr != buf) {
1497 bcp->bc_contents = umem_log_enter(umem_content_log,
1499 UMEM_AUDIT(umem_transaction_log, cp, bcp);
2149 umem_bufctl_t **old_table, **new_table, *bcp;
2177 bcp = old_table[h];
2178 while (bcp != NULL) {
2179 void *addr = bcp->bc_addr;
2180 umem_bufctl_t *next_bcp = bcp->bc_next;
2182 bcp->bc_next = *hash_bucket;
2183 *hash_bucket = bcp;
2184 bcp = next_bcp;