Lines Matching refs:ptr
996 #define read_eb_member(eb, ptr, type, member, result) ( \ argument
998 ((unsigned long)(ptr)) + \
1002 #define write_eb_member(eb, ptr, type, member, result) ( \ argument
1004 ((unsigned long)(ptr)) + \
1196 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_atime() local
1197 ptr += offsetof(struct btrfs_inode_item, atime); in btrfs_inode_atime()
1198 return (struct btrfs_timespec *)ptr; in btrfs_inode_atime()
1204 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_mtime() local
1205 ptr += offsetof(struct btrfs_inode_item, mtime); in btrfs_inode_mtime()
1206 return (struct btrfs_timespec *)ptr; in btrfs_inode_mtime()
1212 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_ctime() local
1213 ptr += offsetof(struct btrfs_inode_item, ctime); in btrfs_inode_ctime()
1214 return (struct btrfs_timespec *)ptr; in btrfs_inode_ctime()
1220 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_otime() local
1221 ptr += offsetof(struct btrfs_inode_item, otime); in btrfs_inode_otime()
1222 return (struct btrfs_timespec *)ptr; in btrfs_inode_otime()
1239 unsigned long ptr = offsetof(struct btrfs_dev_extent, chunk_tree_uuid); in btrfs_dev_extent_chunk_tree_uuid() local
1240 return (u8 *)((unsigned long)dev + ptr); in btrfs_dev_extent_chunk_tree_uuid()
1268 unsigned long ptr; in btrfs_node_blockptr() local
1269 ptr = offsetof(struct btrfs_node, ptrs) + in btrfs_node_blockptr()
1271 return btrfs_key_blockptr(eb, (struct btrfs_key_ptr *)ptr); in btrfs_node_blockptr()
1277 unsigned long ptr; in btrfs_set_node_blockptr() local
1278 ptr = offsetof(struct btrfs_node, ptrs) + in btrfs_set_node_blockptr()
1280 btrfs_set_key_blockptr(eb, (struct btrfs_key_ptr *)ptr, val); in btrfs_set_node_blockptr()
1285 unsigned long ptr; in btrfs_node_ptr_generation() local
1286 ptr = offsetof(struct btrfs_node, ptrs) + in btrfs_node_ptr_generation()
1288 return btrfs_key_generation(eb, (struct btrfs_key_ptr *)ptr); in btrfs_node_ptr_generation()
1294 unsigned long ptr; in btrfs_set_node_ptr_generation() local
1295 ptr = offsetof(struct btrfs_node, ptrs) + in btrfs_set_node_ptr_generation()
1297 btrfs_set_key_generation(eb, (struct btrfs_key_ptr *)ptr, val); in btrfs_set_node_ptr_generation()
1312 unsigned long ptr; in btrfs_set_node_key() local
1313 ptr = btrfs_node_key_ptr_offset(nr); in btrfs_set_node_key()
1314 write_eb_member(eb, (struct btrfs_key_ptr *)ptr, in btrfs_set_node_key()
1486 unsigned long ptr = offsetof(struct btrfs_header, fsid); in btrfs_header_fsid() local
1487 return (u8 *)ptr; in btrfs_header_fsid()
1492 unsigned long ptr = offsetof(struct btrfs_header, chunk_tree_uuid); in btrfs_header_chunk_tree_uuid() local
1493 return (u8 *)ptr; in btrfs_header_chunk_tree_uuid()
1498 unsigned long ptr = offsetof(struct btrfs_super_block, fsid); in btrfs_super_fsid() local
1499 return (u8 *)ptr; in btrfs_super_fsid()
1504 unsigned long ptr = offsetof(struct btrfs_header, csum); in btrfs_header_csum() local
1505 return (u8 *)ptr; in btrfs_header_csum()