Lines Matching refs:devt
186 void (*probe)(dev_t devt);
237 void (*probe)(dev_t devt)) in __register_blkdev() argument
342 static char *bdevt_str(dev_t devt, char *buf) in bdevt_str() argument
344 if (MAJOR(devt) <= 0xff && MINOR(devt) <= 0xff) { in bdevt_str()
346 snprintf(tbuf, BDEVT_SIZE, "%02x%02x", MAJOR(devt), MINOR(devt)); in bdevt_str()
349 snprintf(buf, BDEVT_SIZE, "%03x:%05x", MAJOR(devt), MINOR(devt)); in bdevt_str()
451 ddev->devt = MKDEV(disk->major, disk->first_minor); in device_add_disk()
511 bdev_add(disk->part0, ddev->devt); in device_add_disk()
682 void blk_request_module(dev_t devt) in blk_request_module() argument
684 unsigned int major = MAJOR(devt); in blk_request_module()
690 (*n)->probe(devt); in blk_request_module()
697 if (request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)) > 0) in blk_request_module()
699 request_module("block-major-%d", MAJOR(devt)); in blk_request_module()
1246 dev_t devt = 0; in part_devt() local
1251 devt = part->bd_dev; in part_devt()
1254 return devt; in part_devt()
1259 dev_t devt = MKDEV(0, 0); in blk_lookup_devt() local
1274 devt = MKDEV(MAJOR(dev->devt), in blk_lookup_devt()
1275 MINOR(dev->devt) + partno); in blk_lookup_devt()
1277 devt = part_devt(disk, partno); in blk_lookup_devt()
1278 if (devt) in blk_lookup_devt()
1283 return devt; in blk_lookup_devt()