Home
last modified time | relevance | path

Searched refs:crypto_scomp (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/include/crypto/internal/
H A Dscompress.h19 struct crypto_scomp { struct
35 void *(*alloc_ctx)(struct crypto_scomp *tfm); argument
36 void (*free_ctx)(struct crypto_scomp *tfm, void *ctx);
37 int (*compress)(struct crypto_scomp *tfm, const u8 *src,
40 int (*decompress)(struct crypto_scomp *tfm, const u8 *src,
57 return container_of(tfm, struct crypto_scomp, base); in __crypto_scomp_tfm()
65 static inline void crypto_free_scomp(struct crypto_scomp *tfm) in crypto_free_scomp()
75 static inline void *crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) in crypto_scomp_alloc_ctx()
80 static inline void crypto_scomp_free_ctx(struct crypto_scomp *tfm, in crypto_scomp_free_ctx()
86 static inline int crypto_scomp_compress(struct crypto_scomp *tfm, in crypto_scomp_compress()
[all …]
/openbmc/linux/drivers/crypto/cavium/zip/
H A Dzip_crypto.h70 void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm);
71 void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm);
72 void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *zip_ctx);
73 int zip_scomp_compress(struct crypto_scomp *tfm,
76 int zip_scomp_decompress(struct crypto_scomp *tfm,
H A Dzip_crypto.c239 void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm) in zip_alloc_scomp_ctx_deflate()
258 void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm) in zip_alloc_scomp_ctx_lzs()
277 void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *ctx) in zip_free_scomp_ctx()
285 int zip_scomp_compress(struct crypto_scomp *tfm, in zip_scomp_compress()
294 int zip_scomp_decompress(struct crypto_scomp *tfm, in zip_scomp_decompress()
/openbmc/linux/crypto/
H A Dscompress.c117 struct crypto_scomp *scomp = *tfm_ctx; in scomp_acomp_comp_decomp()
175 struct crypto_scomp **ctx = crypto_tfm_ctx(tfm); in crypto_exit_scomp_ops_async()
189 struct crypto_scomp **ctx = crypto_tfm_ctx(tfm); in crypto_init_scomp_ops_async()
190 struct crypto_scomp *scomp; in crypto_init_scomp_ops_async()
216 struct crypto_scomp **tfm_ctx = crypto_tfm_ctx(tfm); in crypto_acomp_scomp_alloc_ctx()
217 struct crypto_scomp *scomp = *tfm_ctx; in crypto_acomp_scomp_alloc_ctx()
235 struct crypto_scomp **tfm_ctx = crypto_tfm_ctx(tfm); in crypto_acomp_scomp_free_ctx()
236 struct crypto_scomp *scomp = *tfm_ctx; in crypto_acomp_scomp_free_ctx()
258 .tfmsize = offsetof(struct crypto_scomp, base),
H A D842.c31 static void *crypto842_alloc_ctx(struct crypto_scomp *tfm) in crypto842_alloc_ctx()
53 static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx) in crypto842_free_ctx()
74 static int crypto842_scompress(struct crypto_scomp *tfm, in crypto842_scompress()
88 static int crypto842_sdecompress(struct crypto_scomp *tfm, in crypto842_sdecompress()
H A Dlz4.c19 static void *lz4_alloc_ctx(struct crypto_scomp *tfm) in lz4_alloc_ctx()
41 static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4_free_ctx()
66 static int lz4_scompress(struct crypto_scomp *tfm, const u8 *src, in lz4_scompress()
93 static int lz4_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lz4_sdecompress()
H A Dlz4hc.c18 static void *lz4hc_alloc_ctx(struct crypto_scomp *tfm) in lz4hc_alloc_ctx()
40 static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4hc_free_ctx()
65 static int lz4hc_scompress(struct crypto_scomp *tfm, const u8 *src, in lz4hc_scompress()
94 static int lz4hc_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lz4hc_sdecompress()
H A Dlzo.c18 static void *lzo_alloc_ctx(struct crypto_scomp *tfm) in lzo_alloc_ctx()
40 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzo_free_ctx()
75 static int lzo_scompress(struct crypto_scomp *tfm, const u8 *src, in lzo_scompress()
103 static int lzo_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lzo_sdecompress()
H A Dlzo-rle.c18 static void *lzorle_alloc_ctx(struct crypto_scomp *tfm) in lzorle_alloc_ctx()
40 static void lzorle_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzorle_free_ctx()
75 static int lzorle_scompress(struct crypto_scomp *tfm, const u8 *src, in lzorle_scompress()
103 static int lzorle_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lzorle_sdecompress()
H A Ddeflate.c122 static void *gen_deflate_alloc_ctx(struct crypto_scomp *tfm, int format) in gen_deflate_alloc_ctx()
140 static void *deflate_alloc_ctx(struct crypto_scomp *tfm) in deflate_alloc_ctx()
145 static void *zlib_deflate_alloc_ctx(struct crypto_scomp *tfm) in zlib_deflate_alloc_ctx()
163 static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) in deflate_free_ctx()
213 static int deflate_scompress(struct crypto_scomp *tfm, const u8 *src, in deflate_scompress()
269 static int deflate_sdecompress(struct crypto_scomp *tfm, const u8 *src, in deflate_sdecompress()
H A Dzstd.c106 static void *zstd_alloc_ctx(struct crypto_scomp *tfm) in zstd_alloc_ctx()
137 static void zstd_free_ctx(struct crypto_scomp *tfm, void *ctx) in zstd_free_ctx()
172 static int zstd_scompress(struct crypto_scomp *tfm, const u8 *src, in zstd_scompress()
200 static int zstd_sdecompress(struct crypto_scomp *tfm, const u8 *src, in zstd_sdecompress()
H A Dacompress.c22 struct crypto_scomp;
91 extsize += sizeof(struct crypto_scomp *); in crypto_acomp_extsize()