Home
last modified time | relevance | path

Searched refs:bcp (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_stream.c173 bcache_t *bcp = cdrarg; in bcache_dblk_constructor() local
178 dbp->db_base = kmem_cache_alloc(bcp->buffer_cache, kmflags); in bcache_dblk_constructor()
185 dbp->db_cache = (void *)bcp; in bcache_dblk_constructor()
186 dbp->db_lim = dbp->db_base + bcp->size; in bcache_dblk_constructor()
220 bcache_t *bcp = cdrarg; in bcache_dblk_destructor() local
222 kmem_cache_free(bcp->buffer_cache, dbp->db_base); in bcache_dblk_destructor()
667 bcache_t *bcp = dbp->db_cache; in bcache_dblk_lastfree() local
682 mutex_enter(&bcp->mutex); in bcache_dblk_lastfree()
683 kmem_cache_free(bcp->dblk_cache, dbp); in bcache_dblk_lastfree()
684 bcp->alloc--; in bcache_dblk_lastfree()
[all …]
/illumos-gate/usr/src/lib/libumem/common/
H A Dumem.c1076 umem_bufctl_t *bcp = NULL; in umem_error() local
1112 for (bcp = *UMEM_HASH(cp, buf); bcp; bcp = bcp->bc_next) in umem_error()
1113 if (bcp->bc_addr == buf) in umem_error()
1116 if (bcp == NULL && btp != NULL) in umem_error()
1117 bcp = btp->bt_bufctl; in umem_error()
1118 if (umem_findslab(cp->cache_bufctl_cache, bcp) == in umem_error()
1119 NULL || P2PHASE((uintptr_t)bcp, UMEM_ALIGN) || in umem_error()
1120 bcp->bc_addr != buf) { in umem_error()
1122 bcp = NULL; in umem_error()
1133 umem_abort_info.ump_bufctl = bcp; in umem_error()
[all …]
H A Dumem_impl.h179 #define UMEM_BUF(cp, bcp) \ argument
180 ((void *)((char *)(bcp) - (cp)->cache_bufctl))
/illumos-gate/usr/src/uts/sun4u/io/
H A Dgptwo_cpu.c93 static int set_cpu_common_props(dev_info_t *new_child, struct bca *bcp);
94 static int set_cpu_us3_props(dev_info_t *new_child, struct bca *bcp);
95 static int set_cpu_us4_props(dev_info_t *new_child, struct bca *bcp);
328 struct bca *bcp = arg; in set_cpu_props() local
329 uint_t impl = bcp->impl; in set_cpu_props()
332 if (set_cpu_common_props(new_child, bcp) != DDI_WALK_CONTINUE) in set_cpu_props()
338 rc = set_cpu_us3_props(new_child, bcp); in set_cpu_props()
342 rc = set_cpu_us4_props(new_child, bcp); in set_cpu_props()
366 set_cpu_common_props(dev_info_t *new_child, struct bca *bcp) in set_cpu_common_props() argument
372 cpuid = bcp->cpuid; in set_cpu_common_props()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/
H A Dumem.c787 umem_bufctl_t *bcp; in umem_hash_lookup() local
790 if (mdb_vread(&bcp, sizeof (umem_bufctl_t *), bucket) == -1) { in umem_hash_lookup()
796 while (bcp != NULL) { in umem_hash_lookup()
798 (uintptr_t)bcp) == -1) { in umem_hash_lookup()
799 mdb_warn("unable to read bufctl at %p", bcp); in umem_hash_lookup()
803 *out = (uintptr_t)bcp; in umem_hash_lookup()
806 bcp = bc.bc_next; in umem_hash_lookup()
1300 const umem_bufctl_t *bcp; in umem_walk_step() local
1413 bcp = sp->slab_head; in umem_walk_step()
1425 dprintf(("bcp is %p\n", bcp)); in umem_walk_step()
[all …]
H A Dleaky_subr.c95 leaky_mtab(uintptr_t addr, const umem_bufctl_audit_t *bcp, leak_mtab_t **lmp) in leaky_mtab() argument
99 lm->lkm_base = (uintptr_t)bcp->bc_addr; in leaky_mtab()
791 umem_bufctl_audit_t *bcp; in leaky_subr_add_leak() local
792 UMEM_LOCAL_BUFCTL_AUDIT(&bcp); in leaky_subr_add_leak()
796 if (mdb_vread(bcp, UMEM_BUFCTL_AUDIT_SIZE, addr) == -1) { in leaky_subr_add_leak()
802 depth = MIN(bcp->bc_depth, umem_stack_depth); in leaky_subr_add_leak()
814 leaky_add_leak(TYPE_UMEM, addr, (uintptr_t)bcp->bc_addr, in leaky_subr_add_leak()
815 bcp->bc_timestamp, bcp->bc_stack + 1, depth, in leaky_subr_add_leak()
816 (uintptr_t)bcp->bc_cache, (uintptr_t)bcp->bc_cache); in leaky_subr_add_leak()
1125 umem_bufctl_audit_t *bcp; in leaky_subr_invoke_callback() local
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dkmem.c1256 kmem_bufctl_t *bcp = NULL; in kmem_error() local
1290 for (bcp = *KMEM_HASH(cp, buf); bcp; bcp = bcp->bc_next) in kmem_error()
1291 if (bcp->bc_addr == buf) in kmem_error()
1294 if (bcp == NULL && btp != NULL) in kmem_error()
1295 bcp = btp->bt_bufctl; in kmem_error()
1296 if (kmem_findslab(cp->cache_bufctl_cache, bcp) == in kmem_error()
1297 NULL || P2PHASE((uintptr_t)bcp, KMEM_ALIGN) || in kmem_error()
1298 bcp->bc_addr != buf) { in kmem_error()
1300 bcp = NULL; in kmem_error()
1311 kmem_panic_info.kmp_bufctl = bcp; in kmem_error()
[all …]
H A Dstrsubr.c3590 strbufcall_t *bcp; in runbufcalls() local
3605 for (bcp = strbcalls.bc_head; bcp; bcp = bcp->bc_next) in runbufcalls()
3615 while ((bcp = strbcalls.bc_head) != NULL && nevent) { in runbufcalls()
3618 if (bcp->bc_size <= count) { in runbufcalls()
3619 bcp->bc_executor = curthread; in runbufcalls()
3621 (*bcp->bc_func)(bcp->bc_arg); in runbufcalls()
3623 bcp->bc_executor = NULL; in runbufcalls()
3625 strbcalls.bc_head = bcp->bc_next; in runbufcalls()
3626 kmem_free(bcp, sizeof (strbufcall_t)); in runbufcalls()
3634 if (bcp->bc_next != NULL) { in runbufcalls()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dstream.c246 bcache_t *bcp = cdrarg; in bcache_dblk_constructor() local
251 dbp->db_base = kmem_cache_alloc(bcp->buffer_cache, kmflags); in bcache_dblk_constructor()
258 dbp->db_cache = (void *)bcp; in bcache_dblk_constructor()
259 dbp->db_lim = dbp->db_base + bcp->size; in bcache_dblk_constructor()
293 bcache_t *bcp = cdrarg; in bcache_dblk_destructor() local
295 kmem_cache_free(bcp->buffer_cache, dbp->db_base); in bcache_dblk_destructor()
1033 bcache_t *bcp = dbp->db_cache; in bcache_dblk_lastfree() local
1048 mutex_enter(&bcp->mutex); in bcache_dblk_lastfree()
1049 kmem_cache_free(bcp->dblk_cache, dbp); in bcache_dblk_lastfree()
1050 bcp->alloc--; in bcache_dblk_lastfree()
[all …]
H A Dbridge.c263 bridge_ctl_t *bcp; in link_sdu_fail() local
328 bcp = (bridge_ctl_t *)mp->b_rptr; in link_sdu_fail()
329 bcp->bc_linkid = blp->bl_linkid; in link_sdu_fail()
330 bcp->bc_failed = failed; in link_sdu_fail()
331 mp->b_wptr = (uchar_t *)(bcp + 1); in link_sdu_fail()
/illumos-gate/usr/src/stand/lib/fs/common/
H A Dcache.c513 cache_t *bcp; in get_bcache() local
518 bcp = get_cache(bc_hash[BC_HASH(x_dev, x_blkno, x_len)], &bc_head); in get_bcache()
520 return (bcp ? (caddr_t)bcp->data : 0); in get_bcache()
537 bc_t *bcp; in set_bcache() local
556 bcp = (bc_t *) in set_bcache()
559 bcp->bc_blk = x_blkno; in set_bcache()
560 bcp->bc_hdr.dev = x_dev; in set_bcache()
561 bcp->bc_hdr.size = x_len; in set_bcache()
562 bcp->bc_hdr.data = (void *)fp->fi_memp; in set_bcache()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dkmem.c871 kmem_bufctl_t *bcp; in kmem_hash_lookup() local
874 if (mdb_vread(&bcp, sizeof (kmem_bufctl_t *), bucket) == -1) { in kmem_hash_lookup()
880 while (bcp != NULL) { in kmem_hash_lookup()
882 (uintptr_t)bcp) == -1) { in kmem_hash_lookup()
883 mdb_warn("unable to read bufctl at %p", bcp); in kmem_hash_lookup()
887 *out = (uintptr_t)bcp; in kmem_hash_lookup()
890 bcp = bc.bc_next; in kmem_hash_lookup()
1345 const kmem_bufctl_t *bcp; in kmem_walk_step() local
1465 bcp = sp->slab_head; in kmem_walk_step()
1477 dprintf(("bcp is %p\n", bcp)); in kmem_walk_step()
[all …]
H A Dleaky_subr.c70 leaky_mtab(uintptr_t addr, const kmem_bufctl_audit_t *bcp, leak_mtab_t **lmp) in leaky_mtab() argument
74 lm->lkm_base = (uintptr_t)bcp->bc_addr; in leaky_mtab()
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_debug.c938 u_char *bcp; local
1030 bcp = binary;
1031 *bcp++ = (u_int8_t) 0; /*%< version byte */
1032 *bcp++ = siz;
1033 *bcp++ = hp;
1034 *bcp++ = vp;
1035 PUTLONG(latit,bcp);
1036 PUTLONG(longit,bcp);
1037 PUTLONG(alt,bcp);
/illumos-gate/usr/src/uts/common/sys/
H A Dkmem_impl.h171 #define KMEM_BUF(cp, bcp) \ argument
172 ((void *)((char *)(bcp) - (cp)->cache_bufctl))
/illumos-gate/usr/src/cmd/sgs/tools/
H A DSUNWonld-README1278 6568447 bcp is broken by 6551627