Lines Matching +full:com +full:- +full:offset
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
6 * Copyright (c) 2002 Adam J. Richter <adam@yggdrasil.com>
7 * Copyright (c) 2004 Jean-Luc Cooke <jlcooke@certainkey.com>
31 unsigned int len = walk->sg->offset + walk->sg->length - walk->offset; in scatterwalk_pagelen()
32 unsigned int len_this_page = offset_in_page(~walk->offset) + 1; in scatterwalk_pagelen()
46 walk->offset += nbytes; in scatterwalk_advance()
51 return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); in scatterwalk_page()
62 walk->sg = sg; in scatterwalk_start()
63 walk->offset = sg->offset; in scatterwalk_start()
69 offset_in_page(walk->offset); in scatterwalk_map()
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()
90 !(walk->offset & (PAGE_SIZE - 1))) in scatterwalk_done()