• Home
  • Raw
  • Download

Lines Matching refs:cont

28 	struct attribute_container *cont;  member
59 return ic->cont; in attribute_container_classdev_to_container()
74 attribute_container_register(struct attribute_container *cont) in attribute_container_register() argument
76 INIT_LIST_HEAD(&cont->node); in attribute_container_register()
77 klist_init(&cont->containers, internal_container_klist_get, in attribute_container_register()
81 list_add_tail(&cont->node, &attribute_container_list); in attribute_container_register()
94 attribute_container_unregister(struct attribute_container *cont) in attribute_container_unregister() argument
99 spin_lock(&cont->containers.k_lock); in attribute_container_unregister()
100 if (!list_empty(&cont->containers.k_list)) in attribute_container_unregister()
103 list_del(&cont->node); in attribute_container_unregister()
105 spin_unlock(&cont->containers.k_lock); in attribute_container_unregister()
147 struct attribute_container *cont; in attribute_container_add_device() local
150 list_for_each_entry(cont, &attribute_container_list, node) { in attribute_container_add_device()
153 if (attribute_container_no_classdevs(cont)) in attribute_container_add_device()
156 if (!cont->match(cont, dev)) in attribute_container_add_device()
165 ic->cont = cont; in attribute_container_add_device()
168 ic->classdev.class = cont->class; in attribute_container_add_device()
169 cont->class->dev_release = attribute_container_release; in attribute_container_add_device()
172 fn(cont, dev, &ic->classdev); in attribute_container_add_device()
175 klist_add_tail(&ic->node, &cont->containers); in attribute_container_add_device()
212 struct attribute_container *cont; in attribute_container_remove_device() local
215 list_for_each_entry(cont, &attribute_container_list, node) { in attribute_container_remove_device()
219 if (attribute_container_no_classdevs(cont)) in attribute_container_remove_device()
222 if (!cont->match(cont, dev)) in attribute_container_remove_device()
225 klist_for_each_entry(ic, &cont->containers, node, &iter) { in attribute_container_remove_device()
230 fn(cont, dev, &ic->classdev); in attribute_container_remove_device()
256 struct attribute_container *cont; in attribute_container_device_trigger() local
259 list_for_each_entry(cont, &attribute_container_list, node) { in attribute_container_device_trigger()
263 if (!cont->match(cont, dev)) in attribute_container_device_trigger()
266 if (attribute_container_no_classdevs(cont)) { in attribute_container_device_trigger()
267 fn(cont, dev, NULL); in attribute_container_device_trigger()
271 klist_for_each_entry(ic, &cont->containers, node, &iter) { in attribute_container_device_trigger()
273 fn(cont, dev, &ic->classdev); in attribute_container_device_trigger()
296 struct attribute_container *cont; in attribute_container_trigger() local
299 list_for_each_entry(cont, &attribute_container_list, node) { in attribute_container_trigger()
300 if (cont->match(cont, dev)) in attribute_container_trigger()
301 fn(cont, dev); in attribute_container_trigger()
317 struct attribute_container *cont = in attribute_container_add_attrs() local
319 struct device_attribute **attrs = cont->attrs; in attribute_container_add_attrs()
322 BUG_ON(attrs && cont->grp); in attribute_container_add_attrs()
324 if (!attrs && !cont->grp) in attribute_container_add_attrs()
327 if (cont->grp) in attribute_container_add_attrs()
328 return sysfs_create_group(&classdev->kobj, cont->grp); in attribute_container_add_attrs()
366 attribute_container_add_class_device_adapter(struct attribute_container *cont, in attribute_container_add_class_device_adapter() argument
382 struct attribute_container *cont = in attribute_container_remove_attrs() local
384 struct device_attribute **attrs = cont->attrs; in attribute_container_remove_attrs()
387 if (!attrs && !cont->grp) in attribute_container_remove_attrs()
390 if (cont->grp) { in attribute_container_remove_attrs()
391 sysfs_remove_group(&classdev->kobj, cont->grp); in attribute_container_remove_attrs()
424 attribute_container_find_class_device(struct attribute_container *cont, in attribute_container_find_class_device() argument
431 klist_for_each_entry(ic, &cont->containers, node, &iter) { in attribute_container_find_class_device()