Lines Matching full:subsys

76 		sp = container_of_const(kset, struct subsys_private, subsys);  in bus_to_subsys()
189 error = sysfs_create_file(&sp->subsys.kobj, &attr->attr); in bus_create_file()
203 sysfs_remove_file(&sp->subsys.kobj, &attr->attr); in bus_remove_file()
503 error = sysfs_create_link(&dev->kobj, &sp->subsys.kobj, "subsystem"); in bus_add_device()
829 ret = kobject_synth_uevent(&sp->subsys.kobj, buf, count); in bus_uevent_store()
868 bus_kobj = &priv->subsys.kobj; in bus_register()
877 retval = kset_register(&priv->subsys); in bus_register()
900 __mutex_init(&priv->mutex, "subsys mutex", key); in bus_register()
924 kset_unregister(&priv->subsys); in bus_register()
952 bus_kobj = &sp->subsys.kobj; in bus_unregister()
959 kset_unregister(&sp->subsys); in bus_unregister()
1010 kset = &sp->subsys; in bus_get_kset()
1077 * subsys_dev_iter_init - initialize subsys device iterator
1078 * @iter: subsys iterator to initialize
1079 * @sp: the subsys private (i.e. bus) we wanna iterate over
1083 * Initialize subsys iterator @iter such that it iterates over devices
1084 * of @subsys. If @start is set, the list iteration will start there,
1101 * @iter: subsys iterator to proceed
1109 * calling back into subsys code.
1128 * @iter: subsys iterator to finish
1144 if (!sif || !sif->subsys) in subsys_interface_register()
1147 sp = bus_to_subsys(sif->subsys); in subsys_interface_register()
1176 if (!sif || !sif->subsys) in subsys_interface_unregister()
1179 sp = bus_to_subsys(sif->subsys); in subsys_interface_unregister()
1208 static int subsys_register(const struct bus_type *subsys, in subsys_register() argument
1216 err = bus_register(subsys); in subsys_register()
1220 sp = bus_to_subsys(subsys); in subsys_register()
1232 err = dev_set_name(dev, "%s", subsys->name); in subsys_register()
1256 bus_unregister(subsys); in subsys_register()
1262 * @subsys: system subsystem
1278 int subsys_system_register(const struct bus_type *subsys, in subsys_system_register() argument
1281 return subsys_register(subsys, groups, &system_kset->kobj); in subsys_system_register()
1287 * @subsys: virtual subsystem
1296 int subsys_virtual_register(const struct bus_type *subsys, in subsys_virtual_register() argument
1305 return subsys_register(subsys, groups, virtual_dir); in subsys_virtual_register()