Lines Matching refs:walk
66 static inline unsigned int scatterwalk_pagelen(struct scatter_walk *walk) in scatterwalk_pagelen() argument
68 unsigned int len = walk->sg->offset + walk->sg->length - walk->offset; in scatterwalk_pagelen()
69 unsigned int len_this_page = offset_in_page(~walk->offset) + 1; in scatterwalk_pagelen()
73 static inline unsigned int scatterwalk_clamp(struct scatter_walk *walk, in scatterwalk_clamp() argument
76 unsigned int len_this_page = scatterwalk_pagelen(walk); in scatterwalk_clamp()
80 static inline void scatterwalk_advance(struct scatter_walk *walk, in scatterwalk_advance() argument
83 walk->offset += nbytes; in scatterwalk_advance()
86 static inline unsigned int scatterwalk_aligned(struct scatter_walk *walk, in scatterwalk_aligned() argument
89 return !(walk->offset & alignmask); in scatterwalk_aligned()
92 static inline struct page *scatterwalk_page(struct scatter_walk *walk) in scatterwalk_page() argument
94 return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); in scatterwalk_page()
102 void scatterwalk_start(struct scatter_walk *walk, struct scatterlist *sg);
103 void scatterwalk_copychunks(void *buf, struct scatter_walk *walk,
105 void *scatterwalk_map(struct scatter_walk *walk);
106 void scatterwalk_done(struct scatter_walk *walk, int out, int more);