Home
last modified time | relevance | path

Searched refs:hd (Results 1 – 3 of 3) sorted by relevance

/block/partitions/
Dcheck.c115 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/
Dgenhd.c1369 struct hd_struct *hd; in diskstats_show() local
1382 while ((hd = disk_part_iter_next(&piter))) { in diskstats_show()
1383 inflight = part_in_flight(gp->queue, hd); in diskstats_show()
1389 MAJOR(part_devt(hd)), MINOR(part_devt(hd)), in diskstats_show()
1390 disk_name(gp, hd->partno, buf), in diskstats_show()
1391 part_stat_read(hd, ios[STAT_READ]), in diskstats_show()
1392 part_stat_read(hd, merges[STAT_READ]), in diskstats_show()
1393 part_stat_read(hd, sectors[STAT_READ]), in diskstats_show()
1394 (unsigned int)part_stat_read_msecs(hd, STAT_READ), in diskstats_show()
1395 part_stat_read(hd, ios[STAT_WRITE]), in diskstats_show()
[all …]
Dpartition-generic.c35 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()