Lines Matching refs:acpi_desc

16 	struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc);  in firmware_activate_noidle_show()  local
18 return sprintf(buf, "%s\n", acpi_desc->fwa_noidle ? "Y" : "N"); in firmware_activate_noidle_show()
26 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in firmware_activate_noidle_store() local
33 if (val != acpi_desc->fwa_noidle) in firmware_activate_noidle_store()
34 acpi_desc->fwa_cap = NVDIMM_FWA_CAP_INVALID; in firmware_activate_noidle_store()
35 acpi_desc->fwa_noidle = val; in firmware_activate_noidle_store()
43 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_fwa_supported() local
49 mask = &acpi_desc->family_dsm_mask[NVDIMM_BUS_FAMILY_INTEL]; in intel_fwa_supported()
435 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_bus_fwa_state() local
437 struct device *dev = acpi_desc->dev; in intel_bus_fwa_state()
446 switch (acpi_desc->fwa_state) { in intel_bus_fwa_state()
452 if (acpi_desc->fwa_cap == NVDIMM_FWA_CAP_INVALID) in intel_bus_fwa_state()
454 return acpi_desc->fwa_state; in intel_bus_fwa_state()
485 if (acpi_desc->fwa_cap == NVDIMM_FWA_CAP_INVALID) { in intel_bus_fwa_state()
487 acpi_desc->fwa_cap = NVDIMM_FWA_CAP_QUIESCE; in intel_bus_fwa_state()
494 acpi_desc->fwa_cap = NVDIMM_FWA_CAP_LIVE; in intel_bus_fwa_state()
496 acpi_desc->fwa_cap = NVDIMM_FWA_CAP_NONE; in intel_bus_fwa_state()
499 acpi_desc->fwa_state = state; in intel_bus_fwa_state()
507 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_bus_fwa_capability() local
509 if (acpi_desc->fwa_cap > NVDIMM_FWA_CAP_INVALID) in intel_bus_fwa_capability()
510 return acpi_desc->fwa_cap; in intel_bus_fwa_capability()
513 return acpi_desc->fwa_cap; in intel_bus_fwa_capability()
520 struct acpi_nfit_desc *acpi_desc = to_acpi_desc(nd_desc); in intel_bus_fwa_activate() local
541 .iodev_state = acpi_desc->fwa_noidle in intel_bus_fwa_activate()
566 acpi_desc->fwa_state = NVDIMM_FWA_INVALID; in intel_bus_fwa_activate()
567 acpi_desc->fwa_count++; in intel_bus_fwa_activate()
569 dev_dbg(acpi_desc->dev, "result: %d\n", rc); in intel_bus_fwa_activate()
608 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_state() local
622 if (nfit_mem->fwa_count == acpi_desc->fwa_count) in intel_fwa_state()
667 nfit_mem->fwa_count = acpi_desc->fwa_count; in intel_fwa_state()
675 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_result() local
677 if (nfit_mem->fwa_count == acpi_desc->fwa_count in intel_fwa_result()
690 struct acpi_nfit_desc *acpi_desc = nfit_mem->acpi_desc; in intel_fwa_arm() local
733 acpi_desc->fwa_state = NVDIMM_FWA_INVALID; in intel_fwa_arm()
738 dev_dbg(acpi_desc->dev, "%s result: %d\n", arm == NVDIMM_FWA_ARM in intel_fwa_arm()