Lines Matching +full:rpc +full:- +full:if
1 .. SPDX-License-Identifier: GPL-2.0
30 categories depending on the Set Feature effects reported by the device. If the
34 or "immediate log change" for the set effects mask. If the effects are "config
41 .. kernel-doc:: include/uapi/fwctl/cxl.h
44 --------------------
54 -------------------------
74 .. code-block:: c
81 struct fwctl_rpc rpc = {0};
90 if (rc)
91 return -ENOMEM;
93 feat_in = &in->get_feat_in;
95 uuid_copy(feat_in->uuid, feat_ctx->uuid);
96 feat_in->count = feat_ctx->get_size;
98 out_size = sizeof(*out) + feat_ctx->get_size;
100 if (rc)
104 in->opcode = CXL_MBOX_OPCODE_GET_FEATURE;
105 in->op_size = sizeof(*feat_in);
107 rpc.size = sizeof(rpc);
108 rpc.scope = FWCTL_RPC_CONFIGURATION;
109 rpc.in_len = in_size;
110 rpc.out_len = out_size;
111 rpc.in = (uint64_t)(uint64_t *)in;
112 rpc.out = (uint64_t)(uint64_t *)out;
114 rc = send_command(fd, &rpc, out);
115 if (rc)
118 data = out->payload;
120 if (memcmp(&val, &expected_data, sizeof(val)) != 0) {
121 rc = -ENXIO;
140 .. kernel-doc:: drivers/cxl/core/features.c
142 .. kernel-doc:: include/cxl/features.h