Lines Matching refs:csdev

336 		struct coresight_device *csdev;  in etm_setup_aux()  local
338 csdev = per_cpu(csdev_src, cpu); in etm_setup_aux()
344 if (!csdev) { in etm_setup_aux()
364 sink = coresight_find_default_sink(csdev); in etm_setup_aux()
383 path = coresight_build_path(csdev, sink); in etm_setup_aux()
431 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_start() local
434 if (!csdev) in etm_event_start()
475 if (source_ops(csdev)->enable(csdev, event, CS_MODE_PERF)) in etm_event_start()
506 struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); in etm_event_stop() local
544 if (!csdev) in etm_event_stop()
556 source_ops(csdev)->disable(csdev, event); in etm_event_stop()
694 int etm_perf_symlink(struct coresight_device *csdev, bool link) in etm_perf_symlink() argument
697 int ret = 0, cpu = source_ops(csdev)->cpu_id(csdev); in etm_perf_symlink()
699 struct device *cs_dev = &csdev->dev; in etm_perf_symlink()
710 per_cpu(csdev_src, cpu) = csdev; in etm_perf_symlink()
767 int etm_perf_add_symlink_sink(struct coresight_device *csdev) in etm_perf_add_symlink_sink() argument
770 struct device *dev = &csdev->dev; in etm_perf_add_symlink_sink()
773 if (csdev->type != CORESIGHT_DEV_TYPE_SINK && in etm_perf_add_symlink_sink()
774 csdev->type != CORESIGHT_DEV_TYPE_LINKSINK) in etm_perf_add_symlink_sink()
777 if (csdev->ea != NULL) in etm_perf_add_symlink_sink()
781 csdev->ea = etm_perf_add_symlink_group(dev, name, "sinks"); in etm_perf_add_symlink_sink()
782 if (IS_ERR(csdev->ea)) { in etm_perf_add_symlink_sink()
783 err = PTR_ERR(csdev->ea); in etm_perf_add_symlink_sink()
784 csdev->ea = NULL; in etm_perf_add_symlink_sink()
786 csdev->ea->attr.show = etm_perf_sink_name_show; in etm_perf_add_symlink_sink()
799 void etm_perf_del_symlink_sink(struct coresight_device *csdev) in etm_perf_del_symlink_sink() argument
801 if (csdev->type != CORESIGHT_DEV_TYPE_SINK && in etm_perf_del_symlink_sink()
802 csdev->type != CORESIGHT_DEV_TYPE_LINKSINK) in etm_perf_del_symlink_sink()
805 if (!csdev->ea) in etm_perf_del_symlink_sink()
808 etm_perf_del_symlink_group(csdev->ea, "sinks"); in etm_perf_del_symlink_sink()
809 csdev->ea = NULL; in etm_perf_del_symlink_sink()