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