Lines Matching refs:effects
1204 u32 effects = 0; in nvme_command_effects() local
1207 effects = le32_to_cpu(ns->head->effects->iocs[opcode]); in nvme_command_effects()
1208 if (effects & ~(NVME_CMD_EFFECTS_CSUPP | NVME_CMD_EFFECTS_LBCC)) in nvme_command_effects()
1211 opcode, effects); in nvme_command_effects()
1218 effects &= ~NVME_CMD_EFFECTS_CSE_MASK; in nvme_command_effects()
1220 effects = le32_to_cpu(ctrl->effects->acs[opcode]); in nvme_command_effects()
1223 if (effects & NVME_CMD_EFFECTS_CSER_MASK) in nvme_command_effects()
1224 effects &= ~NVME_CMD_EFFECTS_CSE_MASK; in nvme_command_effects()
1227 return effects; in nvme_command_effects()
1233 u32 effects = nvme_command_effects(ctrl, ns, opcode); in nvme_passthru_start() local
1239 if (effects & NVME_CMD_EFFECTS_CSE_MASK) { in nvme_passthru_start()
1247 return effects; in nvme_passthru_start()
1251 void nvme_passthru_end(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u32 effects, in nvme_passthru_end() argument
1254 if (effects & NVME_CMD_EFFECTS_CSE_MASK) { in nvme_passthru_end()
1260 if (effects & NVME_CMD_EFFECTS_CCC) { in nvme_passthru_end()
1267 if (effects & (NVME_CMD_EFFECTS_NIC | NVME_CMD_EFFECTS_NCC)) { in nvme_passthru_end()
3400 struct nvme_effects_log *effects, *old; in nvme_init_effects_log() local
3402 effects = kzalloc(sizeof(*effects), GFP_KERNEL); in nvme_init_effects_log()
3403 if (!effects) in nvme_init_effects_log()
3406 old = xa_store(&ctrl->cels, csi, effects, GFP_KERNEL); in nvme_init_effects_log()
3408 kfree(effects); in nvme_init_effects_log()
3412 *log = effects; in nvme_init_effects_log()
3418 struct nvme_effects_log *log = ctrl->effects; in nvme_init_known_nvm_effects()
3452 if (ctrl->effects) in nvme_init_effects()
3456 ret = nvme_get_effects_log(ctrl, NVME_CSI_NVM, &ctrl->effects); in nvme_init_effects()
3461 if (!ctrl->effects) { in nvme_init_effects()
3462 ret = nvme_init_effects_log(ctrl, NVME_CSI_NVM, &ctrl->effects); in nvme_init_effects()
3908 ret = nvme_get_effects_log(ctrl, head->ids.csi, &head->effects); in nvme_alloc_ns_head()
3912 head->effects = ctrl->effects; in nvme_alloc_ns_head()