Searched refs:hd (Results 1 – 3 of 3) sorted by relevance
/block/partitions/ |
D | check.c | 115 static struct parsed_partitions *allocate_partitions(struct gendisk *hd) in allocate_partitions() argument 124 nr = disk_max_parts(hd); in allocate_partitions() 143 check_partition(struct gendisk *hd, struct block_device *bdev) in check_partition() argument 148 state = allocate_partitions(hd); in check_partition() 159 disk_name(hd, 0, state->name); in check_partition()
|
/block/ |
D | genhd.c | 1265 struct hd_struct *hd; in diskstats_show() local 1279 while ((hd = disk_part_iter_next(&piter))) { in diskstats_show() 1281 part_round_stats(gp->queue, cpu, hd); in diskstats_show() 1283 part_in_flight(gp->queue, hd, inflight); in diskstats_show() 1286 MAJOR(part_devt(hd)), MINOR(part_devt(hd)), in diskstats_show() 1287 disk_name(gp, hd->partno, buf), in diskstats_show() 1288 part_stat_read(hd, ios[READ]), in diskstats_show() 1289 part_stat_read(hd, merges[READ]), in diskstats_show() 1290 part_stat_read(hd, sectors[READ]), in diskstats_show() 1291 jiffies_to_msecs(part_stat_read(hd, ticks[READ])), 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()
|