Lines Matching refs:cmd
17 struct mc_command cmd = { 0 }; in dpbp_open() local
21 cmd.header = mc_encode_cmd_header(DPBP_CMDID_OPEN, in dpbp_open()
24 DPBP_CMD_OPEN(cmd, dpbp_id); in dpbp_open()
27 err = mc_send_command(mc_io, &cmd); in dpbp_open()
32 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpbp_open()
41 struct mc_command cmd = { 0 }; in dpbp_close() local
44 cmd.header = mc_encode_cmd_header(DPBP_CMDID_CLOSE, cmd_flags, in dpbp_close()
48 return mc_send_command(mc_io, &cmd); in dpbp_close()
57 struct mc_command cmd = { 0 }; in dpbp_create() local
63 cmd.header = mc_encode_cmd_header(DPBP_CMDID_CREATE, in dpbp_create()
68 err = mc_send_command(mc_io, &cmd); in dpbp_create()
73 MC_CMD_READ_OBJ_ID(cmd, *obj_id); in dpbp_create()
83 struct mc_command cmd = { 0 }; in dpbp_destroy() local
86 cmd.header = mc_encode_cmd_header(DPBP_CMDID_DESTROY, in dpbp_destroy()
91 CMD_DESTROY_SET_OBJ_ID_PARAM0(cmd, obj_id); in dpbp_destroy()
94 return mc_send_command(mc_io, &cmd); in dpbp_destroy()
101 struct mc_command cmd = { 0 }; in dpbp_enable() local
104 cmd.header = mc_encode_cmd_header(DPBP_CMDID_ENABLE, cmd_flags, in dpbp_enable()
108 return mc_send_command(mc_io, &cmd); in dpbp_enable()
115 struct mc_command cmd = { 0 }; in dpbp_disable() local
118 cmd.header = mc_encode_cmd_header(DPBP_CMDID_DISABLE, in dpbp_disable()
123 return mc_send_command(mc_io, &cmd); in dpbp_disable()
130 struct mc_command cmd = { 0 }; in dpbp_reset() local
133 cmd.header = mc_encode_cmd_header(DPBP_CMDID_RESET, in dpbp_reset()
138 return mc_send_command(mc_io, &cmd); in dpbp_reset()
146 struct mc_command cmd = { 0 }; in dpbp_get_attributes() local
150 cmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_ATTR, in dpbp_get_attributes()
155 err = mc_send_command(mc_io, &cmd); in dpbp_get_attributes()
160 DPBP_RSP_GET_ATTRIBUTES(cmd, attr); in dpbp_get_attributes()
170 struct mc_command cmd = { 0 }; in dpbp_get_api_version() local
174 cmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_API_VERSION, in dpbp_get_api_version()
178 err = mc_send_command(mc_io, &cmd); in dpbp_get_api_version()
183 mc_cmd_read_api_version(&cmd, major_ver, minor_ver); in dpbp_get_api_version()