Lines Matching refs:g_core
68 static struct q6core *g_core; variable
252 if (!g_core || !ainfo) in q6core_get_svc_api_info()
255 mutex_lock(&g_core->lock); in q6core_get_svc_api_info()
256 if (!g_core->is_version_requested) { in q6core_get_svc_api_info()
257 if (q6core_get_fwk_versions(g_core) == -ENOTSUPP) in q6core_get_svc_api_info()
258 q6core_get_svc_versions(g_core); in q6core_get_svc_api_info()
259 g_core->is_version_requested = true; in q6core_get_svc_api_info()
262 if (g_core->fwk_version_supported) { in q6core_get_svc_api_info()
263 for (i = 0; i < g_core->fwk_version->num_services; i++) { in q6core_get_svc_api_info()
266 info = &g_core->fwk_version->svc_api_info[i]; in q6core_get_svc_api_info()
275 } else if (g_core->get_version_supported) { in q6core_get_svc_api_info()
276 for (i = 0; i < g_core->svc_version->num_services; i++) { in q6core_get_svc_api_info()
279 info = &g_core->svc_version->svc_api_info[i]; in q6core_get_svc_api_info()
290 mutex_unlock(&g_core->lock); in q6core_get_svc_api_info()
306 if (!g_core) in q6core_is_adsp_ready()
309 mutex_lock(&g_core->lock); in q6core_is_adsp_ready()
312 if (__q6core_is_adsp_ready(g_core)) { in q6core_is_adsp_ready()
323 mutex_unlock(&g_core->lock); in q6core_is_adsp_ready()
330 g_core = kzalloc(sizeof(*g_core), GFP_KERNEL); in q6core_probe()
331 if (!g_core) in q6core_probe()
334 dev_set_drvdata(&adev->dev, g_core); in q6core_probe()
336 mutex_init(&g_core->lock); in q6core_probe()
337 g_core->adev = adev; in q6core_probe()
338 init_waitqueue_head(&g_core->wait); in q6core_probe()
351 g_core = NULL; in q6core_exit()