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)))
646 u64 ctxid = DECODE_CTXID(release->context_id),
652 dev_dbg(dev, "%s: ctxid=%llu rhndl=%llu gli->mode=%u gli->users=%u\n",
653 __func__, ctxid, release->rsrc_handle, gli->mode, gli->users);
658 dev_dbg(dev, "%s: Bad context ctxid=%llu\n",
659 __func__, ctxid);
711 rcr = cxlflash_afu_sync(afu, ctxid, rhndl, AFU_HW_SYNC);
821 * @ctxid: Previously obtained process element associated with CXL context.
827 void *ctx, int ctxid, struct file *file, u32 perms,
833 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl;
834 ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid);
859 u64 ctxid = DECODE_CTXID(ctxi->ctxid);
870 cfg->ctx_tbl[ctxid] = NULL;
903 u64 ctxid = DECODE_CTXID(detach->context_id),
906 dev_dbg(dev, "%s: ctxid=%llu\n", __func__, ctxid);
911 dev_dbg(dev, "%s: Bad context ctxid=%llu\n",
912 __func__, ctxid);
1000 int ctxid;
1002 ctxid = cfg->ops->process_element(ctx);
1003 if (unlikely(ctxid < 0)) {
1004 dev_err(dev, "%s: Context %p was closed ctxid=%d\n",
1005 __func__, ctx, ctxid);
1009 ctxi = get_context(cfg, ctxid, file, ctrl);
1011 ctxi = get_context(cfg, ctxid, file, ctrl | CTX_CTRL_CLONE);
1013 dev_dbg(dev, "%s: ctxid=%d already free\n",
1014 __func__, ctxid);
1018 dev_dbg(dev, "%s: Another process owns ctxid=%d\n",
1019 __func__, ctxid);
1024 dev_dbg(dev, "%s: close for ctxid=%d\n", __func__, ctxid);
1027 detach.context_id = ctxi->ctxid;
1115 int ctxid;
1117 ctxid = cfg->ops->process_element(ctx);
1118 if (unlikely(ctxid < 0)) {
1119 dev_err(dev, "%s: Context %p was closed ctxid=%d\n",
1120 __func__, ctx, ctxid);
1124 ctxi = get_context(cfg, ctxid, file, ctrl);
1126 dev_dbg(dev, "%s: Bad context ctxid=%d\n", __func__, ctxid);
1130 dev_dbg(dev, "%s: fault for context %d\n", __func__, ctxid);
1186 int ctxid;
1189 ctxid = cfg->ops->process_element(ctx);
1190 if (unlikely(ctxid < 0)) {
1191 dev_err(dev, "%s: Context %p was closed ctxid=%d\n",
1192 __func__, ctx, ctxid);
1197 ctxi = get_context(cfg, ctxid, file, ctrl);
1199 dev_dbg(dev, "%s: Bad context ctxid=%d\n", __func__, ctxid);
1204 dev_dbg(dev, "%s: mmap for context %d\n", __func__, ctxid);
1329 int ctxid = -1;
1406 dev_err(dev, "%s: Failed to create context ctxid=%d\n",
1407 __func__, ctxid);
1427 ctxid = cfg->ops->process_element(ctx);
1428 if (unlikely((ctxid >= MAX_CONTEXT) || (ctxid < 0))) {
1429 dev_err(dev, "%s: ctxid=%d invalid\n", __func__, ctxid);
1445 init_context(ctxi, cfg, ctx, ctxid, file, perms, irqs);
1462 cfg->ctx_tbl[ctxid] = ctxi;
1473 attach->context_id = ctxi->ctxid;
1486 dev_dbg(dev, "%s: returning ctxid=%d fd=%d bs=%lld rc=%d llba=%lld\n",
1487 __func__, ctxid, fd, attach->block_size, rc, attach->last_lba);
1541 int ctxid = -1;
1561 ctxid = cfg->ops->process_element(ctx);
1562 if (unlikely((ctxid >= MAX_CONTEXT) || (ctxid < 0))) {
1563 dev_err(dev, "%s: ctxid=%d invalid\n", __func__, ctxid);
1576 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl;
1588 ctxi->ctxid = ENCODE_CTXID(ctxi, ctxid);
1602 cfg->ctx_tbl[ctxid] = ctxi;
1607 dev_dbg(dev, "%s: returning ctxid=%d fd=%d rc=%d\n",
1608 __func__, ctxid, fd, rc);
1662 u64 ctxid = DECODE_CTXID(recover->context_id),
1693 dev_dbg(dev, "%s: Bad context ctxid=%llu\n", __func__, ctxid);
1702 dev_err(dev, "%s: Recovery failed ctxid=%llu rc=%d\n",
1703 __func__, ctxid, rc);
1730 recover->context_id = ctxi->ctxid;
1847 u64 ctxid = DECODE_CTXID(verify->context_id),
1851 dev_dbg(dev, "%s: ctxid=%llu rhndl=%016llx, hint=%016llx, "
1852 "flags=%016llx\n", __func__, ctxid, verify->rsrc_handle,
1857 dev_dbg(dev, "%s: Bad context ctxid=%llu\n", __func__, ctxid);
1972 u64 ctxid = DECODE_CTXID(pphys->context_id),
1984 dev_dbg(dev, "%s: ctxid=%llu ls=%llu\n", __func__, ctxid, lun_size);
1994 dev_dbg(dev, "%s: Bad context ctxid=%llu\n", __func__, ctxid);
2001 dev_dbg(dev, "%s: Too many opens ctxid=%lld\n",
2002 __func__, ctxid);
2016 rc = cxlflash_afu_sync(afu, ctxid, rsrc_handle, AFU_LW_SYNC);