Lines Matching refs:core

72 	struct q6core *core = dev_get_drvdata(&adev->dev);  in q6core_callback()  local
83 core->get_version_supported = false; in q6core_callback()
84 core->resp_received = true; in q6core_callback()
88 core->fwk_version_supported = false; in q6core_callback()
89 core->resp_received = true; in q6core_callback()
93 core->get_state_supported = false; in q6core_callback()
94 core->resp_received = true; in q6core_callback()
104 core->fwk_version = kmemdup(data->payload, in q6core_callback()
108 if (!core->fwk_version) in q6core_callback()
111 core->fwk_version_supported = true; in q6core_callback()
112 core->resp_received = true; in q6core_callback()
121 core->svc_version = kmemdup(data->payload, in q6core_callback()
125 if (!core->svc_version) in q6core_callback()
128 core->get_version_supported = true; in q6core_callback()
129 core->resp_received = true; in q6core_callback()
134 core->get_state_supported = true; in q6core_callback()
135 core->avcs_state = result->opcode; in q6core_callback()
137 core->resp_received = true; in q6core_callback()
145 if (core->resp_received) in q6core_callback()
146 wake_up(&core->wait); in q6core_callback()
151 static int q6core_get_fwk_versions(struct q6core *core) in q6core_get_fwk_versions() argument
153 struct apr_device *adev = core->adev; in q6core_get_fwk_versions()
166 rc = wait_event_timeout(core->wait, (core->resp_received), in q6core_get_fwk_versions()
168 if (rc > 0 && core->resp_received) { in q6core_get_fwk_versions()
169 core->resp_received = false; in q6core_get_fwk_versions()
171 if (!core->fwk_version_supported) in q6core_get_fwk_versions()
181 static int q6core_get_svc_versions(struct q6core *core) in q6core_get_svc_versions() argument
183 struct apr_device *adev = core->adev; in q6core_get_svc_versions()
196 rc = wait_event_timeout(core->wait, (core->resp_received), in q6core_get_svc_versions()
198 if (rc > 0 && core->resp_received) { in q6core_get_svc_versions()
199 core->resp_received = false; in q6core_get_svc_versions()
206 static bool __q6core_is_adsp_ready(struct q6core *core) in __q6core_is_adsp_ready() argument
208 struct apr_device *adev = core->adev; in __q6core_is_adsp_ready()
212 core->get_state_supported = false; in __q6core_is_adsp_ready()
223 rc = wait_event_timeout(core->wait, (core->resp_received), in __q6core_is_adsp_ready()
225 if (rc > 0 && core->resp_received) { in __q6core_is_adsp_ready()
226 core->resp_received = false; in __q6core_is_adsp_ready()
228 if (core->avcs_state) in __q6core_is_adsp_ready()
233 if (!core->get_state_supported) in __q6core_is_adsp_ready()
344 struct q6core *core = dev_get_drvdata(&adev->dev); in q6core_exit() local
346 if (core->fwk_version_supported) in q6core_exit()
347 kfree(core->fwk_version); in q6core_exit()
348 if (core->get_version_supported) in q6core_exit()
349 kfree(core->svc_version); in q6core_exit()
352 kfree(core); in q6core_exit()