Lines Matching refs:parent

61 	struct device *parent;  member
93 dev_name(m->parent), m->bound ? "bound" : "not bound"); in component_devices_show()
122 debugfs_create_file(dev_name(m->parent), 0444, component_debugfs_dir, m, in component_debugfs_add()
128 debugfs_lookup_and_remove(dev_name(m->parent), component_debugfs_dir); in component_debugfs_del()
141 static struct aggregate_device *__aggregate_find(struct device *parent, in __aggregate_find() argument
147 if (m->parent == parent && (!ops || m->ops == ops)) in __aggregate_find()
187 dev_dbg(adev->parent, "Looking for component %zu\n", i); in find_components()
198 dev_dbg(adev->parent, "found component %s, duplicate %u\n", in find_components()
232 dev_dbg(adev->parent, "trying to bring up adev\n"); in try_to_bring_up_aggregate_device()
235 dev_dbg(adev->parent, "master has incomplete components\n"); in try_to_bring_up_aggregate_device()
240 dev_dbg(adev->parent, "master is not for this component (%s)\n", in try_to_bring_up_aggregate_device()
245 if (!devres_open_group(adev->parent, adev, GFP_KERNEL)) in try_to_bring_up_aggregate_device()
249 ret = adev->ops->bind(adev->parent); in try_to_bring_up_aggregate_device()
251 devres_release_group(adev->parent, NULL); in try_to_bring_up_aggregate_device()
253 dev_info(adev->parent, "adev bind failed: %d\n", ret); in try_to_bring_up_aggregate_device()
257 devres_close_group(adev->parent, NULL); in try_to_bring_up_aggregate_device()
281 adev->ops->unbind(adev->parent); in take_down_aggregate_device()
282 devres_release_group(adev->parent, adev); in take_down_aggregate_device()
344 static void devm_component_match_release(struct device *parent, void *res) in devm_component_match_release() argument
353 mc->release(parent, mc->data); in devm_component_match_release()
381 static void __component_match_add(struct device *parent, in __component_match_add() argument
401 devres_add(parent, match); in __component_match_add()
445 void component_match_add_release(struct device *parent, in component_match_add_release() argument
450 __component_match_add(parent, matchptr, release, compare, NULL, in component_match_add_release()
472 void component_match_add_typed(struct device *parent, in component_match_add_typed() argument
476 __component_match_add(parent, matchptr, NULL, NULL, compare_typed, in component_match_add_typed()
512 int component_master_add_with_match(struct device *parent, in component_master_add_with_match() argument
528 adev->parent = parent; in component_master_add_with_match()
557 void component_master_del(struct device *parent, in component_master_del() argument
563 adev = __aggregate_find(parent, ops); in component_master_del()
578 component->ops->unbind(component->dev, adev->parent, data); in component_unbind()
594 void component_unbind_all(struct device *parent, void *data) in component_unbind_all() argument
602 adev = __aggregate_find(parent, NULL); in component_unbind_all()
625 if (!devres_open_group(adev->parent, NULL, GFP_KERNEL)) in component_bind()
634 devres_release_group(adev->parent, NULL); in component_bind()
638 dev_dbg(adev->parent, "binding %s (ops %ps)\n", in component_bind()
641 ret = component->ops->bind(component->dev, adev->parent, data); in component_bind()
652 devres_remove_group(adev->parent, NULL); in component_bind()
654 dev_info(adev->parent, "bound %s (ops %ps)\n", in component_bind()
658 devres_release_group(adev->parent, NULL); in component_bind()
661 dev_err(adev->parent, "failed to bind %s (ops %ps): %d\n", in component_bind()
677 int component_bind_all(struct device *parent, void *data) in component_bind_all() argument
686 adev = __aggregate_find(parent, NULL); in component_bind_all()