• Home
  • Raw
  • Download

Lines Matching refs:dev

161 btrfs_device_get_##name(const struct btrfs_device *dev)			\
167 seq = read_seqcount_begin(&dev->data_seqcount); \
168 size = dev->name; \
169 } while (read_seqcount_retry(&dev->data_seqcount, seq)); \
174 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
177 write_seqcount_begin(&dev->data_seqcount); \
178 dev->name = size; \
179 write_seqcount_end(&dev->data_seqcount); \
185 btrfs_device_get_##name(const struct btrfs_device *dev) \
190 size = dev->name; \
196 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
199 dev->name = size; \
205 btrfs_device_get_##name(const struct btrfs_device *dev) \
207 return dev->name; \
211 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
213 dev->name = size; \
321 struct btrfs_device *dev; member
350 struct btrfs_device *dev; member
478 void btrfs_dev_stat_inc_and_print(struct btrfs_device *dev, int index);
498 static inline void btrfs_dev_stat_inc(struct btrfs_device *dev, in btrfs_dev_stat_inc() argument
501 atomic_inc(dev->dev_stat_values + index); in btrfs_dev_stat_inc()
509 atomic_inc(&dev->dev_stats_ccnt); in btrfs_dev_stat_inc()
512 static inline int btrfs_dev_stat_read(struct btrfs_device *dev, in btrfs_dev_stat_read() argument
515 return atomic_read(dev->dev_stat_values + index); in btrfs_dev_stat_read()
518 static inline int btrfs_dev_stat_read_and_reset(struct btrfs_device *dev, in btrfs_dev_stat_read_and_reset() argument
523 ret = atomic_xchg(dev->dev_stat_values + index, 0); in btrfs_dev_stat_read_and_reset()
531 atomic_inc(&dev->dev_stats_ccnt); in btrfs_dev_stat_read_and_reset()
535 static inline void btrfs_dev_stat_set(struct btrfs_device *dev, in btrfs_dev_stat_set() argument
538 atomic_set(dev->dev_stat_values + index, val); in btrfs_dev_stat_set()
546 atomic_inc(&dev->dev_stats_ccnt); in btrfs_dev_stat_set()