Lines Matching refs:lhp

262 	cachefs_rl_listhead_t *lhp;  in res_reset()  local
312 lhp = RL_HEAD(resp, CACHEFS_RL_FREE); in res_reset()
313 memset(lhp, 0, sizeof (cachefs_rl_listhead_t)); in res_reset()
314 lhp = RL_HEAD(resp, CACHEFS_RL_NONE); in res_reset()
315 memset(lhp, 0, sizeof (cachefs_rl_listhead_t)); in res_reset()
316 lhp = RL_HEAD(resp, CACHEFS_RL_MF); in res_reset()
317 memset(lhp, 0, sizeof (cachefs_rl_listhead_t)); in res_reset()
318 lhp = RL_HEAD(resp, CACHEFS_RL_ACTIVE); in res_reset()
319 memset(lhp, 0, sizeof (cachefs_rl_listhead_t)); in res_reset()
342 cachefs_rl_listhead_t *lhp; in res_listcheck() local
345 lhp = RL_HEAD(resp, type); in res_listcheck()
346 index = lhp->rli_front; in res_listcheck()
398 if (itemcnt != lhp->rli_itemcnt) { in res_listcheck()
401 lhp->rli_itemcnt, itemcnt); in res_listcheck()
660 cachefs_rl_listhead_t *lhp; in res_rlent_moveto() local
676 lhp = RL_HEAD(resp, otype); in res_rlent_moveto()
677 if ((lhp->rli_back == 0) || (lhp->rli_front == 0)) in res_rlent_moveto()
678 assert((lhp->rli_back == 0) && (lhp->rli_front == 0)); in res_rlent_moveto()
680 if (lhp->rli_back == entno) in res_rlent_moveto()
681 lhp->rli_back = next; in res_rlent_moveto()
682 if (lhp->rli_front == entno) in res_rlent_moveto()
683 lhp->rli_front = prev; in res_rlent_moveto()
692 lhp->rli_blkcnt -= blks; in res_rlent_moveto()
693 lhp->rli_itemcnt--; in res_rlent_moveto()
698 lhp = RL_HEAD(resp, type); in res_rlent_moveto()
702 rl_ent->rl_fwd_idx = lhp->rli_back; in res_rlent_moveto()
704 if (lhp->rli_back != 0) { in res_rlent_moveto()
705 assert(lhp->rli_front != 0); in res_rlent_moveto()
706 rl_ent = res_rlent_get(resp, lhp->rli_back); in res_rlent_moveto()
709 assert(lhp->rli_front == 0); in res_rlent_moveto()
710 lhp->rli_front = entno; in res_rlent_moveto()
712 lhp->rli_back = entno; in res_rlent_moveto()
713 lhp->rli_blkcnt += blks; in res_rlent_moveto()
714 lhp->rli_itemcnt++; in res_rlent_moveto()