Lines Matching refs:link_dev
432 #define to_devlink(dev) container_of((dev), struct device_link, link_dev)
576 ret = sysfs_create_link(&link->link_dev.kobj, &sup->kobj, "supplier"); in devlink_add_symlinks()
580 ret = sysfs_create_link(&link->link_dev.kobj, &con->kobj, "consumer"); in devlink_add_symlinks()
585 ret = sysfs_create_link(&sup->kobj, &link->link_dev.kobj, buf); in devlink_add_symlinks()
590 ret = sysfs_create_link(&con->kobj, &link->link_dev.kobj, buf); in devlink_add_symlinks()
600 sysfs_remove_link(&link->link_dev.kobj, "consumer"); in devlink_add_symlinks()
602 sysfs_remove_link(&link->link_dev.kobj, "supplier"); in devlink_add_symlinks()
617 sysfs_remove_link(&link->link_dev.kobj, "consumer"); in devlink_remove_symlinks()
618 sysfs_remove_link(&link->link_dev.kobj, "supplier"); in devlink_remove_symlinks()
862 link->link_dev.class = &devlink_class; in device_link_add()
863 device_set_pm_not_required(&link->link_dev); in device_link_add()
864 dev_set_name(&link->link_dev, "%s:%s--%s:%s", in device_link_add()
867 if (device_register(&link->link_dev)) { in device_link_add()
868 put_device(&link->link_dev); in device_link_add()
937 device_unregister(&link->link_dev); in __device_link_del()