* dpseci_close() - Close the control session of the object * @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 * * After this function is called, no further operations are * allowed on the object without opening a new control session. * * Return: '0' on Success; Error code otherwise. */
| 66 | * Return: '0' on Success; Error code otherwise. |
| 67 | */ |
| 68 | int dpseci_close(struct fsl_mc_io *mc_io, |
| 69 | uint32_t cmd_flags, |
| 70 | uint16_t token) |
| 71 | { |
| 72 | struct mc_command cmd = { 0 }; |
| 73 | |
| 74 | /* prepare command */ |
| 75 | cmd.header = mc_encode_cmd_header(DPSECI_CMDID_CLOSE, |
| 76 | cmd_flags, |
| 77 | token); |
| 78 | |
| 79 | /* send command to mc*/ |
| 80 | return mc_send_command(mc_io, &cmd); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * dpseci_create() - Create the DPSECI object |
no test coverage detected