Lines Matching full:sg
21 struct scatterlist *sg, int num) in scatterwalk_crypto_chain() argument
23 if (sg) in scatterwalk_crypto_chain()
24 sg_chain(head, num, sg); in scatterwalk_crypto_chain()
31 unsigned int len = walk->sg->offset + walk->sg->length - walk->offset; in scatterwalk_pagelen()
51 return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); in scatterwalk_page()
60 struct scatterlist *sg) in scatterwalk_start() argument
62 walk->sg = sg; in scatterwalk_start()
63 walk->offset = sg->offset; in scatterwalk_start()
78 page = sg_page(walk->sg) + ((walk->offset - 1) >> PAGE_SHIFT); in scatterwalk_pagedone()
82 if (more && walk->offset >= walk->sg->offset + walk->sg->length) in scatterwalk_pagedone()
83 scatterwalk_start(walk, sg_next(walk->sg)); in scatterwalk_pagedone()
89 if (!more || walk->offset >= walk->sg->offset + walk->sg->length || in scatterwalk_done()
97 void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg,