Lines Matching refs:ctxid

134 		if ((ctxi->ctxid == rctxid) || (ctxi->file == file))  in find_error_context()
163 u64 ctxid = DECODE_CTXID(rctxid); in get_context() local
175 if (likely(ctxid < MAX_CONTEXT)) { in get_context()
178 ctxi = cfg->ctx_tbl[ctxid]; in get_context()
181 (!file && (ctxi->ctxid != rctxid))) in get_context()
644 u64 ctxid = DECODE_CTXID(release->context_id), in _cxlflash_disk_release() local
651 __func__, ctxid, release->rsrc_handle, gli->mode, gli->users); in _cxlflash_disk_release()
657 __func__, ctxid); in _cxlflash_disk_release()
709 rcr = cxlflash_afu_sync(afu, ctxid, rhndl, AFU_HW_SYNC); in _cxlflash_disk_release()
825 void *ctx, int ctxid, struct file *file, u32 perms, in init_context() argument
831 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl; in init_context()
832 ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid); in init_context()
857 u64 ctxid = DECODE_CTXID(ctxi->ctxid); in remove_context() local
868 cfg->ctx_tbl[ctxid] = NULL; in remove_context()
901 u64 ctxid = DECODE_CTXID(detach->context_id), in _cxlflash_disk_detach() local
904 dev_dbg(dev, "%s: ctxid=%llu\n", __func__, ctxid); in _cxlflash_disk_detach()
910 __func__, ctxid); in _cxlflash_disk_detach()
998 int ctxid; in cxlflash_cxl_release() local
1000 ctxid = cfg->ops->process_element(ctx); in cxlflash_cxl_release()
1001 if (unlikely(ctxid < 0)) { in cxlflash_cxl_release()
1003 __func__, ctx, ctxid); in cxlflash_cxl_release()
1007 ctxi = get_context(cfg, ctxid, file, ctrl); in cxlflash_cxl_release()
1009 ctxi = get_context(cfg, ctxid, file, ctrl | CTX_CTRL_CLONE); in cxlflash_cxl_release()
1012 __func__, ctxid); in cxlflash_cxl_release()
1017 __func__, ctxid); in cxlflash_cxl_release()
1022 dev_dbg(dev, "%s: close for ctxid=%d\n", __func__, ctxid); in cxlflash_cxl_release()
1025 detach.context_id = ctxi->ctxid; in cxlflash_cxl_release()
1113 int ctxid; in cxlflash_mmap_fault() local
1115 ctxid = cfg->ops->process_element(ctx); in cxlflash_mmap_fault()
1116 if (unlikely(ctxid < 0)) { in cxlflash_mmap_fault()
1118 __func__, ctx, ctxid); in cxlflash_mmap_fault()
1122 ctxi = get_context(cfg, ctxid, file, ctrl); in cxlflash_mmap_fault()
1124 dev_dbg(dev, "%s: Bad context ctxid=%d\n", __func__, ctxid); in cxlflash_mmap_fault()
1128 dev_dbg(dev, "%s: fault for context %d\n", __func__, ctxid); in cxlflash_mmap_fault()
1184 int ctxid; in cxlflash_cxl_mmap() local
1187 ctxid = cfg->ops->process_element(ctx); in cxlflash_cxl_mmap()
1188 if (unlikely(ctxid < 0)) { in cxlflash_cxl_mmap()
1190 __func__, ctx, ctxid); in cxlflash_cxl_mmap()
1195 ctxi = get_context(cfg, ctxid, file, ctrl); in cxlflash_cxl_mmap()
1197 dev_dbg(dev, "%s: Bad context ctxid=%d\n", __func__, ctxid); in cxlflash_cxl_mmap()
1202 dev_dbg(dev, "%s: mmap for context %d\n", __func__, ctxid); in cxlflash_cxl_mmap()
1327 int ctxid = -1; in cxlflash_disk_attach() local
1405 __func__, ctxid); in cxlflash_disk_attach()
1425 ctxid = cfg->ops->process_element(ctx); in cxlflash_disk_attach()
1426 if (unlikely((ctxid >= MAX_CONTEXT) || (ctxid < 0))) { in cxlflash_disk_attach()
1427 dev_err(dev, "%s: ctxid=%d invalid\n", __func__, ctxid); in cxlflash_disk_attach()
1443 init_context(ctxi, cfg, ctx, ctxid, file, perms, irqs); in cxlflash_disk_attach()
1460 cfg->ctx_tbl[ctxid] = ctxi; in cxlflash_disk_attach()
1471 attach->context_id = ctxi->ctxid; in cxlflash_disk_attach()
1485 __func__, ctxid, fd, attach->block_size, rc, attach->last_lba); in cxlflash_disk_attach()
1539 int ctxid = -1; in recover_context() local
1559 ctxid = cfg->ops->process_element(ctx); in recover_context()
1560 if (unlikely((ctxid >= MAX_CONTEXT) || (ctxid < 0))) { in recover_context()
1561 dev_err(dev, "%s: ctxid=%d invalid\n", __func__, ctxid); in recover_context()
1574 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl; in recover_context()
1586 ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid); in recover_context()
1600 cfg->ctx_tbl[ctxid] = ctxi; in recover_context()
1606 __func__, ctxid, fd, rc); in recover_context()
1660 u64 ctxid = DECODE_CTXID(recover->context_id), in cxlflash_afu_recover() local
1691 dev_dbg(dev, "%s: Bad context ctxid=%llu\n", __func__, ctxid); in cxlflash_afu_recover()
1701 __func__, ctxid, rc); in cxlflash_afu_recover()
1728 recover->context_id = ctxi->ctxid; in cxlflash_afu_recover()
1845 u64 ctxid = DECODE_CTXID(verify->context_id), in cxlflash_disk_verify() local
1850 "flags=%016llx\n", __func__, ctxid, verify->rsrc_handle, in cxlflash_disk_verify()
1855 dev_dbg(dev, "%s: Bad context ctxid=%llu\n", __func__, ctxid); in cxlflash_disk_verify()
1970 u64 ctxid = DECODE_CTXID(pphys->context_id), in cxlflash_disk_direct_open() local
1982 dev_dbg(dev, "%s: ctxid=%llu ls=%llu\n", __func__, ctxid, lun_size); in cxlflash_disk_direct_open()
1992 dev_dbg(dev, "%s: Bad context ctxid=%llu\n", __func__, ctxid); in cxlflash_disk_direct_open()
2000 __func__, ctxid); in cxlflash_disk_direct_open()
2014 rc = cxlflash_afu_sync(afu, ctxid, rsrc_handle, AFU_LW_SYNC); in cxlflash_disk_direct_open()