linux/drivers/crypto/rockchip/cryptodev_linux/util.h
Tao Huang e05d2d55e1 crypto: rockchip: cryptodev_linux: rename global func name
Add cryptodev_ prefix.

Replacements are done by the following command:
for i in kcaop_from_user kcaop_to_user adjust_sg_array release_user_pages sg_advance sg_copy; do sed -i "s/$i/cryptodev_$i/g" *.c *.h; done
sed -i -e "s/ get_userbuf(/ cryptodev_get_userbuf(/g" -e "s/ __get_userbuf(/ __cryptodev_get_userbuf(/g" *.c *.h

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I7a3aee655427faffac6baad0e155bd76638ae040
2022-01-13 19:50:25 +08:00

9 lines
249 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
#ifndef UTILS_H
#define UTILS_H
int cryptodev_sg_copy(struct scatterlist *sg_from, struct scatterlist *sg_to, int len);
struct scatterlist *cryptodev_sg_advance(struct scatterlist *sg, int consumed);
#endif