Lines Matching defs:ptr
1026 unsigned long ptr;
1052 ptr = (unsigned long)(ei + 1);
1059 info = (struct btrfs_tree_block_info *)ptr;
1061 ptr += sizeof(struct btrfs_tree_block_info);
1062 BUG_ON(ptr > end);
1069 while (ptr < end) {
1074 iref = (struct btrfs_extent_inline_ref *)ptr;
1137 ptr += btrfs_extent_inline_ref_size(type);
2059 unsigned long ptr;
2106 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]);
2107 extref = (struct btrfs_inode_extref *)ptr;
2272 * helper function to iterate extent inline refs. ptr must point to a 0 value
2275 * get_extent_inline_ref must pass the modified ptr parameter to get the
2279 static int get_extent_inline_ref(unsigned long *ptr,
2291 if (!*ptr) {
2308 *ptr = (unsigned long)*out_eiref;
2309 if ((unsigned long)(*ptr) >= (unsigned long)ei + item_size)
2314 *out_eiref = (struct btrfs_extent_inline_ref *)(*ptr);
2320 *ptr += btrfs_extent_inline_ref_size(*out_type);
2321 WARN_ON(*ptr > end);
2322 if (*ptr == end)
2330 * through out_level and out_root. ptr must point to a 0 value for the first
2335 int tree_backref_for_extent(unsigned long *ptr, struct extent_buffer *eb,
2343 if (*ptr == (unsigned long)-1)
2347 ret = get_extent_inline_ref(ptr, eb, key, ei, item_size,
2374 *ptr = (unsigned long)-1;
2655 unsigned long ptr;
2677 ptr = btrfs_item_ptr_offset(eb, slot);
2683 extref = (struct btrfs_inode_extref *)(ptr + cur_offset);