Lines Matching refs:acpi_desc

15 	struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc);  in firmware_activate_noidle_show()  local
17 return sprintf(buf, "%s\n", acpi_desc->fwa_noidle ? "Y" : "N"); in firmware_activate_noidle_show()
25 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in firmware_activate_noidle_store() local
32 if (val != acpi_desc->fwa_noidle) in firmware_activate_noidle_store()
33 acpi_desc->fwa_cap = NVDIMM_FWA_CAP_INVALID; in firmware_activate_noidle_store()
34 acpi_desc->fwa_noidle = val; in firmware_activate_noidle_store()
42 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_fwa_supported() local
48 mask = &acpi_desc->family_dsm_mask[NVDIMM_BUS_FAMILY_INTEL]; in intel_fwa_supported()
463 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_bus_fwa_state() local
465 struct device *dev = acpi_desc->dev; in intel_bus_fwa_state()
474 switch (acpi_desc->fwa_state) { in intel_bus_fwa_state()
480 if (acpi_desc->fwa_cap == NVDIMM_FWA_CAP_INVALID) in intel_bus_fwa_state()
482 return acpi_desc->fwa_state; in intel_bus_fwa_state()
513 if (acpi_desc->fwa_cap == NVDIMM_FWA_CAP_INVALID) { in intel_bus_fwa_state()
515 acpi_desc->fwa_cap = NVDIMM_FWA_CAP_QUIESCE; in intel_bus_fwa_state()
522 acpi_desc->fwa_cap = NVDIMM_FWA_CAP_LIVE; in intel_bus_fwa_state()
524 acpi_desc->fwa_cap = NVDIMM_FWA_CAP_NONE; in intel_bus_fwa_state()
527 acpi_desc->fwa_state = state; in intel_bus_fwa_state()
535 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_bus_fwa_capability() local
537 if (acpi_desc->fwa_cap > NVDIMM_FWA_CAP_INVALID) in intel_bus_fwa_capability()
538 return acpi_desc->fwa_cap; in intel_bus_fwa_capability()
541 return acpi_desc->fwa_cap; in intel_bus_fwa_capability()
548 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_bus_fwa_activate() local
569 .iodev_state = acpi_desc->fwa_noidle in intel_bus_fwa_activate()
594 acpi_desc->fwa_state = NVDIMM_FWA_INVALID; in intel_bus_fwa_activate()
595 acpi_desc->fwa_count++; in intel_bus_fwa_activate()
597 dev_dbg(acpi_desc->dev, "result: %d\n", rc); in intel_bus_fwa_activate()
636 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_state() local
650 if (nfit_mem->fwa_count == acpi_desc->fwa_count) in intel_fwa_state()
695 nfit_mem->fwa_count = acpi_desc->fwa_count; in intel_fwa_state()
703 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_result() local
705 if (nfit_mem->fwa_count == acpi_desc->fwa_count in intel_fwa_result()
718 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_arm() local
761 acpi_desc->fwa_state = NVDIMM_FWA_INVALID; in intel_fwa_arm()
766 dev_dbg(acpi_desc->dev, "%s result: %d\n", arm == NVDIMM_FWA_ARM in intel_fwa_arm()