Lines Matching refs:ptr

165 #define read_eb_member(eb, ptr, type, member, result) (			\  argument
167 ((unsigned long)(ptr)) + \
171 #define write_eb_member(eb, ptr, type, member, result) ( \ argument
173 ((unsigned long)(ptr)) + \
410 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_atime() local
411 ptr += offsetof(struct btrfs_inode_item, atime); in btrfs_inode_atime()
412 return (struct btrfs_timespec *)ptr; in btrfs_inode_atime()
418 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_mtime() local
419 ptr += offsetof(struct btrfs_inode_item, mtime); in btrfs_inode_mtime()
420 return (struct btrfs_timespec *)ptr; in btrfs_inode_mtime()
426 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_ctime() local
427 ptr += offsetof(struct btrfs_inode_item, ctime); in btrfs_inode_ctime()
428 return (struct btrfs_timespec *)ptr; in btrfs_inode_ctime()
434 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_otime() local
435 ptr += offsetof(struct btrfs_inode_item, otime); in btrfs_inode_otime()
436 return (struct btrfs_timespec *)ptr; in btrfs_inode_otime()
460 unsigned long ptr = offsetof(struct btrfs_dev_extent, chunk_tree_uuid); in btrfs_dev_extent_chunk_tree_uuid() local
461 return (u8 *)((unsigned long)dev + ptr); in btrfs_dev_extent_chunk_tree_uuid()
538 unsigned long ptr; in btrfs_node_blockptr() local
539 ptr = offsetof(struct btrfs_node, ptrs) + in btrfs_node_blockptr()
541 return btrfs_key_blockptr(eb, (struct btrfs_key_ptr *)ptr); in btrfs_node_blockptr()
547 unsigned long ptr; in btrfs_set_node_blockptr() local
548 ptr = offsetof(struct btrfs_node, ptrs) + in btrfs_set_node_blockptr()
550 btrfs_set_key_blockptr(eb, (struct btrfs_key_ptr *)ptr, val); in btrfs_set_node_blockptr()
555 unsigned long ptr; in btrfs_node_ptr_generation() local
556 ptr = offsetof(struct btrfs_node, ptrs) + in btrfs_node_ptr_generation()
558 return btrfs_key_generation(eb, (struct btrfs_key_ptr *)ptr); in btrfs_node_ptr_generation()
564 unsigned long ptr; in btrfs_set_node_ptr_generation() local
565 ptr = offsetof(struct btrfs_node, ptrs) + in btrfs_set_node_ptr_generation()
567 btrfs_set_key_generation(eb, (struct btrfs_key_ptr *)ptr, val); in btrfs_set_node_ptr_generation()
579 unsigned long ptr; in btrfs_node_key() local
580 ptr = btrfs_node_key_ptr_offset(nr); in btrfs_node_key()
581 read_eb_member(eb, (struct btrfs_key_ptr *)ptr, in btrfs_node_key()
588 unsigned long ptr; in btrfs_set_node_key() local
589 ptr = btrfs_node_key_ptr_offset(nr); in btrfs_set_node_key()
590 write_eb_member(eb, (struct btrfs_key_ptr *)ptr, in btrfs_set_node_key()
812 unsigned long ptr = offsetof(struct btrfs_header, csum); in btrfs_header_csum() local
813 return (u8 *)ptr; in btrfs_header_csum()
853 unsigned long ptr = (unsigned long)root_item; in btrfs_root_ctime() local
854 ptr += offsetof(struct btrfs_root_item, ctime); in btrfs_root_ctime()
855 return (struct btrfs_timespec *)ptr; in btrfs_root_ctime()
861 unsigned long ptr = (unsigned long)root_item; in btrfs_root_otime() local
862 ptr += offsetof(struct btrfs_root_item, otime); in btrfs_root_otime()
863 return (struct btrfs_timespec *)ptr; in btrfs_root_otime()
869 unsigned long ptr = (unsigned long)root_item; in btrfs_root_stime() local
870 ptr += offsetof(struct btrfs_root_item, stime); in btrfs_root_stime()
871 return (struct btrfs_timespec *)ptr; in btrfs_root_stime()
877 unsigned long ptr = (unsigned long)root_item; in btrfs_root_rtime() local
878 ptr += offsetof(struct btrfs_root_item, rtime); in btrfs_root_rtime()
879 return (struct btrfs_timespec *)ptr; in btrfs_root_rtime()
1131 const struct btrfs_dev_stats_item *ptr, in btrfs_dev_stats_value() argument
1138 ((unsigned long)ptr) + (index * sizeof(u64)), in btrfs_dev_stats_value()