Lines Matching refs:btrfs_dev_item
236 struct btrfs_dev_item dev_item;
1575 struct btrfs_dev_item *s) in btrfs_device_total_bytes()
1578 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_device_total_bytes()
1579 return btrfs_get_64(eb, s, offsetof(struct btrfs_dev_item, in btrfs_device_total_bytes()
1583 struct btrfs_dev_item *s, in btrfs_set_device_total_bytes()
1587 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_set_device_total_bytes()
1589 btrfs_set_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes), val); in btrfs_set_device_total_bytes()
1593 BTRFS_SETGET_FUNCS(device_type, struct btrfs_dev_item, type, 64);
1594 BTRFS_SETGET_FUNCS(device_bytes_used, struct btrfs_dev_item, bytes_used, 64);
1595 BTRFS_SETGET_FUNCS(device_io_align, struct btrfs_dev_item, io_align, 32);
1596 BTRFS_SETGET_FUNCS(device_io_width, struct btrfs_dev_item, io_width, 32);
1597 BTRFS_SETGET_FUNCS(device_start_offset, struct btrfs_dev_item,
1599 BTRFS_SETGET_FUNCS(device_sector_size, struct btrfs_dev_item, sector_size, 32);
1600 BTRFS_SETGET_FUNCS(device_id, struct btrfs_dev_item, devid, 64);
1601 BTRFS_SETGET_FUNCS(device_group, struct btrfs_dev_item, dev_group, 32);
1602 BTRFS_SETGET_FUNCS(device_seek_speed, struct btrfs_dev_item, seek_speed, 8);
1603 BTRFS_SETGET_FUNCS(device_bandwidth, struct btrfs_dev_item, bandwidth, 8);
1604 BTRFS_SETGET_FUNCS(device_generation, struct btrfs_dev_item, generation, 64);
1606 BTRFS_SETGET_STACK_FUNCS(stack_device_type, struct btrfs_dev_item, type, 64);
1607 BTRFS_SETGET_STACK_FUNCS(stack_device_total_bytes, struct btrfs_dev_item,
1609 BTRFS_SETGET_STACK_FUNCS(stack_device_bytes_used, struct btrfs_dev_item,
1611 BTRFS_SETGET_STACK_FUNCS(stack_device_io_align, struct btrfs_dev_item,
1613 BTRFS_SETGET_STACK_FUNCS(stack_device_io_width, struct btrfs_dev_item,
1615 BTRFS_SETGET_STACK_FUNCS(stack_device_sector_size, struct btrfs_dev_item,
1617 BTRFS_SETGET_STACK_FUNCS(stack_device_id, struct btrfs_dev_item, devid, 64);
1618 BTRFS_SETGET_STACK_FUNCS(stack_device_group, struct btrfs_dev_item,
1620 BTRFS_SETGET_STACK_FUNCS(stack_device_seek_speed, struct btrfs_dev_item,
1622 BTRFS_SETGET_STACK_FUNCS(stack_device_bandwidth, struct btrfs_dev_item,
1624 BTRFS_SETGET_STACK_FUNCS(stack_device_generation, struct btrfs_dev_item,
1627 static inline unsigned long btrfs_device_uuid(struct btrfs_dev_item *d) in btrfs_device_uuid()
1629 return (unsigned long)d + offsetof(struct btrfs_dev_item, uuid); in btrfs_device_uuid()
1632 static inline unsigned long btrfs_device_fsid(struct btrfs_dev_item *d) in btrfs_device_fsid()
1634 return (unsigned long)d + offsetof(struct btrfs_dev_item, fsid); in btrfs_device_fsid()