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