Home
last modified time | relevance | path

Searched refs:sg_from (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/cryptodev_linux/
H A Dutil.c59 int cryptodev_sg_copy(struct scatterlist *sg_from, struct scatterlist *sg_to, int len) in cryptodev_sg_copy() argument
61 while (len > sg_from->length) { in cryptodev_sg_copy()
62 len -= sg_from->length; in cryptodev_sg_copy()
64 sg_set_page(sg_to, sg_page(sg_from), in cryptodev_sg_copy()
65 sg_from->length, sg_from->offset); in cryptodev_sg_copy()
68 sg_from = sg_next(sg_from); in cryptodev_sg_copy()
70 if (len && (!sg_from || !sg_to)) in cryptodev_sg_copy()
75 sg_set_page(sg_to, sg_page(sg_from), in cryptodev_sg_copy()
76 len, sg_from->offset); in cryptodev_sg_copy()
H A Dutil.h5 int cryptodev_sg_copy(struct scatterlist *sg_from, struct scatterlist *sg_to, int len);
/OK3568_Linux_fs/kernel/drivers/memstick/core/
H A Dms_block.c36 static size_t msb_sg_copy(struct scatterlist *sg_from, in msb_sg_copy() argument
42 if (offset >= sg_from->length) { in msb_sg_copy()
43 if (sg_is_last(sg_from)) in msb_sg_copy()
46 offset -= sg_from->length; in msb_sg_copy()
47 sg_from = sg_next(sg_from); in msb_sg_copy()
51 copied = min(len, sg_from->length - offset); in msb_sg_copy()
52 sg_set_page(sg_to, sg_page(sg_from), in msb_sg_copy()
53 copied, sg_from->offset + offset); in msb_sg_copy()
58 if (sg_is_last(sg_from) || !len) in msb_sg_copy()
63 sg_from = sg_next(sg_from); in msb_sg_copy()
[all …]