Searched refs:subsys_private (Results 1 - 12 of 12) sorted by relevance
/kernel/linux/linux-6.6/drivers/base/ |
H A D | class.c | 29 * class_to_subsys - Turn a struct class into a struct subsys_private 33 * The driver core internals need to work on the subsys_private structure, not 36 * internal struct subsys_private that relates to that class. 42 struct subsys_private *class_to_subsys(const struct class *class) in class_to_subsys() 44 struct subsys_private *sp = NULL; in class_to_subsys() 58 sp = container_of_const(kset, struct subsys_private, subsys); in class_to_subsys() 73 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_show() 85 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_store() 95 struct subsys_private *cp = to_subsys_private(kobj); in class_release() 112 const struct subsys_private *c in class_child_ns_type() [all...] |
H A D | bus.c | 47 * bus_to_subsys - Turn a struct bus_type into a struct subsys_private 51 * The driver core internals needs to work on the subsys_private structure, not 54 * internal struct subsys_private that relates to that bus. 60 static struct subsys_private *bus_to_subsys(const struct bus_type *bus) in bus_to_subsys() 62 struct subsys_private *sp = NULL; in bus_to_subsys() 76 sp = container_of_const(kset, struct subsys_private, subsys); in bus_to_subsys() 89 struct subsys_private *sp = bus_to_subsys(bus); in bus_get() 98 struct subsys_private *sp = bus_to_subsys(bus); in bus_put() 154 struct subsys_private *subsys_priv = to_subsys_private(kobj); in bus_attr_show() 166 struct subsys_private *subsys_pri in bus_attr_store() [all...] |
H A D | base.h | 16 * struct subsys_private - structure to hold the private to the driver core portions of the bus_type/class structure. 42 struct subsys_private { struct 61 #define to_subsys_private(obj) container_of_const(obj, struct subsys_private, subsys.kobj) 63 static inline struct subsys_private *subsys_get(struct subsys_private *sp) in subsys_get() 70 static inline void subsys_put(struct subsys_private *sp) in subsys_put() 76 struct subsys_private *class_to_subsys(const struct class *class);
|
H A D | core.c | 3159 static struct kobject *class_dir_create_and_add(struct subsys_private *sp, in class_dir_create_and_add() 3187 struct subsys_private *sp = class_to_subsys(dev->class); in get_device_parent() 3251 struct subsys_private *sp; in live_in_glue_dir() 3364 struct subsys_private *sp; in device_add_class_symlinks() 3408 struct subsys_private *sp = class_to_subsys(dev->class); in device_remove_class_symlinks() 3515 struct subsys_private *sp; in device_add() 3776 struct subsys_private *sp; in device_del() 4479 struct subsys_private *sp = class_to_subsys(dev->class); in device_rename() 4671 struct subsys_private *sp; in device_change_owner()
|
/kernel/linux/linux-5.10/drivers/base/ |
H A D | class.c | 29 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_show() 41 struct subsys_private *cp = to_subsys_private(kobj); in class_attr_store() 51 struct subsys_private *cp = to_subsys_private(kobj); in class_release() 67 struct subsys_private *cp = to_subsys_private(kobj); in class_child_ns_type() 155 struct subsys_private *cp; in __class_register()
|
H A D | base.h | 16 * struct subsys_private - structure to hold the private to the driver core portions of the bus_type/class structure. 40 struct subsys_private { struct 56 #define to_subsys_private(obj) container_of(obj, struct subsys_private, subsys.kobj)
|
H A D | bus.c | 106 struct subsys_private *subsys_priv = to_subsys_private(kobj); in bus_attr_show() 118 struct subsys_private *subsys_priv = to_subsys_private(kobj); in bus_attr_store() 154 struct subsys_private *priv = to_subsys_private(kobj); in bus_release() 807 struct subsys_private *priv; in bus_register() 810 priv = kzalloc(sizeof(struct subsys_private), GFP_KERNEL); in bus_register()
|
/kernel/linux/linux-5.10/include/linux/device/ |
H A D | bus.h | 111 struct subsys_private *p;
|
H A D | class.h | 77 struct subsys_private *p;
|
/kernel/linux/linux-6.6/include/linux/device/ |
H A D | class.h | 77 struct subsys_private *sp;
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | device.h | 41 struct subsys_private;
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | device.h | 42 struct subsys_private;
|
Completed in 17 milliseconds