Lines Matching refs:ea

726 	struct dev_ext_attribute *ea;  in etm_perf_sink_name_show()  local
728 ea = container_of(dattr, struct dev_ext_attribute, attr); in etm_perf_sink_name_show()
729 return scnprintf(buf, PAGE_SIZE, "0x%lx\n", (unsigned long)(ea->var)); in etm_perf_sink_name_show()
735 struct dev_ext_attribute *ea; in etm_perf_add_symlink_group() local
743 ea = devm_kzalloc(dev, sizeof(*ea), GFP_KERNEL); in etm_perf_add_symlink_group()
744 if (!ea) in etm_perf_add_symlink_group()
755 sysfs_attr_init(&ea->attr.attr); in etm_perf_add_symlink_group()
756 ea->attr.attr.name = devm_kstrdup(dev, name, GFP_KERNEL); in etm_perf_add_symlink_group()
757 if (!ea->attr.attr.name) in etm_perf_add_symlink_group()
760 ea->attr.attr.mode = 0444; in etm_perf_add_symlink_group()
761 ea->var = (unsigned long *)hash; in etm_perf_add_symlink_group()
764 &ea->attr.attr, group_name); in etm_perf_add_symlink_group()
766 return ret ? ERR_PTR(ret) : ea; in etm_perf_add_symlink_group()
779 if (csdev->ea != NULL) in etm_perf_add_symlink_sink()
783 csdev->ea = etm_perf_add_symlink_group(dev, name, "sinks"); in etm_perf_add_symlink_sink()
784 if (IS_ERR(csdev->ea)) { in etm_perf_add_symlink_sink()
785 err = PTR_ERR(csdev->ea); in etm_perf_add_symlink_sink()
786 csdev->ea = NULL; in etm_perf_add_symlink_sink()
788 csdev->ea->attr.show = etm_perf_sink_name_show; in etm_perf_add_symlink_sink()
793 static void etm_perf_del_symlink_group(struct dev_ext_attribute *ea, const char *group_name) in etm_perf_del_symlink_group() argument
798 &ea->attr.attr, group_name); in etm_perf_del_symlink_group()
807 if (!csdev->ea) in etm_perf_del_symlink_sink()
810 etm_perf_del_symlink_group(csdev->ea, "sinks"); in etm_perf_del_symlink_sink()
811 csdev->ea = NULL; in etm_perf_del_symlink_sink()
818 struct dev_ext_attribute *ea; in etm_perf_cscfg_event_show() local
820 ea = container_of(dattr, struct dev_ext_attribute, attr); in etm_perf_cscfg_event_show()
821 return scnprintf(buf, PAGE_SIZE, "configid=0x%lx\n", (unsigned long)(ea->var)); in etm_perf_cscfg_event_show()