/linux/drivers/nvme/host/ |
H A D | pr.c | 97 static int __nvme_send_pr_command(struct block_device *bdev, u32 cdw10, in __nvme_send_pr_command() argument 103 c.common.cdw10 = cpu_to_le32(cdw10); 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() 125 u32 cdw10; in nvme_pr_register() local 133 cdw10 = old_key ? NVME_PR_REGISTER_ACT_REPLACE : in nvme_pr_register() 135 cdw10 |= (flags & PR_FL_IGNORE_KEY) ? NVME_PR_IGNORE_KEY : 0; in nvme_pr_register() 136 cdw10 |= NVME_PR_CPTPL_PERSIST; in nvme_pr_register() 138 return nvme_send_pr_command(bdev, cdw10, 0, nvme_cmd_resv_register, in nvme_pr_register() 146 u32 cdw10; in nvme_pr_reserve() local [all …]
|
H A D | trace.h | 20 u8 *cdw10); 22 u8 *cdw10); 26 #define parse_nvme_cmd(qid, opcode, fctype, cdw10) \ argument 28 nvme_trace_parse_fabrics_cmd(p, fctype, cdw10) : \ 30 nvme_trace_parse_nvm_cmd(p, opcode, cdw10) : \ 31 nvme_trace_parse_admin_cmd(p, opcode, cdw10))) 60 __array(u8, cdw10, 24) 72 memcpy(__entry->cdw10, &cmd->common.cdws, 73 sizeof(__entry->cdw10)); 82 __entry->fctype, __entry->cdw10))
|
H A D | ioctl.c | 321 c.common.cdw10 = cpu_to_le32(cmd.cdw10); in nvme_user_cmd() 368 c.common.cdw10 = cpu_to_le32(cmd.cdw10); in nvme_user_cmd64() 489 c.common.cdw10 = cpu_to_le32(READ_ONCE(cmd->cdw10)); in nvme_uring_cmd_io()
|
H A D | core.c | 381 nr->cmd->common.cdw10, in nvme_log_err_passthru() 1256 switch (le32_to_cpu(cmd->common.cdw10) & 0xFF) { in nvme_passthru_end() 2379 cmd.common.cdw10 = cpu_to_le32(((u32)secp) << 24 | ((u32)spsp) << 8); in nvme_sec_submit()
|
H A D | fc.c | 2543 sqe->common.cdw10, sqe->common.cdw11); in nvme_fc_timeout()
|
/linux/drivers/nvme/target/ |
H A D | trace.h | 22 u8 *cdw10); 24 u8 *cdw10); 28 #define parse_nvme_cmd(qid, opcode, fctype, cdw10) \ argument 30 nvmet_trace_parse_fabrics_cmd(p, fctype, cdw10) : \ 32 nvmet_trace_parse_nvm_cmd(p, opcode, cdw10) : \ 33 nvmet_trace_parse_admin_cmd(p, opcode, cdw10))) 80 __array(u8, cdw10, 24) 93 memcpy(__entry->cdw10, &cmd->common.cdws, 94 sizeof(__entry->cdw10)); 105 __entry->fctype, __entry->cdw10))
|
H A D | pr.c | 16 static inline bool nvmet_pr_parse_ignore_key(u32 cdw10) in nvmet_pr_parse_ignore_key() argument 19 return (cdw10 >> 3) & 1; in nvmet_pr_parse_ignore_key() 377 u32 cdw10 = le32_to_cpu(req->cmd->common.cdw10); in nvmet_execute_pr_register() local 378 bool ignore_key = nvmet_pr_parse_ignore_key(cdw10); in nvmet_execute_pr_register() 380 u8 reg_act = cdw10 & 0x07; /* Reservation Register Action, bit 02:00 */ in nvmet_execute_pr_register() 404 req->error_loc = offsetof(struct nvme_common_command, cdw10); in nvmet_execute_pr_register() 633 req->error_loc = offsetof(struct nvme_common_command, cdw10); in __nvmet_execute_pr_acquire() 646 u32 cdw10 = le32_to_cpu(req->cmd->common.cdw10); in nvmet_execute_pr_acquire() local 647 bool ignore_key = nvmet_pr_parse_ignore_key(cdw10); in nvmet_execute_pr_acquire() 649 u8 rtype = (u8)((cdw10 >> 8) & 0xff); in nvmet_execute_pr_acquire() [all …]
|
H A D | admin-cmd.c | 164 static u32 nvmet_feat_data_len(struct nvmet_req *req, u32 cdw10) in nvmet_feat_data_len() argument 166 switch (cdw10 & 0xff) { in nvmet_feat_data_len() 1301 req->error_loc = offsetof(struct nvme_common_command, cdw10); in nvmet_set_feat_irq_coalesce() 1322 req->error_loc = offsetof(struct nvme_common_command, cdw10); in nvmet_set_feat_irq_config() 1341 req->error_loc = offsetof(struct nvme_common_command, cdw10); in nvmet_set_feat_arbitration() 1351 u32 cdw10 = le32_to_cpu(req->cmd->common.cdw10); in nvmet_execute_set_features() local 1360 switch (cdw10 & 0xff) { in nvmet_execute_set_features() 1396 req->error_loc = offsetof(struct nvme_common_command, cdw10); in nvmet_execute_set_features() 1435 req->error_loc = offsetof(struct nvme_common_command, cdw10); in nvmet_get_feat_irq_coalesce() 1460 req->error_loc = offsetof(struct nvme_common_command, cdw10); in nvmet_get_feat_irq_config() [all …]
|
H A D | nvmet.h | 517 int rae = le32_to_cpu(req->cmd->common.cdw10) & 1 << 15; in nvmet_clear_aen_bit()
|
/linux/include/uapi/linux/ |
H A D | nvme_ioctl.h | 38 __u32 cdw10; member 62 __u32 cdw10; member 85 __u32 cdw10; member
|
/linux/include/linux/ |
H A D | nvme.h | 1039 __le32 cdw10; 1471 __le32 cdw10; member
|