Lines Matching refs:subsys
22 #define to_bus(obj) container_of(obj, struct bus_type_private, subsys.kobj)
37 kset_get(&bus->p->subsys); in bus_get()
46 kset_put(&bus->p->subsys); in bus_put()
127 error = sysfs_create_file(&bus->p->subsys.kobj, &attr->attr); in bus_create_file()
138 sysfs_remove_file(&bus->p->subsys.kobj, &attr->attr); in bus_remove_file()
439 &dev->bus->p->subsys.kobj, "bus"); in make_deprecated_bus_links()
473 &dev->bus->p->subsys.kobj, "subsystem"); in bus_add_device()
852 kobject_uevent(&bus->p->subsys.kobj, action); in bus_uevent_store()
879 retval = kobject_set_name(&priv->subsys.kobj, "%s", bus->name); in bus_register()
883 priv->subsys.kobj.kset = bus_kset; in bus_register()
884 priv->subsys.kobj.ktype = &bus_ktype; in bus_register()
887 retval = kset_register(&priv->subsys); in bus_register()
896 &priv->subsys.kobj); in bus_register()
903 &priv->subsys.kobj); in bus_register()
932 kset_unregister(&bus->p->subsys); in bus_register()
954 kset_unregister(&bus->p->subsys); in bus_unregister()
973 return &bus->p->subsys; in bus_get_kset()