• Home
  • Raw
  • Download

Lines Matching refs:cmd

19 	struct mc_command cmd = { 0 };  in dpmac_open()  local
23 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_OPEN, in dpmac_open()
26 DPMAC_CMD_OPEN(cmd, dpmac_id); in dpmac_open()
29 err = mc_send_command(mc_io, &cmd); in dpmac_open()
34 *token = MC_CMD_HDR_READ_TOKEN(cmd.header); in dpmac_open()
43 struct mc_command cmd = { 0 }; in dpmac_close() local
46 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_CLOSE, cmd_flags, in dpmac_close()
50 return mc_send_command(mc_io, &cmd); in dpmac_close()
59 struct mc_command cmd = { 0 }; in dpmac_create() local
63 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_CREATE, in dpmac_create()
66 DPMAC_CMD_CREATE(cmd, cfg); in dpmac_create()
69 err = mc_send_command(mc_io, &cmd); in dpmac_create()
74 MC_CMD_READ_OBJ_ID(cmd, *obj_id); in dpmac_create()
84 struct mc_command cmd = { 0 }; in dpmac_destroy() local
87 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_DESTROY, in dpmac_destroy()
92 CMD_DESTROY_SET_OBJ_ID_PARAM0(cmd, obj_id); in dpmac_destroy()
95 return mc_send_command(mc_io, &cmd); in dpmac_destroy()
103 struct mc_command cmd = { 0 }; in dpmac_get_attributes() local
107 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_GET_ATTR, in dpmac_get_attributes()
112 err = mc_send_command(mc_io, &cmd); in dpmac_get_attributes()
117 DPMAC_RSP_GET_ATTRIBUTES(cmd, attr); in dpmac_get_attributes()
127 struct mc_command cmd = { 0 }; in dpmac_mdio_read() local
131 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_MDIO_READ, in dpmac_mdio_read()
134 DPMAC_CMD_MDIO_READ(cmd, cfg); in dpmac_mdio_read()
137 err = mc_send_command(mc_io, &cmd); in dpmac_mdio_read()
142 DPMAC_RSP_MDIO_READ(cmd, cfg->data); in dpmac_mdio_read()
152 struct mc_command cmd = { 0 }; in dpmac_mdio_write() local
155 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_MDIO_WRITE, in dpmac_mdio_write()
158 DPMAC_CMD_MDIO_WRITE(cmd, cfg); in dpmac_mdio_write()
161 return mc_send_command(mc_io, &cmd); in dpmac_mdio_write()
169 struct mc_command cmd = { 0 }; in dpmac_get_link_cfg() local
173 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_GET_LINK_CFG, in dpmac_get_link_cfg()
178 err = mc_send_command(mc_io, &cmd); in dpmac_get_link_cfg()
182 DPMAC_RSP_GET_LINK_CFG(cmd, cfg); in dpmac_get_link_cfg()
192 struct mc_command cmd = { 0 }; in dpmac_set_link_state() local
195 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_SET_LINK_STATE, in dpmac_set_link_state()
198 DPMAC_CMD_SET_LINK_STATE(cmd, link_state); in dpmac_set_link_state()
201 return mc_send_command(mc_io, &cmd); in dpmac_set_link_state()
210 struct mc_command cmd = { 0 }; in dpmac_get_counter() local
214 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_GET_COUNTER, in dpmac_get_counter()
217 DPMAC_CMD_GET_COUNTER(cmd, type); in dpmac_get_counter()
220 err = mc_send_command(mc_io, &cmd); in dpmac_get_counter()
224 DPMAC_RSP_GET_COUNTER(cmd, *counter); in dpmac_get_counter()
234 struct mc_command cmd = { 0 }; in dpmac_get_api_version() local
238 cmd.header = mc_encode_cmd_header(DPMAC_CMDID_GET_API_VERSION, in dpmac_get_api_version()
242 err = mc_send_command(mc_io, &cmd); in dpmac_get_api_version()
247 mc_cmd_read_api_version(&cmd, major_ver, minor_ver); in dpmac_get_api_version()