Lines Matching refs:ctxi
622 struct ctx_info *ctxi, in shrink_lxt() argument
631 ctx_hndl_t ctxid = DECODE_CTXID(ctxi->ctxid); in shrink_lxt()
632 bool needs_ws = ctxi->rht_needs_ws[rhndl]; in shrink_lxt()
633 bool needs_sync = !ctxi->err_recovery_active; in shrink_lxt()
686 ctxi->unavail = true; in shrink_lxt()
687 mutex_unlock(&ctxi->mutex); in shrink_lxt()
702 mutex_lock(&ctxi->mutex); in shrink_lxt()
703 ctxi->unavail = false; in shrink_lxt()
730 struct ctx_info *ctxi, in _cxlflash_vlun_resize() argument
769 if (!ctxi) { in _cxlflash_vlun_resize()
770 ctxi = get_context(cfg, rctxid, lli, CTX_CTRL_ERR_FALLBACK); in _cxlflash_vlun_resize()
771 if (unlikely(!ctxi)) { in _cxlflash_vlun_resize()
781 rhte = get_rhte(ctxi, rhndl, lli); in _cxlflash_vlun_resize()
792 rc = shrink_lxt(afu, sdev, rhndl, rhte, ctxi, &new_size); in _cxlflash_vlun_resize()
816 put_context(ctxi); in _cxlflash_vlun_resize()
991 struct ctx_info *ctxi = NULL; in cxlflash_disk_virtual_open() local
1021 ctxi = get_context(cfg, rctxid, lli, 0); in cxlflash_disk_virtual_open()
1022 if (unlikely(!ctxi)) { in cxlflash_disk_virtual_open()
1028 rhte = rhte_checkout(ctxi, lli); in cxlflash_disk_virtual_open()
1036 rsrc_handle = (rhte - ctxi->rht_start); in cxlflash_disk_virtual_open()
1040 rhte->fp = SISL_RHT_FP(0U, ctxi->rht_perms); in cxlflash_disk_virtual_open()
1045 rc = _cxlflash_vlun_resize(sdev, ctxi, &resize); in cxlflash_disk_virtual_open()
1053 ctxi->rht_needs_ws[rsrc_handle] = true; in cxlflash_disk_virtual_open()
1062 if (likely(ctxi)) in cxlflash_disk_virtual_open()
1063 put_context(ctxi); in cxlflash_disk_virtual_open()
1069 rhte_checkin(ctxi, rhte); in cxlflash_disk_virtual_open()