#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/wait.h>
#include <linux/sched.h>
#include <linux/cpu.h>
#include <linux/crypto.h>
#include <linux/vmalloc.h>
#include "zcomp.h"
#include "backend_lzo.h"
#include "backend_lzorle.h"
#include "backend_lz4.h"
#include "backend_lz4hc.h"
#include "backend_zstd.h"
#include "backend_deflate.h"
#include "backend_842.h"
static const struct zcomp_ops *backends[] = …;
static void zcomp_strm_free(struct zcomp *comp, struct zcomp_strm *zstrm)
{ … }
static int zcomp_strm_init(struct zcomp *comp, struct zcomp_strm *zstrm)
{ … }
static const struct zcomp_ops *lookup_backend_ops(const char *comp)
{ … }
bool zcomp_available_algorithm(const char *comp)
{ … }
ssize_t zcomp_available_show(const char *comp, char *buf)
{ … }
struct zcomp_strm *zcomp_stream_get(struct zcomp *comp)
{ … }
void zcomp_stream_put(struct zcomp *comp)
{ … }
int zcomp_compress(struct zcomp *comp, struct zcomp_strm *zstrm,
const void *src, unsigned int *dst_len)
{ … }
int zcomp_decompress(struct zcomp *comp, struct zcomp_strm *zstrm,
const void *src, unsigned int src_len, void *dst)
{ … }
int zcomp_cpu_up_prepare(unsigned int cpu, struct hlist_node *node)
{ … }
int zcomp_cpu_dead(unsigned int cpu, struct hlist_node *node)
{ … }
static int zcomp_init(struct zcomp *comp, struct zcomp_params *params)
{ … }
void zcomp_destroy(struct zcomp *comp)
{ … }
struct zcomp *zcomp_create(const char *alg, struct zcomp_params *params)
{ … }