Lines Matching refs:effects
1065 u32 effects = 0; in nvme_command_effects() local
1068 effects = le32_to_cpu(ns->head->effects->iocs[opcode]); in nvme_command_effects()
1069 if (effects & ~(NVME_CMD_EFFECTS_CSUPP | NVME_CMD_EFFECTS_LBCC)) in nvme_command_effects()
1072 opcode, effects); in nvme_command_effects()
1079 effects &= ~NVME_CMD_EFFECTS_CSE_MASK; in nvme_command_effects()
1081 effects = le32_to_cpu(ctrl->effects->acs[opcode]); in nvme_command_effects()
1084 return effects; in nvme_command_effects()
1090 u32 effects = nvme_command_effects(ctrl, ns, opcode); in nvme_passthru_start() local
1096 if (effects & NVME_CMD_EFFECTS_CSE_MASK) { in nvme_passthru_start()
1104 return effects; in nvme_passthru_start()
1108 void nvme_passthru_end(struct nvme_ctrl *ctrl, u32 effects, in nvme_passthru_end() argument
1111 if (effects & NVME_CMD_EFFECTS_CSE_MASK) { in nvme_passthru_end()
1117 if (effects & NVME_CMD_EFFECTS_CCC) { in nvme_passthru_end()
1121 if (effects & (NVME_CMD_EFFECTS_NIC | NVME_CMD_EFFECTS_NCC)) { in nvme_passthru_end()
3084 struct nvme_effects_log *log = ctrl->effects; in nvme_init_known_nvm_effects()
3118 if (ctrl->effects) in nvme_init_effects()
3122 ret = nvme_get_effects_log(ctrl, NVME_CSI_NVM, &ctrl->effects); in nvme_init_effects()
3127 if (!ctrl->effects) { in nvme_init_effects()
3128 ctrl->effects = kzalloc(sizeof(*ctrl->effects), GFP_KERNEL); in nvme_init_effects()
3129 if (!ctrl->effects) in nvme_init_effects()
3131 xa_store(&ctrl->cels, NVME_CSI_NVM, ctrl->effects, GFP_KERNEL); in nvme_init_effects()
4104 ret = nvme_get_effects_log(ctrl, head->ids.csi, &head->effects); in nvme_alloc_ns_head()
4108 head->effects = ctrl->effects; in nvme_alloc_ns_head()