Lines Matching full:ea

758 	struct dev_ext_attribute *ea;  in etm_perf_sink_name_show()  local
760 ea = container_of(dattr, struct dev_ext_attribute, attr); in etm_perf_sink_name_show()
761 return scnprintf(buf, PAGE_SIZE, "0x%lx\n", (unsigned long)(ea->var)); in etm_perf_sink_name_show()
767 struct dev_ext_attribute *ea; in etm_perf_add_symlink_group() local
775 ea = devm_kzalloc(dev, sizeof(*ea), GFP_KERNEL); in etm_perf_add_symlink_group()
776 if (!ea) in etm_perf_add_symlink_group()
787 sysfs_attr_init(&ea->attr.attr); in etm_perf_add_symlink_group()
788 ea->attr.attr.name = devm_kstrdup(dev, name, GFP_KERNEL); in etm_perf_add_symlink_group()
789 if (!ea->attr.attr.name) in etm_perf_add_symlink_group()
792 ea->attr.attr.mode = 0444; in etm_perf_add_symlink_group()
793 ea->var = (unsigned long *)hash; in etm_perf_add_symlink_group()
796 &ea->attr.attr, group_name); in etm_perf_add_symlink_group()
798 return ret ? ERR_PTR(ret) : ea; in etm_perf_add_symlink_group()
811 if (csdev->ea != NULL) in etm_perf_add_symlink_sink()
815 csdev->ea = etm_perf_add_symlink_group(dev, name, "sinks"); in etm_perf_add_symlink_sink()
816 if (IS_ERR(csdev->ea)) { in etm_perf_add_symlink_sink()
817 err = PTR_ERR(csdev->ea); in etm_perf_add_symlink_sink()
818 csdev->ea = NULL; in etm_perf_add_symlink_sink()
820 csdev->ea->attr.show = etm_perf_sink_name_show; in etm_perf_add_symlink_sink()
825 static void etm_perf_del_symlink_group(struct dev_ext_attribute *ea, const char *group_name) in etm_perf_del_symlink_group() argument
830 &ea->attr.attr, group_name); in etm_perf_del_symlink_group()
839 if (!csdev->ea) in etm_perf_del_symlink_sink()
842 etm_perf_del_symlink_group(csdev->ea, "sinks"); in etm_perf_del_symlink_sink()
843 csdev->ea = NULL; in etm_perf_del_symlink_sink()
850 struct dev_ext_attribute *ea; in etm_perf_cscfg_event_show() local
852 ea = container_of(dattr, struct dev_ext_attribute, attr); in etm_perf_cscfg_event_show()
853 return scnprintf(buf, PAGE_SIZE, "configid=0x%lx\n", (unsigned long)(ea->var)); in etm_perf_cscfg_event_show()