Lines Matching refs:rhte
440 struct sisl_rht_entry *rhte = NULL; in get_rhte() local
460 rhte = &ctxi->rht_start[rhndl]; in get_rhte()
461 if (unlikely(rhte->nmask == 0)) { in get_rhte()
464 rhte = NULL; in get_rhte()
469 return rhte; in get_rhte()
484 struct sisl_rht_entry *rhte = NULL; in rhte_checkout() local
490 rhte = &ctxi->rht_start[i]; in rhte_checkout()
495 if (likely(rhte)) in rhte_checkout()
498 dev_dbg(dev, "%s: returning rhte=%p index=%d\n", __func__, rhte, i); in rhte_checkout()
499 return rhte; in rhte_checkout()
508 struct sisl_rht_entry *rhte) in rhte_checkin() argument
510 u32 rsrc_handle = rhte - ctxi->rht_start; in rhte_checkin()
512 rhte->nmask = 0; in rhte_checkin()
513 rhte->fp = 0; in rhte_checkin()
526 static void rht_format1(struct sisl_rht_entry *rhte, u64 lun_id, u32 perm, in rht_format1() argument
535 struct sisl_rht_entry_f1 *rhte_f1 = (struct sisl_rht_entry_f1 *)rhte; in rht_format1()
648 struct sisl_rht_entry *rhte; in _cxlflash_disk_release() local
666 rhte = get_rhte(ctxi, rhndl, lli); in _cxlflash_disk_release()
667 if (unlikely(!rhte)) { in _cxlflash_disk_release()
698 rhte_f1 = (struct sisl_rht_entry_f1 *)rhte; in _cxlflash_disk_release()
721 rhte_checkin(ctxi, rhte); in _cxlflash_disk_release()
785 struct sisl_rht_entry *rhte; in create_context() local
795 rhte = (struct sisl_rht_entry *)get_zeroed_page(GFP_KERNEL); in create_context()
796 if (unlikely(!rhte)) { in create_context()
803 ctxi->rht_start = rhte; in create_context()
1844 struct sisl_rht_entry *rhte = NULL; in cxlflash_disk_verify() local
1861 rhte = get_rhte(ctxi, rhndl, lli); in cxlflash_disk_verify()
1862 if (unlikely(!rhte)) { in cxlflash_disk_verify()
1897 last_lba = ((u64)rhte->lxt_cnt * MC_CHUNK_SIZE * gli->blk_len); in cxlflash_disk_verify()
1981 struct sisl_rht_entry *rhte = NULL; in cxlflash_disk_direct_open() local
1998 rhte = rhte_checkout(ctxi, lli); in cxlflash_disk_direct_open()
1999 if (unlikely(!rhte)) { in cxlflash_disk_direct_open()
2006 rsrc_handle = (rhte - ctxi->rht_start); in cxlflash_disk_direct_open()
2008 rht_format1(rhte, lli->lun_id[sdev->channel], ctxi->rht_perms, port); in cxlflash_disk_direct_open()