Searched refs:hd (Results 1 – 3 of 3) sorted by relevance
/block/partitions/ |
D | check.c | 114 static struct parsed_partitions *allocate_partitions(struct gendisk *hd) in allocate_partitions() argument 123 nr = disk_max_parts(hd); in allocate_partitions() 142 check_partition(struct gendisk *hd, struct block_device *bdev) in check_partition() argument 147 state = allocate_partitions(hd); in check_partition() 158 disk_name(hd, 0, state->name); in check_partition()
|
/block/ |
D | genhd.c | 1182 struct hd_struct *hd; in diskstats_show() local 1195 while ((hd = disk_part_iter_next(&piter))) { in diskstats_show() 1197 part_round_stats(cpu, hd); in diskstats_show() 1201 MAJOR(part_devt(hd)), MINOR(part_devt(hd)), in diskstats_show() 1202 disk_name(gp, hd->partno, buf), in diskstats_show() 1203 part_stat_read(hd, ios[READ]), in diskstats_show() 1204 part_stat_read(hd, merges[READ]), in diskstats_show() 1205 part_stat_read(hd, sectors[READ]), in diskstats_show() 1206 jiffies_to_msecs(part_stat_read(hd, ticks[READ])), in diskstats_show() 1207 part_stat_read(hd, ios[WRITE]), in diskstats_show() [all …]
|
D | partition-generic.c | 35 char *disk_name(struct gendisk *hd, int partno, char *buf) in disk_name() argument 38 snprintf(buf, BDEVNAME_SIZE, "%s", hd->disk_name); in disk_name() 39 else if (isdigit(hd->disk_name[strlen(hd->disk_name)-1])) in disk_name() 40 snprintf(buf, BDEVNAME_SIZE, "%sp%d", hd->disk_name, partno); in disk_name() 42 snprintf(buf, BDEVNAME_SIZE, "%s%d", hd->disk_name, partno); in disk_name()
|