Lines Matching refs:sup

71 int fwnode_link_add(struct fwnode_handle *con, struct fwnode_handle *sup)  in fwnode_link_add()  argument
78 list_for_each_entry(link, &sup->consumers, s_hook) in fwnode_link_add()
88 link->supplier = sup; in fwnode_link_add()
93 list_add(&link->s_hook, &sup->consumers); in fwnode_link_add()
508 struct device *sup = link->supplier; in devlink_add_symlinks() local
512 len = max(strlen(dev_bus_name(sup)) + strlen(dev_name(sup)), in devlink_add_symlinks()
520 ret = sysfs_create_link(&link->link_dev.kobj, &sup->kobj, "supplier"); in devlink_add_symlinks()
529 ret = sysfs_create_link(&sup->kobj, &link->link_dev.kobj, buf); in devlink_add_symlinks()
533 snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), dev_name(sup)); in devlink_add_symlinks()
542 sysfs_remove_link(&sup->kobj, buf); in devlink_add_symlinks()
557 struct device *sup = link->supplier; in devlink_remove_symlinks() local
564 len = max(strlen(dev_bus_name(sup)) + strlen(dev_name(sup)), in devlink_remove_symlinks()
575 snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), dev_name(sup)); in devlink_remove_symlinks()
579 sysfs_remove_link(&sup->kobj, buf); in devlink_remove_symlinks()
1134 static void __device_links_supplier_defer_sync(struct device *sup) in __device_links_supplier_defer_sync() argument
1136 if (list_empty(&sup->links.defer_sync) && dev_has_sync_state(sup)) in __device_links_supplier_defer_sync()
1137 list_add_tail(&sup->links.defer_sync, &deferred_sync); in __device_links_supplier_defer_sync()
1584 int fw_devlink_relax_cycle(struct device *con, void *sup) in fw_devlink_relax_cycle() argument
1589 if (con == sup) in fw_devlink_relax_cycle()
1592 ret = device_for_each_child(con, sup, fw_devlink_relax_cycle); in fw_devlink_relax_cycle()
1601 if (!fw_devlink_relax_cycle(link->consumer, sup)) in fw_devlink_relax_cycle()
1833 struct fwnode_handle *sup = link->supplier; in __fw_devlink_link_to_suppliers() local
1835 ret = fw_devlink_create_devlink(dev, sup, dl_flags); in __fw_devlink_link_to_suppliers()
1860 sup_dev = get_dev_from_fwnode(sup); in __fw_devlink_link_to_suppliers()