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()
56 struct mc_command cmd = { 0 }; in dpio_create() local
60 cmd.header = mc_encode_cmd_header(DPIO_CMDID_CREATE, in dpio_create()
63 DPIO_CMD_CREATE(cmd, cfg); in dpio_create()
66 err = mc_send_command(mc_io, &cmd); in dpio_create()
71 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpio_create()
80 struct mc_command cmd = { 0 }; in dpio_destroy() local
83 cmd.header = mc_encode_cmd_header(DPIO_CMDID_DESTROY, in dpio_destroy()
88 return mc_send_command(mc_io, &cmd); in dpio_destroy()
95 struct mc_command cmd = { 0 }; in dpio_enable() local
98 cmd.header = mc_encode_cmd_header(DPIO_CMDID_ENABLE, in dpio_enable()
103 return mc_send_command(mc_io, &cmd); in dpio_enable()
110 struct mc_command cmd = { 0 }; in dpio_disable() local
113 cmd.header = mc_encode_cmd_header(DPIO_CMDID_DISABLE, in dpio_disable()
118 return mc_send_command(mc_io, &cmd); in dpio_disable()
125 struct mc_command cmd = { 0 }; in dpio_reset() local
128 cmd.header = mc_encode_cmd_header(DPIO_CMDID_RESET, in dpio_reset()
133 return mc_send_command(mc_io, &cmd); in dpio_reset()
141 struct mc_command cmd = { 0 }; in dpio_get_attributes() local
145 cmd.header = mc_encode_cmd_header(DPIO_CMDID_GET_ATTR, in dpio_get_attributes()
150 err = mc_send_command(mc_io, &cmd); in dpio_get_attributes()
155 DPIO_RSP_GET_ATTR(cmd, attr); in dpio_get_attributes()