Lines Matching full:parent
18 void hda_component_acpi_device_notify(struct hda_component_parent *parent, in hda_component_acpi_device_notify() argument
24 mutex_lock(&parent->mutex); in hda_component_acpi_device_notify()
25 for (i = 0; i < ARRAY_SIZE(parent->comps); i++) { in hda_component_acpi_device_notify()
26 comp = hda_component_from_index(parent, i); in hda_component_acpi_device_notify()
30 mutex_unlock(&parent->mutex); in hda_component_acpi_device_notify()
35 struct hda_component_parent *parent, in hda_component_manager_bind_acpi_notifications() argument
44 adev = parent->comps[0].adev; in hda_component_manager_bind_acpi_notifications()
48 for (i = 0; i < ARRAY_SIZE(parent->comps); i++) { in hda_component_manager_bind_acpi_notifications()
49 comp = hda_component_from_index(parent, i); in hda_component_manager_bind_acpi_notifications()
70 struct hda_component_parent *parent, in hda_component_manager_unbind_acpi_notifications() argument
76 adev = parent->comps[0].adev; in hda_component_manager_unbind_acpi_notifications()
87 void hda_component_manager_playback_hook(struct hda_component_parent *parent, int action) in hda_component_manager_playback_hook() argument
92 mutex_lock(&parent->mutex); in hda_component_manager_playback_hook()
93 for (i = 0; i < ARRAY_SIZE(parent->comps); i++) { in hda_component_manager_playback_hook()
94 comp = hda_component_from_index(parent, i); in hda_component_manager_playback_hook()
98 for (i = 0; i < ARRAY_SIZE(parent->comps); i++) { in hda_component_manager_playback_hook()
99 comp = hda_component_from_index(parent, i); in hda_component_manager_playback_hook()
103 for (i = 0; i < ARRAY_SIZE(parent->comps); i++) { in hda_component_manager_playback_hook()
104 comp = hda_component_from_index(parent, i); in hda_component_manager_playback_hook()
108 mutex_unlock(&parent->mutex); in hda_component_manager_playback_hook()
139 struct hda_component_parent *parent) in hda_component_manager_bind() argument
144 memset(parent->comps, 0, sizeof(parent->comps)); in hda_component_manager_bind()
146 mutex_lock(&parent->mutex); in hda_component_manager_bind()
147 ret = component_bind_all(hda_codec_dev(cdc), parent); in hda_component_manager_bind()
148 mutex_unlock(&parent->mutex); in hda_component_manager_bind()
155 struct hda_component_parent *parent, int count, in hda_component_manager_init() argument
165 if (parent->codec) { in hda_component_manager_init()
170 parent->codec = cdc; in hda_component_manager_init()
172 mutex_init(&parent->mutex); in hda_component_manager_init()
194 void hda_component_manager_free(struct hda_component_parent *parent, in hda_component_manager_free() argument
199 if (!parent->codec) in hda_component_manager_free()
202 dev = hda_codec_dev(parent->codec); in hda_component_manager_free()
206 parent->codec = NULL; in hda_component_manager_free()