• Home
  • Raw
  • Download

Lines Matching refs:cmd

16 	struct mc_command cmd = { 0 };  in dpio_open()  local
20 cmd.header = mc_encode_cmd_header(DPIO_CMDID_OPEN, in dpio_open()
23 DPIO_CMD_OPEN(cmd, dpio_id); in dpio_open()
26 err = mc_send_command(mc_io, &cmd); in dpio_open()
31 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpio_open()
40 struct mc_command cmd = { 0 }; in dpio_close() local
43 cmd.header = mc_encode_cmd_header(DPIO_CMDID_CLOSE, in dpio_close()
48 return mc_send_command(mc_io, &cmd); in dpio_close()
57 struct mc_command cmd = { 0 }; in dpio_create() local
61 cmd.header = mc_encode_cmd_header(DPIO_CMDID_CREATE, in dpio_create()
64 DPIO_CMD_CREATE(cmd, cfg); in dpio_create()
67 err = mc_send_command(mc_io, &cmd); in dpio_create()
72 MC_CMD_READ_OBJ_ID(cmd, *obj_id); in dpio_create()
82 struct mc_command cmd = { 0 }; in dpio_destroy() local
85 cmd.header = mc_encode_cmd_header(DPIO_CMDID_DESTROY, in dpio_destroy()
90 CMD_DESTROY_SET_OBJ_ID_PARAM0(cmd, obj_id); in dpio_destroy()
93 return mc_send_command(mc_io, &cmd); in dpio_destroy()
100 struct mc_command cmd = { 0 }; in dpio_enable() local
103 cmd.header = mc_encode_cmd_header(DPIO_CMDID_ENABLE, in dpio_enable()
108 return mc_send_command(mc_io, &cmd); in dpio_enable()
115 struct mc_command cmd = { 0 }; in dpio_disable() local
118 cmd.header = mc_encode_cmd_header(DPIO_CMDID_DISABLE, in dpio_disable()
123 return mc_send_command(mc_io, &cmd); in dpio_disable()
130 struct mc_command cmd = { 0 }; in dpio_reset() local
133 cmd.header = mc_encode_cmd_header(DPIO_CMDID_RESET, in dpio_reset()
138 return mc_send_command(mc_io, &cmd); in dpio_reset()
146 struct mc_command cmd = { 0 }; in dpio_get_attributes() local
150 cmd.header = mc_encode_cmd_header(DPIO_CMDID_GET_ATTR, in dpio_get_attributes()
155 err = mc_send_command(mc_io, &cmd); in dpio_get_attributes()
160 DPIO_RSP_GET_ATTR(cmd, attr); in dpio_get_attributes()
170 struct mc_command cmd = { 0 }; in dpio_get_api_version() local
174 cmd.header = mc_encode_cmd_header(DPIO_CMDID_GET_API_VERSION, in dpio_get_api_version()
178 err = mc_send_command(mc_io, &cmd); in dpio_get_api_version()
183 mc_cmd_read_api_version(&cmd, major_ver, minor_ver); in dpio_get_api_version()