Lines Matching defs:bdev
52 static int nvme_send_ns_head_pr_command(struct block_device *bdev,
55 struct nvme_ns_head *head = bdev->bd_disk->private_data;
97 static int nvme_send_pr_command(struct block_device *bdev,
101 bdev->bd_disk->fops == &nvme_ns_head_ops)
102 return nvme_send_ns_head_pr_command(bdev, c, data, data_len);
104 return nvme_send_ns_pr_command(bdev->bd_disk->private_data, c, data,
108 static int nvme_pr_command(struct block_device *bdev, u32 cdw10,
121 ret = nvme_send_pr_command(bdev, &c, data, sizeof(data));
128 static int nvme_pr_register(struct block_device *bdev, u64 old,
139 return nvme_pr_command(bdev, cdw10, old, new, nvme_cmd_resv_register);
142 static int nvme_pr_reserve(struct block_device *bdev, u64 key,
152 return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_acquire);
155 static int nvme_pr_preempt(struct block_device *bdev, u64 old, u64 new,
160 return nvme_pr_command(bdev, cdw10, old, new, nvme_cmd_resv_acquire);
163 static int nvme_pr_clear(struct block_device *bdev, u64 key)
167 return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_release);
170 static int nvme_pr_release(struct block_device *bdev, u64 key, enum pr_type type)
174 return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_release);
177 static int nvme_pr_resv_report(struct block_device *bdev, void *data,
189 ret = nvme_send_pr_command(bdev, &c, data, data_len);
203 static int nvme_pr_read_keys(struct block_device *bdev,
220 ret = nvme_pr_resv_report(bdev, rse, rse_len, &eds);
245 static int nvme_pr_read_reservation(struct block_device *bdev,
258 ret = nvme_pr_resv_report(bdev, &tmp_rse, sizeof(tmp_rse), &eds);
273 ret = nvme_pr_resv_report(bdev, rse, rse_len, &eds);