Lines Matching refs:hd_struct
20 #define dev_to_part(device) container_of((device), struct hd_struct, __dev)
90 struct hd_struct {
132 struct hd_struct *last_lookup;
133 struct hd_struct *part[];
153 struct hd_struct part0;
173 static inline struct gendisk *part_to_disk(struct hd_struct *part)
201 static inline dev_t part_devt(struct hd_struct *part)
206 extern struct hd_struct *disk_get_part(struct gendisk *disk, int partno);
208 static inline void disk_put_part(struct hd_struct *part)
224 struct hd_struct *part;
231 extern struct hd_struct *disk_part_iter_next(struct disk_part_iter *piter);
234 extern struct hd_struct *disk_map_sector_rcu(struct gendisk *disk,
265 static inline void part_stat_set_all(struct hd_struct *part, int value)
274 static inline int init_part_stats(struct hd_struct *part)
282 static inline void free_part_stats(struct hd_struct *part)
296 static inline void part_stat_set_all(struct hd_struct *part, int value)
301 static inline int init_part_stats(struct hd_struct *part)
306 static inline void free_part_stats(struct hd_struct *part)
326 static inline void part_inc_in_flight(struct hd_struct *part, int rw)
333 static inline void part_dec_in_flight(struct hd_struct *part, int rw)
340 static inline int part_in_flight(struct hd_struct *part)
346 extern void part_round_stats(int cpu, struct hd_struct *part);
527 extern int blk_alloc_devt(struct hd_struct *part, dev_t *devt);
534 extern struct hd_struct * __must_check add_partition(struct gendisk *disk,