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

Function dpseci_disable

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

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

Source from the content-addressed store, hash-verified

202 * Return: '0' on Success; Error code otherwise.
203 */
204int 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.

Callers 2

dpaa2_sec_dev_startFunction · 0.85
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