Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 143) sorted by relevance

123456

/fs/nilfs2/
Ddirect.c30 __u64 key, __u64 ptr) in nilfs_direct_set_ptr() argument
32 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); in nilfs_direct_set_ptr()
38 __u64 ptr; in nilfs_direct_lookup() local
42 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup()
43 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup()
46 *ptrp = ptr; in nilfs_direct_lookup()
55 __u64 ptr, ptr2; in nilfs_direct_lookup_contig() local
61 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup_contig()
62 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup_contig()
67 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_direct_lookup_contig()
[all …]
Dbtree.c59 __u64 ptr, struct buffer_head **bhp) in nilfs_btree_get_new_block() argument
65 bh = nilfs_btnode_create_block(btnc, ptr); in nilfs_btree_get_new_block()
156 nilfs_btree_node_set_ptr(struct nilfs_btree_node *node, int index, __u64 ptr, in nilfs_btree_node_set_ptr() argument
159 *(nilfs_btree_node_dptrs(node, ncmax) + index) = cpu_to_le64(ptr); in nilfs_btree_node_set_ptr()
240 __u64 key, __u64 ptr, int ncmax) in nilfs_btree_node_insert() argument
256 dptrs[index] = cpu_to_le64(ptr); in nilfs_btree_node_insert()
266 __u64 ptr; in nilfs_btree_node_delete() local
274 ptr = le64_to_cpu(dptrs[index]); in nilfs_btree_node_delete()
279 *ptrp = ptr; in nilfs_btree_node_delete()
470 static int __nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, in __nilfs_btree_get_block() argument
[all …]
Dbmap.h81 static inline int nilfs_bmap_is_new_ptr(unsigned long ptr) in nilfs_bmap_is_new_ptr() argument
83 return !!(ptr & NILFS_BMAP_NEW_PTR_INIT); in nilfs_bmap_is_new_ptr()
168 __u64 *ptr) in nilfs_bmap_lookup() argument
170 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup()
232 __u64 ptr) in nilfs_bmap_set_target_v() argument
235 bmap->b_last_allocated_ptr = ptr; in nilfs_bmap_set_target_v()
/fs/erofs/
Dpcpubuf.c14 void *ptr; member
35 return pcb->ptr; in erofs_get_pcpubuf()
38 void erofs_put_pcpubuf(void *ptr) __releases(pcb->lock) in erofs_put_pcpubuf() argument
42 DBG_BUGON(pcb->ptr != ptr); in erofs_put_pcpubuf()
65 void *ptr, *old_ptr; in erofs_pcpubuf_growsize() local
81 ptr = vmap(pages, nrpages, VM_MAP, PAGE_KERNEL); in erofs_pcpubuf_growsize()
82 if (!ptr) { in erofs_pcpubuf_growsize()
88 old_ptr = pcb->ptr; in erofs_pcpubuf_growsize()
89 pcb->ptr = ptr; in erofs_pcpubuf_growsize()
135 if (pcb->ptr) { in erofs_pcpubuf_exit()
[all …]
Dsysfs.c113 unsigned char *ptr = __struct_ptr(sbi, a->struct_type, a->offset); in erofs_attr_show() local
119 if (!ptr) in erofs_attr_show()
121 return sysfs_emit(buf, "%u\n", *(unsigned int *)ptr); in erofs_attr_show()
123 if (!ptr) in erofs_attr_show()
125 return sysfs_emit(buf, "%d\n", *(bool *)ptr); in erofs_attr_show()
136 unsigned char *ptr = __struct_ptr(sbi, a->struct_type, a->offset); in erofs_attr_store() local
142 if (!ptr) in erofs_attr_store()
154 *(unsigned int *)ptr = t; in erofs_attr_store()
157 if (!ptr) in erofs_attr_store()
164 *(bool *)ptr = !!t; in erofs_attr_store()
Dsuper.c81 static void erofs_inode_init_once(void *ptr) in erofs_inode_init_once() argument
83 struct erofs_inode *vi = ptr; in erofs_inode_init_once()
135 u8 *buffer, *ptr; in erofs_read_metadata() local
139 ptr = erofs_read_metabuf(buf, sb, erofs_blknr(sb, *offset), EROFS_KMAP); in erofs_read_metadata()
140 if (IS_ERR(ptr)) in erofs_read_metadata()
141 return ptr; in erofs_read_metadata()
143 len = le16_to_cpu(*(__le16 *)&ptr[erofs_blkoff(sb, *offset)]); in erofs_read_metadata()
155 ptr = erofs_read_metabuf(buf, sb, erofs_blknr(sb, *offset), in erofs_read_metadata()
157 if (IS_ERR(ptr)) { in erofs_read_metadata()
159 return ptr; in erofs_read_metadata()
[all …]
/fs/xfs/libxfs/
Dxfs_btree.c298 const union xfs_btree_ptr *ptr, in xfs_btree_check_ptr() argument
303 if (xfs_btree_check_lptr(cur, be64_to_cpu((&ptr->l)[index]), in xfs_btree_check_ptr()
312 if (xfs_btree_check_sptr(cur, be32_to_cpu((&ptr->s)[index]), in xfs_btree_check_ptr()
493 new->bc_levels[i].ptr = cur->bc_levels[i].ptr; in xfs_btree_dup_cursor()
789 cur->bc_levels[level].ptr = 1; in xfs_btree_firstrec()
819 cur->bc_levels[level].ptr = be16_to_cpu(block->bb_numrecs); in xfs_btree_lastrec()
1014 const union xfs_btree_ptr *ptr, in xfs_btree_ptr_to_daddr() argument
1021 error = xfs_btree_check_ptr(cur, ptr, 0, 1); in xfs_btree_ptr_to_daddr()
1026 fsbno = be64_to_cpu(ptr->l); in xfs_btree_ptr_to_daddr()
1029 agbno = be32_to_cpu(ptr->s); in xfs_btree_ptr_to_daddr()
[all …]
Dxfs_attr_remote.c68 void *ptr, in xfs_attr3_rmt_hdr_ok() argument
74 struct xfs_attr3_rmt_hdr *rmt = ptr; in xfs_attr3_rmt_hdr_ok()
93 void *ptr, in xfs_attr3_rmt_verify() argument
97 struct xfs_attr3_rmt_hdr *rmt = ptr; in xfs_attr3_rmt_verify()
123 char *ptr; in __xfs_attr3_rmt_read_verify() local
132 ptr = bp->b_addr; in __xfs_attr3_rmt_read_verify()
139 !xfs_verify_cksum(ptr, blksize, XFS_ATTR3_RMT_CRC_OFF)) { in __xfs_attr3_rmt_read_verify()
143 *failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in __xfs_attr3_rmt_read_verify()
147 ptr += blksize; in __xfs_attr3_rmt_read_verify()
189 char *ptr; in xfs_attr3_rmt_write_verify() local
[all …]
Dxfs_btree_staging.c88 union xfs_btree_ptr *ptr) in xfs_btree_fakeroot_init_ptr_from_cur() argument
95 ptr->s = cpu_to_be32(afake->af_root); in xfs_btree_fakeroot_init_ptr_from_cur()
116 const union xfs_btree_ptr *ptr, in xfs_btree_afakeroot_set_root() argument
122 afake->af_root = be32_to_cpu(ptr->s); in xfs_btree_afakeroot_set_root()
749 union xfs_btree_ptr ptr; in xfs_btree_bload() local
766 xfs_btree_set_ptr_null(cur, &ptr); in xfs_btree_bload()
785 nr_this_block, &ptr, &bp, &block, priv); in xfs_btree_bload()
789 trace_xfs_btree_bload_block(cur, level, i, blocks, &ptr, in xfs_btree_bload()
802 xfs_btree_copy_ptrs(cur, &child_ptr, &ptr, 1); in xfs_btree_bload()
813 xfs_btree_set_ptr_null(cur, &ptr); in xfs_btree_bload()
[all …]
/fs/btrfs/
Dstruct-funcs.c11 const void *ptr, unsigned off, int size) in check_setget_bounds() argument
13 const unsigned long member_offset = (unsigned long)ptr + off; in check_setget_bounds()
19 (unsigned long)ptr, eb->start, member_offset, size); in check_setget_bounds()
52 const void *ptr, unsigned long off) \
54 const unsigned long member_offset = (unsigned long)ptr + off; \
64 ASSERT(check_setget_bounds(token->eb, ptr, off, size)); \
81 const void *ptr, unsigned long off) \
83 const unsigned long member_offset = (unsigned long)ptr + off; \
91 ASSERT(check_setget_bounds(eb, ptr, off, size)); \
101 const void *ptr, unsigned long off, \
[all …]
Dinode-item.c17 unsigned long ptr; in btrfs_find_name_in_backref() local
24 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_backref()
26 ref = (struct btrfs_inode_ref *)(ptr + cur_offset); in btrfs_find_name_in_backref()
44 unsigned long ptr; in btrfs_find_name_in_ext_backref() local
51 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_ext_backref()
60 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in btrfs_find_name_in_ext_backref()
113 unsigned long ptr; in btrfs_del_inode_extref() local
158 ptr = (unsigned long)extref; in btrfs_del_inode_extref()
161 memmove_extent_buffer(leaf, ptr, ptr + del_len, in btrfs_del_inode_extref()
162 item_size - (ptr + del_len - item_start)); in btrfs_del_inode_extref()
[all …]
Ddev-replace.c82 struct btrfs_dev_replace_item *ptr; in btrfs_init_dev_replace() local
132 ptr = btrfs_item_ptr(eb, slot, struct btrfs_dev_replace_item); in btrfs_init_dev_replace()
140 src_devid = btrfs_dev_replace_src_devid(eb, ptr); in btrfs_init_dev_replace()
142 btrfs_dev_replace_cont_reading_from_srcdev_mode(eb, ptr); in btrfs_init_dev_replace()
143 dev_replace->replace_state = btrfs_dev_replace_replace_state(eb, ptr); in btrfs_init_dev_replace()
144 dev_replace->time_started = btrfs_dev_replace_time_started(eb, ptr); in btrfs_init_dev_replace()
146 btrfs_dev_replace_time_stopped(eb, ptr); in btrfs_init_dev_replace()
148 btrfs_dev_replace_num_write_errors(eb, ptr)); in btrfs_init_dev_replace()
150 btrfs_dev_replace_num_uncorrectable_read_errors(eb, ptr)); in btrfs_init_dev_replace()
151 dev_replace->cursor_left = btrfs_dev_replace_cursor_left(eb, ptr); in btrfs_init_dev_replace()
[all …]
Droot-tree.c125 unsigned long ptr; in btrfs_update_root() local
148 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
179 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root()
188 write_extent_buffer(l, item, ptr, sizeof(*item)); in btrfs_update_root()
338 unsigned long ptr; in btrfs_del_root_ref() local
356 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref()
359 memcmp_extent_buffer(leaf, name->name, ptr, name->len)) { in btrfs_del_root_ref()
411 unsigned long ptr; in btrfs_add_root_ref() local
434 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref()
435 write_extent_buffer(leaf, name->name, ptr, name->len); in btrfs_add_root_ref()
Dtree-checker.c1256 unsigned long ptr; /* Current pointer inside inline refs */ in check_extent_item() local
1364 ptr = (unsigned long)(struct btrfs_extent_item *)(ei + 1); in check_extent_item()
1370 info = (struct btrfs_tree_block_info *)ptr; in check_extent_item()
1378 ptr = (unsigned long)(struct btrfs_tree_block_info *)(info + 1); in check_extent_item()
1382 while (ptr < end) { in check_extent_item()
1390 if (unlikely(ptr + sizeof(*iref) > end)) { in check_extent_item()
1393 ptr, sizeof(*iref), end); in check_extent_item()
1396 iref = (struct btrfs_extent_inline_ref *)ptr; in check_extent_item()
1399 if (unlikely(ptr + btrfs_extent_inline_ref_size(inline_type) > end)) { in check_extent_item()
1402 ptr, btrfs_extent_inline_ref_size(inline_type), end); in check_extent_item()
[all …]
/fs/xfs/scrub/
Dbtree.c139 rec = xfs_btree_rec_addr(cur, cur->bc_levels[0].ptr, block); in xchk_btree_rec()
144 if (cur->bc_levels[0].ptr > 1 && in xchk_btree_rec()
155 keyp = xfs_btree_key_addr(cur, cur->bc_levels[1].ptr, keyblock); in xchk_btree_rec()
164 keyp = xfs_btree_high_key_addr(cur, cur->bc_levels[1].ptr, keyblock); in xchk_btree_rec()
186 key = xfs_btree_key_addr(cur, cur->bc_levels[level].ptr, block); in xchk_btree_key()
191 if (cur->bc_levels[level].ptr > 1 && in xchk_btree_key()
201 keyp = xfs_btree_key_addr(cur, cur->bc_levels[level + 1].ptr, keyblock); in xchk_btree_key()
209 key = xfs_btree_high_key_addr(cur, cur->bc_levels[level].ptr, block); in xchk_btree_key()
210 keyp = xfs_btree_high_key_addr(cur, cur->bc_levels[level + 1].ptr, in xchk_btree_key()
224 union xfs_btree_ptr *ptr) in xchk_btree_ptr_ok() argument
[all …]
Dtrace.h338 __field(int, ptr)
351 __entry->ptr = cur->bc_levels[level].ptr;
360 __entry->ptr,
378 __field(int, ptr)
392 __entry->ptr = cur->bc_levels[level].ptr;
405 __entry->ptr,
423 __field(int, ptr)
434 __entry->ptr = cur->bc_levels[level].ptr;
442 __entry->ptr,
461 __field(int, ptr)
[all …]
/fs/ext4/
Dsysfs.c375 void *ptr = calc_ptr(a, sbi); in ext4_attr_show() local
396 if (!ptr) in ext4_attr_show()
400 le32_to_cpup(ptr)); in ext4_attr_show()
403 *((unsigned int *) ptr)); in ext4_attr_show()
405 if (!ptr) in ext4_attr_show()
408 *((unsigned long *) ptr)); in ext4_attr_show()
410 if (!ptr) in ext4_attr_show()
413 *((unsigned char *) ptr)); in ext4_attr_show()
415 if (!ptr) in ext4_attr_show()
419 le64_to_cpup(ptr)); in ext4_attr_show()
[all …]
/fs/udf/
Ddirectory.c162 uint8_t *ptr; in udf_get_fileident() local
171 ptr = buffer; in udf_get_fileident()
174 ptr += *offset; in udf_get_fileident()
175 fi = (struct fileIdentDesc *)ptr; in udf_get_fileident()
199 struct short_ad *udf_get_fileshortad(uint8_t *ptr, int maxoffset, uint32_t *offset, in udf_get_fileshortad() argument
204 if ((!ptr) || (!offset)) { in udf_get_fileshortad()
212 sa = (struct short_ad *)ptr; in udf_get_fileshortad()
222 struct long_ad *udf_get_filelongad(uint8_t *ptr, int maxoffset, uint32_t *offset, int inc) in udf_get_filelongad() argument
226 if ((!ptr) || (!offset)) { in udf_get_filelongad()
234 la = (struct long_ad *)ptr; in udf_get_filelongad()
/fs/ocfs2/
Docfs2.h685 #define OCFS2_IS_VALID_DINODE(ptr) \ argument
686 (!strcmp((ptr)->i_signature, OCFS2_INODE_SIGNATURE))
688 #define OCFS2_IS_VALID_EXTENT_BLOCK(ptr) \ argument
689 (!strcmp((ptr)->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE))
691 #define OCFS2_IS_VALID_GROUP_DESC(ptr) \ argument
692 (!strcmp((ptr)->bg_signature, OCFS2_GROUP_DESC_SIGNATURE))
695 #define OCFS2_IS_VALID_XATTR_BLOCK(ptr) \ argument
696 (!strcmp((ptr)->xb_signature, OCFS2_XATTR_BLOCK_SIGNATURE))
698 #define OCFS2_IS_VALID_DIR_TRAILER(ptr) \ argument
699 (!strcmp((ptr)->db_signature, OCFS2_DIR_TRAILER_SIGNATURE))
[all …]
/fs/f2fs/
Dxattr.h55 #define XATTR_HDR(ptr) ((struct f2fs_xattr_header *)(ptr)) argument
56 #define XATTR_ENTRY(ptr) ((struct f2fs_xattr_entry *)(ptr)) argument
57 #define XATTR_FIRST_ENTRY(ptr) (XATTR_ENTRY(XATTR_HDR(ptr) + 1)) argument
/fs/adfs/
Ddir_f.c74 union { __le32 *ptr32; u8 *ptr8; } ptr, end; in adfs_dir_checkbyte() local
98 ptr.ptr8 = bufoff(bh, i); in adfs_dir_checkbyte()
99 end.ptr8 = ptr.ptr8 + last - i; in adfs_dir_checkbyte()
102 dircheck = *ptr.ptr8++ ^ ror13(dircheck); in adfs_dir_checkbyte()
103 } while (ptr.ptr8 < end.ptr8); in adfs_dir_checkbyte()
113 ptr.ptr8 = bufoff(bh, 2008); in adfs_dir_checkbyte()
114 end.ptr8 = ptr.ptr8 + 36; in adfs_dir_checkbyte()
117 __le32 v = *ptr.ptr32++; in adfs_dir_checkbyte()
119 } while (ptr.ptr32 < end.ptr32); in adfs_dir_checkbyte()
/fs/xfs/
Dkmem.c15 void *ptr; in kmem_alloc() local
20 ptr = kmalloc(size, lflags); in kmem_alloc()
21 if (ptr || (flags & KM_MAYFAIL)) in kmem_alloc()
22 return ptr; in kmem_alloc()
/fs/gfs2/
Dbmap.c324 __be64 *ptr = metapointer(x, mp); in __fillup_metapath() local
325 u64 dblock = be64_to_cpu(*ptr); in __fillup_metapath()
424 static inline unsigned int gfs2_extent_length(struct buffer_head *bh, __be64 *ptr, size_t limit, in… in gfs2_extent_length() argument
427 const __be64 *first = ptr; in gfs2_extent_length()
428 u64 d = be64_to_cpu(*ptr); in gfs2_extent_length()
432 ptr++; in gfs2_extent_length()
433 if (ptr >= end) in gfs2_extent_length()
436 } while(be64_to_cpu(*ptr) == d); in gfs2_extent_length()
437 if (ptr >= end) in gfs2_extent_length()
439 return ptr - first; in gfs2_extent_length()
[all …]
/fs/ntfs3/
Dlznt.c38 static inline size_t get_match_len(const u8 *ptr, const u8 *end, const u8 *prev, in get_match_len() argument
43 while (ptr + len < end && ptr[len] == prev[len] && ++len < max_len) in get_match_len()
92 const u8 *ptr; in longest_match_best() local
98 for (ptr = ctx->unc; ptr < src; ++ptr) { in longest_match_best()
100 get_match_len(src, ctx->unc_end, ptr, ctx->max_len); in longest_match_best()
103 ctx->best_match = ptr; in longest_match_best()
/fs/orangefs/
Dorangefs-bufmap.c267 ret = pin_user_pages_fast((unsigned long)user_desc->ptr, in orangefs_bufmap_map()
298 (user_desc->ptr + (i * pages_per_desc * PAGE_SIZE)); in orangefs_bufmap_map()
320 user_desc->ptr, in orangefs_bufmap_initialize()
333 if (PAGE_ALIGN((unsigned long)user_desc->ptr) != in orangefs_bufmap_initialize()
334 (unsigned long)user_desc->ptr) { in orangefs_bufmap_initialize()
336 user_desc->ptr); in orangefs_bufmap_initialize()
340 if (PAGE_ALIGN(((unsigned long)user_desc->ptr + user_desc->total_size)) in orangefs_bufmap_initialize()
341 != (unsigned long)(user_desc->ptr + user_desc->total_size)) { in orangefs_bufmap_initialize()
343 user_desc->ptr, in orangefs_bufmap_initialize()

123456