Lines Matching refs:rhte

418 	struct sisl_rht_entry *rhte = NULL;  in get_rhte()  local
437 rhte = &ctxi->rht_start[rhndl]; in get_rhte()
438 if (unlikely(rhte->nmask == 0)) { in get_rhte()
441 rhte = NULL; in get_rhte()
446 return rhte; in get_rhte()
459 struct sisl_rht_entry *rhte = NULL; in rhte_checkout() local
465 rhte = &ctxi->rht_start[i]; in rhte_checkout()
470 if (likely(rhte)) in rhte_checkout()
473 pr_debug("%s: returning rhte=%p (%d)\n", __func__, rhte, i); in rhte_checkout()
474 return rhte; in rhte_checkout()
483 struct sisl_rht_entry *rhte) in rhte_checkin() argument
485 u32 rsrc_handle = rhte - ctxi->rht_start; in rhte_checkin()
487 rhte->nmask = 0; in rhte_checkin()
488 rhte->fp = 0; in rhte_checkin()
501 static void rht_format1(struct sisl_rht_entry *rhte, u64 lun_id, u32 perm, in rht_format1() argument
510 struct sisl_rht_entry_f1 *rhte_f1 = (struct sisl_rht_entry_f1 *)rhte; in rht_format1()
622 struct sisl_rht_entry *rhte; in _cxlflash_disk_release() local
640 rhte = get_rhte(ctxi, rhndl, lli); in _cxlflash_disk_release()
641 if (unlikely(!rhte)) { in _cxlflash_disk_release()
672 rhte_f1 = (struct sisl_rht_entry_f1 *)rhte; in _cxlflash_disk_release()
691 rhte_checkin(ctxi, rhte); in _cxlflash_disk_release()
765 struct sisl_rht_entry *rhte; in create_context() local
775 rhte = (struct sisl_rht_entry *)get_zeroed_page(GFP_KERNEL); in create_context()
776 if (unlikely(!rhte)) { in create_context()
783 ctxi->rht_start = rhte; in create_context()
1776 struct sisl_rht_entry *rhte = NULL; in cxlflash_disk_verify() local
1793 rhte = get_rhte(ctxi, rhndl, lli); in cxlflash_disk_verify()
1794 if (unlikely(!rhte)) { in cxlflash_disk_verify()
1829 last_lba = ((u64)rhte->lxt_cnt * MC_CHUNK_SIZE * gli->blk_len); in cxlflash_disk_verify()
1912 struct sisl_rht_entry *rhte = NULL; in cxlflash_disk_direct_open() local
1930 rhte = rhte_checkout(ctxi, lli); in cxlflash_disk_direct_open()
1931 if (unlikely(!rhte)) { in cxlflash_disk_direct_open()
1937 rsrc_handle = (rhte - ctxi->rht_start); in cxlflash_disk_direct_open()
1939 rht_format1(rhte, lli->lun_id[sdev->channel], ctxi->rht_perms, port); in cxlflash_disk_direct_open()