Lines Matching refs:lxt_cnt
516 u64 delta = *new_size - rhte->lxt_cnt; in grow_lxt()
539 ngrps_old = LXT_NUM_GROUPS(rhte->lxt_cnt); in grow_lxt()
540 ngrps = LXT_NUM_GROUPS(rhte->lxt_cnt + delta); in grow_lxt()
553 memcpy(lxt, lxt_old, (sizeof(*lxt) * rhte->lxt_cnt)); in grow_lxt()
558 my_new_size = rhte->lxt_cnt + delta; in grow_lxt()
561 for (i = rhte->lxt_cnt; i < my_new_size; i++) { in grow_lxt()
591 rhte->lxt_cnt = my_new_size; in grow_lxt()
636 u64 delta = rhte->lxt_cnt - *new_size; in shrink_lxt()
641 ngrps_old = LXT_NUM_GROUPS(rhte->lxt_cnt); in shrink_lxt()
642 ngrps = LXT_NUM_GROUPS(rhte->lxt_cnt - delta); in shrink_lxt()
656 (sizeof(*lxt) * (rhte->lxt_cnt - delta))); in shrink_lxt()
663 my_new_size = rhte->lxt_cnt - delta; in shrink_lxt()
669 rhte->lxt_cnt = my_new_size; in shrink_lxt()
789 if (new_size > rhte->lxt_cnt) in _cxlflash_vlun_resize()
791 else if (new_size < rhte->lxt_cnt) in _cxlflash_vlun_resize()
1108 ngrps = LXT_NUM_GROUPS(rhte_src->lxt_cnt); in clone_lxt()
1121 (sizeof(*lxt) * rhte_src->lxt_cnt)); in clone_lxt()
1130 for (i = 0; i < rhte_src->lxt_cnt; i++) { in clone_lxt()
1148 rhte->lxt_cnt = rhte_src->lxt_cnt; in clone_lxt()
1164 rhte->lxt_cnt = 0; in clone_lxt()