Projectname
large_stringclasses
15 values
Filepath
large_stringlengths
4
106
⌀
Function
large_stringlengths
11
3.45k
Label
list
Linux Kernel
sound/soc/sof/intel/hda-dsp.c
void hda_dsp_d0i3_work(struct work_struct *work) { struct sof_intel_hda_dev *hdev = container_of(work, struct sof_intel_hda_dev, d0i3_work.work); struct hdac_bus *bus = &hdev->hbus.core; struct snd_sof_dev *sdev = dev_get_drvdata(bus->dev); struct sof_dsp_power_state target_state = { .state = SOF_DS...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-dsp.c
int hda_dsp_core_get(struct snd_sof_dev *sdev, int core) { const struct sof_ipc_pm_ops *pm_ops = sdev->ipc->ops->pm; int ret, ret1; ret = hda_dsp_enable_core(sdev, BIT(core)); if (ret < 0) { dev_err(sdev->dev, "failed to power up core %d with err: %d\n", core, ret); return ret; } /* No need to sen...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-dsp.c
int hda_dsp_disable_interrupts(struct snd_sof_dev *sdev) { hda_sdw_int_enable(sdev, false); hda_dsp_ipc_int_disable(sdev); return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-ipc.c
static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) { snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCT, HDA_DSP_REG_HIPCT_BUSY, HDA_DSP_REG_HIPCT_BUSY); /* unmask BUSY interrupt */ snd_sof_dsp_update_bits(sdev, HDA_DSP_...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-ipc.c
static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) { snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCIE, HDA_DSP_REG_HIPCIE_DONE, HDA_DSP_REG_HIPCIE_DONE); /* unmask Done interrupt */ snd_sof_dsp_update_bits(sdev, HDA_DS...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-ipc.c
int hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) { struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; struct sof_ipc4_msg *msg_data = msg->msg_data; if (hda_ipc4_tx_is_busy(sdev)) { hdev->delayed_ipc_tx_msg = msg; return 0; } hdev->delay...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-ipc.c
int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) { return SRAM_WINDOW_OFFSET(id); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-loader-skl.c
static int cl_skl_cldma_setup_bdle(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab_data, __le32 **bdlp, int size, int with_ioc) { phys_addr_t addr = virt_to_phys(dmab_data->area); __le32 *bdl = *bdlp; bdl[0] = cpu_to_le32(lower_32_bits(a...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-loader-skl.c
static void cl_skl_cldma_setup_spb(struct snd_sof_dev *sdev, unsigned int size, bool enable) { int sd_offset = SOF_DSP_REG_CL_SPBFIFO; if (enable) snd_sof_dsp_update_bits( sdev, HDA_DSP_BAR, sd_offset + SOF_HDA_ADSP_REG_CL_SPBFIFO_SPBFCCTL, HDA_CL_SPBFIFO_SPB...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-loader-skl.c
static void cl_skl_cldma_set_intr(struct snd_sof_dev *sdev, bool enable) { u32 val = enable ? HDA_DSP_ADSPIC_CL_DMA : 0; snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIC, HDA_DSP_ADSPIC_CL_DMA, val); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-loader-skl.c
static void 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_ena...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-loader-skl.c
static int cl_skl_cldma_copy_to_buf(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, const void *bin, u32 total_size, u32 bufsize) { unsigned int bytes_left = total_size; const void *curr_pos = bin; ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-loader.c
static int cl_trigger(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream, int cmd) { struct hdac_stream *hstream = &hext_stream->hstream; int sd_offset = SOF_STREAM_SD_OFFSET(hstream); switch (cmd) { case SNDRV_PCM_TRIGGER_START: snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BA...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-loader.c
int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream) { struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; const struct sof_intel_dsp_desc *chip = hda->desc; unsigned int reg; int ret, status; ret = cl_trigger(sdev, hext_stream, SNDRV_PCM_TRIGGER_START); i...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-loader.c
int hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev) { struct hdac_ext_stream *iccmax_stream; struct hdac_bus *bus = sof_to_bus(sdev); struct snd_dma_buffer dmab_bdl; int ret, ret1; u8 original_gb; original_gb = snd_hdac_chip_readb(bus, VS_LTRP) & HDA_VS_INTEL_LTRP_GB_MASK; /* * Prepare capt...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-loader.c
int hda_dsp_ext_man_get_cavs_config_data( struct snd_sof_dev *sdev, const struct sof_ext_man_elem_header *hdr) { const struct sof_ext_man_cavs_config_data *config_data = container_of(hdr, struct sof_ext_man_cavs_config_data, hdr); struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; int i, elem_num; ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-mlink.c
void hda_bus_ml_get_capabilities(struct hdac_bus *bus) { if (bus->mlcap) snd_hdac_ext_bus_get_ml_capabilities(bus); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-mlink.c
void hda_bus_ml_put_all(struct hdac_bus *bus) { struct hdac_ext_link *hlink; list_for_each_entry(hlink, &bus->hlink_list, list) snd_hdac_ext_bus_link_put(bus, hlink); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-mlink.c
int hda_bus_ml_resume(struct hdac_bus *bus) { struct hdac_ext_link *hlink; int ret; list_for_each_entry(hlink, &bus->hlink_list, list) { if (hlink->ref_count) { ret = snd_hdac_ext_bus_link_power_up(hlink); if (ret < 0) return ret; } } return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-mlink.c
int hda_bus_ml_suspend(struct hdac_bus *bus) { return snd_hdac_ext_bus_link_power_down_all(bus); } #endif
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-pcm.c
u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits) { switch (sample_bits) { case 8: return SDnFMT_BITS(0); case 16: return SDnFMT_BITS(1); case 20: return SDnFMT_BITS(2); case 24: return SDnFMT_BITS(3); case 32: return SDnFMT_BITS(4); default: dev_warn(sdev->dev, "can'...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-pcm.c
int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream, int cmd) { struct hdac_stream *hstream = substream->runtime->private_data; struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); return hda_dsp_stream_trigger(sdev, hext_stream, cmd...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-pcm.c
int hda_dsp_pcm_close(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) { struct hdac_stream *hstream = substream->runtime->private_data; int direction = substream->stream; int ret; ret = hda_dsp_stream_put(sdev, direction, hstream->stream_tag); if (ret) { dev_dbg(sdev...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-probes.c
static inline struct hdac_ext_stream * hda_compr_get_stream(struct snd_compr_stream *cstream) { return cstream->runtime->private_data; }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-probes.c
static int hda_probes_compr_startup(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai, u32 *stream_id) { struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); struct hdac_ext_stream *hext_stream; h...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-probes.c
int hda_probes_register(struct snd_sof_dev *sdev) { return sof_client_dev_register(sdev, "hda-probes", 0, &hda_probes_ops, sizeof(hda_probes_ops)); }
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-probes.c
void hda_probes_unregister(struct snd_sof_dev *sdev) { sof_client_dev_unregister(sdev, "hda-probes", 0); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-stream.c
static int hda_dsp_stream_reset(struct snd_sof_dev *sdev, struct hdac_stream *hstream) { int sd_offset = SOF_STREAM_SD_OFFSET(hstream); int timeout = HDA_DSP_STREAM_RESET_TIMEOUT; u32 val; snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, sd_offset, SOF_ST...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-stream.c
int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) { struct hdac_stream *hstream = substream->runtime->private_data; struct hdac_ext_stream *hext_stream = container_of(hstream, struct hdac_ext_stream, hstream); struct hdac_bus *bus = sof_to_b...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-stream.c
bool hda_dsp_check_stream_irq(struct snd_sof_dev *sdev) { struct hdac_bus *bus = sof_to_bus(sdev); bool ret = false; u32 status; spin_lock_irq(&bus->reg_lock); status = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTSTS); trace_sof_intel_hda_dsp_check_stream_irq(sdev, status); /* if Register inacc...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-stream.c
irqreturn_t hda_dsp_stream_threaded_handler(int irq, void *context) { struct snd_sof_dev *sdev = context; struct hdac_bus *bus = sof_to_bus(sdev); bool active; u32 status; int i; for (i = 0, active = true; i < 10 && active; i++) { spin_lock_irq(&bus->reg_lock); status = snd_sof_dsp_read(sdev, HDA_...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-stream.c
void hda_dsp_stream_free(struct snd_sof_dev *sdev) { struct hdac_bus *bus = sof_to_bus(sdev); struct hdac_stream *s, *_s; struct hdac_ext_stream *hext_stream; struct sof_intel_hda_stream *hda_stream; if (bus->posbuf.area) snd_dma_free_pages(&bus->posbuf); /* free CORB/RIRB buffer - only used for HDaud...
[ 0, 1 ]
Linux Kernel
sound/soc/sof/intel/hda-trace.c
static int hda_dsp_trace_prepare(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab) { struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; struct hdac_ext_stream *hext_stream = hda->dtrace_stream; struct hdac_stream *hstream = &hext_stream->hstream; int ret; hstream->pe...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-trace.c
int hda_dsp_trace_init(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, struct sof_ipc_dma_trace_params_ext *dtrace_params) { struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; int ret; hda->dtrace_stream = hda_dsp_stream_get(sdev, SNDRV_PCM_STREAM_CAPTURE, ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda-trace.c
int hda_dsp_trace_release(struct snd_sof_dev *sdev) { struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; struct hdac_stream *hstream; if (hda->dtrace_stream) { hstream = &hda->dtrace_stream->hstream; hda_dsp_stream_put(sdev, SNDRV_PCM_STREAM_CAPTURE, hstream->stream_tag); hda->dtrace_stream = NU...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
int hda_ctrl_dai_widget_setup(struct snd_soc_dapm_widget *w, unsigned int quirk_flags, struct snd_sof_dai_config_data *data) { struct snd_sof_widget *swidget = w->dobj.private; struct snd_soc_component *component = swidget->scomp; struct snd_sof_dev *sde...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
int hda_ctrl_dai_widget_free(struct snd_soc_dapm_widget *w, unsigned int quirk_flags, struct snd_sof_dai_config_data *data) { struct snd_sof_widget *swidget = w->dobj.private; struct snd_soc_component *component = swidget->scomp; struct snd_sof_dev *sdev =...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
static int sdw_params_stream(struct device *dev, struct sdw_intel_stream_params_data *params_data) { struct snd_soc_dai *d = params_data->dai; struct snd_sof_dai_config_data data; struct snd_soc_dapm_widget *w; w = snd_soc_dai_get_widget(d, params_data->stream); data.dai_index =...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
static int hda_sdw_probe(struct snd_sof_dev *sdev) { struct sof_intel_hda_dev *hdev; struct sdw_intel_res res; void *sdw; hdev = sdev->pdata->hw_pdata; memset(&res, 0, sizeof(res)); res.mmio_base = sdev->bar[HDA_DSP_BAR]; res.shim_base = hdev->desc->sdw_shim_base; res.alh_base = hdev->desc->sdw_alh_b...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
static int hda_sdw_check_lcount(struct snd_sof_dev *sdev) { const struct sof_intel_dsp_desc *chip; chip = get_chip_info(sdev->pdata); if (chip && chip->read_sdw_lcount) return chip->read_sdw_lcount(sdev); return 0; }
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
int hda_sdw_startup(struct snd_sof_dev *sdev) { struct sof_intel_hda_dev *hdev; struct snd_sof_pdata *pdata = sdev->pdata; int ret; hdev = sdev->pdata->hw_pdata; if (!hdev->sdw) return 0; if (pdata->machine && !pdata->machine->mach_params.link_mask) return 0; ret = hda_sdw_check_lcount(sdev);...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
static inline int hda_sdw_exit(struct snd_sof_dev *sdev) { return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
static void 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) { u32 offset = sdev->dsp_oops_offset; sof_m...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
static bool hda_check_ipc_irq(struct snd_sof_dev *sdev) { const struct sof_intel_dsp_desc *chip; chip = get_chip_info(sdev->pdata); if (chip && chip->check_ipc_irq) return chip->check_ipc_irq(sdev); return false; }
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
void hda_ipc4_dump(struct snd_sof_dev *sdev) { u32 hipci, hipcie, hipct, hipcte, hipcctl; hda_ipc_irq_dump(sdev); hipci = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCI); hipcie = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCIE); hipct = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCT); ...
[ 1, 1 ]
Linux Kernel
sound/soc/sof/intel/hda.c
bool hda_ipc4_tx_is_busy(struct snd_sof_dev *sdev) { struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; const struct sof_intel_dsp_desc *chip = hda->desc; u32 val; val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, chip->ipc_req); return !!(val & chip->ipc_req_mask); }
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
static int check_dmic_num(struct snd_sof_dev *sdev) { struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; struct nhlt_acpi_table *nhlt; int dmic_num = 0; nhlt = hdev->nhlt; if (nhlt) dmic_num = intel_nhlt_get_dmic_geo(sdev->dev, nhlt); if (dmic_num_override != -1) { dev_dbg(sdev->dev, ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
static irqreturn_t hda_dsp_interrupt_thread(int irq, void *context) { struct snd_sof_dev *sdev = context; struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; if (hda_dsp_check_stream_irq(sdev)) { trace_sof_intel_hda_irq(sdev, "stream"); hda_dsp_stream_threaded_handler(irq, sdev); } if (hda_check...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
int hda_dsp_remove(struct snd_sof_dev *sdev) { struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; const struct sof_intel_dsp_desc *chip = hda->desc; struct hdac_bus *bus = sof_to_bus(sdev); struct pci_dev *pci = to_pci_dev(sdev->dev); struct nhlt_acpi_table *nhlt = hda->nhlt; if (nhlt) intel_nhlt_f...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
int hda_power_down_dsp(struct snd_sof_dev *sdev) { struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; const struct sof_intel_dsp_desc *chip = hda->desc; return hda_dsp_core_reset_power_down(sdev, chip->host_managed_cores_mask); } #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
int hda_pci_intel_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) { int ret; ret = snd_intel_dsp_driver_probe(pci); if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_SOF) { dev_dbg(&pci->dev, "SOF PCI driver not selected, aborting probe\n"); return...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.c
int hda_register_clients(struct snd_sof_dev *sdev) { return hda_probes_register(sdev); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.h
static inline void hda_codec_jack_check(struct snd_sof_dev *sdev) {}
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.h
static inline void hda_codec_detect_mask(struct snd_sof_dev *sdev) {}
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.h
static inline int hda_codec_i915_exit(struct snd_sof_dev *sdev) { return 0; } #endif #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.h
static inline void hda_bus_ml_free(struct hdac_bus *bus) {}
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.h
static inline void hda_bus_ml_put_all(struct hdac_bus *bus) {}
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.h
static inline void hda_bus_ml_reset_losidv(struct hdac_bus *bus) {}
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.h
static inline void hda_sdw_process_wakeen(struct snd_sof_dev *sdev) {}
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/hda.h
static inline int hda_probes_register(struct snd_sof_dev *sdev) { return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/icl.c
static int icl_dsp_post_fw_run(struct snd_sof_dev *sdev) { struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; int ret; if (sdev->first_boot) { struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; ret = hda_sdw_startup(sdev); if (ret < 0) { dev_err(sdev->dev, "error: could not startup So...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/mtl.c
static void mtl_enable_ipc_interrupts(struct snd_sof_dev *sdev) { struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; const struct sof_intel_dsp_desc *chip = hda->desc; snd_sof_dsp_update_bits( sdev, HDA_DSP_BAR, chip->ipc_ctl, MTL_DSP_REG_HFIPCXCTL_BUSY | MTL_DSP_REG_HFIPCXCTL_DONE, MTL_DSP...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/mtl.c
static int mtl_dsp_core_power_down(struct snd_sof_dev *sdev, int core) { u32 dspcxctl; int ret; if (core != SOF_DSP_PRIMARY_CORE || !mtl_dsp_primary_core_is_enabled(sdev)) return 0; /* disable SPA bit */ snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, MTL_DSP2CXCTL_PRIMARY_CORE, MTL...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/intel/mtl.c
static int mtl_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) { return MTL_DSP_MBOX_UPLINK_OFFSET; }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/mtl.c
static int mtl_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) { return MTL_SRAM_WINDOW_OFFSET(id); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/mtl.c
static int mtl_dsp_disable_interrupts(struct snd_sof_dev *sdev) { mtl_enable_sdw_irq(sdev, false); mtl_disable_ipc_interrupts(sdev); return mtl_enable_interrupts(sdev, false); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/mtl.c
int sof_mtl_ops_init(struct snd_sof_dev *sdev) { struct sof_ipc4_fw_data *ipc4_data; memcpy(&sof_mtl_ops, &sof_hda_common_ops, sizeof(struct snd_sof_dsp_ops)); /* shutdown */ sof_mtl_ops.shutdown = hda_dsp_shutdown; /* doorbell */ sof_mtl_ops.irq_thread = mtl_ipc_irq_thread; /* ipc */ sof_mtl_ops.se...
[ 1, 1 ]
Linux Kernel
sound/soc/sof/intel/skl.c
static int skl_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) { return SRAM_MEMORY_WINDOW_BASE + (0x2000 * id); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/intel/skl.c
int sof_skl_ops_init(struct snd_sof_dev *sdev) { struct sof_ipc4_fw_data *ipc4_data; memcpy(&sof_skl_ops, &sof_hda_common_ops, sizeof(struct snd_sof_dsp_ops)); /* probe/remove/shutdown */ sof_skl_ops.shutdown = hda_dsp_shutdown; sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL); if ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/iomem-utils.c
void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value) { writel(value, addr); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/iomem-utils.c
void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value) { writeq(value, addr); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/iomem-utils.c
u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr) { return readq(addr); }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/iomem-utils.c
void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) { void __iomem *dest = sdev->bar[sdev->mailbox_bar] + offset; memcpy_toio(dest, message, bytes); }
[ 1, 0 ]
Linux Kernel
sound/soc/sof/iomem-utils.c
void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) { void __iomem *src = sdev->bar[sdev->mailbox_bar] + offset; memcpy_fromio(message, src, bytes); }
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc.c
int sof_ipc_send_msg(struct snd_sof_dev *sdev, void *msg_data, size_t msg_bytes, size_t reply_bytes) { struct snd_sof_ipc *ipc = sdev->ipc; struct snd_sof_ipc_msg *msg; int ret; if (ipc->disable_ipc_tx || sdev->fw_state != SOF_FW_BOOT_COMPLETE) return -ENODEV; spin_lock_irq(&sdev->i...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-control.c
static bool sof_ipc3_volume_put(struct snd_sof_control *scontrol, struct snd_ctl_elem_value *ucontrol) { struct sof_ipc_ctrl_data *cdata = scontrol->ipc_control_data; struct snd_soc_component *scomp = scontrol->scomp; unsigned int channels = scontrol->num_channels; unsigned int i...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-control.c
static int sof_ipc3_widget_kcontrol_setup(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget) { struct snd_sof_control *scontrol; int ret; list_for_each_entry(scontrol, &sdev->kcontrol_list, list) if (scontrol->comp_id == swidget->comp_id) { ...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/ipc3-control.c
static int sof_ipc3_set_up_volume_table(struct snd_sof_control *scontrol, int tlv[SOF_TLV_ITEMS], int size) { int i; scontrol->volume_table = kcalloc(size, sizeof(u32), GFP_KERNEL); if (!scontrol->volume_table) return -ENOMEM; /* populate the volume table */ for (...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-dtrace.c
static int dfsentry_dtrace_release(struct inode *inode, struct file *file) { struct snd_sof_dfsentry *dfse = inode->i_private; struct snd_sof_dev *sdev = dfse->sdev; struct sof_dtrace_priv *priv = sdev->fw_trace_data; if (priv->dtrace_state != SOF_DTRACE_ENABLED) sof_dtrace_set_host_offset(priv, 0); ret...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/ipc3-dtrace.c
static void ipc3_dtrace_fw_crashed(struct snd_sof_dev *sdev) { struct sof_dtrace_priv *priv = sdev->fw_trace_data; if (priv->dtrace_state == SOF_DTRACE_ENABLED) { priv->dtrace_error = true; wake_up(&priv->trace_sleep); } }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/ipc3-dtrace.c
static void ipc3_dtrace_release(struct snd_sof_dev *sdev, bool only_stop) { struct sof_dtrace_priv *priv = sdev->fw_trace_data; struct sof_ipc_fw_ready *ready = &sdev->fw_ready; struct sof_ipc_fw_version *v = &ready->version; struct sof_ipc_cmd_hdr hdr; struct sof_ipc_reply ipc_reply; int ret; if (!sdev-...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-dtrace.c
static void ipc3_dtrace_free(struct snd_sof_dev *sdev) { struct sof_dtrace_priv *priv = sdev->fw_trace_data; ipc3_dtrace_release(sdev, false); if (priv->dma_trace_pages) { snd_dma_free_pages(&priv->dmatb); snd_dma_free_pages(&priv->dmatp); priv->dma_trace_pages = 0; } }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/ipc3-loader.c
static int ipc3_fw_ext_man_get_config_data(struct snd_sof_dev *sdev, const struct sof_ext_man_elem_header *hdr) { const struct sof_ext_man_config_data *config = container_of(hdr, struct sof_ext_man_config_data, hdr); const struct sof_config_elem *elem; int elems_counter; in...
[ 1, 1 ]
Linux Kernel
sound/soc/sof/ipc3-priv.h
static inline int sof_dtrace_host_trigger(struct snd_sof_dev *sdev, int cmd) { struct snd_sof_dsp_ops *dsp_ops = sdev->pdata->desc->ops; if (dsp_ops->trace_trigger) return dsp_ops->trace_trigger(sdev, cmd); return 0; }
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static enum sof_ipc_process_type find_process(const char *name) { int i; for (i = 0; i < ARRAY_SIZE(sof_process); i++) { if (strcmp(name, sof_process[i].name) == 0) return sof_process[i].type; } return SOF_PROCESS_NONE; }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static int sof_ipc3_widget_setup_comp_mixer(struct snd_sof_widget *swidget) { struct snd_soc_component *scomp = swidget->scomp; struct sof_ipc_comp_mixer *mixer; size_t ipc_size = sizeof(*mixer); int ret; mixer = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); if (!mixer) return -ENOMEM; s...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static int sof_ipc3_widget_setup_comp_buffer(struct snd_sof_widget *swidget) { struct snd_soc_component *scomp = swidget->scomp; struct sof_ipc_buffer *buffer; int ret; buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); if (!buffer) return -ENOMEM; swidget->private = buffer; buffer->comp.hdr.size = siz...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static int sof_ipc3_widget_setup_comp_mux(struct snd_sof_widget *swidget) { struct snd_soc_component *scomp = swidget->scomp; struct sof_ipc_comp_mux *mux; size_t ipc_size = sizeof(*mux); int ret; mux = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); if (!mux) return -ENOMEM; swidget->priv...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static enum sof_comp_type find_process_comp_type(enum sof_ipc_process_type type) { int i; for (i = 0; i < ARRAY_SIZE(sof_process); i++) { if (sof_process[i].type == type) return sof_process[i].comp_type; } return SOF_COMP_NONE; }
[ 0, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static int sof_widget_update_ipc_comp_process(struct snd_sof_widget *swidget) { struct snd_soc_component *scomp = swidget->scomp; struct sof_ipc_comp_process config; int ret; memset(&config, 0, sizeof(config)); config.comp.core = swidget->core; ret = sof_update_ipc_object(scomp, &config, SOF_PROCESS...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static int sof_link_acp_bt_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) { struct snd_soc_tplg_hw_config *hw_config = slink->hw_configs; ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static int sof_link_acp_hs_load(struct snd_soc_component *scomp, struct snd_sof_dai_link *slink, struct sof_ipc_dai_config *config, struct snd_sof_dai *dai) { struct snd_soc_tplg_hw_config *hw_config = slink->hw_configs; ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static int sof_ipc3_keyword_detect_trigger(struct snd_sof_widget *swidget, int cmd) { struct snd_soc_component *scomp = swidget->scomp; struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp); struct sof_ipc_stream stream; struct sof_ipc_reply reply; int ret;...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static int sof_ipc3_widget_bind_event(struct snd_soc_component *scomp, struct snd_sof_widget *swidget, u16 event_type) { struct sof_ipc_comp *ipc_comp; switch (event_type) { case SOF_KEYWORD_DETECT_DAPM_EVENT: /* only KEYWORD_DETECT ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3-topology.c
static int sof_ipc3_widget_free(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget) { struct sof_ipc_free ipc_free = { .hdr = { .size = sizeof(ipc_free), .cmd = SOF_IPC_GLB_TPLG_MSG, }, .id = swidget->comp_id, }; st...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3.c
static int sof_ipc3_tx_msg(struct snd_sof_dev *sdev, void *msg_data, size_t msg_bytes, void *reply_data, size_t reply_bytes, bool no_pm) { struct snd_sof_ipc *ipc = sdev->ipc; int ret; if (!msg_data || msg_bytes < sizeof(struct sof_ipc_cmd_hdr)) { dev_err...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3.c
static int ipc3_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 offset) { struct sof_ipc_ext_data_hdr *ext_hdr; void *ext_data; int ret = 0; ext_data = kzalloc(PAGE_SIZE, GFP_KERNEL); if (!ext_data) return -ENOMEM; snd_sof_dsp_block_read(sdev, SOF_FW_BLK_TYPE_SRAM, offset, ext_data, ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3.c
static void ipc3_comp_notification(struct snd_sof_dev *sdev, void *msg_buf) { const struct sof_ipc_tplg_ops *tplg_ops = sdev->ipc->ops->tplg; struct sof_ipc_cmd_hdr *hdr = msg_buf; u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK; switch (msg_type) { case SOF_IPC_COMP_GET_VALUE: case SOF_IPC_COMP_GET_DATA: ...
[ 1, 0 ]
Linux Kernel
sound/soc/sof/ipc3.c
static void ipc3_trace_message(struct snd_sof_dev *sdev, void *msg_buf) { struct sof_ipc_cmd_hdr *hdr = msg_buf; u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK; switch (msg_type) { case SOF_IPC_TRACE_DMA_POSITION: ipc3_dtrace_posn_update(sdev, msg_buf); break; default: dev_err(sdev->dev, "unhandled...
[ 0, 0 ]
Linux Kernel
sound/soc/sof/ipc3.c
static int sof_ipc3_set_core_state(struct snd_sof_dev *sdev, int core_idx, bool on) { struct sof_ipc_pm_core_config core_cfg = { .hdr.size = sizeof(core_cfg), .hdr.cmd = SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CORE_ENABLE, }; struct sof_ipc_reply reply; if (on) core_...
[ 1, 0 ]