Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 85) sorted by relevance

1234

/fs/hfs/
Dbnode.c18 int off, int len) in hfs_bnode_read() argument
22 off += node->page_offset; in hfs_bnode_read()
25 memcpy(buf, kmap(page) + off, len); in hfs_bnode_read()
29 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument
33 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16()
37 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument
41 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8()
45 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument
53 key_len = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_read_key()
57 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key()
[all …]
Dbtree.c227 unsigned off; in hfs_bmap_alloc() local
257 off = off16; in hfs_bmap_alloc()
259 off += node->page_offset; in hfs_bmap_alloc()
260 pagep = node->page + (off >> PAGE_CACHE_SHIFT); in hfs_bmap_alloc()
262 off &= ~PAGE_CACHE_MASK; in hfs_bmap_alloc()
267 byte = data[off]; in hfs_bmap_alloc()
272 data[off] |= m; in hfs_bmap_alloc()
282 if (++off >= PAGE_CACHE_SIZE) { in hfs_bmap_alloc()
285 off = 0; in hfs_bmap_alloc()
303 off = off16; in hfs_bmap_alloc()
[all …]
Dbfind.c43 u16 off, len, keylen; in __hfs_brec_find() local
53 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
59 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
72 len = hfs_brec_lenoff(bnode, e, &off); in __hfs_brec_find()
78 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
82 fd->keyoffset = off; in __hfs_brec_find()
84 fd->entryoffset = off + keylen; in __hfs_brec_find()
164 u16 off, len, keylen; in hfs_brec_goto() local
208 len = hfs_brec_lenoff(bnode, fd->record, &off); in hfs_brec_goto()
214 fd->keyoffset = off; in hfs_brec_goto()
[all …]
Dmdb.c75 loff_t off; in hfs_mdb_get() local
175 off = (loff_t)block << HFS_SECTOR_SIZE_BITS; in hfs_mdb_get()
179 bh = sb_bread(sb, off >> sb->s_blocksize_bits); in hfs_mdb_get()
184 off2 = off & (sb->s_blocksize - 1); in hfs_mdb_get()
189 off += len; in hfs_mdb_get()
297 int off, size, len; in hfs_mdb_commit() local
300 off = (block << HFS_SECTOR_SIZE_BITS) & (sb->s_blocksize - 1); in hfs_mdb_commit()
310 len = min((int)sb->s_blocksize - off, size); in hfs_mdb_commit()
311 memcpy(bh->b_data + off, ptr, len); in hfs_mdb_commit()
315 off = 0; in hfs_mdb_commit()
/fs/hfsplus/
Dbnode.c21 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_read() argument
26 off += node->page_offset; in hfs_bnode_read()
27 pagep = node->page + (off >> PAGE_CACHE_SHIFT); in hfs_bnode_read()
28 off &= ~PAGE_CACHE_MASK; in hfs_bnode_read()
30 l = min(len, (int)PAGE_CACHE_SIZE - off); in hfs_bnode_read()
31 memcpy(buf, kmap(*pagep) + off, l); in hfs_bnode_read()
42 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument
46 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16()
50 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument
54 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8()
[all …]
Dbtree.c229 unsigned off; in hfs_bmap_alloc() local
260 off = off16; in hfs_bmap_alloc()
262 off += node->page_offset; in hfs_bmap_alloc()
263 pagep = node->page + (off >> PAGE_CACHE_SHIFT); in hfs_bmap_alloc()
265 off &= ~PAGE_CACHE_MASK; in hfs_bmap_alloc()
270 byte = data[off]; in hfs_bmap_alloc()
275 data[off] |= m; in hfs_bmap_alloc()
286 if (++off >= PAGE_CACHE_SIZE) { in hfs_bmap_alloc()
289 off = 0; in hfs_bmap_alloc()
307 off = off16; in hfs_bmap_alloc()
[all …]
Dbfind.c45 u16 off, len, keylen; in __hfs_brec_find() local
55 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
61 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
74 len = hfs_brec_lenoff(bnode, e, &off); in __hfs_brec_find()
80 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
84 fd->keyoffset = off; in __hfs_brec_find()
86 fd->entryoffset = off + keylen; in __hfs_brec_find()
166 u16 off, len, keylen; in hfs_brec_goto() local
210 len = hfs_brec_lenoff(bnode, fd->record, &off); in hfs_brec_goto()
216 fd->keyoffset = off; in hfs_brec_goto()
[all …]
Dunicode.c277 int off; in decompose_unichar() local
279 off = hfsplus_decompose_table[(uc >> 12) & 0xf]; in decompose_unichar()
280 if (off == 0 || off == 0xffff) in decompose_unichar()
283 off = hfsplus_decompose_table[off + ((uc >> 8) & 0xf)]; in decompose_unichar()
284 if (!off) in decompose_unichar()
287 off = hfsplus_decompose_table[off + ((uc >> 4) & 0xf)]; in decompose_unichar()
288 if (!off) in decompose_unichar()
291 off = hfsplus_decompose_table[off + (uc & 0xf)]; in decompose_unichar()
292 *size = off & 3; in decompose_unichar()
295 return hfsplus_decompose_table + (off / 4); in decompose_unichar()
Dcatalog.c269 int err, off; in hfsplus_delete_cat() local
286 off = fd.entryoffset + in hfsplus_delete_cat()
290 &fd.search_key->cat.name.length, off, 2); in hfsplus_delete_cat()
294 off + 2, len); in hfsplus_delete_cat()
306 off = fd.entryoffset + offsetof(hfsplus_cat_file, data_fork); in hfsplus_delete_cat()
307 hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork)); in hfsplus_delete_cat()
311 off = fd.entryoffset + in hfsplus_delete_cat()
313 hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork)); in hfsplus_delete_cat()
/fs/cifs/
Dcifs_dfs_ref.c131 int off, noff; in cifs_compose_mount_options() local
163 off = 0; in cifs_compose_mount_options()
167 off += 5; in cifs_compose_mount_options()
171 tkn_e = strchr(sb_mountdata + off, sep); in cifs_compose_mount_options()
173 noff = strlen(sb_mountdata + off); in cifs_compose_mount_options()
175 noff = tkn_e - (sb_mountdata + off) + 1; in cifs_compose_mount_options()
177 if (strnicmp(sb_mountdata + off, "unc=", 4) == 0) { in cifs_compose_mount_options()
178 off += noff; in cifs_compose_mount_options()
181 if (strnicmp(sb_mountdata + off, "ip=", 3) == 0) { in cifs_compose_mount_options()
182 off += noff; in cifs_compose_mount_options()
[all …]
/fs/freevxfs/
Dvxfs_bmap.c136 int64_t off; in vxfs_bmap_indir() local
145 off = (typ->vt_hdr & VXFS_TYPED_OFFSETMASK); in vxfs_bmap_indir()
147 if (block < off) { in vxfs_bmap_indir()
155 typ->vt_size, block - off); in vxfs_bmap_indir()
160 if ((block - off) >= typ->vt_size) in vxfs_bmap_indir()
162 pblock = (typ->vt_block + block - off); in vxfs_bmap_indir()
209 int64_t off = (typ->vt_hdr & VXFS_TYPED_OFFSETMASK); in vxfs_bmap_typed() local
214 if (iblock < off) in vxfs_bmap_typed()
219 typ->vt_size, iblock - off); in vxfs_bmap_typed()
224 if ((iblock - off) < typ->vt_size) in vxfs_bmap_typed()
[all …]
/fs/sysfs/
Dbin.c49 fill_read(struct file *file, char *buffer, loff_t off, size_t count) in fill_read() argument
62 rc = attr->read(file, kobj, attr, buffer, off, count); in fill_read()
70 read(struct file *file, char __user *userbuf, size_t bytes, loff_t *off) in read() argument
74 loff_t offs = *off; in read()
109 pr_debug("offs = %lld, *off = %lld, count = %d\n", offs, *off, count); in read()
111 *off = offs + count; in read()
140 size_t bytes, loff_t *off) in write() argument
144 loff_t offs = *off; in write()
170 *off = offs + count; in write()
/fs/ceph/
Dfile.c295 u64 off, u64 len, in striped_read() argument
313 pos = off; in striped_read()
318 io_align = off & ~PAGE_MASK; in striped_read()
341 if (read < pos - off) { in striped_read()
342 dout(" zero gap %llu to %llu\n", off + read, pos); in striped_read()
344 pos - off - read, pages); in striped_read()
347 read = pos - off; in striped_read()
391 u64 off = *poff; in ceph_sync_read() local
394 dout("sync_read on file %p %llu~%u %s\n", file, off, len, in ceph_sync_read()
401 num_pages = calc_pages_for(off, len); in ceph_sync_read()
[all …]
Ddir.c247 int off = fpos_off(filp->f_pos); in ceph_readdir() local
254 dout("readdir %p filp %p frag %u off %u\n", inode, filp, frag, off); in ceph_readdir()
270 off = 1; in ceph_readdir()
280 off = 2; in ceph_readdir()
381 rinfo->dir_nr, off, fi->offset); in ceph_readdir()
382 while (off >= fi->offset && off - fi->offset < rinfo->dir_nr) { in ceph_readdir()
383 u64 pos = ceph_make_fpos(frag, off); in ceph_readdir()
385 rinfo->dir_in[off - fi->offset].in; in ceph_readdir()
390 off, off - fi->offset, rinfo->dir_nr, pos, in ceph_readdir()
391 rinfo->dir_dname_len[off - fi->offset], in ceph_readdir()
[all …]
/fs/squashfs/
Dnamei.c209 unsigned int blk, off, ino_num; in squashfs_lookup() local
212 off = le16_to_cpu(dire->offset); in squashfs_lookup()
215 ino = SQUASHFS_MKINODE(blk, off); in squashfs_lookup()
219 blk, off, ino_num); in squashfs_lookup()
/fs/jfs/
Dsuper.c648 size_t len, loff_t off) in jfs_quota_read() argument
651 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_read()
653 int offset = off & (sb->s_blocksize - 1); in jfs_quota_read()
660 if (off > i_size) in jfs_quota_read()
662 if (off+len > i_size) in jfs_quota_read()
663 len = i_size-off; in jfs_quota_read()
693 const char *data, size_t len, loff_t off) in jfs_quota_write() argument
696 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_write()
698 int offset = off & (sb->s_blocksize - 1); in jfs_quota_write()
739 if (inode->i_size < off+len-towrite) in jfs_quota_write()
[all …]
/fs/hppfs/
Dhppfs.c240 loff_t off; in hppfs_read() local
250 off = *ppos; in hppfs_read()
251 while (off >= sizeof(data->contents)) { in hppfs_read()
254 off -= sizeof(data->contents); in hppfs_read()
257 if (off + count > hppfs->len) in hppfs_read()
258 count = hppfs->len - off; in hppfs_read()
259 rem = copy_to_user(buf, &data->contents[off], count); in hppfs_read()
513 static loff_t hppfs_llseek(struct file *file, loff_t off, int where) in hppfs_llseek() argument
522 ret = (*llseek)(proc_file, off, where); in hppfs_llseek()
527 return default_llseek(file, off, where); in hppfs_llseek()
/fs/befs/
Dbtree.c196 uint off = 0; in befs_bt_read_node() local
203 node->bh = befs_read_datastream(sb, ds, node_off, &off); in befs_bt_read_node()
212 (befs_btree_nodehead *) ((void *) node->bh->b_data + off); in befs_bt_read_node()
628 unsigned long int off = in befs_bt_keylen_index() local
630 ulong tmp = off % keylen_align; in befs_bt_keylen_index()
633 off += keylen_align - tmp; in befs_bt_keylen_index()
635 return (fs16 *) ((void *) node->od_node + off); in befs_bt_keylen_index()
/fs/ocfs2/
Dquota_global.c162 size_t len, loff_t off) in ocfs2_quota_read() argument
167 int offset = off & (sb->s_blocksize - 1); in ocfs2_quota_read()
168 sector_t blk = off >> sb->s_blocksize_bits; in ocfs2_quota_read()
174 if (off > i_size) in ocfs2_quota_read()
176 if (off + len > i_size) in ocfs2_quota_read()
177 len = i_size - off; in ocfs2_quota_read()
211 const char *data, size_t len, loff_t off) in ocfs2_quota_write() argument
216 int offset = off & (sb->s_blocksize - 1); in ocfs2_quota_write()
217 sector_t blk = off >> sb->s_blocksize_bits; in ocfs2_quota_write()
226 (unsigned long long)off, (unsigned long long)len); in ocfs2_quota_write()
[all …]
Dquota_local.c55 static unsigned int ol_dqblk_block(struct super_block *sb, int c, int off) in ol_dqblk_block() argument
59 return ol_quota_chunk_block(sb, c) + 1 + off / epb; in ol_dqblk_block()
62 static unsigned int ol_dqblk_block_off(struct super_block *sb, int c, int off) in ol_dqblk_block_off() argument
66 return (off % epb) * sizeof(struct ocfs2_local_disk_dqblk); in ol_dqblk_block_off()
70 static loff_t ol_dqblk_off(struct super_block *sb, int c, int off) in ol_dqblk_off() argument
72 return (ol_dqblk_block(sb, c, off) << sb->s_blocksize_bits) + in ol_dqblk_off()
73 ol_dqblk_block_off(sb, c, off); in ol_dqblk_off()
77 static inline unsigned int ol_dqblk_file_block(struct super_block *sb, loff_t off) in ol_dqblk_file_block() argument
79 return off >> sb->s_blocksize_bits; in ol_dqblk_file_block()
82 static inline unsigned int ol_dqblk_block_offset(struct super_block *sb, loff_t off) in ol_dqblk_block_offset() argument
[all …]
/fs/btrfs/
Dioctl.c728 u64 *off, int thresh) in find_new_extents() argument
745 min_key.offset = *off; in find_new_extents()
771 *off = min_key.offset; in find_new_extents()
2279 u64 off, u64 olen, u64 destoff) in btrfs_ioctl_clone() argument
2369 if (off + len > src->i_size || off + len < off) in btrfs_ioctl_clone()
2372 olen = len = src->i_size - off; in btrfs_ioctl_clone()
2374 if (off + len == src->i_size) in btrfs_ioctl_clone()
2375 len = ALIGN(src->i_size, bs) - off; in btrfs_ioctl_clone()
2378 if (!IS_ALIGNED(off, bs) || !IS_ALIGNED(off + len, bs) || in btrfs_ioctl_clone()
2396 lock_extent(&BTRFS_I(src)->io_tree, off, off+len); in btrfs_ioctl_clone()
[all …]
/fs/bfs/
Ddir.c290 int block, sblock, eblock, off, pos; in bfs_add_entry() local
306 for (off = 0; off < BFS_BSIZE; off += BFS_DIRENT_SIZE) { in bfs_add_entry()
307 de = (struct bfs_dirent *)(bh->b_data + off); in bfs_add_entry()
309 pos = (block - sblock) * BFS_BSIZE + off; in bfs_add_entry()
/fs/adfs/
Dadfs.h197 unsigned int off; in __adfs_block_map() local
199 off = (object_id & 255) - 1; in __adfs_block_map()
200 block += off << ADFS_SB(sb)->s_log2sharesize; in __adfs_block_map()
/fs/
Dsplice.c1324 loff_t offset, *off; in do_splice() local
1355 off = &offset; in do_splice()
1357 off = &out->f_pos; in do_splice()
1359 ret = do_splice_from(ipipe, out, off, len, flags); in do_splice()
1361 if (off_out && copy_to_user(off_out, off, sizeof(loff_t))) in do_splice()
1375 off = &offset; in do_splice()
1377 off = &in->f_pos; in do_splice()
1379 ret = do_splice_to(in, off, opipe, len, flags); in do_splice()
1381 if (off_in && copy_to_user(off_in, off, sizeof(loff_t))) in do_splice()
1405 unsigned long off, npages; in get_iovec_page_array() local
[all …]
/fs/reiserfs/
Dbitmap.c114 int off, int *next) in is_block_in_journal() argument
118 if (reiserfs_in_journal(s, bmap, off, 1, &tmp)) { in is_block_in_journal()
123 (*next) = off + 1; /* inc offset to avoid looping. */ in is_block_in_journal()
319 unsigned int bm, off; in scan_bitmap() local
329 get_bit_address(s, *start, &bm, &off); in scan_bitmap()
350 for (; bm < end_bm; bm++, off = 0) { in scan_bitmap()
351 if ((off && (!unfm || (file_block != 0))) in scan_bitmap()
355 scan_bitmap_block(th, bm, &off, off_max, in scan_bitmap()
361 get_bit_address(s, *start, &bm, &off); in scan_bitmap()
364 for (; bm < end_bm; bm++, off = 0) { in scan_bitmap()
[all …]

1234