Lines Matching refs:copy
173 size_t copy; in copy_to_brd_setup() local
176 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd_setup()
180 if (copy < n) { in copy_to_brd_setup()
181 sector += copy >> SECTOR_SHIFT; in copy_to_brd_setup()
196 size_t copy; in copy_to_brd() local
198 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd()
203 memcpy(dst + offset, src, copy); in copy_to_brd()
206 if (copy < n) { in copy_to_brd()
207 src += copy; in copy_to_brd()
208 sector += copy >> SECTOR_SHIFT; in copy_to_brd()
209 copy = n - copy; in copy_to_brd()
214 memcpy(dst, src, copy); in copy_to_brd()
228 size_t copy; in copy_from_brd() local
230 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_from_brd()
234 memcpy(dst, src + offset, copy); in copy_from_brd()
237 memset(dst, 0, copy); in copy_from_brd()
239 if (copy < n) { in copy_from_brd()
240 dst += copy; in copy_from_brd()
241 sector += copy >> SECTOR_SHIFT; in copy_from_brd()
242 copy = n - copy; in copy_from_brd()
246 memcpy(dst, src, copy); in copy_from_brd()
249 memset(dst, 0, copy); in copy_from_brd()