Lines Matching refs:orig
73 if (!info->orig || !info->target || in coresight_add_sysfs_link()
76 if (!info->orig->has_conns_grp || !info->target->has_conns_grp) in coresight_add_sysfs_link()
80 ret = sysfs_add_link_to_group(&info->orig->dev.kobj, in coresight_add_sysfs_link()
90 &info->orig->dev.kobj, in coresight_add_sysfs_link()
95 sysfs_remove_link_from_group(&info->orig->dev.kobj, in coresight_add_sysfs_link()
99 info->orig->nr_links++; in coresight_add_sysfs_link()
111 if (!info->orig || !info->target || in coresight_remove_sysfs_link()
115 sysfs_remove_link_from_group(&info->orig->dev.kobj, in coresight_remove_sysfs_link()
123 info->orig->nr_links--; in coresight_remove_sysfs_link()
143 int coresight_make_links(struct coresight_device *orig, in coresight_make_links() argument
156 outs = devm_kasprintf(&orig->dev, GFP_KERNEL, in coresight_make_links()
164 link = devm_kzalloc(&orig->dev, in coresight_make_links()
170 link->orig = orig; in coresight_make_links()
191 void coresight_remove_links(struct coresight_device *orig, in coresight_remove_links() argument
194 if (!orig || !conn->link) in coresight_remove_links()
200 devm_kfree(&orig->dev, conn->link->orig_name); in coresight_remove_links()
201 devm_kfree(&orig->dev, conn->link); in coresight_remove_links()