| /sound/soc/sof/ |
| A D | ops.h | 35 sdev->pdata->desc->ops_free(sdev); in sof_ops_free() 51 return sof_ops(sdev)->probe(sdev); in snd_sof_probe() 57 sof_ops(sdev)->remove(sdev); in snd_sof_remove() 63 sof_ops(sdev)->remove_late(sdev); in snd_sof_remove_late() 82 return sof_ops(sdev)->run(sdev); in snd_sof_dsp_run() 321 sof_ops(sdev)->write8(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write8() 330 sof_ops(sdev)->write(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write() 339 sof_ops(sdev)->write64(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write64() 348 return sof_ops(sdev)->read8(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read8() 357 return sof_ops(sdev)->read(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read() [all …]
|
| A D | core.c | 327 if (!sof_ops(sdev) || !sof_ops(sdev)->probe) { in validate_sof_ops() 334 (!sof_ops(sdev)->run || !sof_ops(sdev)->block_read || in validate_sof_ops() 335 !sof_ops(sdev)->block_write || !sof_ops(sdev)->send_msg || in validate_sof_ops() 336 !sof_ops(sdev)->load_firmware || !sof_ops(sdev)->ipc_msg_data)) { in validate_sof_ops() 352 dev_err(sdev->dev, in sof_init_sof_ops() 488 sdev->ipc = snd_sof_ipc_init(sdev); in sof_probe_continue() 489 if (!sdev->ipc) { in sof_probe_continue() 537 ret = devm_snd_soc_register_component(sdev->dev, &sdev->plat_drv, in sof_probe_continue() 635 sdev = devm_kzalloc(dev, sizeof(*sdev), GFP_KERNEL); in snd_sof_device_probe() 636 if (!sdev) in snd_sof_device_probe() [all …]
|
| A D | sof-client.c | 157 if (sdev->dspless_mode_selected) in sof_register_clients() 181 if (sof_ops(sdev) && sof_ops(sdev)->register_ipc_clients) in sof_register_clients() 182 ret = sof_ops(sdev)->register_ipc_clients(sdev); in sof_register_clients() 200 if (sof_ops(sdev) && sof_ops(sdev)->unregister_ipc_clients) in sof_unregister_clients() 201 sof_ops(sdev)->unregister_ipc_clients(sdev); in sof_unregister_clients() 219 cdev->sdev = sdev; in sof_client_dev_register() 222 auxdev->dev.parent = sdev->dev; in sof_client_dev_register() 347 struct snd_sof_dev *sdev = c->sdev; in sof_client_ipc4_find_module() local 413 return cdev->sdev->dev; in sof_client_get_dma_dev() 437 return sdev->pdata->ipc_type; in sof_client_get_ipc_type() [all …]
|
| A D | pm.c | 89 if (sdev->first_boot) in sof_resume() 101 dev_err(sdev->dev, in sof_resume() 121 dev_warn(sdev->dev, in sof_resume() 131 dev_err(sdev->dev, in sof_resume() 146 dev_err(sdev->dev, in sof_resume() 157 dev_warn(sdev->dev, in sof_resume() 172 sof_resume_clients(sdev); in sof_resume() 189 sof_cache_debugfs(sdev); in sof_resume() 228 dev_err(sdev->dev, in sof_suspend() 250 sof_cache_debugfs(sdev); in sof_suspend() [all …]
|
| A D | loader.c | 25 if (sdev->basefw.fw) in snd_sof_load_firmware_raw() 34 ret = request_firmware(&sdev->basefw.fw, fw_filename, sdev->dev); in snd_sof_load_firmware_raw() 37 dev_err(sdev->dev, in snd_sof_load_firmware_raw() 39 dev_err(sdev->dev, in snd_sof_load_firmware_raw() 48 ext_man_size = sdev->ipc->ops->fw_loader->parse_ext_manifest(sdev); in snd_sof_load_firmware_raw() 77 ret = sdev->ipc->ops->fw_loader->validate(sdev); in snd_sof_load_firmware_memcpy() 92 ret = sdev->ipc->ops->fw_loader->load_fw_to_dsp(sdev); in snd_sof_load_firmware_memcpy() 103 sdev->basefw.fw = NULL; in snd_sof_load_firmware_memcpy() 120 if (sdev->first_boot) { in snd_sof_run_firmware() 121 ret = snd_sof_debugfs_buf_item(sdev, &sdev->fw_version, in snd_sof_run_firmware() [all …]
|
| A D | sof-priv.h | 368 #define sof_dsp_arch_ops(sdev) ((sdev)->pdata->desc->ops->dsp_arch_ops) argument 384 struct snd_sof_dev *sdev; member 437 int (*init)(struct snd_sof_dev *sdev); 524 struct snd_sof_dev *sdev; member 542 (((sdev)->ipc && (sdev)->ipc->ops) ? (sdev)->ipc->ops->ops_name : NULL) 738 sdev->ipc->ops->rx_msg(sdev); in snd_sof_ipc_msgs_rx() 761 snd_sof_ipc_get_reply(sdev); in snd_sof_ipc_process_reply() 762 snd_sof_ipc_reply(sdev, msg_id); in snd_sof_ipc_process_reply() 795 sof_dsp_arch_ops(sdev)->dsp_stack(sdev, level, oops, stack, in sof_stack() 801 if (sof_dsp_arch_ops(sdev)->dsp_oops) in sof_oops() [all …]
|
| A D | debug.c | 26 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_read() local 121 if (!sdev) in snd_sof_debugfs_io_item() 131 dfse->sdev = sdev; in snd_sof_debugfs_io_item() 177 if (!sdev) in snd_sof_debugfs_buf_item() 187 dfse->sdev = sdev; in snd_sof_debugfs_buf_item() 252 struct snd_sof_dev *sdev = dfse->sdev; in memory_info_read() local 270 struct snd_sof_dev *sdev = dfse->sdev; in memory_info_open() local 301 dfse->sdev = sdev; in snd_sof_dbg_memory_info_init() 373 return snd_sof_debugfs_buf_item(sdev, &sdev->fw_state, in snd_sof_dbg_init() 429 sof_ops(sdev)->dbg_dump(sdev, flags); in snd_sof_dsp_dbg_dump() [all …]
|
| A D | ipc3.c | 250 dev_err(sdev->dev, in sof_ipc3_get_reply() 263 dev_dbg(sdev->dev, in sof_ipc3_get_reply() 270 dev_err(sdev->dev, in sof_ipc3_get_reply() 281 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, in sof_ipc3_get_reply() 293 struct snd_sof_dev *sdev = ipc->sdev; in ipc3_wait_tx_done() local 301 dev_err(sdev->dev, in ipc3_wait_tx_done() 309 dev_err(sdev->dev, in ipc3_wait_tx_done() 337 struct snd_sof_dev *sdev = ipc->sdev; in ipc3_tx_msg_unlocked() local 563 dev_dbg(sdev->dev, in sof_ipc3_get_cc_info() 574 ret = snd_sof_debugfs_buf_item(sdev, sdev->cc_version, in sof_ipc3_get_cc_info() [all …]
|
| A D | ipc3-dtrace.c | 137 dev_err(sdev->dev, in trace_filter_parse() 187 struct snd_sof_dev *sdev = dfse->sdev; in dfsentry_trace_filter_write() local 234 dfse->sdev = sdev; in debugfs_create_trace_filter() 319 struct snd_sof_dev *sdev = dfse->sdev; in dfsentry_dtrace_read() local 375 struct snd_sof_dev *sdev = dfse->sdev; in dfsentry_dtrace_release() local 398 if (!sdev) in debugfs_create_dtrace() 401 priv = sdev->fw_trace_data; in debugfs_create_dtrace() 414 dfse->sdev = sdev; in debugfs_create_dtrace() 499 if (sdev->fw_trace_data) { in ipc3_dtrace_init() 539 if (sdev->first_boot) { in ipc3_dtrace_init() [all …]
|
| A D | ipc3-loader.c | 53 if (sdev->first_boot) in ipc3_fw_ext_man_get_dbg_abi_info() 54 dev_dbg(sdev->dev, in ipc3_fw_ext_man_get_dbg_abi_info() 96 dev_info(sdev->dev, in ipc3_fw_ext_man_get_config_data() 102 dev_err(sdev->dev, in ipc3_fw_ext_man_get_config_data() 162 dev_err(sdev->dev, in sof_ipc3_fw_parse_ext_man() 179 dev_err(sdev->dev, in sof_ipc3_fw_parse_ext_man() 209 dev_info(sdev->dev, in sof_ipc3_fw_parse_ext_man() 216 dev_err(sdev->dev, in sof_ipc3_fw_parse_ext_man() 261 dev_warn(sdev->dev, in sof_ipc3_parse_module_memcpy() 386 dev_err(sdev->dev, in sof_ipc3_validate_firmware() [all …]
|
| /sound/soc/sof/intel/ |
| A D | hda-dsp.c | 148 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 159 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 189 dev_err(sdev->dev, in hda_dsp_core_reset_leave() 199 dev_err(sdev->dev, in hda_dsp_core_reset_leave() 306 dev_err(sdev->dev, in hda_dsp_core_power_up() 317 dev_err(sdev->dev, in hda_dsp_core_power_up() 343 dev_err(sdev->dev, in hda_dsp_core_power_down() 614 dev_err(sdev->dev, in hda_dsp_set_D0_state() 690 dev_err(sdev->dev, in hda_dsp_set_power_state() 1582 sof_block_read(sdev, sdev->mmio_bar, offset, in hda_dsp_get_registers() [all …]
|
| A D | hda.c | 201 res.parent = sdev->dev; in hda_sdw_probe() 203 res.dev = sdev->dev; in hda_sdw_probe() 436 dev_err(sdev->dev, in hda_dsp_post_fw_run() 558 dev_dbg(sdev->dev, in check_dmic_num() 712 sof_ops(sdev)->irq_thread(irq, sdev); in hda_dsp_interrupt_thread() 784 ret = hda_init(sdev); in hda_dsp_probe_early() 874 dev_dbg(sdev->dev, "using IPC IRQ %d\n", sdev->ipc_irq); in hda_dsp_probe() 880 sdev->ipc_irq); in hda_dsp_probe() 930 free_irq(sdev->ipc_irq, sdev); in hda_dsp_probe() 962 hda_sdw_exit(sdev); in hda_dsp_remove() [all …]
|
| A D | hda.h | 577 struct snd_sof_dev *sdev; member 606 int hda_dsp_probe(struct snd_sof_dev *sdev); 607 void hda_dsp_remove(struct snd_sof_dev *sdev); 626 int hda_dsp_resume(struct snd_sof_dev *sdev); 635 void hda_ipc_dump(struct snd_sof_dev *sdev); 647 int hda_dsp_pcm_open(struct snd_sof_dev *sdev, 702 int hda_ipc_msg_data(struct snd_sof_dev *sdev, 834 int hda_sdw_startup(struct snd_sof_dev *sdev); 962 struct snd_sof_dev *sdev); 977 void hda_ops_free(struct snd_sof_dev *sdev); [all …]
|
| A D | mtl.c | 67 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq() 113 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in mtl_ipc_send_msg() 305 if (sdev->first_boot) { in mtl_dsp_post_fw_run() 308 ret = hda_sdw_startup(sdev); in mtl_dsp_post_fw_run() 536 dev_err(sdev->dev, in mtl_dsp_cl_init() 576 mtl_ipc_dsp_done(sdev); in mtl_ipc_irq_thread() 602 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 620 mtl_ipc_host_done(sdev); in mtl_ipc_irq_thread() 663 dev_err(sdev->dev, in mtl_ipc_dump() 741 if (!sdev->private) in sof_mtl_set_ops() [all …]
|
| A D | hda-ipc.c | 68 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg() 118 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in hda_dsp_ipc4_send_msg() 162 snd_sof_ipc_get_reply(sdev); in hda_dsp_ipc_get_reply() 182 hda_dsp_ipc_dsp_done(sdev); in hda_dsp_ipc4_irq_thread() 225 snd_sof_ipc_msgs_rx(sdev); in hda_dsp_ipc4_irq_thread() 299 hda_dsp_ipc_dsp_done(sdev); in hda_dsp_ipc_irq_thread() 343 snd_sof_ipc_msgs_rx(sdev); in hda_dsp_ipc_irq_thread() 346 hda_dsp_ipc_host_done(sdev); in hda_dsp_ipc_irq_thread() 414 sof_mailbox_read(sdev, sdev->dsp_box.offset, p, sz); in hda_ipc_msg_data() 513 hda_ipc_irq_dump(sdev); in hda_ipc_dump() [all …]
|
| A D | hda-loader-skl.c | 170 cl_skl_cldma_stream_run(sdev, 0); in cl_skl_cldma_stream_clear() 182 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 184 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 188 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 191 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 206 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_setup_spb() 227 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_cleanup_spb() 238 cl_skl_cldma_stream_clear(sdev); in cl_skl_cldma_setup_controller() 301 cl_skl_cldma_cleanup_spb(sdev); in cl_cleanup_skl() 302 cl_skl_cldma_stream_clear(sdev); in cl_cleanup_skl() [all …]
|
| A D | bdw.c | 172 bdw_reset(sdev); in bdw_set_dsp_D0() 267 dev_err(sdev->dev, in bdw_dump() 271 dev_err(sdev->dev, in bdw_dump() 366 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in bdw_send_msg() 440 sdev->bar[BDW_DSP_BAR] = devm_ioremap(sdev->dev, base, size); in bdw_probe() 447 dev_dbg(sdev->dev, "LPE VADDR %p\n", sdev->bar[BDW_DSP_BAR]); in bdw_probe() 467 sdev->bar[BDW_PCI_BAR] = devm_ioremap(sdev->dev, base, size); in bdw_probe() 474 dev_dbg(sdev->dev, "PCI VADDR %p\n", sdev->bar[BDW_PCI_BAR]); in bdw_probe() 481 dev_dbg(sdev->dev, "using IRQ %d\n", sdev->ipc_irq); in bdw_probe() 482 ret = devm_request_threaded_irq(sdev->dev, sdev->ipc_irq, in bdw_probe() [all …]
|
| A D | cnl.c | 51 cnl_ipc_dsp_done(sdev); in cnl_ipc4_irq_thread() 94 cnl_ipc_host_done(sdev); in cnl_ipc4_irq_thread() 150 cnl_ipc_dsp_done(sdev); in cnl_ipc_irq_thread() 191 cnl_ipc_host_done(sdev); in cnl_ipc_irq_thread() 278 sof_mailbox_write(sdev, sdev->host_box.offset, msg_data->data_ptr, in cnl_ipc4_send_msg() 316 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in cnl_ipc_send_msg() 345 hda_ipc_irq_dump(sdev); in cnl_ipc_dump() 354 dev_err(sdev->dev, in cnl_ipc_dump() 364 hda_ipc_irq_dump(sdev); in cnl_ipc4_dump() 376 dev_err(sdev->dev, in cnl_ipc4_dump() [all …]
|
| A D | hda-ctrl.c | 60 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_get_caps() 69 ret = hda_dsp_ctrl_link_reset(sdev, true); in hda_dsp_ctrl_get_caps() 72 ret = hda_dsp_ctrl_link_reset(sdev, false); in hda_dsp_ctrl_get_caps() 96 sdev->bar[HDA_DSP_PP_BAR] = bus->ppcap; in hda_dsp_ctrl_get_caps() 188 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_init_chip() 196 hda_codec_set_codec_wakeup(sdev, true); in hda_dsp_ctrl_init_chip() 223 hda_codec_detect_mask(sdev); in hda_dsp_ctrl_init_chip() 237 hda_codec_rirb_status_clear(sdev); in hda_dsp_ctrl_init_chip() 243 hda_codec_init_cmd_io(sdev); in hda_dsp_ctrl_init_chip() 311 hda_codec_rirb_status_clear(sdev); in hda_dsp_ctrl_stop_chip() [all …]
|
| A D | hda-loader.c | 154 dev_err(sdev->dev, in cl_dsp_init() 170 dev_err(sdev->dev, in cl_dsp_init() 187 dev_err(sdev->dev, in cl_dsp_init() 221 dev_err(sdev->dev, in cl_dsp_init() 344 dev_err(sdev->dev, in hda_cl_copy_fw() 453 if (sdev->basefw.fw->size <= sdev->basefw.payload_offset) { in hda_dsp_cl_boot_firmware() 462 stripped_firmware.size = sdev->basefw.fw->size - sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 479 stripped_firmware.data = sdev->basefw.fw->data + sdev->basefw.payload_offset; in hda_dsp_cl_boot_firmware() 486 dev_dbg(sdev->dev, in hda_dsp_cl_boot_firmware() 521 if (!sdev->first_boot) in hda_dsp_cl_boot_firmware() [all …]
|
| A D | atom.c | 79 dev_err(sdev->dev, in atom_dump() 83 dev_err(sdev->dev, in atom_dump() 87 dev_err(sdev->dev, in atom_dump() 91 dev_err(sdev->dev, in atom_dump() 158 atom_dsp_done(sdev); in atom_irq_thread() 171 snd_sof_ipc_msgs_rx(sdev); in atom_irq_thread() 174 atom_host_done(sdev); in atom_irq_thread() 188 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in atom_send_msg() 312 dev_dbg(sdev->dev, in atom_machine_select() 323 dev_dbg(sdev->dev, in atom_machine_select() [all …]
|
| A D | hda-stream.c | 175 offset = hda_setup_bdle(sdev, dmab, in hda_dsp_stream_setup_bdl() 194 if (!sdev->bar[HDA_DSP_SPIB_BAR]) { in hda_dsp_stream_spib_config() 369 if (!sdev->dspless_mode_selected) in hda_dsp_stream_trigger() 399 if (!sdev->dspless_mode_selected) in hda_dsp_stream_trigger() 434 dev_err(sdev->dev, in hda_dsp_stream_trigger() 547 if (!sdev->dspless_mode_selected) in hda_dsp_stream_hw_params() 565 dev_err(sdev->dev, in hda_dsp_stream_hw_params() 607 dev_err(sdev->dev, in hda_dsp_stream_hw_params() 929 hda_stream->sdev = sdev; in hda_dsp_stream_init() 934 if (sdev->bar[HDA_DSP_PP_BAR]) { in hda_dsp_stream_init() [all …]
|
| /sound/soc/sof/imx/ |
| A D | imx-common.c | 68 sof_mailbox_read(sdev, sdev->debug_box.offset + 0x4, &status, 4); in imx8_dump() 84 struct snd_sof_dev *sdev; in imx_handle_reply() local 96 struct snd_sof_dev *sdev; in imx_handle_request() local 102 sof_mailbox_read(sdev, sdev->debug_box.offset + 0x4, in imx_handle_request() 112 snd_sof_ipc_msgs_rx(sdev); in imx_handle_request() 124 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, msg->msg_size); in imx_send_msg() 318 sdev->bar[blk_type] = devm_ioremap_resource(sdev->dev, res); in imx_parse_ioremap_memory() 334 sdev = data; in imx_unregister_action() 383 sdev); in imx_probe() 416 sdev->num_cores = 1; in imx_probe() [all …]
|
| /sound/soc/sof/amd/ |
| A D | acp.c | 472 sof_ops(sdev)->irq_thread(irq, sdev); in acp_irq_thread() 852 adata->dev = sdev; in amd_sof_acp_probe() 874 ret = acp_init(sdev); in amd_sof_acp_probe() 883 sdev->ipc_irq); in amd_sof_acp_probe() 896 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_probe() 904 sdev->host_box.offset = sdev->dsp_box.offset + sdev->dsp_box.size; in amd_sof_acp_probe() 907 sdev->debug_box.offset = sdev->host_box.offset + sdev->host_box.size; in amd_sof_acp_probe() 941 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_probe() 955 if (sdev->ipc_irq) in amd_sof_acp_remove() 956 free_irq(sdev->ipc_irq, sdev); in amd_sof_acp_remove() [all …]
|
| A D | acp-ipc.c | 84 acp_ipc_host_msg_set(sdev); in acp_sof_ipc_send_msg() 168 if (unlikely(sdev->first_boot && sdev->fw_state != SOF_FW_BOOT_COMPLETE)) { in acp_sof_ipc_irq_thread() 169 acp_mailbox_read(sdev, sdev->dsp_box.offset, &status, sizeof(status)); in acp_sof_ipc_irq_thread() 172 snd_sof_dsp_panic(sdev, sdev->dsp_box.offset + sizeof(status), in acp_sof_ipc_irq_thread() 175 acp_mailbox_write(sdev, sdev->dsp_box.offset, &status, sizeof(status)); in acp_sof_ipc_irq_thread() 178 snd_sof_ipc_msgs_rx(sdev); in acp_sof_ipc_irq_thread() 179 acp_dsp_ipc_host_done(sdev); in acp_sof_ipc_irq_thread() 185 snd_sof_ipc_msgs_rx(sdev); in acp_sof_ipc_irq_thread() 210 acp_mailbox_read(sdev, sdev->debug_box.offset, &status, sizeof(u32)); in acp_sof_ipc_irq_thread() 212 snd_sof_dsp_panic(sdev, sdev->dsp_oops_offset, true); in acp_sof_ipc_irq_thread() [all …]
|