Lines Matching refs:cmd

32 	struct fsl_mc_command cmd = { 0 };  in dpmac_open()  local
36 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_OPEN, in dpmac_open()
39 cmd_params = (struct dpmac_cmd_open *)cmd.params; in dpmac_open()
43 err = mc_send_command(mc_io, &cmd); in dpmac_open()
48 *token = mc_cmd_hdr_read_token(&cmd); in dpmac_open()
68 struct fsl_mc_command cmd = { 0 }; in dpmac_close() local
71 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_CLOSE, cmd_flags, in dpmac_close()
75 return mc_send_command(mc_io, &cmd); in dpmac_close()
94 struct fsl_mc_command cmd = { 0 }; in dpmac_get_attributes() local
98 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_GET_ATTR, in dpmac_get_attributes()
103 err = mc_send_command(mc_io, &cmd); in dpmac_get_attributes()
108 rsp_params = (struct dpmac_rsp_get_attributes *)cmd.params; in dpmac_get_attributes()
132 struct fsl_mc_command cmd = { 0 }; in dpmac_set_link_state() local
135 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_SET_LINK_STATE, in dpmac_set_link_state()
138 cmd_params = (struct dpmac_cmd_set_link_state *)cmd.params; in dpmac_set_link_state()
148 return mc_send_command(mc_io, &cmd); in dpmac_set_link_state()
166 struct fsl_mc_command cmd = { 0 }; in dpmac_get_counter() local
169 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_GET_COUNTER, in dpmac_get_counter()
172 dpmac_cmd = (struct dpmac_cmd_get_counter *)cmd.params; in dpmac_get_counter()
175 err = mc_send_command(mc_io, &cmd); in dpmac_get_counter()
179 dpmac_rsp = (struct dpmac_rsp_get_counter *)cmd.params; in dpmac_get_counter()
198 struct fsl_mc_command cmd = { 0 }; in dpmac_get_api_version() local
201 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_GET_API_VERSION, in dpmac_get_api_version()
205 err = mc_send_command(mc_io, &cmd); in dpmac_get_api_version()
209 rsp_params = (struct dpmac_rsp_get_api_version *)cmd.params; in dpmac_get_api_version()
229 struct fsl_mc_command cmd = { 0 }; in dpmac_set_protocol() local
231 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_SET_PROTOCOL, in dpmac_set_protocol()
233 cmd_params = (struct dpmac_cmd_set_protocol *)cmd.params; in dpmac_set_protocol()
236 return mc_send_command(mc_io, &cmd); in dpmac_set_protocol()