Lines Matching refs:rhte
508 struct sisl_rht_entry *rhte, in grow_lxt() argument
518 u64 delta = *new_size - rhte->lxt_cnt; in grow_lxt()
539 lxt_old = rhte->lxt_start; in grow_lxt()
540 ngrps_old = LXT_NUM_GROUPS(rhte->lxt_cnt); in grow_lxt()
541 ngrps = LXT_NUM_GROUPS(rhte->lxt_cnt + delta); in grow_lxt()
554 memcpy(lxt, lxt_old, (sizeof(*lxt) * rhte->lxt_cnt)); in grow_lxt()
559 my_new_size = rhte->lxt_cnt + delta; in grow_lxt()
562 for (i = rhte->lxt_cnt; i < my_new_size; i++) { in grow_lxt()
589 rhte->lxt_start = lxt; in grow_lxt()
592 rhte->lxt_cnt = my_new_size; in grow_lxt()
620 struct sisl_rht_entry *rhte, in shrink_lxt() argument
633 u64 delta = rhte->lxt_cnt - *new_size; in shrink_lxt()
637 lxt_old = rhte->lxt_start; in shrink_lxt()
638 ngrps_old = LXT_NUM_GROUPS(rhte->lxt_cnt); in shrink_lxt()
639 ngrps = LXT_NUM_GROUPS(rhte->lxt_cnt - delta); in shrink_lxt()
653 (sizeof(*lxt) * (rhte->lxt_cnt - delta))); in shrink_lxt()
660 my_new_size = rhte->lxt_cnt - delta; in shrink_lxt()
666 rhte->lxt_cnt = my_new_size; in shrink_lxt()
669 rhte->lxt_start = lxt; in shrink_lxt()
743 struct sisl_rht_entry *rhte; in _cxlflash_vlun_resize() local
777 rhte = get_rhte(ctxi, rhndl, lli); in _cxlflash_vlun_resize()
778 if (unlikely(!rhte)) { in _cxlflash_vlun_resize()
784 if (new_size > rhte->lxt_cnt) in _cxlflash_vlun_resize()
785 rc = grow_lxt(afu, sdev, ctxid, rhndl, rhte, &new_size); in _cxlflash_vlun_resize()
786 else if (new_size < rhte->lxt_cnt) in _cxlflash_vlun_resize()
787 rc = shrink_lxt(afu, sdev, rhndl, rhte, ctxi, &new_size); in _cxlflash_vlun_resize()
943 struct sisl_rht_entry *rhte = NULL; in cxlflash_disk_virtual_open() local
981 rhte = rhte_checkout(ctxi, lli); in cxlflash_disk_virtual_open()
982 if (unlikely(!rhte)) { in cxlflash_disk_virtual_open()
988 rsrc_handle = (rhte - ctxi->rht_start); in cxlflash_disk_virtual_open()
991 rhte->nmask = MC_RHT_NMASK; in cxlflash_disk_virtual_open()
992 rhte->fp = SISL_RHT_FP(0U, ctxi->rht_perms); in cxlflash_disk_virtual_open()
1019 rhte_checkin(ctxi, rhte); in cxlflash_disk_virtual_open()
1045 struct sisl_rht_entry *rhte, in clone_lxt() argument
1094 rhte->lxt_start = lxt; in clone_lxt()
1097 rhte->lxt_cnt = rhte_src->lxt_cnt; in clone_lxt()