Lines Matching refs:bdev

52 static int nvme_send_ns_head_pr_command(struct block_device *bdev,  in nvme_send_ns_head_pr_command()  argument
55 struct nvme_ns_head *head = bdev->bd_disk->private_data; in nvme_send_ns_head_pr_command()
97 static int __nvme_send_pr_command(struct block_device *bdev, u32 cdw10, in __nvme_send_pr_command() argument
106 if (nvme_disk_is_ns_head(bdev->bd_disk)) in __nvme_send_pr_command()
107 return nvme_send_ns_head_pr_command(bdev, &c, data, data_len); in __nvme_send_pr_command()
108 return nvme_send_ns_pr_command(bdev->bd_disk->private_data, &c, in __nvme_send_pr_command()
112 static int nvme_send_pr_command(struct block_device *bdev, u32 cdw10, u32 cdw11, in nvme_send_pr_command() argument
117 ret = __nvme_send_pr_command(bdev, cdw10, cdw11, op, data, data_len); in nvme_send_pr_command()
121 static int nvme_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in nvme_pr_register() argument
138 return nvme_send_pr_command(bdev, cdw10, 0, nvme_cmd_resv_register, in nvme_pr_register()
142 static int nvme_pr_reserve(struct block_device *bdev, u64 key, in nvme_pr_reserve() argument
157 return nvme_send_pr_command(bdev, cdw10, 0, nvme_cmd_resv_acquire, in nvme_pr_reserve()
161 static int nvme_pr_preempt(struct block_device *bdev, u64 old, u64 new, in nvme_pr_preempt() argument
174 return nvme_send_pr_command(bdev, cdw10, 0, nvme_cmd_resv_acquire, in nvme_pr_preempt()
178 static int nvme_pr_clear(struct block_device *bdev, u64 key) in nvme_pr_clear() argument
188 return nvme_send_pr_command(bdev, cdw10, 0, nvme_cmd_resv_release, in nvme_pr_clear()
192 static int nvme_pr_release(struct block_device *bdev, u64 key, enum pr_type type) in nvme_pr_release() argument
203 return nvme_send_pr_command(bdev, cdw10, 0, nvme_cmd_resv_release, in nvme_pr_release()
207 static int nvme_pr_resv_report(struct block_device *bdev, void *data, in nvme_pr_resv_report() argument
218 ret = __nvme_send_pr_command(bdev, cdw10, cdw11, nvme_cmd_resv_report, in nvme_pr_resv_report()
230 static int nvme_pr_read_keys(struct block_device *bdev, in nvme_pr_read_keys() argument
247 ret = nvme_pr_resv_report(bdev, rse, rse_len, &eds); in nvme_pr_read_keys()
272 static int nvme_pr_read_reservation(struct block_device *bdev, in nvme_pr_read_reservation() argument
285 ret = nvme_pr_resv_report(bdev, &tmp_rse, sizeof(tmp_rse), &eds); in nvme_pr_read_reservation()
300 ret = nvme_pr_resv_report(bdev, rse, rse_len, &eds); in nvme_pr_read_reservation()