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, in nvme_send_pr_command() argument
101 bdev->bd_disk->fops == &nvme_ns_head_ops) in nvme_send_pr_command()
102 return nvme_send_ns_head_pr_command(bdev, c, data, data_len); in nvme_send_pr_command()
104 return nvme_send_ns_pr_command(bdev->bd_disk->private_data, c, data, in nvme_send_pr_command()
108 static int nvme_pr_command(struct block_device *bdev, u32 cdw10, in nvme_pr_command() argument
121 ret = nvme_send_pr_command(bdev, &c, data, sizeof(data)); in nvme_pr_command()
128 static int nvme_pr_register(struct block_device *bdev, u64 old, in nvme_pr_register() argument
139 return nvme_pr_command(bdev, cdw10, old, new, 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
152 return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_acquire); in nvme_pr_reserve()
155 static int nvme_pr_preempt(struct block_device *bdev, u64 old, u64 new, in nvme_pr_preempt() argument
160 return nvme_pr_command(bdev, cdw10, old, new, nvme_cmd_resv_acquire); in nvme_pr_preempt()
163 static int nvme_pr_clear(struct block_device *bdev, u64 key) in nvme_pr_clear() argument
167 return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_release); in nvme_pr_clear()
170 static int nvme_pr_release(struct block_device *bdev, u64 key, enum pr_type type) in nvme_pr_release() argument
174 return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_release); in nvme_pr_release()
177 static int nvme_pr_resv_report(struct block_device *bdev, void *data, in nvme_pr_resv_report() argument
189 ret = nvme_send_pr_command(bdev, &c, data, data_len); in nvme_pr_resv_report()
203 static int nvme_pr_read_keys(struct block_device *bdev, in nvme_pr_read_keys() argument
220 ret = nvme_pr_resv_report(bdev, rse, rse_len, &eds); in nvme_pr_read_keys()
245 static int nvme_pr_read_reservation(struct block_device *bdev, in nvme_pr_read_reservation() argument
258 ret = nvme_pr_resv_report(bdev, &tmp_rse, sizeof(tmp_rse), &eds); in nvme_pr_read_reservation()
273 ret = nvme_pr_resv_report(bdev, rse, rse_len, &eds); in nvme_pr_read_reservation()