Lines Matching refs:ops
279 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register() local
284 if (!ops || !ops->pr_register) in blkdev_pr_register()
291 return ops->pr_register(bdev, reg.old_key, reg.new_key, reg.flags); in blkdev_pr_register()
297 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_reserve() local
302 if (!ops || !ops->pr_reserve) in blkdev_pr_reserve()
309 return ops->pr_reserve(bdev, rsv.key, rsv.type, rsv.flags); in blkdev_pr_reserve()
315 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_release() local
320 if (!ops || !ops->pr_release) in blkdev_pr_release()
327 return ops->pr_release(bdev, rsv.key, rsv.type); in blkdev_pr_release()
333 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_preempt() local
338 if (!ops || !ops->pr_preempt) in blkdev_pr_preempt()
345 return ops->pr_preempt(bdev, p.old_key, p.new_key, p.type, abort); in blkdev_pr_preempt()
351 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_clear() local
356 if (!ops || !ops->pr_clear) in blkdev_pr_clear()
363 return ops->pr_clear(bdev, c.key); in blkdev_pr_clear()