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

Function dpseci_enable

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

* dpseci_enable() - Enable the DPSECI, allow 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

179 * Return: '0' on Success; Error code otherwise.
180 */
181int dpseci_enable(struct fsl_mc_io *mc_io,
182 uint32_t cmd_flags,
183 uint16_t token)
184{
185 struct mc_command cmd = { 0 };
186
187 /* prepare command */
188 cmd.header = mc_encode_cmd_header(DPSECI_CMDID_ENABLE,
189 cmd_flags,
190 token);
191
192 /* send command to mc*/
193 return mc_send_command(mc_io, &cmd);
194}
195
196/**
197 * dpseci_disable() - Disable the DPSECI, stop sending and receiving frames.

Callers 1

dpaa2_sec_dev_startFunction · 0.85

Calls 2

mc_encode_cmd_headerFunction · 0.85
mc_send_commandFunction · 0.85

Tested by

no test coverage detected