#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/zlib.h>
#include "backend_deflate.h"
#define DEFLATE_DEF_WINBITS …
#define DEFLATE_DEF_MEMLEVEL …
struct deflate_ctx { … };
static void deflate_release_params(struct zcomp_params *params)
{ … }
static int deflate_setup_params(struct zcomp_params *params)
{ … }
static void deflate_destroy(struct zcomp_ctx *ctx)
{ … }
static int deflate_create(struct zcomp_params *params, struct zcomp_ctx *ctx)
{ … }
static int deflate_compress(struct zcomp_params *params, struct zcomp_ctx *ctx,
struct zcomp_req *req)
{ … }
static int deflate_decompress(struct zcomp_params *params,
struct zcomp_ctx *ctx,
struct zcomp_req *req)
{ … }
const struct zcomp_ops backend_deflate = …;