Lines Matching full:sif
528 struct subsys_interface *sif; in bus_probe_device() local
537 list_for_each_entry(sif, &sp->interfaces, node) in bus_probe_device()
538 if (sif->add_dev) in bus_probe_device()
539 sif->add_dev(dev, sif); in bus_probe_device()
557 struct subsys_interface *sif; in bus_remove_device() local
563 list_for_each_entry(sif, &sp->interfaces, node) in bus_remove_device()
564 if (sif->remove_dev) in bus_remove_device()
565 sif->remove_dev(dev, sif); in bus_remove_device()
1138 int subsys_interface_register(struct subsys_interface *sif) in subsys_interface_register() argument
1144 if (!sif || !sif->subsys) in subsys_interface_register()
1147 sp = bus_to_subsys(sif->subsys); in subsys_interface_register()
1157 list_add_tail(&sif->node, &sp->interfaces); in subsys_interface_register()
1158 if (sif->add_dev) { in subsys_interface_register()
1161 sif->add_dev(dev, sif); in subsys_interface_register()
1170 void subsys_interface_unregister(struct subsys_interface *sif) in subsys_interface_unregister() argument
1176 if (!sif || !sif->subsys) in subsys_interface_unregister()
1179 sp = bus_to_subsys(sif->subsys); in subsys_interface_unregister()
1184 list_del_init(&sif->node); in subsys_interface_unregister()
1185 if (sif->remove_dev) { in subsys_interface_unregister()
1188 sif->remove_dev(dev, sif); in subsys_interface_unregister()