Lines Matching refs:sup
76 int fwnode_link_add(struct fwnode_handle *con, struct fwnode_handle *sup) in fwnode_link_add() argument
83 list_for_each_entry(link, &sup->consumers, s_hook) in fwnode_link_add()
93 link->supplier = sup; in fwnode_link_add()
98 list_add(&link->s_hook, &sup->consumers); in fwnode_link_add()
101 con, sup); in fwnode_link_add()
535 struct device *sup = link->supplier; in devlink_add_symlinks() local
539 len = max(strlen(dev_bus_name(sup)) + strlen(dev_name(sup)), in devlink_add_symlinks()
547 ret = sysfs_create_link(&link->link_dev.kobj, &sup->kobj, "supplier"); in devlink_add_symlinks()
556 ret = sysfs_create_link(&sup->kobj, &link->link_dev.kobj, buf); in devlink_add_symlinks()
560 snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), dev_name(sup)); in devlink_add_symlinks()
569 sysfs_remove_link(&sup->kobj, buf); in devlink_add_symlinks()
584 struct device *sup = link->supplier; in devlink_remove_symlinks() local
591 len = max(strlen(dev_bus_name(sup)) + strlen(dev_name(sup)), in devlink_remove_symlinks()
602 snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), dev_name(sup)); in devlink_remove_symlinks()
606 sysfs_remove_link(&sup->kobj, buf); in devlink_remove_symlinks()
1186 static void __device_links_supplier_defer_sync(struct device *sup) in __device_links_supplier_defer_sync() argument
1188 if (list_empty(&sup->links.defer_sync) && dev_has_sync_state(sup)) in __device_links_supplier_defer_sync()
1189 list_add_tail(&sup->links.defer_sync, &deferred_sync); in __device_links_supplier_defer_sync()
1785 static int fw_devlink_relax_cycle(struct device *con, void *sup) in fw_devlink_relax_cycle() argument
1790 if (con == sup) in fw_devlink_relax_cycle()
1793 ret = device_for_each_child(con, sup, fw_devlink_relax_cycle); in fw_devlink_relax_cycle()
1802 if (!fw_devlink_relax_cycle(link->consumer, sup)) in fw_devlink_relax_cycle()
2046 struct fwnode_handle *sup = link->supplier; in __fw_devlink_link_to_suppliers() local
2048 ret = fw_devlink_create_devlink(dev, sup, dl_flags); in __fw_devlink_link_to_suppliers()
2071 sup_dev = get_dev_from_fwnode(sup); in __fw_devlink_link_to_suppliers()