Lines Matching refs:bdops
429 struct block_device_operations *bdops; member
439 if (blkdevs[i].bdops) { in get_blkdev_list()
457 if (!blkdevs[major].bdops) { in get_blkfops()
463 ret = blkdevs[major].bdops; in get_blkfops()
468 int register_blkdev(unsigned int major, const char * name, struct block_device_operations *bdops) in register_blkdev() argument
472 if (blkdevs[major].bdops == NULL) { in register_blkdev()
474 blkdevs[major].bdops = bdops; in register_blkdev()
482 if (blkdevs[major].bdops && blkdevs[major].bdops != bdops) in register_blkdev()
485 blkdevs[major].bdops = bdops; in register_blkdev()
493 if (!blkdevs[major].bdops) in unregister_blkdev()
498 blkdevs[major].bdops = NULL; in unregister_blkdev()
514 const struct block_device_operations * bdops = NULL; in check_disk_change() local
518 bdops = blkdevs[i].bdops; in check_disk_change()
519 if (bdops == NULL) { in check_disk_change()
525 bdops = devfs_get_ops (de); in check_disk_change()
529 if (bdops == NULL) in check_disk_change()
531 if (bdops->check_media_change == NULL) in check_disk_change()
533 if (!bdops->check_media_change(dev)) in check_disk_change()
539 if (bdops->revalidate) in check_disk_change()
540 bdops->revalidate(dev); in check_disk_change()