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

Function dpseci_reset

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

* dpseci_reset() - Reset the DPSECI, returns the object to initial state. * @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. */

Source from the content-addressed store, hash-verified

260 * Return: '0' on Success; Error code otherwise.
261 */
262int dpseci_reset(struct fsl_mc_io *mc_io,
263 uint32_t cmd_flags,
264 uint16_t token)
265{
266 struct mc_command cmd = { 0 };
267
268 /* prepare command */
269 cmd.header = mc_encode_cmd_header(DPSECI_CMDID_RESET,
270 cmd_flags,
271 token);
272
273 /* send command to mc*/
274 return mc_send_command(mc_io, &cmd);
275}
276
277/**
278 * dpseci_get_attributes() - Retrieve DPSECI attributes.

Callers 1

dpaa2_sec_dev_stopFunction · 0.85

Calls 2

mc_encode_cmd_headerFunction · 0.85
mc_send_commandFunction · 0.85

Tested by

no test coverage detected