Lines Matching defs:offset
17 int adfs_dir_copyfrom(void *dst, struct adfs_dir *dir, unsigned int offset,
23 index = offset >> sb->s_blocksize_bits;
24 offset &= sb->s_blocksize - 1;
25 remain = sb->s_blocksize - offset;
30 memcpy(dst, dir->bhs[index]->b_data + offset, remain);
34 offset = 0;
37 memcpy(dst, dir->bhs[index]->b_data + offset, len);
42 int adfs_dir_copyto(struct adfs_dir *dir, unsigned int offset, const void *src,
48 index = offset >> sb->s_blocksize_bits;
49 offset &= sb->s_blocksize - 1;
50 remain = sb->s_blocksize - offset;
55 memcpy(dir->bhs[index]->b_data + offset, src, remain);
59 offset = 0;
62 memcpy(dir->bhs[index]->b_data + offset, src, len);
123 adfs_error(sb, "dir %06x has a hole at offset %u",
131 "dir %06x failed read at offset %u, mapped block 0x%08x",