Lines Matching refs:clhp
1410 kmem_cpu_log_header_t *clhp = &lhp->lh_cpu[i]; in kmem_log_init() local
1411 mutex_init(&clhp->clh_lock, NULL, MUTEX_DEFAULT, NULL); in kmem_log_init()
1412 clhp->clh_chunk = i; in kmem_log_init()
1428 kmem_cpu_log_header_t *clhp; in kmem_log_enter() local
1433 clhp = &lhp->lh_cpu[CPU->cpu_seqid]; in kmem_log_enter()
1435 mutex_enter(&clhp->clh_lock); in kmem_log_enter()
1436 clhp->clh_hits++; in kmem_log_enter()
1437 if (size > clhp->clh_avail) { in kmem_log_enter()
1440 lhp->lh_free[lhp->lh_tail] = clhp->clh_chunk; in kmem_log_enter()
1442 clhp->clh_chunk = lhp->lh_free[lhp->lh_head]; in kmem_log_enter()
1444 clhp->clh_current = lhp->lh_base + in kmem_log_enter()
1445 clhp->clh_chunk * lhp->lh_chunksize; in kmem_log_enter()
1446 clhp->clh_avail = lhp->lh_chunksize; in kmem_log_enter()
1451 logspace = clhp->clh_current; in kmem_log_enter()
1452 clhp->clh_current += size; in kmem_log_enter()
1453 clhp->clh_avail -= size; in kmem_log_enter()
1455 mutex_exit(&clhp->clh_lock); in kmem_log_enter()