Lines Matching refs:dev_item

631 	devid = btrfs_stack_device_id(&disk_super->dev_item);  in btrfs_open_one_device()
635 if (memcmp(device->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE)) in btrfs_open_one_device()
785 u64 devid = btrfs_stack_device_id(&disk_super->dev_item); in device_list_add()
829 .uuid = disk_super->dev_item.uuid, in device_list_add()
864 disk_super->dev_item.uuid, path); in device_list_add()
1861 struct btrfs_dev_item *dev_item; in btrfs_add_dev_item() local
1876 &key, sizeof(*dev_item)); in btrfs_add_dev_item()
1882 dev_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_item); in btrfs_add_dev_item()
1884 btrfs_set_device_id(leaf, dev_item, device->devid); in btrfs_add_dev_item()
1885 btrfs_set_device_generation(leaf, dev_item, 0); in btrfs_add_dev_item()
1886 btrfs_set_device_type(leaf, dev_item, device->type); in btrfs_add_dev_item()
1887 btrfs_set_device_io_align(leaf, dev_item, device->io_align); in btrfs_add_dev_item()
1888 btrfs_set_device_io_width(leaf, dev_item, device->io_width); in btrfs_add_dev_item()
1889 btrfs_set_device_sector_size(leaf, dev_item, device->sector_size); in btrfs_add_dev_item()
1890 btrfs_set_device_total_bytes(leaf, dev_item, in btrfs_add_dev_item()
1892 btrfs_set_device_bytes_used(leaf, dev_item, in btrfs_add_dev_item()
1894 btrfs_set_device_group(leaf, dev_item, 0); in btrfs_add_dev_item()
1895 btrfs_set_device_seek_speed(leaf, dev_item, 0); in btrfs_add_dev_item()
1896 btrfs_set_device_bandwidth(leaf, dev_item, 0); in btrfs_add_dev_item()
1897 btrfs_set_device_start_offset(leaf, dev_item, 0); in btrfs_add_dev_item()
1899 ptr = btrfs_device_uuid(dev_item); in btrfs_add_dev_item()
1901 ptr = btrfs_device_fsid(dev_item); in btrfs_add_dev_item()
2397 args->devid = btrfs_stack_device_id(&disk_super->dev_item); in btrfs_get_dev_args_from_path()
2398 memcpy(args->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE); in btrfs_get_dev_args_from_path()
2551 struct btrfs_dev_item *dev_item; in btrfs_finish_sprout() local
2592 dev_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_finish_sprout()
2594 args.devid = btrfs_device_id(leaf, dev_item); in btrfs_finish_sprout()
2595 read_extent_buffer(leaf, dev_uuid, btrfs_device_uuid(dev_item), in btrfs_finish_sprout()
2597 read_extent_buffer(leaf, fs_uuid, btrfs_device_fsid(dev_item), in btrfs_finish_sprout()
2605 btrfs_set_device_generation(leaf, dev_item, in btrfs_finish_sprout()
2872 struct btrfs_dev_item *dev_item; in btrfs_update_device() local
2894 dev_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_item); in btrfs_update_device()
2896 btrfs_set_device_id(leaf, dev_item, device->devid); in btrfs_update_device()
2897 btrfs_set_device_type(leaf, dev_item, device->type); in btrfs_update_device()
2898 btrfs_set_device_io_align(leaf, dev_item, device->io_align); in btrfs_update_device()
2899 btrfs_set_device_io_width(leaf, dev_item, device->io_width); in btrfs_update_device()
2900 btrfs_set_device_sector_size(leaf, dev_item, device->sector_size); in btrfs_update_device()
2901 btrfs_set_device_total_bytes(leaf, dev_item, in btrfs_update_device()
2903 btrfs_set_device_bytes_used(leaf, dev_item, in btrfs_update_device()
6881 struct btrfs_dev_item *dev_item, in fill_device_from_item() argument
6886 device->devid = btrfs_device_id(leaf, dev_item); in fill_device_from_item()
6887 device->disk_total_bytes = btrfs_device_total_bytes(leaf, dev_item); in fill_device_from_item()
6890 device->bytes_used = btrfs_device_bytes_used(leaf, dev_item); in fill_device_from_item()
6892 device->type = btrfs_device_type(leaf, dev_item); in fill_device_from_item()
6893 device->io_align = btrfs_device_io_align(leaf, dev_item); in fill_device_from_item()
6894 device->io_width = btrfs_device_io_width(leaf, dev_item); in fill_device_from_item()
6895 device->sector_size = btrfs_device_sector_size(leaf, dev_item); in fill_device_from_item()
6899 ptr = btrfs_device_uuid(dev_item); in fill_device_from_item()
6958 struct btrfs_dev_item *dev_item) in read_one_dev() argument
6969 devid = btrfs_device_id(leaf, dev_item); in read_one_dev()
6971 read_extent_buffer(leaf, dev_uuid, btrfs_device_uuid(dev_item), in read_one_dev()
6973 read_extent_buffer(leaf, fs_uuid, btrfs_device_fsid(dev_item), in read_one_dev()
7042 btrfs_device_generation(leaf, dev_item)) in read_one_dev()
7046 fill_device_from_item(leaf, dev_item, device); in read_one_dev()
7314 struct btrfs_dev_item *dev_item; in btrfs_read_chunk_tree() local
7315 dev_item = btrfs_item_ptr(leaf, slot, in btrfs_read_chunk_tree()
7317 ret = read_one_dev(leaf, dev_item); in btrfs_read_chunk_tree()