Lines Matching refs:rhte
504 struct sisl_rht_entry *rhte, in grow_lxt() argument
516 u64 delta = *new_size - rhte->lxt_cnt; in grow_lxt()
538 lxt_old = rhte->lxt_start; 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()
588 rhte->lxt_start = lxt; in grow_lxt()
591 rhte->lxt_cnt = my_new_size; in grow_lxt()
621 struct sisl_rht_entry *rhte, in shrink_lxt() argument
636 u64 delta = rhte->lxt_cnt - *new_size; in shrink_lxt()
640 lxt_old = rhte->lxt_start; 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()
672 rhte->lxt_start = lxt; in shrink_lxt()
746 struct sisl_rht_entry *rhte; in _cxlflash_vlun_resize() local
781 rhte = get_rhte(ctxi, rhndl, lli); in _cxlflash_vlun_resize()
782 if (unlikely(!rhte)) { in _cxlflash_vlun_resize()
789 if (new_size > rhte->lxt_cnt) in _cxlflash_vlun_resize()
790 rc = grow_lxt(afu, sdev, ctxid, rhndl, rhte, &new_size); in _cxlflash_vlun_resize()
791 else if (new_size < rhte->lxt_cnt) in _cxlflash_vlun_resize()
792 rc = shrink_lxt(afu, sdev, rhndl, rhte, ctxi, &new_size); in _cxlflash_vlun_resize()
992 struct sisl_rht_entry *rhte = NULL; in cxlflash_disk_virtual_open() local
1028 rhte = rhte_checkout(ctxi, lli); in cxlflash_disk_virtual_open()
1029 if (unlikely(!rhte)) { in cxlflash_disk_virtual_open()
1036 rsrc_handle = (rhte - ctxi->rht_start); in cxlflash_disk_virtual_open()
1039 rhte->nmask = MC_RHT_NMASK; in cxlflash_disk_virtual_open()
1040 rhte->fp = SISL_RHT_FP(0U, ctxi->rht_perms); in cxlflash_disk_virtual_open()
1069 rhte_checkin(ctxi, rhte); in cxlflash_disk_virtual_open()
1095 struct sisl_rht_entry *rhte, in clone_lxt() argument
1145 rhte->lxt_start = lxt; in clone_lxt()
1148 rhte->lxt_cnt = rhte_src->lxt_cnt; in clone_lxt()
1164 rhte->lxt_cnt = 0; in clone_lxt()
1166 rhte->lxt_start = NULL; in clone_lxt()