Lines Matching refs:cmd
17 struct mc_command cmd = { 0 }; in dprc_get_container_id() local
21 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_CONT_ID, in dprc_get_container_id()
26 err = mc_send_command(mc_io, &cmd); in dprc_get_container_id()
31 DPRC_RSP_GET_CONTAINER_ID(cmd, *container_id); in dprc_get_container_id()
41 struct mc_command cmd = { 0 }; in dprc_open() local
45 cmd.header = mc_encode_cmd_header(DPRC_CMDID_OPEN, cmd_flags, in dprc_open()
47 DPRC_CMD_OPEN(cmd, container_id); in dprc_open()
50 err = mc_send_command(mc_io, &cmd); in dprc_open()
55 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dprc_open()
64 struct mc_command cmd = { 0 }; in dprc_close() local
67 cmd.header = mc_encode_cmd_header(DPRC_CMDID_CLOSE, cmd_flags, in dprc_close()
71 return mc_send_command(mc_io, &cmd); in dprc_close()
81 struct mc_command cmd = { 0 }; in dprc_create_container() local
85 DPRC_CMD_CREATE_CONTAINER(cmd, cfg); in dprc_create_container()
87 cmd.header = mc_encode_cmd_header(DPRC_CMDID_CREATE_CONT, in dprc_create_container()
92 err = mc_send_command(mc_io, &cmd); in dprc_create_container()
97 DPRC_RSP_CREATE_CONTAINER(cmd, *child_container_id, in dprc_create_container()
108 struct mc_command cmd = { 0 }; in dprc_destroy_container() local
111 cmd.header = mc_encode_cmd_header(DPRC_CMDID_DESTROY_CONT, in dprc_destroy_container()
114 DPRC_CMD_DESTROY_CONTAINER(cmd, child_container_id); in dprc_destroy_container()
117 return mc_send_command(mc_io, &cmd); in dprc_destroy_container()
125 struct mc_command cmd = { 0 }; in dprc_reset_container() local
128 cmd.header = mc_encode_cmd_header(DPRC_CMDID_RESET_CONT, in dprc_reset_container()
131 DPRC_CMD_RESET_CONTAINER(cmd, child_container_id); in dprc_reset_container()
134 return mc_send_command(mc_io, &cmd); in dprc_reset_container()
142 struct mc_command cmd = { 0 }; in dprc_get_attributes() local
146 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_ATTR, in dprc_get_attributes()
151 err = mc_send_command(mc_io, &cmd); in dprc_get_attributes()
156 DPRC_RSP_GET_ATTRIBUTES(cmd, attr); in dprc_get_attributes()
166 struct mc_command cmd = { 0 }; in dprc_get_obj_count() local
170 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_OBJ_COUNT, in dprc_get_obj_count()
175 err = mc_send_command(mc_io, &cmd); in dprc_get_obj_count()
180 DPRC_RSP_GET_OBJ_COUNT(cmd, *obj_count); in dprc_get_obj_count()
191 struct mc_command cmd = { 0 }; in dprc_get_obj() local
195 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_OBJ, in dprc_get_obj()
198 DPRC_CMD_GET_OBJ(cmd, obj_index); in dprc_get_obj()
201 err = mc_send_command(mc_io, &cmd); in dprc_get_obj()
206 DPRC_RSP_GET_OBJ(cmd, obj_desc); in dprc_get_obj()
217 struct mc_command cmd = { 0 }; in dprc_get_res_count() local
223 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_RES_COUNT, in dprc_get_res_count()
226 DPRC_CMD_GET_RES_COUNT(cmd, type); in dprc_get_res_count()
229 err = mc_send_command(mc_io, &cmd); in dprc_get_res_count()
234 DPRC_RSP_GET_RES_COUNT(cmd, *res_count); in dprc_get_res_count()
245 struct mc_command cmd = { 0 }; in dprc_get_res_ids() local
249 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_RES_IDS, in dprc_get_res_ids()
252 DPRC_CMD_GET_RES_IDS(cmd, range_desc, type); in dprc_get_res_ids()
255 err = mc_send_command(mc_io, &cmd); in dprc_get_res_ids()
260 DPRC_RSP_GET_RES_IDS(cmd, range_desc); in dprc_get_res_ids()
273 struct mc_command cmd = { 0 }; in dprc_get_obj_region() local
277 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_OBJ_REG, in dprc_get_obj_region()
280 DPRC_CMD_GET_OBJ_REGION(cmd, obj_type, obj_id, region_index); in dprc_get_obj_region()
283 err = mc_send_command(mc_io, &cmd); in dprc_get_obj_region()
288 DPRC_RSP_GET_OBJ_REGION(cmd, region_desc); in dprc_get_obj_region()
300 struct mc_command cmd = { 0 }; in dprc_connect() local
303 cmd.header = mc_encode_cmd_header(DPRC_CMDID_CONNECT, in dprc_connect()
306 DPRC_CMD_CONNECT(cmd, endpoint1, endpoint2, cfg); in dprc_connect()
309 return mc_send_command(mc_io, &cmd); in dprc_connect()
317 struct mc_command cmd = { 0 }; in dprc_disconnect() local
320 cmd.header = mc_encode_cmd_header(DPRC_CMDID_DISCONNECT, in dprc_disconnect()
323 DPRC_CMD_DISCONNECT(cmd, endpoint); in dprc_disconnect()
326 return mc_send_command(mc_io, &cmd); in dprc_disconnect()
336 struct mc_command cmd = { 0 }; in dprc_get_connection() local
340 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_CONNECTION, in dprc_get_connection()
343 DPRC_CMD_GET_CONNECTION(cmd, endpoint1); in dprc_get_connection()
346 err = mc_send_command(mc_io, &cmd); in dprc_get_connection()
351 DPRC_RSP_GET_CONNECTION(cmd, endpoint2, *state); in dprc_get_connection()
361 struct mc_command cmd = { 0 }; in dprc_get_api_version() local
365 cmd.header = mc_encode_cmd_header(DPRC_CMDID_GET_API_VERSION, in dprc_get_api_version()
369 err = mc_send_command(mc_io, &cmd); in dprc_get_api_version()
374 mc_cmd_read_api_version(&cmd, major_ver, minor_ver); in dprc_get_api_version()