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