1 /* SPDX-License-Identifier: GPL-2.0 */
3 * CAAM Error Reporting code header
5 * Copyright 2009-2011 Freescale Semiconductor, Inc.
13 #define CAAM_ERROR_STR_MAX 302
15 int caam_strstatus(struct device
*dev
, u32 status
, bool qi_v2
);
17 #define caam_jr_strstatus(jrdev, status) caam_strstatus(jrdev, status, false)
18 #define caam_qi2_strstatus(qidev, status) caam_strstatus(qidev, status, true)
20 void caam_dump_sg(const char *prefix_str
, int prefix_type
,
21 int rowsize
, int groupsize
, struct scatterlist
*sg
,
22 size_t tlen
, bool ascii
);
24 static inline bool is_mdha(u32 algtype
)
26 return (algtype
& OP_ALG_ALGSEL_MASK
& ~OP_ALG_ALGSEL_SUBMASK
) ==
29 #endif /* CAAM_ERROR_H */