Lines Matching refs:sg
20 struct scatterlist *sg, int num) in scatterwalk_crypto_chain() argument
22 if (sg) in scatterwalk_crypto_chain()
23 sg_chain(head, num, sg); in scatterwalk_crypto_chain()
30 unsigned int len = walk->sg->offset + walk->sg->length - walk->offset; in scatterwalk_pagelen()
56 return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); in scatterwalk_page()
65 struct scatterlist *sg) in scatterwalk_start() argument
67 walk->sg = sg; in scatterwalk_start()
68 walk->offset = sg->offset; in scatterwalk_start()
83 page = sg_page(walk->sg) + ((walk->offset - 1) >> PAGE_SHIFT); in scatterwalk_pagedone()
87 if (more && walk->offset >= walk->sg->offset + walk->sg->length) in scatterwalk_pagedone()
88 scatterwalk_start(walk, sg_next(walk->sg)); in scatterwalk_pagedone()
94 if (!more || walk->offset >= walk->sg->offset + walk->sg->length || in scatterwalk_done()
103 void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg,