/fs/nilfs2/ |
D | direct.c | 30 __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 …]
|
D | btree.c | 59 __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 …]
|
D | bmap.h | 81 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/btrfs/ |
D | struct-funcs.c | 11 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() 18 (unsigned long)ptr, eb->start, member_offset, size); in check_setget_bounds() 24 (unsigned long)ptr, eb->start, member_offset, size); in check_setget_bounds() 57 const void *ptr, unsigned long off) \ 59 const unsigned long member_offset = (unsigned long)ptr + off; \ 69 ASSERT(check_setget_bounds(token->eb, ptr, off, size)); \ 86 const void *ptr, unsigned long off) \ 88 const unsigned long member_offset = (unsigned long)ptr + off; \ 96 ASSERT(check_setget_bounds(eb, ptr, off, size)); \ [all …]
|
D | inode-item.c | 16 unsigned long ptr; in btrfs_find_name_in_backref() local 23 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_backref() 25 ref = (struct btrfs_inode_ref *)(ptr + cur_offset); in btrfs_find_name_in_backref() 42 unsigned long ptr; in btrfs_find_name_in_ext_backref() local 49 ptr = btrfs_item_ptr_offset(leaf, slot); in btrfs_find_name_in_ext_backref() 58 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in btrfs_find_name_in_ext_backref() 110 unsigned long ptr; in btrfs_del_inode_extref() local 155 ptr = (unsigned long)extref; in btrfs_del_inode_extref() 158 memmove_extent_buffer(leaf, ptr, ptr + del_len, in btrfs_del_inode_extref() 159 item_size - (ptr + del_len - item_start)); in btrfs_del_inode_extref() [all …]
|
D | dev-replace.c | 82 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 …]
|
D | root-tree.c | 127 unsigned long ptr; in btrfs_update_root() local 150 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root() 181 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root() 190 write_extent_buffer(l, item, ptr, sizeof(*item)); in btrfs_update_root() 341 unsigned long ptr; in btrfs_del_root_ref() local 361 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref() 364 memcmp_extent_buffer(leaf, name, ptr, name_len)) { in btrfs_del_root_ref() 416 unsigned long ptr; in btrfs_add_root_ref() local 439 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref() 440 write_extent_buffer(leaf, name, ptr, name_len); in btrfs_add_root_ref()
|
D | tree-checker.c | 1239 unsigned long ptr; /* Current pointer inside inline refs */ in check_extent_item() local 1347 ptr = (unsigned long)(struct btrfs_extent_item *)(ei + 1); in check_extent_item() 1353 info = (struct btrfs_tree_block_info *)ptr; in check_extent_item() 1361 ptr = (unsigned long)(struct btrfs_tree_block_info *)(info + 1); in check_extent_item() 1365 while (ptr < end) { in check_extent_item() 1373 if (unlikely(ptr + sizeof(*iref) > end)) { in check_extent_item() 1376 ptr, sizeof(*iref), end); in check_extent_item() 1379 iref = (struct btrfs_extent_inline_ref *)ptr; in check_extent_item() 1382 if (unlikely(ptr + btrfs_extent_inline_ref_size(inline_type) > end)) { in check_extent_item() 1385 ptr, btrfs_extent_inline_ref_size(inline_type), end); in check_extent_item() [all …]
|
/fs/erofs/ |
D | pcpubuf.c | 14 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 …]
|
D | tagptr.h | 34 #define __tagptr_mask_1(ptr, n) \ argument 35 __builtin_types_compatible_p(typeof(ptr), struct __tagptr##n) ? \ 38 #define __tagptr_mask(ptr) (\ argument 39 __tagptr_mask_1(ptr, 1) ( \ 40 __tagptr_mask_1(ptr, 2) ( \ 41 __tagptr_mask_1(ptr, 3) ( \ 42 __tagptr_mask_1(ptr, 4) ( \ 56 #define tagptr_fold(type, ptr, _tags) ({ \ argument 60 tagptr_init(type, (uintptr_t)(ptr) | tags); })
|
D | sysfs.c | 97 unsigned char *ptr = __struct_ptr(sbi, a->struct_type, a->offset); in erofs_attr_show() local 103 if (!ptr) in erofs_attr_show() 105 return sysfs_emit(buf, "%u\n", *(unsigned int *)ptr); in erofs_attr_show() 107 if (!ptr) in erofs_attr_show() 109 return sysfs_emit(buf, "%d\n", *(bool *)ptr); in erofs_attr_show() 120 unsigned char *ptr = __struct_ptr(sbi, a->struct_type, a->offset); in erofs_attr_store() local 126 if (!ptr) in erofs_attr_store() 133 *(unsigned int *)ptr = t; in erofs_attr_store() 136 if (!ptr) in erofs_attr_store() 143 *(bool *)ptr = !!t; in erofs_attr_store()
|
/fs/xfs/libxfs/ |
D | xfs_btree.c | 301 const union xfs_btree_ptr *ptr, in xfs_btree_check_ptr() argument 306 if (xfs_btree_check_lptr(cur, be64_to_cpu((&ptr->l)[index]), in xfs_btree_check_ptr() 315 if (xfs_btree_check_sptr(cur, be32_to_cpu((&ptr->s)[index]), in xfs_btree_check_ptr() 1017 const union xfs_btree_ptr *ptr, in xfs_btree_ptr_to_daddr() argument 1024 error = xfs_btree_check_ptr(cur, ptr, 0, 1); in xfs_btree_ptr_to_daddr() 1029 fsbno = be64_to_cpu(ptr->l); in xfs_btree_ptr_to_daddr() 1032 agbno = be32_to_cpu(ptr->s); in xfs_btree_ptr_to_daddr() 1049 union xfs_btree_ptr *ptr, in xfs_btree_readahead_ptr() argument 1054 if (xfs_btree_ptr_to_daddr(cur, ptr, &daddr)) in xfs_btree_readahead_ptr() 1094 const union xfs_btree_ptr *ptr) in xfs_btree_ptr_is_null() argument [all …]
|
D | xfs_attr_remote.c | 68 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 …]
|
D | xfs_btree_staging.c | 88 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() 747 union xfs_btree_ptr ptr; in xfs_btree_bload() local 764 xfs_btree_set_ptr_null(cur, &ptr); in xfs_btree_bload() 783 nr_this_block, &ptr, &bp, &block, priv); in xfs_btree_bload() 787 trace_xfs_btree_bload_block(cur, level, i, blocks, &ptr, in xfs_btree_bload() 800 xfs_btree_copy_ptrs(cur, &child_ptr, &ptr, 1); in xfs_btree_bload() 811 xfs_btree_set_ptr_null(cur, &ptr); in xfs_btree_bload() [all …]
|
/fs/ext4/ |
D | sysfs.c | 373 void *ptr = calc_ptr(a, sbi); in ext4_attr_show() local 394 if (!ptr) in ext4_attr_show() 398 le32_to_cpup(ptr)); in ext4_attr_show() 401 *((unsigned int *) ptr)); in ext4_attr_show() 403 if (!ptr) in ext4_attr_show() 406 *((unsigned long *) ptr)); in ext4_attr_show() 408 if (!ptr) in ext4_attr_show() 411 *((unsigned char *) ptr)); in ext4_attr_show() 413 if (!ptr) in ext4_attr_show() 417 le64_to_cpup(ptr)); in ext4_attr_show() [all …]
|
/fs/udf/ |
D | directory.c | 162 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/ |
D | ocfs2.h | 685 #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/ |
D | xattr.h | 55 #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/ |
D | dir_f.c | 74 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/gfs2/ |
D | bmap.c | 325 __be64 *ptr = metapointer(x, mp); in __fillup_metapath() local 326 u64 dblock = be64_to_cpu(*ptr); in __fillup_metapath() 425 static inline unsigned int gfs2_extent_length(struct buffer_head *bh, __be64 *ptr, size_t limit, in… in gfs2_extent_length() argument 428 const __be64 *first = ptr; in gfs2_extent_length() 429 u64 d = be64_to_cpu(*ptr); in gfs2_extent_length() 433 ptr++; in gfs2_extent_length() 434 if (ptr >= end) in gfs2_extent_length() 437 } while(be64_to_cpu(*ptr) == d); in gfs2_extent_length() 438 if (ptr >= end) in gfs2_extent_length() 440 return ptr - first; in gfs2_extent_length() [all …]
|
/fs/xfs/ |
D | kmem.c | 16 void *ptr; in kmem_alloc() local 21 ptr = kmalloc(size, lflags); in kmem_alloc() 22 if (ptr || (flags & KM_MAYFAIL)) in kmem_alloc() 23 return ptr; in kmem_alloc()
|
/fs/ntfs3/ |
D | lznt.c | 38 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/ramfs/ |
D | file-nommu.c | 208 struct page **pages = NULL, **ptr, *page; in ramfs_nommu_get_unmapped_area() local 233 ptr = pages; in ramfs_nommu_get_unmapped_area() 234 page = *ptr++; in ramfs_nommu_get_unmapped_area() 237 if (*ptr++ != page++) in ramfs_nommu_get_unmapped_area() 244 ptr = pages; in ramfs_nommu_get_unmapped_area() 246 put_page(*ptr++); in ramfs_nommu_get_unmapped_area()
|
/fs/orangefs/ |
D | orangefs-bufmap.c | 267 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()
|
/fs/hfs/ |
D | mdb.c | 78 char *ptr; in hfs_mdb_get() local 183 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_get() 192 memcpy(ptr, bh->b_data + off2, len); in hfs_mdb_get() 194 ptr += len; in hfs_mdb_get() 309 char *ptr; in hfs_mdb_commit() local 316 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_commit() 326 memcpy(bh->b_data + off, ptr, len); in hfs_mdb_commit() 333 ptr += len; in hfs_mdb_commit()
|