Home
last modified time | relevance | path

Searched refs:partno (Results 1 – 6 of 6) sorted by relevance

/block/
Dpartition-generic.c35 char *disk_name(struct gendisk *hd, int partno, char *buf) in disk_name() argument
37 if (!partno) 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()
49 return disk_name(bdev->bd_disk, bdev->bd_part->partno, buf); in bdevname()
79 return sprintf(buf, "%d\n", p->partno); in part_partition_show()
235 add_uevent_var(env, "PARTN=%u", part->partno); in part_uevent()
268 void delete_partition(struct gendisk *disk, int partno) in delete_partition() argument
274 if (partno >= ptbl->len) in delete_partition()
277 part = rcu_dereference_protected(ptbl->part[partno], 1); in delete_partition()
[all …]
Dgenhd.c54 if (part->partno) in part_inc_in_flight()
64 if (part->partno) in part_dec_in_flight()
78 if (part->partno) { in part_in_flight()
97 struct hd_struct *__disk_get_part(struct gendisk *disk, int partno) in __disk_get_part() argument
101 if (unlikely(partno < 0 || partno >= ptbl->len)) in __disk_get_part()
103 return rcu_dereference(ptbl->part[partno]); in __disk_get_part()
120 struct hd_struct *disk_get_part(struct gendisk *disk, int partno) in disk_get_part() argument
125 part = __disk_get_part(disk, partno); in disk_get_part()
477 if (part->partno < disk->minors) { in blk_alloc_devt()
478 *devt = MKDEV(disk->major, disk->first_minor + part->partno); in blk_alloc_devt()
[all …]
Dioctl.c22 int partno; in blkpg_ioctl() local
33 partno = p.pno; in blkpg_ioctl()
34 if (partno <= 0) in blkpg_ioctl()
45 || pstart < 0 || plength < 0 || partno > 65535) in blkpg_ioctl()
68 part = add_partition(disk, partno, start, length, in blkpg_ioctl()
73 part = disk_get_part(disk, partno); in blkpg_ioctl()
93 delete_partition(disk, partno); in blkpg_ioctl()
111 part = disk_get_part(disk, partno); in blkpg_ioctl()
132 if (lpart->partno != partno && in blkpg_ioctl()
Dblk.h207 struct hd_struct *__disk_get_part(struct gendisk *disk, int partno);
Dblk-mq.c107 if (mi->part->partno) in blk_mq_check_inflight()
Dblk-core.c1531 if (part->partno) { in part_round_stats()