Lines Matching refs:blkdevs
430 } blkdevs[MAX_BLKDEV]; variable
439 if (blkdevs[i].bdops) { in get_blkdev_list()
440 len += sprintf(p+len, "%3d %s\n", i, blkdevs[i].name); in get_blkdev_list()
457 if (!blkdevs[major].bdops) { in get_blkfops()
463 ret = blkdevs[major].bdops; in get_blkfops()
472 if (blkdevs[major].bdops == NULL) { in register_blkdev()
473 blkdevs[major].name = name; in register_blkdev()
474 blkdevs[major].bdops = bdops; in register_blkdev()
482 if (blkdevs[major].bdops && blkdevs[major].bdops != bdops) in register_blkdev()
484 blkdevs[major].name = name; in register_blkdev()
485 blkdevs[major].bdops = bdops; in register_blkdev()
493 if (!blkdevs[major].bdops) in unregister_blkdev()
495 if (strcmp(blkdevs[major].name, name)) in unregister_blkdev()
497 blkdevs[major].name = NULL; in unregister_blkdev()
498 blkdevs[major].bdops = NULL; in unregister_blkdev()
518 bdops = blkdevs[i].bdops; in check_disk_change()
688 const char * name = blkdevs[MAJOR(dev)].name; in bdevname()