MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dpseci_close

Function dpseci_close

dpdk/drivers/crypto/dpaa2_sec/mc/dpseci.c:68–81  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

66 * Return: '0' on Success; Error code otherwise.
67 */
68int 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

Callers 1

dpaa2_sec_uninitFunction · 0.85

Calls 2

mc_encode_cmd_headerFunction · 0.85
mc_send_commandFunction · 0.85

Tested by

no test coverage detected