Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 93) 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.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 …]
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()
304 int off, size, len; in hfs_mdb_commit() local
307 off = (block << HFS_SECTOR_SIZE_BITS) & (sb->s_blocksize - 1); in hfs_mdb_commit()
317 len = min((int)sb->s_blocksize - off, size); in hfs_mdb_commit()
320 memcpy(bh->b_data + off, ptr, len); in hfs_mdb_commit()
326 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.c237 unsigned off; in hfs_bmap_alloc() local
268 off = off16; in hfs_bmap_alloc()
270 off += node->page_offset; in hfs_bmap_alloc()
271 pagep = node->page + (off >> PAGE_CACHE_SHIFT); in hfs_bmap_alloc()
273 off &= ~PAGE_CACHE_MASK; in hfs_bmap_alloc()
278 byte = data[off]; in hfs_bmap_alloc()
283 data[off] |= m; in hfs_bmap_alloc()
294 if (++off >= PAGE_CACHE_SIZE) { in hfs_bmap_alloc()
297 off = 0; in hfs_bmap_alloc()
315 off = off16; in hfs_bmap_alloc()
[all …]
Dbfind.c116 u16 off, len, keylen; in __hfs_brec_find() local
129 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
135 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
143 len = hfs_brec_lenoff(bnode, e, &off); in __hfs_brec_find()
149 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
154 fd->keyoffset = off; in __hfs_brec_find()
156 fd->entryoffset = off + keylen; in __hfs_brec_find()
237 u16 off, len, keylen; in hfs_brec_goto() local
281 len = hfs_brec_lenoff(bnode, fd->record, &off); in hfs_brec_goto()
287 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.c271 int err, off; in hfsplus_delete_cat() local
287 off = fd.entryoffset + in hfsplus_delete_cat()
291 &fd.search_key->cat.name.length, off, 2); in hfsplus_delete_cat()
295 off + 2, len); in hfsplus_delete_cat()
307 off = fd.entryoffset + offsetof(hfsplus_cat_file, data_fork); in hfsplus_delete_cat()
308 hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork)); in hfsplus_delete_cat()
312 off = fd.entryoffset + in hfsplus_delete_cat()
314 hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork)); in hfsplus_delete_cat()
/fs/cifs/
Dcifs_dfs_ref.c148 int off, noff; in cifs_compose_mount_options() local
184 off = 0; in cifs_compose_mount_options()
188 off += 5; in cifs_compose_mount_options()
192 tkn_e = strchr(sb_mountdata + off, sep); in cifs_compose_mount_options()
194 noff = strlen(sb_mountdata + off); in cifs_compose_mount_options()
196 noff = tkn_e - (sb_mountdata + off) + 1; in cifs_compose_mount_options()
198 if (strnicmp(sb_mountdata + off, "unc=", 4) == 0) { in cifs_compose_mount_options()
199 off += noff; in cifs_compose_mount_options()
202 if (strnicmp(sb_mountdata + off, "ip=", 3) == 0) { in cifs_compose_mount_options()
203 off += noff; in cifs_compose_mount_options()
[all …]
Dsmb2misc.c217 smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *hdr) in smb2_get_data_area_len() argument
219 *off = 0; in smb2_get_data_area_len()
235 *off = le16_to_cpu( in smb2_get_data_area_len()
241 *off = le16_to_cpu( in smb2_get_data_area_len()
247 *off = le32_to_cpu( in smb2_get_data_area_len()
253 *off = le16_to_cpu( in smb2_get_data_area_len()
259 *off = ((struct smb2_read_rsp *)hdr)->DataOffset; in smb2_get_data_area_len()
263 *off = le16_to_cpu( in smb2_get_data_area_len()
280 if (*off > 4096) { in smb2_get_data_area_len()
281 cifs_dbg(VFS, "offset %d too large, data area ignored\n", *off); in smb2_get_data_area_len()
[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/btrfs/
Dstruct-funcs.c54 unsigned long off, \
58 unsigned long offset = part_offset + off; \
72 res = get_unaligned_le##bits(p + off); \
84 res = get_unaligned_le##bits(p + off); \
93 void *ptr, unsigned long off, u##bits val, \
97 unsigned long offset = part_offset + off; \
110 put_unaligned_le##bits(val, p + off); \
123 put_unaligned_le##bits(val, p + off); \
/fs/pstore/
Dinode.c59 size_t off; member
74 data->off = ps->size % REC_SIZE; in pstore_ftrace_seq_start()
75 data->off += *pos * REC_SIZE; in pstore_ftrace_seq_start()
76 if (data->off + REC_SIZE > ps->size) { in pstore_ftrace_seq_start()
95 data->off += REC_SIZE; in pstore_ftrace_seq_next()
96 if (data->off + REC_SIZE > ps->size) in pstore_ftrace_seq_next()
107 struct pstore_ftrace_record *rec = (void *)(ps->data + data->off); in pstore_ftrace_seq_show()
154 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument
159 return seq_lseek(file, off, whence); in pstore_file_llseek()
160 return default_llseek(file, off, whence); in pstore_file_llseek()
/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/f2fs/
Dgc.c384 int off; in gc_node_segment() local
389 for (off = 0; off < sbi->blocks_per_seg; off++, entry++) { in gc_node_segment()
397 if (check_valid_map(sbi, segno, off) == 0) in gc_node_segment()
542 int off; in gc_data_segment() local
550 for (off = 0; off < sbi->blocks_per_seg; off++, entry++) { in gc_data_segment()
561 if (check_valid_map(sbi, segno, off) == 0) in gc_data_segment()
570 if (check_dnode(sbi, entry, &dni, start_addr + off, &nofs) == 0) in gc_data_segment()
Dnode.h251 static inline void set_nid(struct page *p, int off, nid_t nid, bool i) in set_nid() argument
258 rn->i.i_nid[off - NODE_DIR1_BLOCK] = cpu_to_le32(nid); in set_nid()
260 rn->in.nid[off] = cpu_to_le32(nid); in set_nid()
264 static inline nid_t get_nid(struct page *p, int off, bool i) in get_nid() argument
268 return le32_to_cpu(rn->i.i_nid[off - NODE_DIR1_BLOCK]); in get_nid()
269 return le32_to_cpu(rn->in.nid[off]); in get_nid()
/fs/ceph/
Dfile.c309 u64 off, u64 len, in striped_read() argument
327 pos = off; in striped_read()
332 io_align = off & ~PAGE_MASK; in striped_read()
355 if (read < pos - off) { in striped_read()
356 dout(" zero gap %llu to %llu\n", off + read, pos); in striped_read()
358 pos - off - read, pages); in striped_read()
361 read = pos - off; in striped_read()
405 u64 off = *poff; in ceph_sync_read() local
408 dout("sync_read on file %p %llu~%u %s\n", file, off, len, in ceph_sync_read()
415 num_pages = calc_pages_for(off, len); in ceph_sync_read()
[all …]
Ddir.c246 int off = fpos_off(filp->f_pos); in ceph_readdir() local
253 dout("readdir %p filp %p frag %u off %u\n", inode, filp, frag, off); in ceph_readdir()
269 off = 1; in ceph_readdir()
279 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.c213 unsigned int blk, off, ino_num; in squashfs_lookup() local
216 off = le16_to_cpu(dire->offset); in squashfs_lookup()
219 ino = SQUASHFS_MKINODE(blk, off); in squashfs_lookup()
223 blk, off, ino_num); in squashfs_lookup()
/fs/jfs/
Dsuper.c725 size_t len, loff_t off) in jfs_quota_read() argument
728 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_read()
730 int offset = off & (sb->s_blocksize - 1); in jfs_quota_read()
737 if (off > i_size) in jfs_quota_read()
739 if (off+len > i_size) in jfs_quota_read()
740 len = i_size-off; in jfs_quota_read()
770 const char *data, size_t len, loff_t off) in jfs_quota_write() argument
773 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_write()
775 int offset = off & (sb->s_blocksize - 1); in jfs_quota_write()
816 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()
508 static loff_t hppfs_llseek(struct file *file, loff_t off, int where) in hppfs_llseek() argument
517 ret = (*llseek)(proc_file, off, where); in hppfs_llseek()
522 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()
627 unsigned long int off = in befs_bt_keylen_index() local
629 ulong tmp = off % keylen_align; in befs_bt_keylen_index()
632 off += keylen_align - tmp; in befs_bt_keylen_index()
634 return (fs16 *) ((void *) node->od_node + off); in befs_bt_keylen_index()
/fs/ocfs2/
Dquota_global.c165 size_t len, loff_t off) in ocfs2_quota_read() argument
170 int offset = off & (sb->s_blocksize - 1); in ocfs2_quota_read()
171 sector_t blk = off >> sb->s_blocksize_bits; in ocfs2_quota_read()
177 if (off > i_size) in ocfs2_quota_read()
179 if (off + len > i_size) in ocfs2_quota_read()
180 len = i_size - off; in ocfs2_quota_read()
214 const char *data, size_t len, loff_t off) in ocfs2_quota_write() argument
219 int offset = off & (sb->s_blocksize - 1); in ocfs2_quota_write()
220 sector_t blk = off >> sb->s_blocksize_bits; in ocfs2_quota_write()
229 (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 …]

1234