• Home
  • Raw
  • Download

Lines Matching refs:sup

74 int fwnode_link_add(struct fwnode_handle *con, struct fwnode_handle *sup)  in fwnode_link_add()  argument
81 list_for_each_entry(link, &sup->consumers, s_hook) in fwnode_link_add()
91 link->supplier = sup; in fwnode_link_add()
96 list_add(&link->s_hook, &sup->consumers); in fwnode_link_add()
99 con, sup); in fwnode_link_add()
533 struct device *sup = link->supplier; in devlink_add_symlinks() local
537 len = max(strlen(dev_bus_name(sup)) + strlen(dev_name(sup)), in devlink_add_symlinks()
545 ret = sysfs_create_link(&link->link_dev.kobj, &sup->kobj, "supplier"); in devlink_add_symlinks()
554 ret = sysfs_create_link(&sup->kobj, &link->link_dev.kobj, buf); in devlink_add_symlinks()
558 snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), dev_name(sup)); in devlink_add_symlinks()
567 sysfs_remove_link(&sup->kobj, buf); in devlink_add_symlinks()
582 struct device *sup = link->supplier; in devlink_remove_symlinks() local
589 len = max(strlen(dev_bus_name(sup)) + strlen(dev_name(sup)), in devlink_remove_symlinks()
600 snprintf(buf, len, "supplier:%s:%s", dev_bus_name(sup), dev_name(sup)); in devlink_remove_symlinks()
604 sysfs_remove_link(&sup->kobj, buf); in devlink_remove_symlinks()
1164 static void __device_links_supplier_defer_sync(struct device *sup) in __device_links_supplier_defer_sync() argument
1166 if (list_empty(&sup->links.defer_sync) && dev_has_sync_state(sup)) in __device_links_supplier_defer_sync()
1167 list_add_tail(&sup->links.defer_sync, &deferred_sync); in __device_links_supplier_defer_sync()
1695 static int fw_devlink_relax_cycle(struct device *con, void *sup) in fw_devlink_relax_cycle() argument
1700 if (con == sup) in fw_devlink_relax_cycle()
1703 ret = device_for_each_child(con, sup, fw_devlink_relax_cycle); in fw_devlink_relax_cycle()
1712 if (!fw_devlink_relax_cycle(link->consumer, sup)) in fw_devlink_relax_cycle()
1956 struct fwnode_handle *sup = link->supplier; in __fw_devlink_link_to_suppliers() local
1958 ret = fw_devlink_create_devlink(dev, sup, dl_flags); in __fw_devlink_link_to_suppliers()
1981 sup_dev = get_dev_from_fwnode(sup); in __fw_devlink_link_to_suppliers()