/linux-master/sound/soc/sof/ |
H A D | trace.c | 7 int sof_fw_trace_init(struct snd_sof_dev *sdev) argument 9 const struct sof_ipc_fw_tracing_ops *fw_tracing = sof_ipc_get_ops(sdev, fw_tracing); 12 dev_info(sdev->dev, "Firmware tracing is not available\n"); 13 sdev->fw_trace_is_supported = false; 18 return fw_tracing->init(sdev); 21 void sof_fw_trace_free(struct snd_sof_dev *sdev) argument 23 if (!sdev->fw_trace_is_supported) 26 if (sdev->ipc->ops->fw_tracing->free) 27 sdev->ipc->ops->fw_tracing->free(sdev); 30 sof_fw_trace_fw_crashed(struct snd_sof_dev *sdev) argument 39 sof_fw_trace_suspend(struct snd_sof_dev *sdev, pm_message_t pm_state) argument 47 sof_fw_trace_resume(struct snd_sof_dev *sdev) argument [all...] |
H A D | ops.h | 21 #define sof_ops(sdev) \ 22 ((sdev)->pdata->desc->ops) 24 static inline int sof_ops_init(struct snd_sof_dev *sdev) argument 26 if (sdev->pdata->desc->ops_init) 27 return sdev->pdata->desc->ops_init(sdev); 32 static inline void sof_ops_free(struct snd_sof_dev *sdev) argument 34 if (sdev->pdata->desc->ops_free) 35 sdev->pdata->desc->ops_free(sdev); 41 snd_sof_probe_early(struct snd_sof_dev *sdev) argument 49 snd_sof_probe(struct snd_sof_dev *sdev) argument 54 snd_sof_remove(struct snd_sof_dev *sdev) argument 60 snd_sof_remove_late(struct snd_sof_dev *sdev) argument 66 snd_sof_shutdown(struct snd_sof_dev *sdev) argument 80 snd_sof_dsp_run(struct snd_sof_dev *sdev) argument 85 snd_sof_dsp_stall(struct snd_sof_dev *sdev, unsigned int core_mask) argument 93 snd_sof_dsp_reset(struct snd_sof_dev *sdev) argument 102 snd_sof_dsp_core_get(struct snd_sof_dev *sdev, int core) argument 136 snd_sof_dsp_core_put(struct snd_sof_dev *sdev, int core) argument 166 snd_sof_dsp_pre_fw_run(struct snd_sof_dev *sdev) argument 174 snd_sof_dsp_post_fw_run(struct snd_sof_dev *sdev) argument 183 snd_sof_dsp_parse_platform_ext_manifest(struct snd_sof_dev *sdev, const struct sof_ext_man_elem_header *hdr) argument 203 snd_sof_dsp_get_bar_index(struct snd_sof_dev *sdev, u32 type) argument 211 snd_sof_dsp_get_mailbox_offset(struct snd_sof_dev *sdev) argument 220 snd_sof_dsp_get_window_offset(struct snd_sof_dev *sdev, u32 id) argument 230 snd_sof_dsp_resume(struct snd_sof_dev *sdev) argument 238 snd_sof_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state) argument 247 snd_sof_dsp_runtime_resume(struct snd_sof_dev *sdev) argument 255 snd_sof_dsp_runtime_suspend(struct snd_sof_dev *sdev) argument 263 snd_sof_dsp_runtime_idle(struct snd_sof_dev *sdev) argument 271 snd_sof_dsp_hw_params_upon_resume(struct snd_sof_dev *sdev) argument 278 snd_sof_dsp_set_clk(struct snd_sof_dev *sdev, u32 freq) argument 287 snd_sof_dsp_set_power_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) argument 305 snd_sof_debugfs_add_region_item(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type, u32 offset, size_t size, const char *name, enum sof_debugfs_access_type access_type) argument 317 snd_sof_dsp_write8(struct snd_sof_dev *sdev, u32 bar, u32 offset, u8 value) argument 326 snd_sof_dsp_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, u32 value) argument 335 snd_sof_dsp_write64(struct snd_sof_dev *sdev, u32 bar, u32 offset, u64 value) argument 344 snd_sof_dsp_read8(struct snd_sof_dev *sdev, u32 bar, u32 offset) argument 353 snd_sof_dsp_read(struct snd_sof_dev *sdev, u32 bar, u32 offset) argument 362 snd_sof_dsp_read64(struct snd_sof_dev *sdev, u32 bar, u32 offset) argument 371 snd_sof_dsp_update8(struct snd_sof_dev *sdev, u32 bar, u32 offset, u8 mask, u8 value) argument 383 snd_sof_dsp_block_read(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type, u32 offset, void *dest, size_t bytes) argument 390 snd_sof_dsp_block_write(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type, u32 offset, void *src, size_t bytes) argument 398 snd_sof_dsp_mailbox_read(struct snd_sof_dev *sdev, u32 offset, void *dest, size_t bytes) argument 405 snd_sof_dsp_mailbox_write(struct snd_sof_dev *sdev, u32 offset, void *src, size_t bytes) argument 413 snd_sof_dsp_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) argument 421 snd_sof_pcm_platform_open(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) argument 432 snd_sof_pcm_platform_close(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) argument 443 snd_sof_pcm_platform_hw_params(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_sof_platform_stream_params *platform_params) argument 457 snd_sof_pcm_platform_hw_free(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) argument 468 snd_sof_pcm_platform_trigger(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream, int cmd) argument 478 snd_sof_load_firmware(struct snd_sof_dev *sdev) argument 486 snd_sof_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, void *p, size_t sz) argument 494 snd_sof_set_stream_data_offset(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, size_t posn_offset) argument 507 snd_sof_pcm_platform_pointer(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) argument 517 snd_sof_pcm_platform_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) argument 527 snd_sof_pcm_get_dai_frame_counter(struct snd_sof_dev *sdev, struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 539 snd_sof_pcm_get_host_byte_counter(struct snd_sof_dev *sdev, struct snd_soc_component *component, struct snd_pcm_substream *substream) argument 552 snd_sof_machine_register(struct snd_sof_dev *sdev, void *pdata) argument 561 snd_sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata) argument 568 snd_sof_machine_select(struct snd_sof_dev *sdev) argument 577 snd_sof_set_mach_params(struct snd_soc_acpi_mach *mach, struct snd_sof_dev *sdev) argument 585 snd_sof_is_chain_dma_supported(struct snd_sof_dev *sdev, u32 dai_type) argument [all...] |
H A D | loader.c | 17 int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev) argument 19 struct snd_sof_pdata *plat_data = sdev->pdata; 25 if (sdev->basefw.fw) 34 ret = request_firmware(&sdev->basefw.fw, fw_filename, sdev->dev); 37 dev_err(sdev->dev, 39 dev_err(sdev->dev, 43 dev_dbg(sdev->dev, "request_firmware %s successful\n", 48 ext_man_size = sdev->ipc->ops->fw_loader->parse_ext_manifest(sdev); 68 snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev) argument 109 snd_sof_run_firmware(struct snd_sof_dev *sdev) argument 184 snd_sof_fw_unload(struct snd_sof_dev *sdev) argument [all...] |
H A D | pm.c | 21 static u32 snd_sof_dsp_power_target(struct snd_sof_dev *sdev) argument 25 switch (sdev->system_suspend_target) { 40 if (snd_sof_stream_suspend_ignored(sdev)) 55 static void sof_cache_debugfs(struct snd_sof_dev *sdev) argument 59 list_for_each_entry(dfse, &sdev->dfsentry_list, list) { 75 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local 76 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); 77 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); 78 u32 old_state = sdev->dsp_power_state.state; 82 if (!runtime_resume && !sof_ops(sdev) 198 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local 296 snd_sof_dsp_power_down_notify(struct snd_sof_dev *sdev) argument 315 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local 341 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local 385 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local [all...] |
H A D | core.c | 74 * @sdev: Pointer to the device's sdev 87 void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level, argument 97 dev_printk(level, sdev->dev, "unexpected fault %#010x trace %#010x\n", 106 dev_printk(level, sdev->dev, "reason: %s (%#x)\n", 108 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); 114 dev_printk(level, sdev->dev, "unknown panic code: %#x\n", 116 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); 119 dev_printk(level, sdev->dev, "panic at %s:%d\n", panic_info->filename, 121 sof_oops(sdev, leve 127 sof_set_fw_state(struct snd_sof_dev *sdev, enum sof_fw_state new_state) argument 147 sof_of_machine_select(struct snd_sof_dev *sdev) argument 170 sof_machine_check(struct snd_sof_dev *sdev) argument 229 sof_select_ipc_and_paths(struct snd_sof_dev *sdev) argument 281 validate_sof_ops(struct snd_sof_dev *sdev) argument 309 sof_init_sof_ops(struct snd_sof_dev *sdev) argument 332 sof_init_environment(struct snd_sof_dev *sdev) argument 418 sof_probe_continue(struct snd_sof_dev *sdev) argument 562 struct snd_sof_dev *sdev = local 575 struct snd_sof_dev *sdev; local 657 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local 665 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local 723 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local 738 sof_machine_register(struct snd_sof_dev *sdev, void *pdata) argument 763 sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata) argument [all...] |
H A D | ops.c | 15 bool snd_sof_pci_update_bits_unlocked(struct snd_sof_dev *sdev, u32 offset, argument 18 struct pci_dev *pci = to_pci_dev(sdev->dev); 24 dev_dbg(sdev->dev, "Debug PCIR: %8.8x at %8.8x\n", old & mask, offset); 32 dev_dbg(sdev->dev, "Debug PCIW: %8.8x at %8.8x\n", value, 38 bool snd_sof_pci_update_bits(struct snd_sof_dev *sdev, u32 offset, argument 44 spin_lock_irqsave(&sdev->hw_lock, flags); 45 change = snd_sof_pci_update_bits_unlocked(sdev, offset, mask, value); 46 spin_unlock_irqrestore(&sdev->hw_lock, flags); 51 bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar, argument 57 ret = snd_sof_dsp_read(sdev, ba 71 snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev *sdev, u32 bar, u32 offset, u64 mask, u64 value) argument 90 snd_sof_dsp_update_bits(struct snd_sof_dev *sdev, u32 bar, u32 offset, u32 mask, u32 value) argument 104 snd_sof_dsp_update_bits64(struct snd_sof_dev *sdev, u32 bar, u32 offset, u64 mask, u64 value) argument 119 snd_sof_dsp_update_bits_forced_unlocked(struct snd_sof_dev *sdev, u32 bar, u32 offset, u32 mask, u32 value) argument 134 snd_sof_dsp_update_bits_forced(struct snd_sof_dev *sdev, u32 bar, u32 offset, u32 mask, u32 value) argument 151 snd_sof_dsp_panic(struct snd_sof_dev *sdev, u32 offset, bool non_recoverable) argument [all...] |
H A D | ipc3-priv.h | 22 int sof_ipc3_get_ext_windows(struct snd_sof_dev *sdev, 24 int sof_ipc3_get_cc_info(struct snd_sof_dev *sdev, 26 int sof_ipc3_validate_fw_version(struct snd_sof_dev *sdev); 29 int ipc3_dtrace_posn_update(struct snd_sof_dev *sdev, 32 void sof_ipc3_do_rx_work(struct snd_sof_dev *sdev, struct sof_ipc_cmd_hdr *hdr, void *msg_buf); 35 static inline int sof_dtrace_host_init(struct snd_sof_dev *sdev, argument 39 const struct snd_sof_dsp_ops *dsp_ops = sdev->pdata->desc->ops; 42 return dsp_ops->trace_init(sdev, dmatb, dtrace_params); 47 static inline int sof_dtrace_host_release(struct snd_sof_dev *sdev) argument 49 const struct snd_sof_dsp_ops *dsp_ops = sdev 57 sof_dtrace_host_trigger(struct snd_sof_dev *sdev, int cmd) argument [all...] |
H A D | ipc.c | 23 * @sdev: pointer to SOF core device struct 33 * Note: higher level sdev->ipc->tx_mutex must be held to make sure that 36 int sof_ipc_send_msg(struct snd_sof_dev *sdev, void *msg_data, size_t msg_bytes, argument 39 struct snd_sof_ipc *ipc = sdev->ipc; 43 if (ipc->disable_ipc_tx || sdev->fw_state != SOF_FW_BOOT_COMPLETE) 50 spin_lock_irq(&sdev->ipc_lock); 62 sdev->msg = msg; 64 ret = snd_sof_dsp_send_msg(sdev, msg); 69 spin_unlock_irq(&sdev->ipc_lock); 82 return ipc->ops->tx_msg(ipc->sdev, msg_dat 113 snd_sof_ipc_get_reply(struct snd_sof_dev *sdev) argument 130 snd_sof_ipc_reply(struct snd_sof_dev *sdev, u32 msg_id) argument 147 snd_sof_ipc_init(struct snd_sof_dev *sdev) argument 220 snd_sof_ipc_free(struct snd_sof_dev *sdev) argument [all...] |
H A D | debug.c | 26 struct snd_sof_dev *sdev = dfse->sdev; local 69 if (pm_runtime_active(sdev->dev) || 73 dev_info(sdev->dev, 79 if (!pm_runtime_active(sdev->dev) && 81 dev_err(sdev->dev, 114 static int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev, argument 121 if (!sdev) 124 dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL); 131 dfse->sdev 155 snd_sof_debugfs_add_region_item_iomem(struct snd_sof_dev *sdev, enum snd_sof_fw_blk_type blk_type, u32 offset, size_t size, const char *name, enum sof_debugfs_access_type access_type) argument 171 snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev, void *base, size_t size, const char *name, mode_t mode) argument 198 memory_info_update(struct snd_sof_dev *sdev, char *buf, size_t buff_size) argument 253 struct snd_sof_dev *sdev = dfse->sdev; local 271 struct snd_sof_dev *sdev = dfse->sdev; local 292 snd_sof_dbg_memory_info_init(struct snd_sof_dev *sdev) argument 312 snd_sof_dbg_init(struct snd_sof_dev *sdev) argument 380 snd_sof_free_debug(struct snd_sof_dev *sdev) argument 401 snd_sof_dbg_print_fw_state(struct snd_sof_dev *sdev, const char *level) argument 416 snd_sof_dsp_dbg_dump(struct snd_sof_dev *sdev, const char *msg, u32 flags) argument 441 snd_sof_ipc_dump(struct snd_sof_dev *sdev) argument 452 snd_sof_handle_fw_exception(struct snd_sof_dev *sdev, const char *msg) argument [all...] |
/linux-master/sound/soc/sof/mediatek/mt8195/ |
H A D | mt8195-clk.h | 25 int mt8195_adsp_init_clock(struct snd_sof_dev *sdev); 26 int adsp_clock_on(struct snd_sof_dev *sdev); 27 int adsp_clock_off(struct snd_sof_dev *sdev);
|
H A D | mt8195-loader.c | 13 void sof_hifixdsp_boot_sequence(struct snd_sof_dev *sdev, u32 boot_addr) argument 16 snd_sof_dsp_write(sdev, DSP_REG_BAR, DSP_ALTRESETVEC, boot_addr); 19 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, DSP_RESET_SW, 23 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, DSP_RESET_SW, 28 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, DSP_RESET_SW, 36 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, DSP_RESET_SW, 41 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, DSP_PDEBUGBUS0, 46 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, DSP_RESET_SW, 50 void sof_hifixdsp_shutdown(struct snd_sof_dev *sdev) argument 53 snd_sof_dsp_update_bits(sdev, DSP_REG_BA [all...] |
/linux-master/sound/soc/sof/mediatek/mt8186/ |
H A D | mt8186-clk.h | 21 int mt8186_adsp_init_clock(struct snd_sof_dev *sdev); 22 int mt8186_adsp_clock_on(struct snd_sof_dev *sdev); 23 void mt8186_adsp_clock_off(struct snd_sof_dev *sdev);
|
H A D | mt8186-loader.c | 14 void mt8186_sof_hifixdsp_boot_sequence(struct snd_sof_dev *sdev, u32 boot_addr) argument 17 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, ADSP_HIFI_IO_CONFIG, 21 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, ADSP_MBOX_IRQ_EN, 26 snd_sof_dsp_write(sdev, DSP_SECREG_BAR, ADSP_ALTVEC_C0, boot_addr); 27 snd_sof_dsp_write(sdev, DSP_SECREG_BAR, ADSP_ALTVECSEL, ADSP_ALTVECSEL_C0); 30 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, ADSP_CFGREG_SW_RSTN, 38 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, ADSP_CFGREG_SW_RSTN, 43 snd_sof_dsp_update_bits(sdev, DSP_REG_BAR, ADSP_HIFI_IO_CONFIG, 47 void mt8186_sof_hifixdsp_shutdown(struct snd_sof_dev *sdev) argument 50 snd_sof_dsp_update_bits(sdev, DSP_REG_BA [all...] |
H A D | mt8186-clk.c | 24 int mt8186_adsp_init_clock(struct snd_sof_dev *sdev) argument 26 struct adsp_priv *priv = sdev->pdata->hw_pdata; 27 struct device *dev = sdev->dev; 44 static int adsp_enable_all_clock(struct snd_sof_dev *sdev) argument 46 struct adsp_priv *priv = sdev->pdata->hw_pdata; 47 struct device *dev = sdev->dev; 68 static void adsp_disable_all_clock(struct snd_sof_dev *sdev) argument 70 struct adsp_priv *priv = sdev->pdata->hw_pdata; 76 int mt8186_adsp_clock_on(struct snd_sof_dev *sdev) argument 78 struct device *dev = sdev 94 mt8186_adsp_clock_off(struct snd_sof_dev *sdev) argument [all...] |
/linux-master/sound/soc/sof/intel/ |
H A D | hda-ctrl.c | 30 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset) argument 40 snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL, 46 gctl = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL); 53 dev_err(sdev->dev, "error: failed to %s HDA controller gctl 0x%x\n", 58 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev) argument 60 struct hdac_bus *bus = sof_to_bus(sdev); 69 ret = hda_dsp_ctrl_link_reset(sdev, true); 72 ret = hda_dsp_ctrl_link_reset(sdev, false); 76 offset = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_LLCH); 79 dev_dbg(sdev 133 hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable) argument 142 hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable) argument 151 hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable) argument 163 hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable) argument 186 hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev) argument 271 hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev) argument [all...] |
H A D | hda-ipc.c | 29 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) argument 35 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, 41 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, 47 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) argument 53 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, 59 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, 65 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) argument 68 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, 70 snd_sof_dsp_write(sdev, HDA_DSP_BA 104 hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) argument 131 hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev) argument 170 struct snd_sof_dev *sdev = context; local 253 struct snd_sof_dev *sdev = context; local 364 hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev) argument 397 hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) argument 403 hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) argument 409 hda_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, void *p, size_t sz) argument 435 hda_set_stream_data_offset(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, size_t posn_offset) argument 460 hda_ipc4_dsp_dump(struct snd_sof_dev *sdev, u32 flags) argument 474 hda_check_ipc_irq(struct snd_sof_dev *sdev) argument 486 hda_ipc_irq_dump(struct snd_sof_dev *sdev) argument 507 hda_ipc_dump(struct snd_sof_dev *sdev) argument 527 hda_ipc4_dump(struct snd_sof_dev *sdev) argument 546 hda_ipc4_tx_is_busy(struct snd_sof_dev *sdev) argument [all...] |
H A D | hda-loader-skl.c | 115 static int cl_skl_cldma_setup_bdle(struct snd_sof_dev *sdev, argument 135 static void cl_skl_cldma_stream_run(struct snd_sof_dev *sdev, bool enable) argument 142 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, 151 val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, 161 dev_err(sdev->dev, "%s: failed to set Run bit=%d enable=%d\n", 165 static void cl_skl_cldma_stream_clear(struct snd_sof_dev *sdev) argument 170 cl_skl_cldma_stream_run(sdev, 0); 175 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, 178 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, 182 snd_sof_dsp_write(sdev, HDA_DSP_BA 195 cl_skl_cldma_setup_spb(struct snd_sof_dev *sdev, unsigned int size, bool enable) argument 210 cl_skl_cldma_set_intr(struct snd_sof_dev *sdev, bool enable) argument 218 cl_skl_cldma_cleanup_spb(struct snd_sof_dev *sdev) argument 231 cl_skl_cldma_setup_controller(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab_bdl, unsigned int max_size, u32 count) argument 267 cl_stream_prepare_skl(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, struct snd_dma_buffer *dmab_bdl) argument 297 cl_cleanup_skl(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, struct snd_dma_buffer *dmab_bdl) argument 307 cl_dsp_init_skl(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, struct snd_dma_buffer *dmab_bdl) argument 390 cl_skl_cldma_fill_buffer(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, unsigned int bufsize, unsigned int copysize, const void *curr_pos, bool intr_enable) argument 418 cl_skl_cldma_wait_interruptible(struct snd_sof_dev *sdev, bool intr_wait) argument 453 cl_skl_cldma_copy_to_buf(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, const void *bin, u32 total_size, u32 bufsize) argument 492 cl_copy_fw_skl(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab) argument 514 hda_dsp_cl_boot_firmware_skl(struct snd_sof_dev *sdev) argument [all...] |
H A D | mtl.c | 31 static void mtl_ipc_host_done(struct snd_sof_dev *sdev) argument 37 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDR, 42 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDA, 46 static void mtl_ipc_dsp_done(struct snd_sof_dev *sdev) argument 52 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXIDA, 56 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXCTL, 61 bool mtl_dsp_check_ipc_irq(struct snd_sof_dev *sdev) argument 66 if (sdev->dspless_mode_selected) 70 hfintipptr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, MTL_HFINTIPPTR) & MTL_HFINTIPPTR_PTR_MASK; 71 irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BA 83 mtl_dsp_check_sdw_irq(struct snd_sof_dev *sdev) argument 98 mtl_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) argument 126 mtl_enable_ipc_interrupts(struct snd_sof_dev *sdev) argument 140 mtl_disable_ipc_interrupts(struct snd_sof_dev *sdev) argument 154 mtl_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable) argument 182 mtl_enable_interrupts(struct snd_sof_dev *sdev, bool enable) argument 240 mtl_dsp_pre_fw_run(struct snd_sof_dev *sdev) argument 290 mtl_dsp_post_fw_run(struct snd_sof_dev *sdev) argument 317 mtl_dsp_dump(struct snd_sof_dev *sdev, u32 flags) argument 335 mtl_dsp_primary_core_is_enabled(struct snd_sof_dev *sdev) argument 346 mtl_dsp_core_power_up(struct snd_sof_dev *sdev, int core) argument 387 mtl_dsp_core_power_down(struct snd_sof_dev *sdev, int core) argument 418 mtl_power_down_dsp(struct snd_sof_dev *sdev) argument 446 mtl_dsp_cl_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot) argument 552 struct snd_sof_dev *sdev = context; local 633 mtl_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) argument 639 mtl_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) argument 645 mtl_ipc_dump(struct snd_sof_dev *sdev) argument 663 mtl_dsp_disable_interrupts(struct snd_sof_dev *sdev) argument 670 mtl_dsp_core_get(struct snd_sof_dev *sdev, int core) argument 684 mtl_dsp_core_put(struct snd_sof_dev *sdev, int core) argument 705 sof_mtl_ops_init(struct snd_sof_dev *sdev) argument [all...] |
H A D | hda-trace.c | 22 static int hda_dsp_trace_prepare(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab) argument 24 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; 32 ret = hda_dsp_stream_hw_params(sdev, hext_stream, dmab, NULL); 34 dev_err(sdev->dev, "error: hdac prepare failed: %d\n", ret); 39 int hda_dsp_trace_init(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, argument 42 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; 45 hda->dtrace_stream = hda_dsp_stream_get(sdev, SNDRV_PCM_STREAM_CAPTURE, 49 dev_err(sdev->dev, 60 ret = hda_dsp_trace_prepare(sdev, dmab); 62 dev_err(sdev 73 hda_dsp_trace_release(struct snd_sof_dev *sdev) argument 92 hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd) argument [all...] |
H A D | hda-dsp.c | 45 static void hda_get_interfaces(struct snd_sof_dev *sdev, u32 *interface_mask) argument 49 chip = get_chip_info(sdev->pdata); 84 u32 hda_get_interface_mask(struct snd_sof_dev *sdev) argument 88 hda_get_interfaces(sdev, interface_mask); 90 return interface_mask[sdev->dspless_mode_selected]; 94 bool hda_is_chain_dma_supported(struct snd_sof_dev *sdev, u32 dai_type) argument 99 if (sdev->dspless_mode_selected) 102 hda_get_interfaces(sdev, interface_mask); 114 chip = get_chip_info(sdev->pdata); 128 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigne argument 167 hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) argument 207 hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask) argument 220 hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask) argument 246 hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask) argument 278 hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask) argument 326 hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) argument 349 hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask) argument 374 hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) argument 415 hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev) argument 434 hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev) argument 452 hda_dsp_wait_d0i3c_done(struct snd_sof_dev *sdev) argument 469 hda_dsp_send_pm_gate_ipc(struct snd_sof_dev *sdev, u32 flags) argument 479 hda_dsp_update_d0i3c_register(struct snd_sof_dev *sdev, u8 value) argument 528 hda_dsp_d0i3_streaming_applicable(struct snd_sof_dev *sdev) argument 552 hda_dsp_set_D0_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) argument 634 hda_dsp_state_log(struct snd_sof_dev *sdev) argument 674 hda_dsp_set_power_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) argument 710 hda_dsp_set_power_state_ipc3(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) argument 736 hda_dsp_set_power_state_ipc4(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) argument 778 hda_suspend(struct snd_sof_dev *sdev, bool runtime_suspend) argument 858 hda_resume(struct snd_sof_dev *sdev, bool runtime_resume) argument 904 hda_dsp_resume(struct snd_sof_dev *sdev) argument 957 hda_dsp_runtime_resume(struct snd_sof_dev *sdev) argument 973 hda_dsp_runtime_idle(struct snd_sof_dev *sdev) argument 987 hda_dsp_runtime_suspend(struct snd_sof_dev *sdev) argument 1009 hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state) argument 1070 hda_dsp_check_for_dma_streams(struct snd_sof_dev *sdev) argument 1089 hda_dsp_s5_quirk(struct snd_sof_dev *sdev) argument 1119 hda_dsp_shutdown_dma_flush(struct snd_sof_dev *sdev) argument 1143 hda_dsp_shutdown(struct snd_sof_dev *sdev) argument 1150 hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev) argument 1169 struct snd_sof_dev *sdev = dev_get_drvdata(bus->dev); local 1190 hda_dsp_core_get(struct snd_sof_dev *sdev, int core) argument 1232 hda_common_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable) argument 1247 hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) argument 1261 hda_sdw_check_lcount_common(struct snd_sof_dev *sdev) argument 1285 hda_sdw_check_lcount_ext(struct snd_sof_dev *sdev) argument 1311 hda_sdw_check_lcount(struct snd_sof_dev *sdev) argument 1323 hda_sdw_process_wakeen(struct snd_sof_dev *sdev) argument 1339 hda_dsp_disable_interrupts(struct snd_sof_dev *sdev) argument 1487 hda_dsp_get_state(struct snd_sof_dev *sdev, const char *level) argument 1559 hda_dsp_get_registers(struct snd_sof_dev *sdev, struct sof_ipc_dsp_oops_xtensa *xoops, struct sof_ipc_panic_info *panic_info, u32 *stack, size_t stack_words) argument 1588 hda_dsp_dump_ext_rom_status(struct snd_sof_dev *sdev, const char *level, u32 flags) argument 1607 hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags) argument [all...] |
H A D | lnl.c | 51 static int lnl_hda_dsp_probe(struct snd_sof_dev *sdev) argument 55 ret = hda_dsp_probe(sdev); 59 return hdac_bus_offload_dmic_ssp(sof_to_bus(sdev), true); 62 static void lnl_hda_dsp_remove(struct snd_sof_dev *sdev) argument 66 ret = hdac_bus_offload_dmic_ssp(sof_to_bus(sdev), false); 68 dev_warn(sdev->dev, 71 hda_dsp_remove(sdev); 74 static int lnl_hda_dsp_resume(struct snd_sof_dev *sdev) argument 78 ret = hda_dsp_resume(sdev); 82 return hdac_bus_offload_dmic_ssp(sof_to_bus(sdev), tru 85 lnl_hda_dsp_runtime_resume(struct snd_sof_dev *sdev) argument 96 lnl_dsp_post_fw_run(struct snd_sof_dev *sdev) argument 113 sof_lnl_ops_init(struct snd_sof_dev *sdev) argument 186 lnl_dsp_check_sdw_irq(struct snd_sof_dev *sdev) argument 193 lnl_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable) argument 200 lnl_dsp_disable_interrupts(struct snd_sof_dev *sdev) argument 207 lnl_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) argument [all...] |
/linux-master/sound/soc/sof/amd/ |
H A D | acp-ipc.c | 18 void acp_mailbox_write(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) argument 20 memcpy_to_scratch(sdev, offset, message, bytes); 24 void acp_mailbox_read(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) argument 26 memcpy_from_scratch(sdev, offset, message, bytes); 32 struct snd_sof_dev *sdev = adata->dev; local 33 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); 36 swintr_trigger = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->dsp_intr_base + 39 snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->dsp_intr_base + DSP_SW_INTR_TRIG_OFFSET, 43 static void acp_ipc_host_msg_set(struct snd_sof_dev *sdev) argument 45 unsigned int host_msg = sdev 51 acp_dsp_ipc_host_done(struct snd_sof_dev *sdev) argument 59 acp_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) argument 67 acp_sof_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) argument 96 acp_dsp_ipc_get_reply(struct snd_sof_dev *sdev) argument 157 struct snd_sof_dev *sdev = context; local 240 acp_sof_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, void *p, size_t sz) argument 266 acp_set_stream_data_offset(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, size_t posn_offset) argument 287 acp_sof_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) argument 295 acp_sof_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) argument [all...] |
/linux-master/drivers/scsi/ |
H A D | scsi.c | 160 struct scsi_device *sdev = cmd->device; local 161 struct scsi_target *starget = scsi_target(sdev); 162 struct Scsi_Host *shost = sdev->host; 166 scsi_device_unbusy(sdev, cmd); 176 if (atomic_read(&sdev->device_blocked)) 177 atomic_set(&sdev->device_blocked, 0); 179 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, 205 int scsi_device_max_queue_depth(struct scsi_device *sdev) argument 207 return min_t(int, sdev->host->can_queue, 4096); 212 * @sdev 217 scsi_change_queue_depth(struct scsi_device *sdev, int depth) argument 254 scsi_track_queue_full(struct scsi_device *sdev, int depth) argument 292 scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer, u8 page, unsigned len) argument 336 scsi_get_vpd_size(struct scsi_device *sdev, u8 page) argument 390 scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf, int buf_len) argument 428 scsi_get_vpd_buf(struct scsi_device *sdev, u8 page) argument 465 scsi_update_vpd_page(struct scsi_device *sdev, u8 page, struct scsi_vpd __rcu **sdev_vpd_buf) argument 492 scsi_attach_vpd(struct scsi_device *sdev) argument 540 scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer, unsigned int len, unsigned char opcode, unsigned short sa) argument 595 scsi_cdl_check_cmd(struct scsi_device *sdev, u8 opcode, u16 sa, unsigned char *buf) argument 631 scsi_cdl_check(struct scsi_device *sdev) argument 682 scsi_cdl_enable(struct scsi_device *sdev, bool enable) argument 749 scsi_device_get(struct scsi_device *sdev) argument 774 scsi_device_put(struct scsi_device *sdev) argument 822 struct scsi_device *sdev; local 850 struct scsi_device *sdev; local 878 struct scsi_device *sdev; local 903 struct scsi_device *sdev; local 936 struct scsi_device *sdev; local 964 struct scsi_device *sdev; local [all...] |
H A D | scsi_dh.c | 71 scsi_dh_find_driver(struct scsi_device *sdev) argument 75 if (scsi_device_tpgs(sdev)) 79 if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) && 80 !strncmp(sdev->model, b->model, strlen(b->model))) { 121 * @sdev - SCSI device the device handler should attach to 124 static int scsi_dh_handler_attach(struct scsi_device *sdev, argument 132 error = scsi_dh->attach(sdev); 150 sdev_printk(KERN_ERR, sdev, "%s: Attach failed (%d)\n", 154 sdev->handler = scsi_dh; 161 * @sdev 163 scsi_dh_handler_detach(struct scsi_device *sdev) argument 170 scsi_dh_add_device(struct scsi_device *sdev) argument 186 scsi_dh_release_device(struct scsi_device *sdev) argument 253 struct scsi_device *sdev; local 300 struct scsi_device *sdev; local 322 struct scsi_device *sdev; local 361 struct scsi_device *sdev; local [all...] |
/linux-master/arch/arm/common/ |
H A D | scoop.c | 42 struct scoop_dev *sdev = dev_get_drvdata(dev); local 44 iowrite16(0x0100, sdev->base + SCOOP_MCR); /* 00 */ 45 iowrite16(0x0000, sdev->base + SCOOP_CDR); /* 04 */ 46 iowrite16(0x0000, sdev->base + SCOOP_CCR); /* 10 */ 47 iowrite16(0x0000, sdev->base + SCOOP_IMR); /* 18 */ 48 iowrite16(0x00FF, sdev->base + SCOOP_IRM); /* 14 */ 49 iowrite16(0x0000, sdev->base + SCOOP_ISR); /* 1C */ 50 iowrite16(0x0000, sdev->base + SCOOP_IRM); 53 static void __scoop_gpio_set(struct scoop_dev *sdev, argument 58 gpwr = ioread16(sdev 68 struct scoop_dev *sdev = gpiochip_get_data(chip); local 80 struct scoop_dev *sdev = gpiochip_get_data(chip); local 89 struct scoop_dev *sdev = gpiochip_get_data(chip); local 107 struct scoop_dev *sdev = gpiochip_get_data(chip); local 126 struct scoop_dev *sdev = dev_get_drvdata(dev); local 132 struct scoop_dev *sdev = dev_get_drvdata(dev); local 141 check_scoop_reg(struct scoop_dev *sdev) argument 152 struct scoop_dev *sdev = platform_get_drvdata(dev); local 163 struct scoop_dev *sdev = platform_get_drvdata(dev); local 241 struct scoop_dev *sdev = platform_get_drvdata(pdev); local [all...] |