Lines Matching refs:ctxid

122 		if ((ctxi->ctxid == rctxid) || (ctxi->file == file))  in find_error_context()
151 u64 ctxid = DECODE_CTXID(rctxid); in get_context() local
163 if (likely(ctxid < MAX_CONTEXT)) { in get_context()
166 ctxi = cfg->ctx_tbl[ctxid]; in get_context()
169 (!file && (ctxi->ctxid != rctxid))) in get_context()
619 u64 ctxid = DECODE_CTXID(release->context_id), in _cxlflash_disk_release() local
626 __func__, ctxid, release->rsrc_handle, gli->mode, gli->users); in _cxlflash_disk_release()
632 __func__, ctxid); in _cxlflash_disk_release()
684 cxlflash_afu_sync(afu, ctxid, rhndl, AFU_HW_SYNC); in _cxlflash_disk_release()
756 struct cxl_context *ctx, int ctxid, in create_context() argument
786 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl; in create_context()
787 ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid); in create_context()
834 u64 ctxid = DECODE_CTXID(detach->context_id), in _cxlflash_disk_detach() local
837 dev_dbg(dev, "%s: ctxid=%llu\n", __func__, ctxid); in _cxlflash_disk_detach()
843 __func__, ctxid); in _cxlflash_disk_detach()
885 cfg->ctx_tbl[ctxid] = NULL; in _cxlflash_disk_detach()
970 int ctxid; in cxlflash_cxl_release() local
972 ctxid = cxl_process_element(ctx); in cxlflash_cxl_release()
973 if (unlikely(ctxid < 0)) { in cxlflash_cxl_release()
975 __func__, ctx, ctxid); in cxlflash_cxl_release()
979 ctxi = get_context(cfg, ctxid, file, ctrl); in cxlflash_cxl_release()
981 ctxi = get_context(cfg, ctxid, file, ctrl | CTX_CTRL_CLONE); in cxlflash_cxl_release()
984 __func__, ctxid); in cxlflash_cxl_release()
989 __func__, ctxid); in cxlflash_cxl_release()
995 __func__, ctxi->lfd, ctxid); in cxlflash_cxl_release()
999 detach.context_id = ctxi->ctxid; in cxlflash_cxl_release()
1083 int ctxid; in cxlflash_mmap_fault() local
1085 ctxid = cxl_process_element(ctx); in cxlflash_mmap_fault()
1086 if (unlikely(ctxid < 0)) { in cxlflash_mmap_fault()
1088 __func__, ctx, ctxid); in cxlflash_mmap_fault()
1092 ctxi = get_context(cfg, ctxid, file, ctrl); in cxlflash_mmap_fault()
1094 dev_dbg(dev, "%s: Bad context! (%d)\n", __func__, ctxid); in cxlflash_mmap_fault()
1099 __func__, ctxi->lfd, ctxid); in cxlflash_mmap_fault()
1156 int ctxid; in cxlflash_cxl_mmap() local
1159 ctxid = cxl_process_element(ctx); in cxlflash_cxl_mmap()
1160 if (unlikely(ctxid < 0)) { in cxlflash_cxl_mmap()
1162 __func__, ctx, ctxid); in cxlflash_cxl_mmap()
1167 ctxi = get_context(cfg, ctxid, file, ctrl); in cxlflash_cxl_mmap()
1169 dev_dbg(dev, "%s: Bad context! (%d)\n", __func__, ctxid); in cxlflash_cxl_mmap()
1175 __func__, ctxi->lfd, ctxid); in cxlflash_cxl_mmap()
1301 int ctxid = -1; in cxlflash_disk_attach() local
1382 ctxid = cxl_process_element(ctx); in cxlflash_disk_attach()
1383 if (unlikely((ctxid > MAX_CONTEXT) || (ctxid < 0))) { in cxlflash_disk_attach()
1384 dev_err(dev, "%s: ctxid (%d) invalid!\n", __func__, ctxid); in cxlflash_disk_attach()
1399 ctxi = create_context(cfg, ctx, ctxid, fd, file, perms); in cxlflash_disk_attach()
1402 __func__, ctxid); in cxlflash_disk_attach()
1433 cfg->ctx_tbl[ctxid] = ctxi; in cxlflash_disk_attach()
1439 attach->context_id = ctxi->ctxid; in cxlflash_disk_attach()
1453 __func__, ctxid, fd, attach->block_size, rc, attach->last_lba); in cxlflash_disk_attach()
1497 int ctxid = -1; in recover_context() local
1510 ctxid = cxl_process_element(ctx); in recover_context()
1511 if (unlikely((ctxid > MAX_CONTEXT) || (ctxid < 0))) { in recover_context()
1512 dev_err(dev, "%s: ctxid (%d) invalid!\n", __func__, ctxid); in recover_context()
1532 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl; in recover_context()
1545 ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid); in recover_context()
1560 cfg->ctx_tbl[ctxid] = ctxi; in recover_context()
1568 __func__, ctxid, fd, rc); in recover_context()
1613 u64 ctxid = DECODE_CTXID(recover->context_id), in cxlflash_afu_recover() local
1631 dev_dbg(dev, "%s: Bad context! (%llu)\n", __func__, ctxid); in cxlflash_afu_recover()
1641 __func__, ctxid, rc); in cxlflash_afu_recover()
1659 recover->context_id = ctxi->ctxid; in cxlflash_afu_recover()
1778 u64 ctxid = DECODE_CTXID(verify->context_id), in cxlflash_disk_verify() local
1783 "flags=%016llX\n", __func__, ctxid, verify->rsrc_handle, in cxlflash_disk_verify()
1788 dev_dbg(dev, "%s: Bad context! (%llu)\n", __func__, ctxid); in cxlflash_disk_verify()
1902 u64 ctxid = DECODE_CTXID(pphys->context_id), in cxlflash_disk_direct_open() local
1914 pr_debug("%s: ctxid=%llu ls=0x%llx\n", __func__, ctxid, lun_size); in cxlflash_disk_direct_open()
1925 dev_dbg(dev, "%s: Bad context! (%llu)\n", __func__, ctxid); in cxlflash_disk_direct_open()
1940 cxlflash_afu_sync(afu, ctxid, rsrc_handle, AFU_LW_SYNC); in cxlflash_disk_direct_open()