Lines Matching refs:ptr
1198 unsigned long ptr; /* Current pointer inside inline refs */ in check_extent_item() local
1300 ptr = (unsigned long)(struct btrfs_extent_item *)(ei + 1); in check_extent_item()
1306 info = (struct btrfs_tree_block_info *)ptr; in check_extent_item()
1314 ptr = (unsigned long)(struct btrfs_tree_block_info *)(info + 1); in check_extent_item()
1318 while (ptr < end) { in check_extent_item()
1326 if (ptr + sizeof(*iref) > end) { in check_extent_item()
1329 ptr, sizeof(*iref), end); in check_extent_item()
1332 iref = (struct btrfs_extent_inline_ref *)ptr; in check_extent_item()
1335 if (ptr + btrfs_extent_inline_ref_size(inline_type) > end) { in check_extent_item()
1338 ptr, btrfs_extent_inline_ref_size(inline_type), end); in check_extent_item()
1388 ptr += btrfs_extent_inline_ref_size(inline_type); in check_extent_item()
1391 if (ptr != end) { in check_extent_item()
1462 unsigned long ptr = btrfs_item_ptr_offset(leaf, slot); in check_extent_data_ref() local
1463 const unsigned long end = ptr + btrfs_item_size_nr(leaf, slot); in check_extent_data_ref()
1478 for (; ptr < end; ptr += sizeof(*dref)) { in check_extent_data_ref()
1485 dref = (struct btrfs_extent_data_ref *)ptr; in check_extent_data_ref()
1504 unsigned long ptr; in check_inode_ref() local
1518 ptr = btrfs_item_ptr_offset(leaf, slot); in check_inode_ref()
1519 end = ptr + btrfs_item_size_nr(leaf, slot); in check_inode_ref()
1520 while (ptr < end) { in check_inode_ref()
1523 if (ptr + sizeof(iref) > end) { in check_inode_ref()
1526 ptr, end, sizeof(iref)); in check_inode_ref()
1530 iref = (struct btrfs_inode_ref *)ptr; in check_inode_ref()
1532 if (ptr + sizeof(*iref) + namelen > end) { in check_inode_ref()
1535 ptr, end, namelen); in check_inode_ref()
1544 ptr += sizeof(*iref) + namelen; in check_inode_ref()