Lines Matching refs:remain
21 unsigned int index, remain; in adfs_dir_copyfrom() local
25 remain = sb->s_blocksize - offset; in adfs_dir_copyfrom()
26 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyfrom()
29 if (remain < len) { in adfs_dir_copyfrom()
30 memcpy(dst, dir->bhs[index]->b_data + offset, remain); in adfs_dir_copyfrom()
31 dst += remain; in adfs_dir_copyfrom()
32 len -= remain; in adfs_dir_copyfrom()
46 unsigned int index, remain; in adfs_dir_copyto() local
50 remain = sb->s_blocksize - offset; in adfs_dir_copyto()
51 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyto()
54 if (remain < len) { in adfs_dir_copyto()
55 memcpy(dir->bhs[index]->b_data + offset, src, remain); in adfs_dir_copyto()
56 src += remain; in adfs_dir_copyto()
57 len -= remain; in adfs_dir_copyto()