ctxi              131 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi;
ctxi              133 drivers/scsi/cxlflash/superpipe.c 	list_for_each_entry(ctxi, &cfg->ctx_err_recovery, list)
ctxi              134 drivers/scsi/cxlflash/superpipe.c 		if ((ctxi->ctxid == rctxid) || (ctxi->file == file))
ctxi              135 drivers/scsi/cxlflash/superpipe.c 			return ctxi;
ctxi              159 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi              178 drivers/scsi/cxlflash/superpipe.c 			ctxi = cfg->ctx_tbl[ctxid];
ctxi              179 drivers/scsi/cxlflash/superpipe.c 			if (ctxi)
ctxi              180 drivers/scsi/cxlflash/superpipe.c 				if ((file && (ctxi->file != file)) ||
ctxi              181 drivers/scsi/cxlflash/superpipe.c 				    (!file && (ctxi->ctxid != rctxid)))
ctxi              182 drivers/scsi/cxlflash/superpipe.c 					ctxi = NULL;
ctxi              185 drivers/scsi/cxlflash/superpipe.c 			    (!ctxi && (ctx_ctrl & CTX_CTRL_ERR_FALLBACK)))
ctxi              186 drivers/scsi/cxlflash/superpipe.c 				ctxi = find_error_context(cfg, rctxid, file);
ctxi              187 drivers/scsi/cxlflash/superpipe.c 			if (!ctxi) {
ctxi              204 drivers/scsi/cxlflash/superpipe.c 			rc = mutex_trylock(&ctxi->mutex);
ctxi              210 drivers/scsi/cxlflash/superpipe.c 		if (ctxi->unavail)
ctxi              213 drivers/scsi/cxlflash/superpipe.c 		ctxpid = ctxi->pid;
ctxi              219 drivers/scsi/cxlflash/superpipe.c 			list_for_each_entry(lun_access, &ctxi->luns, list)
ctxi              228 drivers/scsi/cxlflash/superpipe.c 		"ctx_ctrl=%u\n", __func__, rctxid, ctxi, ctxpid, pid,
ctxi              231 drivers/scsi/cxlflash/superpipe.c 	return ctxi;
ctxi              234 drivers/scsi/cxlflash/superpipe.c 	mutex_unlock(&ctxi->mutex);
ctxi              235 drivers/scsi/cxlflash/superpipe.c 	ctxi = NULL;
ctxi              245 drivers/scsi/cxlflash/superpipe.c void put_context(struct ctx_info *ctxi)
ctxi              247 drivers/scsi/cxlflash/superpipe.c 	mutex_unlock(&ctxi->mutex);
ctxi              261 drivers/scsi/cxlflash/superpipe.c static int afu_attach(struct cxlflash_cfg *cfg, struct ctx_info *ctxi)
ctxi              265 drivers/scsi/cxlflash/superpipe.c 	struct sisl_ctrl_map __iomem *ctrl_map = ctxi->ctrl_map;
ctxi              285 drivers/scsi/cxlflash/superpipe.c 		for (i = 0; i < ctxi->irqs; i++) {
ctxi              286 drivers/scsi/cxlflash/superpipe.c 			val = cfg->ops->get_irq_objhndl(ctxi->ctx, i);
ctxi              297 drivers/scsi/cxlflash/superpipe.c 	writeq_be((u64)ctxi->rht_start, &ctrl_map->rht_start);
ctxi              436 drivers/scsi/cxlflash/superpipe.c struct sisl_rht_entry *get_rhte(struct ctx_info *ctxi, res_hndl_t rhndl,
ctxi              439 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = ctxi->cfg;
ctxi              443 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(!ctxi->rht_start)) {
ctxi              455 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(ctxi->rht_lun[rhndl] != lli)) {
ctxi              461 drivers/scsi/cxlflash/superpipe.c 	rhte = &ctxi->rht_start[rhndl];
ctxi              480 drivers/scsi/cxlflash/superpipe.c struct sisl_rht_entry *rhte_checkout(struct ctx_info *ctxi,
ctxi              483 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = ctxi->cfg;
ctxi              490 drivers/scsi/cxlflash/superpipe.c 		if (ctxi->rht_start[i].nmask == 0) {
ctxi              491 drivers/scsi/cxlflash/superpipe.c 			rhte = &ctxi->rht_start[i];
ctxi              492 drivers/scsi/cxlflash/superpipe.c 			ctxi->rht_out++;
ctxi              497 drivers/scsi/cxlflash/superpipe.c 		ctxi->rht_lun[i] = lli;
ctxi              508 drivers/scsi/cxlflash/superpipe.c void rhte_checkin(struct ctx_info *ctxi,
ctxi              511 drivers/scsi/cxlflash/superpipe.c 	u32 rsrc_handle = rhte - ctxi->rht_start;
ctxi              515 drivers/scsi/cxlflash/superpipe.c 	ctxi->rht_out--;
ctxi              516 drivers/scsi/cxlflash/superpipe.c 	ctxi->rht_lun[rsrc_handle] = NULL;
ctxi              517 drivers/scsi/cxlflash/superpipe.c 	ctxi->rht_needs_ws[rsrc_handle] = false;
ctxi              631 drivers/scsi/cxlflash/superpipe.c 			   struct ctx_info *ctxi,
ctxi              655 drivers/scsi/cxlflash/superpipe.c 	if (!ctxi) {
ctxi              656 drivers/scsi/cxlflash/superpipe.c 		ctxi = get_context(cfg, rctxid, lli, CTX_CTRL_ERR_FALLBACK);
ctxi              657 drivers/scsi/cxlflash/superpipe.c 		if (unlikely(!ctxi)) {
ctxi              667 drivers/scsi/cxlflash/superpipe.c 	rhte = get_rhte(ctxi, rhndl, lli);
ctxi              686 drivers/scsi/cxlflash/superpipe.c 		rc = _cxlflash_vlun_resize(sdev, ctxi, &size);
ctxi              710 drivers/scsi/cxlflash/superpipe.c 		if (!ctxi->err_recovery_active) {
ctxi              722 drivers/scsi/cxlflash/superpipe.c 	rhte_checkin(ctxi, rhte);
ctxi              727 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi              752 drivers/scsi/cxlflash/superpipe.c 			    struct ctx_info *ctxi)
ctxi              756 drivers/scsi/cxlflash/superpipe.c 	if (ctxi->initialized) {
ctxi              757 drivers/scsi/cxlflash/superpipe.c 		WARN_ON(!list_empty(&ctxi->luns));
ctxi              760 drivers/scsi/cxlflash/superpipe.c 		if (afu->afu_map && ctxi->ctrl_map) {
ctxi              761 drivers/scsi/cxlflash/superpipe.c 			writeq_be(0, &ctxi->ctrl_map->rht_start);
ctxi              762 drivers/scsi/cxlflash/superpipe.c 			writeq_be(0, &ctxi->ctrl_map->rht_cnt_id);
ctxi              763 drivers/scsi/cxlflash/superpipe.c 			writeq_be(0, &ctxi->ctrl_map->ctx_cap);
ctxi              768 drivers/scsi/cxlflash/superpipe.c 	free_page((ulong)ctxi->rht_start);
ctxi              769 drivers/scsi/cxlflash/superpipe.c 	kfree(ctxi->rht_needs_ws);
ctxi              770 drivers/scsi/cxlflash/superpipe.c 	kfree(ctxi->rht_lun);
ctxi              771 drivers/scsi/cxlflash/superpipe.c 	kfree(ctxi);
ctxi              783 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi              788 drivers/scsi/cxlflash/superpipe.c 	ctxi = kzalloc(sizeof(*ctxi), GFP_KERNEL);
ctxi              791 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(!ctxi || !lli || !ws)) {
ctxi              802 drivers/scsi/cxlflash/superpipe.c 	ctxi->rht_lun = lli;
ctxi              803 drivers/scsi/cxlflash/superpipe.c 	ctxi->rht_needs_ws = ws;
ctxi              804 drivers/scsi/cxlflash/superpipe.c 	ctxi->rht_start = rhte;
ctxi              806 drivers/scsi/cxlflash/superpipe.c 	return ctxi;
ctxi              811 drivers/scsi/cxlflash/superpipe.c 	kfree(ctxi);
ctxi              812 drivers/scsi/cxlflash/superpipe.c 	ctxi = NULL;
ctxi              826 drivers/scsi/cxlflash/superpipe.c static void init_context(struct ctx_info *ctxi, struct cxlflash_cfg *cfg,
ctxi              832 drivers/scsi/cxlflash/superpipe.c 	ctxi->rht_perms = perms;
ctxi              833 drivers/scsi/cxlflash/superpipe.c 	ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl;
ctxi              834 drivers/scsi/cxlflash/superpipe.c 	ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid);
ctxi              835 drivers/scsi/cxlflash/superpipe.c 	ctxi->irqs = irqs;
ctxi              836 drivers/scsi/cxlflash/superpipe.c 	ctxi->pid = task_tgid_nr(current); /* tgid = pid */
ctxi              837 drivers/scsi/cxlflash/superpipe.c 	ctxi->ctx = ctx;
ctxi              838 drivers/scsi/cxlflash/superpipe.c 	ctxi->cfg = cfg;
ctxi              839 drivers/scsi/cxlflash/superpipe.c 	ctxi->file = file;
ctxi              840 drivers/scsi/cxlflash/superpipe.c 	ctxi->initialized = true;
ctxi              841 drivers/scsi/cxlflash/superpipe.c 	mutex_init(&ctxi->mutex);
ctxi              842 drivers/scsi/cxlflash/superpipe.c 	kref_init(&ctxi->kref);
ctxi              843 drivers/scsi/cxlflash/superpipe.c 	INIT_LIST_HEAD(&ctxi->luns);
ctxi              844 drivers/scsi/cxlflash/superpipe.c 	INIT_LIST_HEAD(&ctxi->list); /* initialize for list_empty() */
ctxi              857 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = container_of(kref, struct ctx_info, kref);
ctxi              858 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = ctxi->cfg;
ctxi              859 drivers/scsi/cxlflash/superpipe.c 	u64 ctxid = DECODE_CTXID(ctxi->ctxid);
ctxi              862 drivers/scsi/cxlflash/superpipe.c 	WARN_ON(!mutex_is_locked(&ctxi->mutex));
ctxi              863 drivers/scsi/cxlflash/superpipe.c 	ctxi->unavail = true;
ctxi              864 drivers/scsi/cxlflash/superpipe.c 	mutex_unlock(&ctxi->mutex);
ctxi              866 drivers/scsi/cxlflash/superpipe.c 	mutex_lock(&ctxi->mutex);
ctxi              868 drivers/scsi/cxlflash/superpipe.c 	if (!list_empty(&ctxi->list))
ctxi              869 drivers/scsi/cxlflash/superpipe.c 		list_del(&ctxi->list);
ctxi              872 drivers/scsi/cxlflash/superpipe.c 	mutex_unlock(&ctxi->mutex);
ctxi              875 drivers/scsi/cxlflash/superpipe.c 	destroy_context(cfg, ctxi);
ctxi              891 drivers/scsi/cxlflash/superpipe.c 				 struct ctx_info *ctxi,
ctxi              908 drivers/scsi/cxlflash/superpipe.c 	if (!ctxi) {
ctxi              909 drivers/scsi/cxlflash/superpipe.c 		ctxi = get_context(cfg, rctxid, lli, CTX_CTRL_ERR_FALLBACK);
ctxi              910 drivers/scsi/cxlflash/superpipe.c 		if (unlikely(!ctxi)) {
ctxi              921 drivers/scsi/cxlflash/superpipe.c 	if (ctxi->rht_out) {
ctxi              924 drivers/scsi/cxlflash/superpipe.c 			if (ctxi->rht_lun[i] == lli) {
ctxi              926 drivers/scsi/cxlflash/superpipe.c 				_cxlflash_disk_release(sdev, ctxi, &rel);
ctxi              930 drivers/scsi/cxlflash/superpipe.c 			if (ctxi->rht_out == 0)
ctxi              936 drivers/scsi/cxlflash/superpipe.c 	list_for_each_entry_safe(lun_access, t, &ctxi->luns, list)
ctxi              948 drivers/scsi/cxlflash/superpipe.c 	if (kref_put(&ctxi->kref, remove_context))
ctxi              953 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi              996 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi             1009 drivers/scsi/cxlflash/superpipe.c 	ctxi = get_context(cfg, ctxid, file, ctrl);
ctxi             1010 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(!ctxi)) {
ctxi             1011 drivers/scsi/cxlflash/superpipe.c 		ctxi = get_context(cfg, ctxid, file, ctrl | CTX_CTRL_CLONE);
ctxi             1012 drivers/scsi/cxlflash/superpipe.c 		if (!ctxi) {
ctxi             1020 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi             1027 drivers/scsi/cxlflash/superpipe.c 	detach.context_id = ctxi->ctxid;
ctxi             1028 drivers/scsi/cxlflash/superpipe.c 	list_for_each_entry_safe(lun_access, t, &ctxi->luns, list)
ctxi             1029 drivers/scsi/cxlflash/superpipe.c 		_cxlflash_disk_detach(lun_access->sdev, ctxi, &detach);
ctxi             1046 drivers/scsi/cxlflash/superpipe.c static void unmap_context(struct ctx_info *ctxi)
ctxi             1048 drivers/scsi/cxlflash/superpipe.c 	unmap_mapping_range(ctxi->file->f_mapping, 0, 0, 1);
ctxi             1111 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi             1124 drivers/scsi/cxlflash/superpipe.c 	ctxi = get_context(cfg, ctxid, file, ctrl);
ctxi             1125 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(!ctxi)) {
ctxi             1132 drivers/scsi/cxlflash/superpipe.c 	if (likely(!ctxi->err_recovery_active)) {
ctxi             1134 drivers/scsi/cxlflash/superpipe.c 		rc = ctxi->cxl_mmap_vmops->fault(vmf);
ctxi             1152 drivers/scsi/cxlflash/superpipe.c 	if (likely(ctxi))
ctxi             1153 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi             1184 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi             1197 drivers/scsi/cxlflash/superpipe.c 	ctxi = get_context(cfg, ctxid, file, ctrl);
ctxi             1198 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(!ctxi)) {
ctxi             1209 drivers/scsi/cxlflash/superpipe.c 		ctxi->cxl_mmap_vmops = vma->vm_ops;
ctxi             1214 drivers/scsi/cxlflash/superpipe.c 	if (likely(ctxi))
ctxi             1215 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi             1237 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi             1242 drivers/scsi/cxlflash/superpipe.c 		ctxi = cfg->ctx_tbl[i];
ctxi             1243 drivers/scsi/cxlflash/superpipe.c 		if (ctxi) {
ctxi             1244 drivers/scsi/cxlflash/superpipe.c 			mutex_lock(&ctxi->mutex);
ctxi             1246 drivers/scsi/cxlflash/superpipe.c 			list_add(&ctxi->list, &cfg->ctx_err_recovery);
ctxi             1247 drivers/scsi/cxlflash/superpipe.c 			ctxi->err_recovery_active = true;
ctxi             1248 drivers/scsi/cxlflash/superpipe.c 			ctxi->ctrl_map = NULL;
ctxi             1249 drivers/scsi/cxlflash/superpipe.c 			unmap_context(ctxi);
ctxi             1250 drivers/scsi/cxlflash/superpipe.c 			mutex_unlock(&ctxi->mutex);
ctxi             1325 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi             1362 drivers/scsi/cxlflash/superpipe.c 		ctxi = get_context(cfg, rctxid, NULL, 0);
ctxi             1363 drivers/scsi/cxlflash/superpipe.c 		if (!ctxi) {
ctxi             1370 drivers/scsi/cxlflash/superpipe.c 		list_for_each_entry(lun_access, &ctxi->luns, list)
ctxi             1396 drivers/scsi/cxlflash/superpipe.c 	if (ctxi) {
ctxi             1399 drivers/scsi/cxlflash/superpipe.c 		kref_get(&ctxi->kref);
ctxi             1400 drivers/scsi/cxlflash/superpipe.c 		list_add(&lun_access->list, &ctxi->luns);
ctxi             1404 drivers/scsi/cxlflash/superpipe.c 	ctxi = create_context(cfg);
ctxi             1405 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(!ctxi)) {
ctxi             1445 drivers/scsi/cxlflash/superpipe.c 	init_context(ctxi, cfg, ctx, ctxid, file, perms, irqs);
ctxi             1447 drivers/scsi/cxlflash/superpipe.c 	rc = afu_attach(cfg, ctxi);
ctxi             1459 drivers/scsi/cxlflash/superpipe.c 	list_add(&lun_access->list, &ctxi->luns);
ctxi             1461 drivers/scsi/cxlflash/superpipe.c 	mutex_lock(&ctxi->mutex);
ctxi             1462 drivers/scsi/cxlflash/superpipe.c 	cfg->ctx_tbl[ctxid] = ctxi;
ctxi             1473 drivers/scsi/cxlflash/superpipe.c 	attach->context_id = ctxi->ctxid;
ctxi             1483 drivers/scsi/cxlflash/superpipe.c 	if (ctxi)
ctxi             1484 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi             1514 drivers/scsi/cxlflash/superpipe.c 	if (ctxi) {
ctxi             1515 drivers/scsi/cxlflash/superpipe.c 		destroy_context(cfg, ctxi);
ctxi             1516 drivers/scsi/cxlflash/superpipe.c 		ctxi = NULL;
ctxi             1535 drivers/scsi/cxlflash/superpipe.c 			   struct ctx_info *ctxi,
ctxi             1554 drivers/scsi/cxlflash/superpipe.c 	rc = cfg->ops->start_work(ctx, ctxi->irqs);
ctxi             1576 drivers/scsi/cxlflash/superpipe.c 	ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl;
ctxi             1578 drivers/scsi/cxlflash/superpipe.c 	rc = afu_attach(cfg, ctxi);
ctxi             1588 drivers/scsi/cxlflash/superpipe.c 	ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid);
ctxi             1589 drivers/scsi/cxlflash/superpipe.c 	ctxi->ctx = ctx;
ctxi             1590 drivers/scsi/cxlflash/superpipe.c 	ctxi->file = file;
ctxi             1598 drivers/scsi/cxlflash/superpipe.c 	mutex_unlock(&ctxi->mutex);
ctxi             1600 drivers/scsi/cxlflash/superpipe.c 	mutex_lock(&ctxi->mutex);
ctxi             1601 drivers/scsi/cxlflash/superpipe.c 	list_del_init(&ctxi->list);
ctxi             1602 drivers/scsi/cxlflash/superpipe.c 	cfg->ctx_tbl[ctxid] = ctxi;
ctxi             1658 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi             1691 drivers/scsi/cxlflash/superpipe.c 	ctxi = get_context(cfg, rctxid, lli, CTX_CTRL_ERR_FALLBACK);
ctxi             1692 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(!ctxi)) {
ctxi             1698 drivers/scsi/cxlflash/superpipe.c 	if (ctxi->err_recovery_active) {
ctxi             1700 drivers/scsi/cxlflash/superpipe.c 		rc = recover_context(cfg, ctxi, &new_adap_fd);
ctxi             1722 drivers/scsi/cxlflash/superpipe.c 		ctxi->err_recovery_active = false;
ctxi             1730 drivers/scsi/cxlflash/superpipe.c 		recover->context_id = ctxi->ctxid;
ctxi             1746 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi             1747 drivers/scsi/cxlflash/superpipe.c 		ctxi = NULL;
ctxi             1757 drivers/scsi/cxlflash/superpipe.c 	if (likely(ctxi))
ctxi             1758 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi             1841 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi             1856 drivers/scsi/cxlflash/superpipe.c 	ctxi = get_context(cfg, rctxid, lli, 0);
ctxi             1857 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(!ctxi)) {
ctxi             1863 drivers/scsi/cxlflash/superpipe.c 	rhte = get_rhte(ctxi, rhndl, lli);
ctxi             1879 drivers/scsi/cxlflash/superpipe.c 		ctxi->unavail = true;
ctxi             1880 drivers/scsi/cxlflash/superpipe.c 		mutex_unlock(&ctxi->mutex);
ctxi             1885 drivers/scsi/cxlflash/superpipe.c 			mutex_lock(&ctxi->mutex);
ctxi             1886 drivers/scsi/cxlflash/superpipe.c 			ctxi->unavail = false;
ctxi             1889 drivers/scsi/cxlflash/superpipe.c 		mutex_lock(&ctxi->mutex);
ctxi             1890 drivers/scsi/cxlflash/superpipe.c 		ctxi->unavail = false;
ctxi             1910 drivers/scsi/cxlflash/superpipe.c 	if (likely(ctxi))
ctxi             1911 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi             1982 drivers/scsi/cxlflash/superpipe.c 	struct ctx_info *ctxi = NULL;
ctxi             1993 drivers/scsi/cxlflash/superpipe.c 	ctxi = get_context(cfg, rctxid, lli, 0);
ctxi             1994 drivers/scsi/cxlflash/superpipe.c 	if (unlikely(!ctxi)) {
ctxi             2000 drivers/scsi/cxlflash/superpipe.c 	rhte = rhte_checkout(ctxi, lli);
ctxi             2008 drivers/scsi/cxlflash/superpipe.c 	rsrc_handle = (rhte - ctxi->rht_start);
ctxi             2010 drivers/scsi/cxlflash/superpipe.c 	rht_format1(rhte, lli->lun_id[sdev->channel], ctxi->rht_perms, port);
ctxi             2024 drivers/scsi/cxlflash/superpipe.c 	if (likely(ctxi))
ctxi             2025 drivers/scsi/cxlflash/superpipe.c 		put_context(ctxi);
ctxi             2032 drivers/scsi/cxlflash/superpipe.c 	_cxlflash_disk_release(sdev, ctxi, &rel);
ctxi              119 drivers/scsi/cxlflash/superpipe.h int _cxlflash_vlun_resize(struct scsi_device *sdev, struct ctx_info *ctxi,
ctxi              124 drivers/scsi/cxlflash/superpipe.h int _cxlflash_disk_release(struct scsi_device *sdev, struct ctx_info *ctxi,
ctxi              137 drivers/scsi/cxlflash/superpipe.h void put_context(struct ctx_info *ctxi);
ctxi              139 drivers/scsi/cxlflash/superpipe.h struct sisl_rht_entry *get_rhte(struct ctx_info *ctxi, res_hndl_t rhndl,
ctxi              142 drivers/scsi/cxlflash/superpipe.h struct sisl_rht_entry *rhte_checkout(struct ctx_info *ctxi,
ctxi              144 drivers/scsi/cxlflash/superpipe.h void rhte_checkin(struct ctx_info *ctxi, struct sisl_rht_entry *rhte);
ctxi              622 drivers/scsi/cxlflash/vlun.c 		      struct ctx_info *ctxi,
ctxi              631 drivers/scsi/cxlflash/vlun.c 	ctx_hndl_t ctxid = DECODE_CTXID(ctxi->ctxid);
ctxi              632 drivers/scsi/cxlflash/vlun.c 	bool needs_ws = ctxi->rht_needs_ws[rhndl];
ctxi              633 drivers/scsi/cxlflash/vlun.c 	bool needs_sync = !ctxi->err_recovery_active;
ctxi              686 drivers/scsi/cxlflash/vlun.c 		ctxi->unavail = true;
ctxi              687 drivers/scsi/cxlflash/vlun.c 		mutex_unlock(&ctxi->mutex);
ctxi              702 drivers/scsi/cxlflash/vlun.c 		mutex_lock(&ctxi->mutex);
ctxi              703 drivers/scsi/cxlflash/vlun.c 		ctxi->unavail = false;
ctxi              730 drivers/scsi/cxlflash/vlun.c 			  struct ctx_info *ctxi,
ctxi              769 drivers/scsi/cxlflash/vlun.c 	if (!ctxi) {
ctxi              770 drivers/scsi/cxlflash/vlun.c 		ctxi = get_context(cfg, rctxid, lli, CTX_CTRL_ERR_FALLBACK);
ctxi              771 drivers/scsi/cxlflash/vlun.c 		if (unlikely(!ctxi)) {
ctxi              781 drivers/scsi/cxlflash/vlun.c 	rhte = get_rhte(ctxi, rhndl, lli);
ctxi              792 drivers/scsi/cxlflash/vlun.c 		rc = shrink_lxt(afu, sdev, rhndl, rhte, ctxi, &new_size);
ctxi              816 drivers/scsi/cxlflash/vlun.c 		put_context(ctxi);
ctxi              991 drivers/scsi/cxlflash/vlun.c 	struct ctx_info *ctxi = NULL;
ctxi             1021 drivers/scsi/cxlflash/vlun.c 	ctxi = get_context(cfg, rctxid, lli, 0);
ctxi             1022 drivers/scsi/cxlflash/vlun.c 	if (unlikely(!ctxi)) {
ctxi             1028 drivers/scsi/cxlflash/vlun.c 	rhte = rhte_checkout(ctxi, lli);
ctxi             1036 drivers/scsi/cxlflash/vlun.c 	rsrc_handle = (rhte - ctxi->rht_start);
ctxi             1040 drivers/scsi/cxlflash/vlun.c 	rhte->fp = SISL_RHT_FP(0U, ctxi->rht_perms);
ctxi             1045 drivers/scsi/cxlflash/vlun.c 	rc = _cxlflash_vlun_resize(sdev, ctxi, &resize);
ctxi             1053 drivers/scsi/cxlflash/vlun.c 		ctxi->rht_needs_ws[rsrc_handle] = true;
ctxi             1062 drivers/scsi/cxlflash/vlun.c 	if (likely(ctxi))
ctxi             1063 drivers/scsi/cxlflash/vlun.c 		put_context(ctxi);
ctxi             1069 drivers/scsi/cxlflash/vlun.c 	rhte_checkin(ctxi, rhte);