Lines Matching refs:a
1135 struct nfit_mem *a = container_of(_a, typeof(*a), list); in nfit_mem_cmp() local
1139 handleA = __to_nfit_memdev(a)->device_handle; in nfit_mem_cmp()
1330 static umode_t nfit_visible(struct kobject *kobj, struct attribute *a, int n) in nfit_visible() argument
1335 if (a == &dev_attr_scrub.attr) in nfit_visible()
1336 return ars_supported(nvdimm_bus) ? a->mode : 0; in nfit_visible()
1338 if (a == &dev_attr_firmware_activate_noidle.attr) in nfit_visible()
1339 return intel_fwa_supported(nvdimm_bus) ? a->mode : 0; in nfit_visible()
1341 return a->mode; in nfit_visible()
1618 struct attribute *a, int n) in acpi_nfit_dimm_attr_visible() argument
1626 if (a == &dev_attr_handle.attr || a == &dev_attr_phys_id.attr in acpi_nfit_dimm_attr_visible()
1627 || a == &dev_attr_flags.attr in acpi_nfit_dimm_attr_visible()
1628 || a == &dev_attr_family.attr in acpi_nfit_dimm_attr_visible()
1629 || a == &dev_attr_dsm_mask.attr) in acpi_nfit_dimm_attr_visible()
1630 return a->mode; in acpi_nfit_dimm_attr_visible()
1634 if (a == &dev_attr_format1.attr && num_nvdimm_formats(nvdimm) <= 1) in acpi_nfit_dimm_attr_visible()
1638 && a == &dev_attr_dirty_shutdown.attr) in acpi_nfit_dimm_attr_visible()
1641 return a->mode; in acpi_nfit_dimm_attr_visible()