Lines Matching refs:a
653 static umode_t region_visible(struct kobject *kobj, struct attribute *a, int n) in region_visible() argument
660 if (!is_memory(dev) && a == &dev_attr_pfn_seed.attr) in region_visible()
663 if (!is_memory(dev) && a == &dev_attr_dax_seed.attr) in region_visible()
666 if (!is_memory(dev) && a == &dev_attr_badblocks.attr) in region_visible()
669 if (a == &dev_attr_resource.attr && !is_memory(dev)) in region_visible()
672 if (a == &dev_attr_deep_flush.attr) { in region_visible()
676 return a->mode; in region_visible()
683 if (a == &dev_attr_persistence_domain.attr) { in region_visible()
687 return a->mode; in region_visible()
690 if (a == &dev_attr_align.attr) in region_visible()
691 return a->mode; in region_visible()
693 if (a != &dev_attr_set_cookie.attr in region_visible()
694 && a != &dev_attr_available_size.attr) in region_visible()
695 return a->mode; in region_visible()
698 a == &dev_attr_available_size.attr) in region_visible()
699 return a->mode; in region_visible()
701 return a->mode; in region_visible()
767 static umode_t mapping_visible(struct kobject *kobj, struct attribute *a, int n) in mapping_visible() argument
773 return a->mode; in mapping_visible()