Lines Matching refs:ea
514 struct dev_ext_attribute *ea; in etm_perf_sink_name_show() local
516 ea = container_of(dattr, struct dev_ext_attribute, attr); in etm_perf_sink_name_show()
517 return scnprintf(buf, PAGE_SIZE, "0x%lx\n", (unsigned long)(ea->var)); in etm_perf_sink_name_show()
527 struct dev_ext_attribute *ea; in etm_perf_add_symlink_sink() local
533 if (csdev->ea != NULL) in etm_perf_add_symlink_sink()
539 ea = devm_kzalloc(dev, sizeof(*ea), GFP_KERNEL); in etm_perf_add_symlink_sink()
540 if (!ea) in etm_perf_add_symlink_sink()
547 sysfs_attr_init(&ea->attr.attr); in etm_perf_add_symlink_sink()
548 ea->attr.attr.name = devm_kstrdup(dev, name, GFP_KERNEL); in etm_perf_add_symlink_sink()
549 if (!ea->attr.attr.name) in etm_perf_add_symlink_sink()
552 ea->attr.attr.mode = 0444; in etm_perf_add_symlink_sink()
553 ea->attr.show = etm_perf_sink_name_show; in etm_perf_add_symlink_sink()
554 ea->var = (unsigned long *)hash; in etm_perf_add_symlink_sink()
557 &ea->attr.attr, "sinks"); in etm_perf_add_symlink_sink()
560 csdev->ea = ea; in etm_perf_add_symlink_sink()
568 struct dev_ext_attribute *ea = csdev->ea; in etm_perf_del_symlink_sink() local
574 if (!ea) in etm_perf_del_symlink_sink()
578 &ea->attr.attr, "sinks"); in etm_perf_del_symlink_sink()
579 csdev->ea = NULL; in etm_perf_del_symlink_sink()