Lines Matching refs:bytes
165 unsigned int bytes = PAGE_SIZE; in bio_copy_user_iov() local
167 bytes -= offset; in bio_copy_user_iov()
169 if (bytes > len) in bio_copy_user_iov()
170 bytes = len; in bio_copy_user_iov()
190 if (bio_add_pc_page(rq->q, bio, page, bytes, offset) < bytes) { in bio_copy_user_iov()
196 len -= bytes; in bio_copy_user_iov()
251 ssize_t bytes; in bio_map_user_iov() local
255 bytes = iov_iter_get_pages_alloc(iter, &pages, LONG_MAX, &offs); in bio_map_user_iov()
256 if (unlikely(bytes <= 0)) { in bio_map_user_iov()
257 ret = bytes ? bytes : -EFAULT; in bio_map_user_iov()
261 npages = DIV_ROUND_UP(offs + bytes, PAGE_SIZE); in bio_map_user_iov()
272 if (n > bytes) in bio_map_user_iov()
273 n = bytes; in bio_map_user_iov()
283 bytes -= n; in bio_map_user_iov()
295 if (bytes) in bio_map_user_iov()
362 unsigned int bytes = PAGE_SIZE - offset; in bio_map_kern() local
367 if (bytes > len) in bio_map_kern()
368 bytes = len; in bio_map_kern()
374 if (bio_add_pc_page(q, bio, page, bytes, in bio_map_kern()
375 offset) < bytes) { in bio_map_kern()
381 data += bytes; in bio_map_kern()
382 len -= bytes; in bio_map_kern()
444 unsigned int bytes = PAGE_SIZE; in bio_copy_kern() local
446 if (bytes > len) in bio_copy_kern()
447 bytes = len; in bio_copy_kern()
454 memcpy(page_address(page), p, bytes); in bio_copy_kern()
456 if (bio_add_pc_page(q, bio, page, bytes, 0) < bytes) in bio_copy_kern()
459 len -= bytes; in bio_copy_kern()
460 p += bytes; in bio_copy_kern()