Lines Matching refs:ctxid

134 		if ((ctxi->ctxid == rctxid) || (ctxi->file == file))
163 u64 ctxid = DECODE_CTXID(rctxid);
175 if (likely(ctxid < MAX_CONTEXT)) {
178 ctxi = cfg->ctx_tbl[ctxid];
181 (!file && (ctxi->ctxid != rctxid)))
645 u64 ctxid = DECODE_CTXID(release->context_id),
651 dev_dbg(dev, "%s: ctxid=%llu rhndl=%llu gli->mode=%u gli->users=%u\n",
652 __func__, ctxid, release->rsrc_handle, gli->mode, gli->users);
657 dev_dbg(dev, "%s: Bad context ctxid=%llu\n",
658 __func__, ctxid);
710 rcr = cxlflash_afu_sync(afu, ctxid, rhndl, AFU_HW_SYNC);
820 * @ctxid: Previously obtained process element associated with CXL context.
826 void *ctx, int ctxid, struct file *file, u32 perms,
832 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl;
833 ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid);
858 u64 ctxid = DECODE_CTXID(ctxi->ctxid);
869 cfg->ctx_tbl[ctxid] = NULL;
902 u64 ctxid = DECODE_CTXID(detach->context_id),
905 dev_dbg(dev, "%s: ctxid=%llu\n", __func__, ctxid);
910 dev_dbg(dev, "%s: Bad context ctxid=%llu\n",
911 __func__, ctxid);
999 int ctxid;
1001 ctxid = cfg->ops->process_element(ctx);
1002 if (unlikely(ctxid < 0)) {
1003 dev_err(dev, "%s: Context %p was closed ctxid=%d\n",
1004 __func__, ctx, ctxid);
1008 ctxi = get_context(cfg, ctxid, file, ctrl);
1010 ctxi = get_context(cfg, ctxid, file, ctrl | CTX_CTRL_CLONE);
1012 dev_dbg(dev, "%s: ctxid=%d already free\n",
1013 __func__, ctxid);
1017 dev_dbg(dev, "%s: Another process owns ctxid=%d\n",
1018 __func__, ctxid);
1023 dev_dbg(dev, "%s: close for ctxid=%d\n", __func__, ctxid);
1026 detach.context_id = ctxi->ctxid;
1114 int ctxid;
1116 ctxid = cfg->ops->process_element(ctx);
1117 if (unlikely(ctxid < 0)) {
1118 dev_err(dev, "%s: Context %p was closed ctxid=%d\n",
1119 __func__, ctx, ctxid);
1123 ctxi = get_context(cfg, ctxid, file, ctrl);
1125 dev_dbg(dev, "%s: Bad context ctxid=%d\n", __func__, ctxid);
1129 dev_dbg(dev, "%s: fault for context %d\n", __func__, ctxid);
1185 int ctxid;
1188 ctxid = cfg->ops->process_element(ctx);
1189 if (unlikely(ctxid < 0)) {
1190 dev_err(dev, "%s: Context %p was closed ctxid=%d\n",
1191 __func__, ctx, ctxid);
1196 ctxi = get_context(cfg, ctxid, file, ctrl);
1198 dev_dbg(dev, "%s: Bad context ctxid=%d\n", __func__, ctxid);
1203 dev_dbg(dev, "%s: mmap for context %d\n", __func__, ctxid);
1328 int ctxid = -1;
1405 dev_err(dev, "%s: Failed to create context ctxid=%d\n",
1406 __func__, ctxid);
1426 ctxid = cfg->ops->process_element(ctx);
1427 if (unlikely((ctxid >= MAX_CONTEXT) || (ctxid < 0))) {
1428 dev_err(dev, "%s: ctxid=%d invalid\n", __func__, ctxid);
1444 init_context(ctxi, cfg, ctx, ctxid, file, perms, irqs);
1461 cfg->ctx_tbl[ctxid] = ctxi;
1472 attach->context_id = ctxi->ctxid;
1485 dev_dbg(dev, "%s: returning ctxid=%d fd=%d bs=%lld rc=%d llba=%lld\n",
1486 __func__, ctxid, fd, attach->block_size, rc, attach->last_lba);
1540 int ctxid = -1;
1560 ctxid = cfg->ops->process_element(ctx);
1561 if (unlikely((ctxid >= MAX_CONTEXT) || (ctxid < 0))) {
1562 dev_err(dev, "%s: ctxid=%d invalid\n", __func__, ctxid);
1575 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl;
1587 ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid);
1601 cfg->ctx_tbl[ctxid] = ctxi;
1606 dev_dbg(dev, "%s: returning ctxid=%d fd=%d rc=%d\n",
1607 __func__, ctxid, fd, rc);
1661 u64 ctxid = DECODE_CTXID(recover->context_id),
1692 dev_dbg(dev, "%s: Bad context ctxid=%llu\n", __func__, ctxid);
1701 dev_err(dev, "%s: Recovery failed ctxid=%llu rc=%d\n",
1702 __func__, ctxid, rc);
1729 recover->context_id = ctxi->ctxid;
1846 u64 ctxid = DECODE_CTXID(verify->context_id),
1850 dev_dbg(dev, "%s: ctxid=%llu rhndl=%016llx, hint=%016llx, "
1851 "flags=%016llx\n", __func__, ctxid, verify->rsrc_handle,
1856 dev_dbg(dev, "%s: Bad context ctxid=%llu\n", __func__, ctxid);
1971 u64 ctxid = DECODE_CTXID(pphys->context_id),
1983 dev_dbg(dev, "%s: ctxid=%llu ls=%llu\n", __func__, ctxid, lun_size);
1993 dev_dbg(dev, "%s: Bad context ctxid=%llu\n", __func__, ctxid);
2000 dev_dbg(dev, "%s: Too many opens ctxid=%lld\n",
2001 __func__, ctxid);
2015 rc = cxlflash_afu_sync(afu, ctxid, rsrc_handle, AFU_LW_SYNC);