Searched refs:sdev (Results 1 - 25 of 412) sorted by relevance

1234567891011>>

/linux-master/sound/soc/sof/
H A Dtrace.c7 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 Dops.h21 #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 Dloader.c17 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 Dpm.c21 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 Dcore.c74 * @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
416 sof_probe_continue(struct snd_sof_dev *sdev) argument
560 struct snd_sof_dev *sdev = local
573 struct snd_sof_dev *sdev; local
655 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local
663 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local
721 struct snd_sof_dev *sdev = dev_get_drvdata(dev); local
736 sof_machine_register(struct snd_sof_dev *sdev, void *pdata) argument
761 sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata) argument
[all...]
H A Dops.c15 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 Dipc3-priv.h22 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 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 struct snd_sof_dsp_ops *dsp_ops = sdev
57 sof_dtrace_host_trigger(struct snd_sof_dev *sdev, int cmd) argument
[all...]
H A Dipc.c23 * @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 Ddebug.c44 struct snd_sof_dev *sdev = dfse->sdev; local
87 if (pm_runtime_active(sdev->dev) ||
91 dev_info(sdev->dev,
97 if (!pm_runtime_active(sdev->dev) &&
99 dev_err(sdev->dev,
133 static int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev, argument
140 if (!sdev)
143 dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL);
150 dfse->sdev
174 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
190 snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev, void *base, size_t size, const char *name, mode_t mode) argument
217 memory_info_update(struct snd_sof_dev *sdev, char *buf, size_t buff_size) argument
272 struct snd_sof_dev *sdev = dfse->sdev; local
290 struct snd_sof_dev *sdev = dfse->sdev; local
311 snd_sof_dbg_memory_info_init(struct snd_sof_dev *sdev) argument
331 snd_sof_dbg_init(struct snd_sof_dev *sdev) argument
362 snd_sof_free_debug(struct snd_sof_dev *sdev) argument
383 snd_sof_dbg_print_fw_state(struct snd_sof_dev *sdev, const char *level) argument
398 snd_sof_dsp_dbg_dump(struct snd_sof_dev *sdev, const char *msg, u32 flags) argument
423 snd_sof_ipc_dump(struct snd_sof_dev *sdev) argument
434 snd_sof_handle_fw_exception(struct snd_sof_dev *sdev, const char *msg) argument
[all...]
H A Dsof-client.c73 static int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) argument
78 if (sdev->pdata->ipc_type != SOF_IPC_TYPE_3)
82 ret = sof_client_dev_register(sdev, "ipc_flood", i, NULL, 0);
89 sof_client_dev_unregister(sdev, "ipc_flood", i);
95 static void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) argument
100 sof_client_dev_unregister(sdev, "ipc_flood", i);
103 static inline int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) argument
108 static inline void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) {} argument
112 static int sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) argument
114 return sof_client_dev_register(sdev, "msg_injecto
117 sof_unregister_ipc_msg_injector(struct snd_sof_dev *sdev) argument
122 sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) argument
127 sof_unregister_ipc_msg_injector(struct snd_sof_dev *sdev) argument
131 sof_register_ipc_kernel_injector(struct snd_sof_dev *sdev) argument
140 sof_unregister_ipc_kernel_injector(struct snd_sof_dev *sdev) argument
145 sof_register_ipc_kernel_injector(struct snd_sof_dev *sdev) argument
150 sof_unregister_ipc_kernel_injector(struct snd_sof_dev *sdev) argument
153 sof_register_clients(struct snd_sof_dev *sdev) argument
198 sof_unregister_clients(struct snd_sof_dev *sdev) argument
208 sof_client_dev_register(struct snd_sof_dev *sdev, const char *name, u32 id, const void *data, size_t size) argument
264 sof_client_dev_unregister(struct snd_sof_dev *sdev, const char *name, u32 id) argument
347 struct snd_sof_dev *sdev = c->sdev; local
358 sof_suspend_clients(struct snd_sof_dev *sdev, pm_message_t state) argument
381 sof_resume_clients(struct snd_sof_dev *sdev) argument
419 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
427 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
435 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
444 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
455 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
462 sof_client_ipc_rx_dispatcher(struct snd_sof_dev *sdev, void *msg_buf) argument
495 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
533 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
551 sof_client_fw_state_dispatcher(struct snd_sof_dev *sdev) argument
566 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
590 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
609 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); local
[all...]
/linux-master/sound/soc/sof/mediatek/mt8195/
H A Dmt8195-clk.h25 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 Dmt8195-loader.c13 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 Dmt8186-clk.h21 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 Dmt8186-loader.c14 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 Dmt8186-clk.c24 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 Dhda-ipc.c23 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) argument
29 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR,
35 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR,
41 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) argument
47 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR,
53 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR,
59 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) argument
62 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data,
64 snd_sof_dsp_write(sdev, HDA_DSP_BA
96 hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) argument
122 hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev) argument
160 struct snd_sof_dev *sdev = context; local
242 struct snd_sof_dev *sdev = context; local
352 hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev) argument
384 hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) argument
389 hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) argument
394 hda_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, void *p, size_t sz) argument
419 hda_set_stream_data_offset(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, size_t posn_offset) argument
[all...]
H A Dhda-ctrl.c30 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
132 hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable) argument
140 hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable) argument
148 hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable) argument
160 hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable) argument
182 hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev) argument
259 hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev) argument
[all...]
H A Dhda-loader-skl.c115 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 Dmtl.c29 static void mtl_ipc_host_done(struct snd_sof_dev *sdev) argument
35 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDR,
40 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDA,
44 static void mtl_ipc_dsp_done(struct snd_sof_dev *sdev) argument
50 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXIDA,
54 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXCTL,
59 bool mtl_dsp_check_ipc_irq(struct snd_sof_dev *sdev) argument
64 if (sdev->dspless_mode_selected)
68 hfintipptr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, MTL_HFINTIPPTR) & MTL_HFINTIPPTR_PTR_MASK;
69 irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BA
80 mtl_dsp_check_sdw_irq(struct snd_sof_dev *sdev) argument
95 mtl_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) argument
122 mtl_enable_ipc_interrupts(struct snd_sof_dev *sdev) argument
136 mtl_disable_ipc_interrupts(struct snd_sof_dev *sdev) argument
149 mtl_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable) argument
177 mtl_enable_interrupts(struct snd_sof_dev *sdev, bool enable) argument
234 mtl_dsp_pre_fw_run(struct snd_sof_dev *sdev) argument
283 mtl_dsp_post_fw_run(struct snd_sof_dev *sdev) argument
305 mtl_dsp_dump(struct snd_sof_dev *sdev, u32 flags) argument
328 mtl_dsp_primary_core_is_enabled(struct snd_sof_dev *sdev) argument
339 mtl_dsp_core_power_up(struct snd_sof_dev *sdev, int core) argument
380 mtl_dsp_core_power_down(struct snd_sof_dev *sdev, int core) argument
411 mtl_power_down_dsp(struct snd_sof_dev *sdev) argument
438 mtl_dsp_cl_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot) argument
515 struct snd_sof_dev *sdev = context; local
595 mtl_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) argument
600 mtl_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) argument
605 mtl_ipc_dump(struct snd_sof_dev *sdev) argument
622 mtl_dsp_disable_interrupts(struct snd_sof_dev *sdev) argument
629 mtl_dsp_core_get(struct snd_sof_dev *sdev, int core) argument
642 mtl_dsp_core_put(struct snd_sof_dev *sdev, int core) argument
663 sof_mtl_ops_init(struct snd_sof_dev *sdev) argument
[all...]
H A Dhda-dsp.c39 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) argument
47 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
52 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
58 dev_err(sdev->dev,
65 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
69 dev_err(sdev->dev,
78 static int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) argument
85 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
92 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
99 dev_err(sdev
118 hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask) argument
130 hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask) argument
155 hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask) argument
186 hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask) argument
233 hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) argument
256 hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask) argument
280 hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) argument
320 hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev) argument
338 hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev) argument
355 hda_dsp_wait_d0i3c_done(struct snd_sof_dev *sdev) argument
372 hda_dsp_send_pm_gate_ipc(struct snd_sof_dev *sdev, u32 flags) argument
382 hda_dsp_update_d0i3c_register(struct snd_sof_dev *sdev, u8 value) argument
431 hda_dsp_d0i3_streaming_applicable(struct snd_sof_dev *sdev) argument
455 hda_dsp_set_D0_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) argument
537 hda_dsp_state_log(struct snd_sof_dev *sdev) argument
577 hda_dsp_set_power_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) argument
613 hda_dsp_set_power_state_ipc3(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) argument
638 hda_dsp_set_power_state_ipc4(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) argument
679 hda_suspend(struct snd_sof_dev *sdev, bool runtime_suspend) argument
759 hda_resume(struct snd_sof_dev *sdev, bool runtime_resume) argument
805 hda_dsp_resume(struct snd_sof_dev *sdev) argument
857 hda_dsp_runtime_resume(struct snd_sof_dev *sdev) argument
872 hda_dsp_runtime_idle(struct snd_sof_dev *sdev) argument
885 hda_dsp_runtime_suspend(struct snd_sof_dev *sdev) argument
906 hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state) argument
966 hda_dsp_check_for_dma_streams(struct snd_sof_dev *sdev) argument
985 hda_dsp_s5_quirk(struct snd_sof_dev *sdev) argument
1015 hda_dsp_shutdown_dma_flush(struct snd_sof_dev *sdev) argument
1038 hda_dsp_shutdown(struct snd_sof_dev *sdev) argument
1044 hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev) argument
1062 struct snd_sof_dev *sdev = dev_get_drvdata(bus->dev); local
1082 hda_dsp_core_get(struct snd_sof_dev *sdev, int core) argument
1122 hda_dsp_disable_interrupts(struct snd_sof_dev *sdev) argument
[all...]
H A Dhda-trace.c22 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
72 hda_dsp_trace_release(struct snd_sof_dev *sdev) argument
90 hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd) argument
[all...]
/linux-master/sound/soc/sof/amd/
H A Dacp-ipc.c18 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 Dscsi.c160 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 Dscsi_dh.c71 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 Dscoop.c42 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...]

Completed in 271 milliseconds

1234567891011>>