Lines Matching refs:cdw10
108 static int nvme_pr_command(struct block_device *bdev, u32 cdw10, in nvme_pr_command() argument
119 c.common.cdw10 = cpu_to_le32(cdw10); in nvme_pr_command()
131 u32 cdw10; in nvme_pr_register() local
136 cdw10 = old ? 2 : 0; in nvme_pr_register()
137 cdw10 |= (flags & PR_FL_IGNORE_KEY) ? 1 << 3 : 0; in nvme_pr_register()
138 cdw10 |= (1 << 30) | (1 << 31); /* PTPL=1 */ in nvme_pr_register()
139 return nvme_pr_command(bdev, cdw10, old, new, nvme_cmd_resv_register); in nvme_pr_register()
145 u32 cdw10; in nvme_pr_reserve() local
150 cdw10 = nvme_pr_type_from_blk(type) << 8; in nvme_pr_reserve()
151 cdw10 |= ((flags & PR_FL_IGNORE_KEY) ? 1 << 3 : 0); in nvme_pr_reserve()
152 return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_acquire); in nvme_pr_reserve()
158 u32 cdw10 = nvme_pr_type_from_blk(type) << 8 | (abort ? 2 : 1); in nvme_pr_preempt() local
160 return nvme_pr_command(bdev, cdw10, old, new, nvme_cmd_resv_acquire); in nvme_pr_preempt()
165 u32 cdw10 = 1 | (key ? 0 : 1 << 3); in nvme_pr_clear() local
167 return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_release); in nvme_pr_clear()
172 u32 cdw10 = nvme_pr_type_from_blk(type) << 8 | (key ? 0 : 1 << 3); in nvme_pr_release() local
174 return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_release); in nvme_pr_release()
184 c.common.cdw10 = cpu_to_le32(nvme_bytes_to_numd(data_len)); in nvme_pr_resv_report()