Lines Matching defs:clhp
1309 umem_cpu_log_header_t *clhp = &lhp->lh_cpu[i];
1310 (void) mutex_init(&clhp->clh_lock, USYNC_THREAD, NULL);
1311 clhp->clh_chunk = i;
1337 umem_cpu_log_header_t *clhp =
1343 (void) mutex_lock(&clhp->clh_lock);
1344 clhp->clh_hits++;
1345 if (size > clhp->clh_avail) {
1348 lhp->lh_free[lhp->lh_tail] = clhp->clh_chunk;
1350 clhp->clh_chunk = lhp->lh_free[lhp->lh_head];
1352 clhp->clh_current = lhp->lh_base +
1353 clhp->clh_chunk * lhp->lh_chunksize;
1354 clhp->clh_avail = lhp->lh_chunksize;
1359 logspace = clhp->clh_current;
1360 clhp->clh_current += size;
1361 clhp->clh_avail -= size;
1363 (void) mutex_unlock(&clhp->clh_lock);