Lines Matching defs:sup
53 * @sup: Supplier end of the link.
56 * Create a fwnode link between fwnode handles @con and @sup. The fwnode link
57 * represents the detail that the firmware lists @sup fwnode as supplying a
61 * two device objects corresponding to @con and @sup when they are created. The
62 * driver core will automatically delete the fwnode link between @con and @sup
69 struct fwnode_handle *sup, u8 flags)
73 list_for_each_entry(link, &sup->consumers, s_hook)
83 link->supplier = sup;
89 list_add(&link->s_hook, &sup->consumers);
92 con, sup);
97 int fwnode_link_add(struct fwnode_handle *con, struct fwnode_handle *sup,
102 return __fwnode_link_add(con, sup, flags);
638 struct device *sup = link->supplier;
641 ret = sysfs_create_link(&link->link_dev.kobj, &sup->kobj, "supplier");
655 ret = sysfs_create_link(&sup->kobj, &link->link_dev.kobj, buf_con);
659 buf_sup = kasprintf(GFP_KERNEL, "supplier:%s:%s", dev_bus_name(sup), dev_name(sup));
672 sysfs_remove_link(&sup->kobj, buf_con);
685 struct device *sup = link->supplier;
692 buf_sup = kasprintf(GFP_KERNEL, "supplier:%s:%s", dev_bus_name(sup), dev_name(sup));
701 sysfs_remove_link(&sup->kobj, buf_con);
1295 static void __device_links_supplier_defer_sync(struct device *sup)
1297 if (list_empty(&sup->links.defer_sync) && dev_has_sync_state(sup))
1298 list_add_tail(&sup->links.defer_sync, &deferred_sync);
1845 struct device *sup = link->supplier;
1848 link->status == DL_STATE_ACTIVE || dev_state_synced(sup) ||
1849 !dev_has_sync_state(sup))
1853 dev_info(sup, "sync_state() pending due to %s\n",
1858 if (!list_empty(&sup->links.defer_sync))
1861 dev_warn(sup, "Timed out. Forcing sync_state()\n");
1862 dev_set_state_synced(sup);
1863 get_device(sup);
1864 list_add_tail(&sup->links.defer_sync, data);
2363 struct fwnode_handle *sup = link->supplier;
2365 ret = fw_devlink_create_devlink(dev, sup, link);