Lines Matching refs:ctxi
621 struct ctx_info *ctxi, in shrink_lxt() argument
628 ctx_hndl_t ctxid = DECODE_CTXID(ctxi->ctxid); in shrink_lxt()
629 bool needs_ws = ctxi->rht_needs_ws[rhndl]; in shrink_lxt()
630 bool needs_sync = !ctxi->err_recovery_active; in shrink_lxt()
680 ctxi->unavail = true; in shrink_lxt()
681 mutex_unlock(&ctxi->mutex); in shrink_lxt()
700 mutex_lock(&ctxi->mutex); in shrink_lxt()
701 ctxi->unavail = false; in shrink_lxt()
728 struct ctx_info *ctxi, in _cxlflash_vlun_resize() argument
766 if (!ctxi) { in _cxlflash_vlun_resize()
767 ctxi = get_context(cfg, rctxid, lli, CTX_CTRL_ERR_FALLBACK); in _cxlflash_vlun_resize()
768 if (unlikely(!ctxi)) { in _cxlflash_vlun_resize()
777 rhte = get_rhte(ctxi, rhndl, lli); in _cxlflash_vlun_resize()
787 rc = shrink_lxt(afu, sdev, rhndl, rhte, ctxi, &new_size); in _cxlflash_vlun_resize()
796 put_context(ctxi); in _cxlflash_vlun_resize()
942 struct ctx_info *ctxi = NULL; in cxlflash_disk_virtual_open() local
974 ctxi = get_context(cfg, rctxid, lli, 0); in cxlflash_disk_virtual_open()
975 if (unlikely(!ctxi)) { in cxlflash_disk_virtual_open()
981 rhte = rhte_checkout(ctxi, lli); in cxlflash_disk_virtual_open()
988 rsrc_handle = (rhte - ctxi->rht_start); in cxlflash_disk_virtual_open()
992 rhte->fp = SISL_RHT_FP(0U, ctxi->rht_perms); in cxlflash_disk_virtual_open()
997 rc = _cxlflash_vlun_resize(sdev, ctxi, &resize); in cxlflash_disk_virtual_open()
1005 ctxi->rht_needs_ws[rsrc_handle] = true; in cxlflash_disk_virtual_open()
1012 if (likely(ctxi)) in cxlflash_disk_virtual_open()
1013 put_context(ctxi); in cxlflash_disk_virtual_open()
1019 rhte_checkin(ctxi, rhte); in cxlflash_disk_virtual_open()