Lines Matching refs:tc

250 			     struct cti_trig_con *tc,  in cti_add_connection_entry()  argument
256 tc->con_dev = csdev; in cti_add_connection_entry()
262 tc->con_dev_name = dev_name(&csdev->dev); in cti_add_connection_entry()
264 tc->con_dev_name = devm_kstrdup(dev, in cti_add_connection_entry()
266 if (!tc->con_dev_name) in cti_add_connection_entry()
269 list_add_tail(&tc->node, &cti_dev->trig_cons); in cti_add_connection_entry()
273 drvdata->config.trig_in_use |= tc->con_in->used_mask; in cti_add_connection_entry()
274 drvdata->config.trig_out_use |= tc->con_out->used_mask; in cti_add_connection_entry()
283 struct cti_trig_con *tc = NULL; in cti_allocate_trig_con() local
286 tc = devm_kzalloc(dev, sizeof(struct cti_trig_con), GFP_KERNEL); in cti_allocate_trig_con()
287 if (!tc) in cti_allocate_trig_con()
288 return tc; in cti_allocate_trig_con()
302 tc->con_in = in; in cti_allocate_trig_con()
303 tc->con_out = out; in cti_allocate_trig_con()
304 tc->con_in->nr_sigs = in_sigs; in cti_allocate_trig_con()
305 tc->con_out->nr_sigs = out_sigs; in cti_allocate_trig_con()
306 return tc; in cti_allocate_trig_con()
318 struct cti_trig_con *tc = NULL; in cti_add_default_connection() local
324 tc = cti_allocate_trig_con(dev, n_trigs, n_trigs); in cti_add_default_connection()
325 if (!tc) in cti_add_default_connection()
328 tc->con_in->used_mask = n_trig_mask; in cti_add_default_connection()
329 tc->con_out->used_mask = n_trig_mask; in cti_add_default_connection()
330 ret = cti_add_connection_entry(dev, drvdata, tc, NULL, "default"); in cti_add_default_connection()
482 struct cti_trig_con *tc) in cti_add_sysfs_link() argument
488 link_info.orig_name = tc->con_dev_name; in cti_add_sysfs_link()
489 link_info.target = tc->con_dev; in cti_add_sysfs_link()
501 struct cti_trig_con *tc) in cti_remove_sysfs_link() argument
506 link_info.orig_name = tc->con_dev_name; in cti_remove_sysfs_link()
507 link_info.target = tc->con_dev; in cti_remove_sysfs_link()
521 struct cti_trig_con *tc; in cti_match_fixup_csdev() local
525 list_for_each_entry(tc, &ctidev->trig_cons, node) { in cti_match_fixup_csdev()
526 if (tc->con_dev_name) { in cti_match_fixup_csdev()
527 if (!strcmp(node_name, tc->con_dev_name)) { in cti_match_fixup_csdev()
529 tc->con_dev_name = dev_name(&csdev->dev); in cti_match_fixup_csdev()
530 tc->con_dev = csdev; in cti_match_fixup_csdev()
532 if (cti_add_sysfs_link(drvdata, tc)) in cti_match_fixup_csdev()
535 tc->con_dev = NULL; in cti_match_fixup_csdev()
591 struct cti_trig_con *tc; in cti_remove_assoc_from_csdev() local
605 list_for_each_entry(tc, &ctidev->trig_cons, node) { in cti_remove_assoc_from_csdev()
606 if (tc->con_dev == csdev) { in cti_remove_assoc_from_csdev()
607 cti_remove_sysfs_link(ctidrv, tc); in cti_remove_assoc_from_csdev()
608 tc->con_dev = NULL; in cti_remove_assoc_from_csdev()
631 struct cti_trig_con *tc; in cti_update_conn_xrefs() local
634 list_for_each_entry(tc, &ctidev->trig_cons, node) { in cti_update_conn_xrefs()
635 if (tc->con_dev) { in cti_update_conn_xrefs()
637 if (cti_add_sysfs_link(drvdata, tc)) in cti_update_conn_xrefs()
639 coresight_add_helper(tc->con_dev, in cti_update_conn_xrefs()
643 tc->con_dev = NULL; in cti_update_conn_xrefs()
650 struct cti_trig_con *tc; in cti_remove_conn_xrefs() local
653 list_for_each_entry(tc, &ctidev->trig_cons, node) { in cti_remove_conn_xrefs()
654 if (tc->con_dev) { in cti_remove_conn_xrefs()
655 cti_remove_sysfs_link(drvdata, tc); in cti_remove_conn_xrefs()
656 tc->con_dev = NULL; in cti_remove_conn_xrefs()