Lines Matching defs:clhp
1452 kmem_cpu_log_header_t *clhp = &lhp->lh_cpu[i];
1453 mutex_init(&clhp->clh_lock, NULL, MUTEX_DEFAULT, NULL);
1454 clhp->clh_chunk = i;
1470 kmem_cpu_log_header_t *clhp = &lhp->lh_cpu[CPU->cpu_seqid];
1475 mutex_enter(&clhp->clh_lock);
1476 clhp->clh_hits++;
1477 if (size > clhp->clh_avail) {
1480 lhp->lh_free[lhp->lh_tail] = clhp->clh_chunk;
1482 clhp->clh_chunk = lhp->lh_free[lhp->lh_head];
1484 clhp->clh_current = lhp->lh_base +
1485 clhp->clh_chunk * lhp->lh_chunksize;
1486 clhp->clh_avail = lhp->lh_chunksize;
1491 logspace = clhp->clh_current;
1492 clhp->clh_current += size;
1493 clhp->clh_avail -= size;
1495 mutex_exit(&clhp->clh_lock);