Lines Matching refs:clhp
1453 kmem_cpu_log_header_t *clhp = &lhp->lh_cpu[i]; in kmem_log_init() local
1454 mutex_init(&clhp->clh_lock, NULL, MUTEX_DEFAULT, NULL); in kmem_log_init()
1455 clhp->clh_chunk = i; in kmem_log_init()
1471 kmem_cpu_log_header_t *clhp = &lhp->lh_cpu[CPU->cpu_seqid]; in kmem_log_enter() local
1476 mutex_enter(&clhp->clh_lock); in kmem_log_enter()
1477 clhp->clh_hits++; in kmem_log_enter()
1478 if (size > clhp->clh_avail) { in kmem_log_enter()
1481 lhp->lh_free[lhp->lh_tail] = clhp->clh_chunk; in kmem_log_enter()
1483 clhp->clh_chunk = lhp->lh_free[lhp->lh_head]; in kmem_log_enter()
1485 clhp->clh_current = lhp->lh_base + in kmem_log_enter()
1486 clhp->clh_chunk * lhp->lh_chunksize; in kmem_log_enter()
1487 clhp->clh_avail = lhp->lh_chunksize; in kmem_log_enter()
1492 logspace = clhp->clh_current; in kmem_log_enter()
1493 clhp->clh_current += size; in kmem_log_enter()
1494 clhp->clh_avail -= size; in kmem_log_enter()
1496 mutex_exit(&clhp->clh_lock); in kmem_log_enter()