Home
last modified time | relevance | path

Searched refs:class_intf (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/drivers/base/
Dclass.c467 int class_interface_register(struct class_interface *class_intf) in class_interface_register() argument
474 if (!class_intf || !class_intf->class) in class_interface_register()
477 parent = class_intf->class; in class_interface_register()
488 list_add_tail(&class_intf->node, &sp->interfaces); in class_interface_register()
489 if (class_intf->add_dev) { in class_interface_register()
492 class_intf->add_dev(dev); in class_interface_register()
501 void class_interface_unregister(struct class_interface *class_intf) in class_interface_unregister() argument
504 const struct class *parent = class_intf->class; in class_interface_unregister()
516 list_del_init(&class_intf->node); in class_interface_unregister()
517 if (class_intf->remove_dev) { in class_interface_unregister()
[all …]
Dcore.c3518 struct class_interface *class_intf; in device_add() local
3652 list_for_each_entry(class_intf, &sp->interfaces, node) in device_add()
3653 if (class_intf->add_dev) in device_add()
3654 class_intf->add_dev(dev); in device_add()
3779 struct class_interface *class_intf; in device_del() local
3810 list_for_each_entry(class_intf, &sp->interfaces, node) in device_del()
3811 if (class_intf->remove_dev) in device_del()
3812 class_intf->remove_dev(dev); in device_del()