Lines Matching refs:btrfs_dev_item
262 struct btrfs_dev_item dev_item;
1653 struct btrfs_dev_item *s) in btrfs_device_total_bytes()
1656 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_device_total_bytes()
1657 return btrfs_get_64(eb, s, offsetof(struct btrfs_dev_item, in btrfs_device_total_bytes()
1661 struct btrfs_dev_item *s, in btrfs_set_device_total_bytes()
1665 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_set_device_total_bytes()
1667 btrfs_set_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes), val); in btrfs_set_device_total_bytes()
1671 BTRFS_SETGET_FUNCS(device_type, struct btrfs_dev_item, type, 64);
1672 BTRFS_SETGET_FUNCS(device_bytes_used, struct btrfs_dev_item, bytes_used, 64);
1673 BTRFS_SETGET_FUNCS(device_io_align, struct btrfs_dev_item, io_align, 32);
1674 BTRFS_SETGET_FUNCS(device_io_width, struct btrfs_dev_item, io_width, 32);
1675 BTRFS_SETGET_FUNCS(device_start_offset, struct btrfs_dev_item,
1677 BTRFS_SETGET_FUNCS(device_sector_size, struct btrfs_dev_item, sector_size, 32);
1678 BTRFS_SETGET_FUNCS(device_id, struct btrfs_dev_item, devid, 64);
1679 BTRFS_SETGET_FUNCS(device_group, struct btrfs_dev_item, dev_group, 32);
1680 BTRFS_SETGET_FUNCS(device_seek_speed, struct btrfs_dev_item, seek_speed, 8);
1681 BTRFS_SETGET_FUNCS(device_bandwidth, struct btrfs_dev_item, bandwidth, 8);
1682 BTRFS_SETGET_FUNCS(device_generation, struct btrfs_dev_item, generation, 64);
1684 BTRFS_SETGET_STACK_FUNCS(stack_device_type, struct btrfs_dev_item, type, 64);
1685 BTRFS_SETGET_STACK_FUNCS(stack_device_total_bytes, struct btrfs_dev_item,
1687 BTRFS_SETGET_STACK_FUNCS(stack_device_bytes_used, struct btrfs_dev_item,
1689 BTRFS_SETGET_STACK_FUNCS(stack_device_io_align, struct btrfs_dev_item,
1691 BTRFS_SETGET_STACK_FUNCS(stack_device_io_width, struct btrfs_dev_item,
1693 BTRFS_SETGET_STACK_FUNCS(stack_device_sector_size, struct btrfs_dev_item,
1695 BTRFS_SETGET_STACK_FUNCS(stack_device_id, struct btrfs_dev_item, devid, 64);
1696 BTRFS_SETGET_STACK_FUNCS(stack_device_group, struct btrfs_dev_item,
1698 BTRFS_SETGET_STACK_FUNCS(stack_device_seek_speed, struct btrfs_dev_item,
1700 BTRFS_SETGET_STACK_FUNCS(stack_device_bandwidth, struct btrfs_dev_item,
1702 BTRFS_SETGET_STACK_FUNCS(stack_device_generation, struct btrfs_dev_item,
1705 static inline unsigned long btrfs_device_uuid(struct btrfs_dev_item *d) in btrfs_device_uuid()
1707 return (unsigned long)d + offsetof(struct btrfs_dev_item, uuid); in btrfs_device_uuid()
1710 static inline unsigned long btrfs_device_fsid(struct btrfs_dev_item *d) in btrfs_device_fsid()
1712 return (unsigned long)d + offsetof(struct btrfs_dev_item, fsid); in btrfs_device_fsid()