Lines Matching defs:adapter
28 #define CXL_AFU_MINOR_D(afu) (CXL_CARD_MINOR(afu->adapter) + 1 + (3 * afu->slice))
45 struct cxl *adapter;
54 if (!(adapter = get_cxl_adapter(adapter_num)))
57 if (slice > adapter->slices)
60 spin_lock(&adapter->afu_list_lock);
61 if (!(afu = adapter->afu[slice])) {
62 spin_unlock(&adapter->afu_list_lock);
72 spin_unlock(&adapter->afu_list_lock);
77 if (!cxl_ops->link_ok(adapter, afu)) {
103 put_device(&adapter->dev);
198 * Increment the mapped context count for adapter. This also checks
201 rc = cxl_adapter_context_get(ctx->afu->adapter);
240 * adapter.
256 cxl_adapter_context_put(ctx->afu->adapter);
296 afuid.card_id = ctx->afu->adapter->adapter_num;
317 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu))
347 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu))
434 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu))
447 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) {
578 "afu%i.%i%s", afu->adapter->adapter_num, afu->slice, postfix);
640 int cxl_register_adapter(struct cxl *adapter)
642 adapter->dev.class = cxl_class;
647 * adapter->dev.devt = CXL_CARD_MKDEV(adapter);
650 return device_register(&adapter->dev);