Searched refs:devt (Results 1 – 2 of 2) sorted by relevance
/block/ |
D | genhd.c | 471 int blk_alloc_devt(struct hd_struct *part, dev_t *devt) in blk_alloc_devt() argument 478 *devt = MKDEV(disk->major, disk->first_minor + part->partno); in blk_alloc_devt() 493 *devt = MKDEV(BLOCK_EXT_MAJOR, blk_mangle_minor(idx)); in blk_alloc_devt() 506 void blk_free_devt(dev_t devt) in blk_free_devt() argument 508 if (devt == MKDEV(0, 0)) in blk_free_devt() 511 if (MAJOR(devt) == BLOCK_EXT_MAJOR) { in blk_free_devt() 513 idr_remove(&ext_devt_idr, blk_mangle_minor(MINOR(devt))); in blk_free_devt() 518 static char *bdevt_str(dev_t devt, char *buf) in bdevt_str() argument 520 if (MAJOR(devt) <= 0xff && MINOR(devt) <= 0xff) { in bdevt_str() 522 snprintf(tbuf, BDEVT_SIZE, "%02x%02x", MAJOR(devt), MINOR(devt)); in bdevt_str() [all …]
|
D | partition-generic.c | 226 blk_free_devt(dev->devt); in part_release() 306 dev_t devt = MKDEV(0, 0); in add_partition() local 363 err = blk_alloc_devt(p, &devt); in add_partition() 366 pdev->devt = devt; in add_partition() 627 md_autodetect_dev(part_to_dev(part)->devt); in rescan_partitions()
|