Lines Matching refs:effects
1084 u32 effects = 0; in nvme_command_effects() local
1087 effects = le32_to_cpu(ns->head->effects->iocs[opcode]); in nvme_command_effects()
1088 if (effects & ~(NVME_CMD_EFFECTS_CSUPP | NVME_CMD_EFFECTS_LBCC)) in nvme_command_effects()
1091 opcode, effects); in nvme_command_effects()
1098 effects &= ~NVME_CMD_EFFECTS_CSE_MASK; in nvme_command_effects()
1100 effects = le32_to_cpu(ctrl->effects->acs[opcode]); in nvme_command_effects()
1103 return effects; in nvme_command_effects()
1109 u32 effects = nvme_command_effects(ctrl, ns, opcode); in nvme_passthru_start() local
1115 if (effects & NVME_CMD_EFFECTS_CSE_MASK) { in nvme_passthru_start()
1123 return effects; in nvme_passthru_start()
1127 void nvme_passthru_end(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u32 effects, in nvme_passthru_end() argument
1130 if (effects & NVME_CMD_EFFECTS_CSE_MASK) { in nvme_passthru_end()
1136 if (effects & NVME_CMD_EFFECTS_CCC) { in nvme_passthru_end()
1143 if (effects & (NVME_CMD_EFFECTS_NIC | NVME_CMD_EFFECTS_NCC)) { in nvme_passthru_end()
2945 struct nvme_effects_log *log = ctrl->effects; in nvme_init_known_nvm_effects()
2979 if (ctrl->effects) in nvme_init_effects()
2983 ret = nvme_get_effects_log(ctrl, NVME_CSI_NVM, &ctrl->effects); in nvme_init_effects()
2988 if (!ctrl->effects) { in nvme_init_effects()
2989 ctrl->effects = kzalloc(sizeof(*ctrl->effects), GFP_KERNEL); in nvme_init_effects()
2990 if (!ctrl->effects) in nvme_init_effects()
2992 xa_store(&ctrl->cels, NVME_CSI_NVM, ctrl->effects, GFP_KERNEL); in nvme_init_effects()
3389 ret = nvme_get_effects_log(ctrl, head->ids.csi, &head->effects); in nvme_alloc_ns_head()
3393 head->effects = ctrl->effects; in nvme_alloc_ns_head()