Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/memstick/core/
Dms_block.c40 static size_t msb_sg_copy(struct scatterlist *sg_from, in msb_sg_copy() argument
46 if (offset >= sg_from->length) { in msb_sg_copy()
47 if (sg_is_last(sg_from)) in msb_sg_copy()
50 offset -= sg_from->length; in msb_sg_copy()
51 sg_from = sg_next(sg_from); in msb_sg_copy()
55 copied = min(len, sg_from->length - offset); in msb_sg_copy()
56 sg_set_page(sg_to, sg_page(sg_from), in msb_sg_copy()
57 copied, sg_from->offset + offset); in msb_sg_copy()
62 if (sg_is_last(sg_from) || !len) in msb_sg_copy()
67 sg_from = sg_next(sg_from); in msb_sg_copy()
[all …]