Lines Matching full:hda

15  * Hardware interface for HDA DSP code loader
27 #include "hda.h"
36 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_ssp_set_cbp_cfp() local
37 const struct sof_intel_dsp_desc *chip = hda->desc; in hda_ssp_set_cbp_cfp()
125 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in cl_dsp_init() local
126 const struct sof_intel_dsp_desc *chip = hda->desc; in cl_dsp_init()
136 if (hda->boot_iteration == HDA_FW_BOOT_ATTEMPTS) in cl_dsp_init()
153 if (hda->boot_iteration == HDA_FW_BOOT_ATTEMPTS) in cl_dsp_init()
169 if (hda->boot_iteration == HDA_FW_BOOT_ATTEMPTS) in cl_dsp_init()
186 if (hda->boot_iteration == HDA_FW_BOOT_ATTEMPTS) in cl_dsp_init()
220 if (hda->boot_iteration == HDA_FW_BOOT_ATTEMPTS) in cl_dsp_init()
229 if (hda->boot_iteration == HDA_FW_BOOT_ATTEMPTS) in cl_dsp_init()
233 hda->boot_iteration, HDA_FW_BOOT_ATTEMPTS); in cl_dsp_init()
317 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_cl_copy_fw() local
318 const struct sof_intel_dsp_desc *chip = hda->desc; in hda_cl_copy_fw()
365 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_cl_boot_firmware_iccmax() local
379 &hda->iccmax_dmab, persistent_cl_buffer, in hda_dsp_cl_boot_firmware_iccmax()
392 ret1 = hda_cl_cleanup(sdev->dev, &hda->iccmax_dmab, in hda_dsp_cl_boot_firmware_iccmax()
429 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_cl_boot_firmware() local
437 if (hda->imrboot_supported && !sdev->first_boot && !hda->skip_imr_boot) { in hda_dsp_cl_boot_firmware()
439 hda->boot_iteration = 0; in hda_dsp_cl_boot_firmware()
442 hda->booted_from_imr = true; in hda_dsp_cl_boot_firmware()
449 hda->booted_from_imr = false; in hda_dsp_cl_boot_firmware()
465 &hda->cl_dmab, persistent_cl_buffer, in hda_dsp_cl_boot_firmware()
478 if (!persistent_cl_buffer || !hda->cl_dmab_contains_basefw) { in hda_dsp_cl_boot_firmware()
480 memcpy(hda->cl_dmab.area, stripped_firmware.data, stripped_firmware.size); in hda_dsp_cl_boot_firmware()
481 hda->cl_dmab_contains_basefw = true; in hda_dsp_cl_boot_firmware()
489 hda->boot_iteration = i + 1; in hda_dsp_cl_boot_firmware()
531 hda->boot_iteration = HDA_FW_BOOT_ATTEMPTS; in hda_dsp_cl_boot_firmware()
535 hda->skip_imr_boot = false; in hda_dsp_cl_boot_firmware()
539 hda->skip_imr_boot = true; in hda_dsp_cl_boot_firmware()
548 ret1 = hda_cl_cleanup(sdev->dev, &hda->cl_dmab, in hda_dsp_cl_boot_firmware()
575 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_ipc4_load_library() local
583 if (reload && hda->booted_from_imr && ipc4_data->fw_context_save) in hda_dsp_ipc4_load_library()
594 if (persistent_cl_buffer && stripped_firmware.size > hda->cl_dmab.bytes) { in hda_dsp_ipc4_load_library()
595 snd_dma_free_pages(&hda->cl_dmab); in hda_dsp_ipc4_load_library()
596 hda->cl_dmab.area = NULL; in hda_dsp_ipc4_load_library()
597 hda->cl_dmab.bytes = 0; in hda_dsp_ipc4_load_library()
603 &hda->cl_dmab, persistent_cl_buffer, in hda_dsp_ipc4_load_library()
610 memcpy(hda->cl_dmab.area, stripped_firmware.data, stripped_firmware.size); in hda_dsp_ipc4_load_library()
611 hda->cl_dmab_contains_basefw = false; in hda_dsp_ipc4_load_library()
674 ret1 = hda_cl_cleanup(sdev->dev, &hda->cl_dmab, persistent_cl_buffer, in hda_dsp_ipc4_load_library()
693 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_ext_man_get_cavs_config_data() local
710 hda->clk_config_lpro = config_data->elems[i].value; in hda_dsp_ext_man_get_cavs_config_data()
712 hda->clk_config_lpro ? "LPRO" : "HPRO"); in hda_dsp_ext_man_get_cavs_config_data()