* dpseci_disable() - Disable the DPSECI, stop sending and receiving frames. * @mc_io: Pointer to MC portal's I/O object * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' * @token: Token of DPSECI object * * Return: '0' on Success; Error code otherwise. */
| 202 | * Return: '0' on Success; Error code otherwise. |
| 203 | */ |
| 204 | int dpseci_disable(struct fsl_mc_io *mc_io, |
| 205 | uint32_t cmd_flags, |
| 206 | uint16_t token) |
| 207 | { |
| 208 | struct mc_command cmd = { 0 }; |
| 209 | |
| 210 | /* prepare command */ |
| 211 | cmd.header = mc_encode_cmd_header(DPSECI_CMDID_DISABLE, |
| 212 | cmd_flags, |
| 213 | token); |
| 214 | |
| 215 | /* send command to mc*/ |
| 216 | return mc_send_command(mc_io, &cmd); |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * dpseci_is_enabled() - Check if the DPSECI is enabled. |
no test coverage detected