Lines Matching refs:cmd
18 struct mc_command cmd = { 0 }; in dprc_get_container_id() local
22 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_CONT_ID, in dprc_get_container_id()
27 err = mc_send_command(mc_io, &cmd); in dprc_get_container_id()
32 DPRC_RSP_GET_CONTAINER_ID(cmd, *container_id); in dprc_get_container_id()
42 struct mc_command cmd = { 0 }; in dprc_open() local
46 cmd.header = mc_encode_cmd_header(DPRC_CMDID_OPEN, cmd_flags, in dprc_open()
48 DPRC_CMD_OPEN(cmd, container_id); in dprc_open()
51 err = mc_send_command(mc_io, &cmd); in dprc_open()
56 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dprc_open()
65 struct mc_command cmd = { 0 }; in dprc_close() local
68 cmd.header = mc_encode_cmd_header(DPRC_CMDID_CLOSE, cmd_flags, in dprc_close()
72 return mc_send_command(mc_io, &cmd); in dprc_close()
82 struct mc_command cmd = { 0 }; in dprc_create_container() local
86 DPRC_CMD_CREATE_CONTAINER(cmd, cfg); in dprc_create_container()
88 cmd.header = mc_encode_cmd_header(DPRC_CMDID_CREATE_CONT, in dprc_create_container()
93 err = mc_send_command(mc_io, &cmd); in dprc_create_container()
98 DPRC_RSP_CREATE_CONTAINER(cmd, *child_container_id, in dprc_create_container()
109 struct mc_command cmd = { 0 }; in dprc_destroy_container() local
112 cmd.header = mc_encode_cmd_header(DPRC_CMDID_DESTROY_CONT, in dprc_destroy_container()
115 DPRC_CMD_DESTROY_CONTAINER(cmd, child_container_id); in dprc_destroy_container()
118 return mc_send_command(mc_io, &cmd); in dprc_destroy_container()
126 struct mc_command cmd = { 0 }; in dprc_reset_container() local
129 cmd.header = mc_encode_cmd_header(DPRC_CMDID_RESET_CONT, in dprc_reset_container()
132 DPRC_CMD_RESET_CONTAINER(cmd, child_container_id); in dprc_reset_container()
135 return mc_send_command(mc_io, &cmd); in dprc_reset_container()
143 struct mc_command cmd = { 0 }; in dprc_get_attributes() local
147 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_ATTR, in dprc_get_attributes()
152 err = mc_send_command(mc_io, &cmd); in dprc_get_attributes()
157 DPRC_RSP_GET_ATTRIBUTES(cmd, attr); in dprc_get_attributes()
167 struct mc_command cmd = { 0 }; in dprc_get_obj_count() local
171 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_OBJ_COUNT, in dprc_get_obj_count()
176 err = mc_send_command(mc_io, &cmd); in dprc_get_obj_count()
181 DPRC_RSP_GET_OBJ_COUNT(cmd, *obj_count); in dprc_get_obj_count()
192 struct mc_command cmd = { 0 }; in dprc_get_obj() local
196 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_OBJ, in dprc_get_obj()
199 DPRC_CMD_GET_OBJ(cmd, obj_index); in dprc_get_obj()
202 err = mc_send_command(mc_io, &cmd); in dprc_get_obj()
207 DPRC_RSP_GET_OBJ(cmd, obj_desc); in dprc_get_obj()
218 struct mc_command cmd = { 0 }; in dprc_get_res_count() local
224 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_RES_COUNT, in dprc_get_res_count()
227 DPRC_CMD_GET_RES_COUNT(cmd, type); in dprc_get_res_count()
230 err = mc_send_command(mc_io, &cmd); in dprc_get_res_count()
235 DPRC_RSP_GET_RES_COUNT(cmd, *res_count); in dprc_get_res_count()
246 struct mc_command cmd = { 0 }; in dprc_get_res_ids() local
250 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_RES_IDS, in dprc_get_res_ids()
253 DPRC_CMD_GET_RES_IDS(cmd, range_desc, type); in dprc_get_res_ids()
256 err = mc_send_command(mc_io, &cmd); in dprc_get_res_ids()
261 DPRC_RSP_GET_RES_IDS(cmd, range_desc); in dprc_get_res_ids()
274 struct mc_command cmd = { 0 }; in dprc_get_obj_region() local
278 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_OBJ_REG, in dprc_get_obj_region()
281 DPRC_CMD_GET_OBJ_REGION(cmd, obj_type, obj_id, region_index); in dprc_get_obj_region()
284 err = mc_send_command(mc_io, &cmd); in dprc_get_obj_region()
289 DPRC_RSP_GET_OBJ_REGION(cmd, region_desc); in dprc_get_obj_region()
301 struct mc_command cmd = { 0 }; in dprc_connect() local
304 cmd.header = mc_encode_cmd_header(DPRC_CMDID_CONNECT, in dprc_connect()
307 DPRC_CMD_CONNECT(cmd, endpoint1, endpoint2, cfg); in dprc_connect()
310 return mc_send_command(mc_io, &cmd); in dprc_connect()
318 struct mc_command cmd = { 0 }; in dprc_disconnect() local
321 cmd.header = mc_encode_cmd_header(DPRC_CMDID_DISCONNECT, in dprc_disconnect()
324 DPRC_CMD_DISCONNECT(cmd, endpoint); in dprc_disconnect()
327 return mc_send_command(mc_io, &cmd); in dprc_disconnect()
337 struct mc_command cmd = { 0 }; in dprc_get_connection() local
341 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_CONNECTION, in dprc_get_connection()
344 DPRC_CMD_GET_CONNECTION(cmd, endpoint1); in dprc_get_connection()
347 err = mc_send_command(mc_io, &cmd); in dprc_get_connection()
352 DPRC_RSP_GET_CONNECTION(cmd, endpoint2, *state); in dprc_get_connection()