Home
last modified time | relevance | path

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

12345678910>>...29

/kernel/linux/linux-5.10/sound/soc/sof/
H A Dops.h21 #define sof_ops(sdev) \
22 ((sdev)->pdata->desc->ops)
27 static inline int snd_sof_probe(struct snd_sof_dev *sdev) in snd_sof_probe() argument
29 return sof_ops(sdev)->probe(sdev); in snd_sof_probe()
32 static inline int snd_sof_remove(struct snd_sof_dev *sdev) in snd_sof_remove() argument
34 if (sof_ops(sdev)->remove) in snd_sof_remove()
35 return sof_ops(sdev)->remove(sdev); in snd_sof_remove()
46 static inline int snd_sof_dsp_run(struct snd_sof_dev *sdev) in snd_sof_dsp_run() argument
51 snd_sof_dsp_stall(struct snd_sof_dev *sdev) snd_sof_dsp_stall() argument
59 snd_sof_dsp_reset(struct snd_sof_dev *sdev) snd_sof_dsp_reset() argument
68 snd_sof_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask) snd_sof_dsp_core_power_up() argument
77 snd_sof_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) snd_sof_dsp_core_power_down() argument
87 snd_sof_dsp_pre_fw_run(struct snd_sof_dev *sdev) snd_sof_dsp_pre_fw_run() argument
95 snd_sof_dsp_post_fw_run(struct snd_sof_dev *sdev) snd_sof_dsp_post_fw_run() argument
114 snd_sof_dsp_get_bar_index(struct snd_sof_dev *sdev, u32 type) snd_sof_dsp_get_bar_index() argument
122 snd_sof_dsp_get_mailbox_offset(struct snd_sof_dev *sdev) snd_sof_dsp_get_mailbox_offset() argument
131 snd_sof_dsp_get_window_offset(struct snd_sof_dev *sdev, u32 id) snd_sof_dsp_get_window_offset() argument
141 snd_sof_dsp_resume(struct snd_sof_dev *sdev) snd_sof_dsp_resume() argument
149 snd_sof_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state) snd_sof_dsp_suspend() argument
158 snd_sof_dsp_runtime_resume(struct snd_sof_dev *sdev) snd_sof_dsp_runtime_resume() argument
166 snd_sof_dsp_runtime_suspend(struct snd_sof_dev *sdev) snd_sof_dsp_runtime_suspend() argument
174 snd_sof_dsp_runtime_idle(struct snd_sof_dev *sdev) snd_sof_dsp_runtime_idle() argument
182 snd_sof_dsp_hw_params_upon_resume(struct snd_sof_dev *sdev) snd_sof_dsp_hw_params_upon_resume() argument
189 snd_sof_dsp_set_clk(struct snd_sof_dev *sdev, u32 freq) snd_sof_dsp_set_clk() argument
198 snd_sof_dsp_set_power_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) snd_sof_dsp_set_power_state() argument
209 snd_sof_dsp_dbg_dump(struct snd_sof_dev *sdev, u32 flags) snd_sof_dsp_dbg_dump() argument
215 snd_sof_ipc_dump(struct snd_sof_dev *sdev) snd_sof_ipc_dump() argument
222 snd_sof_dsp_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, u32 value) snd_sof_dsp_write() argument
233 snd_sof_dsp_write64(struct snd_sof_dev *sdev, u32 bar, u32 offset, u64 value) snd_sof_dsp_write64() argument
244 snd_sof_dsp_read(struct snd_sof_dev *sdev, u32 bar, u32 offset) snd_sof_dsp_read() argument
254 snd_sof_dsp_read64(struct snd_sof_dev *sdev, u32 bar, u32 offset) snd_sof_dsp_read64() argument
265 snd_sof_dsp_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest, size_t bytes) snd_sof_dsp_block_read() argument
271 snd_sof_dsp_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src, size_t bytes) snd_sof_dsp_block_write() argument
278 snd_sof_dsp_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) snd_sof_dsp_send_msg() argument
285 snd_sof_dma_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag) snd_sof_dma_trace_init() argument
294 snd_sof_dma_trace_release(struct snd_sof_dev *sdev) snd_sof_dma_trace_release() argument
302 snd_sof_dma_trace_trigger(struct snd_sof_dev *sdev, int cmd) snd_sof_dma_trace_trigger() argument
312 snd_sof_pcm_platform_open(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) snd_sof_pcm_platform_open() argument
323 snd_sof_pcm_platform_close(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) snd_sof_pcm_platform_close() argument
334 snd_sof_pcm_platform_hw_params(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct sof_ipc_stream_params *ipc_params) snd_sof_pcm_platform_hw_params() argument
348 snd_sof_pcm_platform_hw_free(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) snd_sof_pcm_platform_hw_free() argument
359 snd_sof_pcm_platform_trigger(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream, int cmd) snd_sof_pcm_platform_trigger() argument
369 snd_sof_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream, void *p, size_t sz) snd_sof_ipc_msg_data() argument
378 snd_sof_ipc_pcm_params(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream, const struct sof_ipc_pcm_params_reply *reply) snd_sof_ipc_pcm_params() argument
387 snd_sof_pcm_platform_pointer(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) snd_sof_pcm_platform_pointer() argument
398 snd_sof_probe_compr_assign(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) snd_sof_probe_compr_assign() argument
405 snd_sof_probe_compr_free(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) snd_sof_probe_compr_free() argument
412 snd_sof_probe_compr_set_params(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_compr_params *params, struct snd_soc_dai *dai) snd_sof_probe_compr_set_params() argument
420 snd_sof_probe_compr_trigger(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) snd_sof_probe_compr_trigger() argument
428 snd_sof_probe_compr_pointer(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) snd_sof_probe_compr_pointer() argument
441 snd_sof_machine_register(struct snd_sof_dev *sdev, void *pdata) snd_sof_machine_register() argument
450 snd_sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata) snd_sof_machine_unregister() argument
457 snd_sof_machine_select(struct snd_sof_dev *sdev) snd_sof_machine_select() argument
467 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_set_mach_params() local
[all...]
H A Dcore.c60 void snd_sof_get_status(struct snd_sof_dev *sdev, u32 panic_code, in snd_sof_get_status() argument
70 dev_err(sdev->dev, "error: unexpected fault 0x%8.8x trace 0x%8.8x\n", in snd_sof_get_status()
79 dev_err(sdev->dev, "error: %s\n", panic_msg[i].msg); in snd_sof_get_status()
80 dev_err(sdev->dev, "error: trace point %8.8x\n", in snd_sof_get_status()
87 dev_err(sdev->dev, "error: unknown reason %8.8x\n", panic_code); in snd_sof_get_status()
88 dev_err(sdev->dev, "error: trace point %8.8x\n", tracep_code); in snd_sof_get_status()
91 dev_err(sdev->dev, "error: panic at %s:%d\n", in snd_sof_get_status()
93 sof_oops(sdev, oops); in snd_sof_get_status()
94 sof_stack(sdev, oops, stack, stack_words); in snd_sof_get_status()
138 static int sof_probe_continue(struct snd_sof_dev *sdev) in sof_probe_continue() argument
271 struct snd_sof_dev *sdev = sof_probe_work() local
284 struct snd_sof_dev *sdev; snd_sof_device_probe() local
344 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_remove() local
[all...]
H A Dtrace.c16 static size_t sof_trace_avail(struct snd_sof_dev *sdev, in sof_trace_avail() argument
19 loff_t host_offset = READ_ONCE(sdev->host_offset); in sof_trace_avail()
36 static size_t sof_wait_trace_avail(struct snd_sof_dev *sdev, in sof_wait_trace_avail() argument
40 size_t ret = sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail()
46 if (!sdev->dtrace_is_enabled && sdev->dtrace_draining) { in sof_wait_trace_avail()
51 sdev->dtrace_draining = false; in sof_wait_trace_avail()
58 add_wait_queue(&sdev->trace_sleep, &wait); in sof_wait_trace_avail()
64 remove_wait_queue(&sdev->trace_sleep, &wait); in sof_wait_trace_avail()
66 return sof_trace_avail(sdev, po in sof_wait_trace_avail()
73 struct snd_sof_dev *sdev = dfse->sdev; sof_dfsentry_trace_read() local
119 struct snd_sof_dev *sdev = dfse->sdev; sof_dfsentry_trace_release() local
135 trace_debugfs_create(struct snd_sof_dev *sdev) trace_debugfs_create() argument
157 snd_sof_init_trace_ipc(struct snd_sof_dev *sdev) snd_sof_init_trace_ipc() argument
224 snd_sof_init_trace(struct snd_sof_dev *sdev) snd_sof_init_trace() argument
283 snd_sof_trace_update_pos(struct snd_sof_dev *sdev, struct sof_ipc_dma_trace_posn *posn) snd_sof_trace_update_pos() argument
303 snd_sof_trace_notify_for_error(struct snd_sof_dev *sdev) snd_sof_trace_notify_for_error() argument
316 snd_sof_release_trace(struct snd_sof_dev *sdev) snd_sof_release_trace() argument
339 snd_sof_free_trace(struct snd_sof_dev *sdev) snd_sof_free_trace() argument
[all...]
H A Dloader.c18 static int get_ext_windows(struct snd_sof_dev *sdev, in get_ext_windows() argument
27 if (sdev->info_window) { in get_ext_windows()
28 if (memcmp(sdev->info_window, w, ext_hdr->hdr.size)) { in get_ext_windows()
29 dev_err(sdev->dev, "error: mismatch between window descriptor from extended manifest and mailbox"); in get_ext_windows()
36 sdev->info_window = devm_kmemdup(sdev->dev, w, ext_hdr->hdr.size, in get_ext_windows()
38 if (!sdev->info_window) in get_ext_windows()
44 static int get_cc_info(struct snd_sof_dev *sdev, in get_cc_info() argument
52 if (sdev->cc_version) { in get_cc_info()
53 if (memcmp(sdev in get_cc_info()
89 snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset) snd_sof_fw_parse_ext_data() argument
151 ext_man_get_fw_version(struct snd_sof_dev *sdev, const struct sof_ext_man_elem_header *hdr) ext_man_get_fw_version() argument
164 ext_man_get_windows(struct snd_sof_dev *sdev, const struct sof_ext_man_elem_header *hdr) ext_man_get_windows() argument
174 ext_man_get_cc_info(struct snd_sof_dev *sdev, const struct sof_ext_man_elem_header *hdr) ext_man_get_cc_info() argument
184 ext_man_get_dbg_abi_info(struct snd_sof_dev *sdev, const struct sof_ext_man_elem_header *hdr) ext_man_get_dbg_abi_info() argument
226 snd_sof_fw_ext_man_parse(struct snd_sof_dev *sdev, const struct firmware *fw) snd_sof_fw_ext_man_parse() argument
309 sof_get_windows(struct snd_sof_dev *sdev) sof_get_windows() argument
438 sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id) sof_fw_ready() argument
484 snd_sof_parse_module_memcpy(struct snd_sof_dev *sdev, struct snd_sof_mod_hdr *module) snd_sof_parse_module_memcpy() argument
568 check_header(struct snd_sof_dev *sdev, const struct firmware *fw, size_t fw_offset) check_header() argument
602 load_modules(struct snd_sof_dev *sdev, const struct firmware *fw, size_t fw_offset) load_modules() argument
658 snd_sof_load_firmware_raw(struct snd_sof_dev *sdev) snd_sof_load_firmware_raw() argument
707 snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev) snd_sof_load_firmware_memcpy() argument
747 snd_sof_load_firmware(struct snd_sof_dev *sdev) snd_sof_load_firmware() argument
757 snd_sof_run_firmware(struct snd_sof_dev *sdev) snd_sof_run_firmware() argument
830 snd_sof_fw_unload(struct snd_sof_dev *sdev) snd_sof_fw_unload() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/
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) in sof_ops_init() argument
26 if (sdev->pdata->desc->ops_init) in sof_ops_init()
27 return sdev->pdata->desc->ops_init(sdev); in sof_ops_init()
32 static inline void sof_ops_free(struct snd_sof_dev *sdev) in sof_ops_free() argument
34 if (sdev->pdata->desc->ops_free) in sof_ops_free()
35 sdev->pdata->desc->ops_free(sdev); in sof_ops_free()
41 snd_sof_probe(struct snd_sof_dev *sdev) snd_sof_probe() argument
46 snd_sof_remove(struct snd_sof_dev *sdev) snd_sof_remove() argument
54 snd_sof_shutdown(struct snd_sof_dev *sdev) snd_sof_shutdown() argument
68 snd_sof_dsp_run(struct snd_sof_dev *sdev) snd_sof_dsp_run() argument
73 snd_sof_dsp_stall(struct snd_sof_dev *sdev, unsigned int core_mask) snd_sof_dsp_stall() argument
81 snd_sof_dsp_reset(struct snd_sof_dev *sdev) snd_sof_dsp_reset() argument
90 snd_sof_dsp_core_get(struct snd_sof_dev *sdev, int core) snd_sof_dsp_core_get() argument
124 snd_sof_dsp_core_put(struct snd_sof_dev *sdev, int core) snd_sof_dsp_core_put() argument
154 snd_sof_dsp_pre_fw_run(struct snd_sof_dev *sdev) snd_sof_dsp_pre_fw_run() argument
162 snd_sof_dsp_post_fw_run(struct snd_sof_dev *sdev) snd_sof_dsp_post_fw_run() argument
171 snd_sof_dsp_parse_platform_ext_manifest(struct snd_sof_dev *sdev, const struct sof_ext_man_elem_header *hdr) snd_sof_dsp_parse_platform_ext_manifest() argument
191 snd_sof_dsp_get_bar_index(struct snd_sof_dev *sdev, u32 type) snd_sof_dsp_get_bar_index() argument
199 snd_sof_dsp_get_mailbox_offset(struct snd_sof_dev *sdev) snd_sof_dsp_get_mailbox_offset() argument
208 snd_sof_dsp_get_window_offset(struct snd_sof_dev *sdev, u32 id) snd_sof_dsp_get_window_offset() argument
218 snd_sof_dsp_resume(struct snd_sof_dev *sdev) snd_sof_dsp_resume() argument
226 snd_sof_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state) snd_sof_dsp_suspend() argument
235 snd_sof_dsp_runtime_resume(struct snd_sof_dev *sdev) snd_sof_dsp_runtime_resume() argument
243 snd_sof_dsp_runtime_suspend(struct snd_sof_dev *sdev) snd_sof_dsp_runtime_suspend() argument
251 snd_sof_dsp_runtime_idle(struct snd_sof_dev *sdev) snd_sof_dsp_runtime_idle() argument
259 snd_sof_dsp_hw_params_upon_resume(struct snd_sof_dev *sdev) snd_sof_dsp_hw_params_upon_resume() argument
266 snd_sof_dsp_set_clk(struct snd_sof_dev *sdev, u32 freq) snd_sof_dsp_set_clk() argument
275 snd_sof_dsp_set_power_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) snd_sof_dsp_set_power_state() argument
293 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) snd_sof_debugfs_add_region_item() argument
305 snd_sof_dsp_write8(struct snd_sof_dev *sdev, u32 bar, u32 offset, u8 value) snd_sof_dsp_write8() argument
314 snd_sof_dsp_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, u32 value) snd_sof_dsp_write() argument
323 snd_sof_dsp_write64(struct snd_sof_dev *sdev, u32 bar, u32 offset, u64 value) snd_sof_dsp_write64() argument
332 snd_sof_dsp_read8(struct snd_sof_dev *sdev, u32 bar, u32 offset) snd_sof_dsp_read8() argument
341 snd_sof_dsp_read(struct snd_sof_dev *sdev, u32 bar, u32 offset) snd_sof_dsp_read() argument
350 snd_sof_dsp_read64(struct snd_sof_dev *sdev, u32 bar, u32 offset) snd_sof_dsp_read64() argument
359 snd_sof_dsp_update8(struct snd_sof_dev *sdev, u32 bar, u32 offset, u8 mask, u8 value) snd_sof_dsp_update8() argument
371 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) snd_sof_dsp_block_read() argument
378 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) snd_sof_dsp_block_write() argument
386 snd_sof_dsp_mailbox_read(struct snd_sof_dev *sdev, u32 offset, void *dest, size_t bytes) snd_sof_dsp_mailbox_read() argument
393 snd_sof_dsp_mailbox_write(struct snd_sof_dev *sdev, u32 offset, void *src, size_t bytes) snd_sof_dsp_mailbox_write() argument
401 snd_sof_dsp_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) snd_sof_dsp_send_msg() argument
409 snd_sof_pcm_platform_open(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) snd_sof_pcm_platform_open() argument
420 snd_sof_pcm_platform_close(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) snd_sof_pcm_platform_close() argument
431 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) snd_sof_pcm_platform_hw_params() argument
445 snd_sof_pcm_platform_hw_free(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) snd_sof_pcm_platform_hw_free() argument
456 snd_sof_pcm_platform_trigger(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream, int cmd) snd_sof_pcm_platform_trigger() argument
466 snd_sof_load_firmware(struct snd_sof_dev *sdev) snd_sof_load_firmware() argument
474 snd_sof_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, void *p, size_t sz) snd_sof_ipc_msg_data() argument
482 snd_sof_set_stream_data_offset(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, size_t posn_offset) snd_sof_set_stream_data_offset() argument
495 snd_sof_pcm_platform_pointer(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) snd_sof_pcm_platform_pointer() argument
505 snd_sof_pcm_platform_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream) snd_sof_pcm_platform_ack() argument
514 snd_sof_pcm_get_stream_position(struct snd_sof_dev *sdev, struct snd_soc_component *component, struct snd_pcm_substream *substream) snd_sof_pcm_get_stream_position() argument
526 snd_sof_machine_register(struct snd_sof_dev *sdev, void *pdata) snd_sof_machine_register() argument
535 snd_sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata) snd_sof_machine_unregister() argument
542 snd_sof_machine_select(struct snd_sof_dev *sdev) snd_sof_machine_select() argument
551 snd_sof_set_mach_params(struct snd_soc_acpi_mach *mach, struct snd_sof_dev *sdev) snd_sof_set_mach_params() argument
[all...]
H A Dcore.c73 * @sdev: Pointer to the device's sdev
86 void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level, in sof_print_oops_and_stack() argument
96 dev_printk(level, sdev->dev, "unexpected fault %#010x trace %#010x\n", in sof_print_oops_and_stack()
105 dev_printk(level, sdev->dev, "reason: %s (%#x)\n", in sof_print_oops_and_stack()
107 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack()
113 dev_printk(level, sdev->dev, "unknown panic code: %#x\n", in sof_print_oops_and_stack()
115 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack()
118 dev_printk(level, sdev->dev, "panic at %s:%d\n", panic_info->filename, in sof_print_oops_and_stack()
120 sof_oops(sdev, leve in sof_print_oops_and_stack()
126 sof_set_fw_state(struct snd_sof_dev *sdev, enum sof_fw_state new_state) sof_set_fw_state() argument
186 sof_probe_continue(struct snd_sof_dev *sdev) sof_probe_continue() argument
341 struct snd_sof_dev *sdev = sof_probe_work() local
354 struct snd_sof_dev *sdev; snd_sof_device_probe() local
451 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_probe_completed() local
459 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_remove() local
505 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_shutdown() local
[all...]
H A Dloader.c17 int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev) in snd_sof_load_firmware_raw() argument
19 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_raw()
25 if (sdev->basefw.fw) in snd_sof_load_firmware_raw()
34 ret = request_firmware(&sdev->basefw.fw, fw_filename, sdev->dev); in snd_sof_load_firmware_raw()
37 dev_err(sdev->dev, in snd_sof_load_firmware_raw()
39 dev_err(sdev->dev, in snd_sof_load_firmware_raw()
43 dev_dbg(sdev->dev, "request_firmware %s successful\n", in snd_sof_load_firmware_raw()
48 ext_man_size = sdev->ipc->ops->fw_loader->parse_ext_manifest(sdev); in snd_sof_load_firmware_raw()
68 snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev) snd_sof_load_firmware_memcpy() argument
109 snd_sof_run_firmware(struct snd_sof_dev *sdev) snd_sof_run_firmware() argument
184 snd_sof_fw_unload(struct snd_sof_dev *sdev) snd_sof_fw_unload() argument
[all...]
H A Dpm.c21 static u32 snd_sof_dsp_power_target(struct snd_sof_dev *sdev) in snd_sof_dsp_power_target() argument
25 switch (sdev->system_suspend_target) { in snd_sof_dsp_power_target()
40 if (snd_sof_stream_suspend_ignored(sdev)) in snd_sof_dsp_power_target()
55 static void sof_cache_debugfs(struct snd_sof_dev *sdev) in sof_cache_debugfs() argument
59 list_for_each_entry(dfse, &sdev->dfsentry_list, list) { in sof_cache_debugfs()
75 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sof_resume() local
76 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in sof_resume()
77 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_resume()
78 u32 old_state = sdev->dsp_power_state.state; in sof_resume()
82 if (!runtime_resume && !sof_ops(sdev) in sof_resume()
198 struct snd_sof_dev *sdev = dev_get_drvdata(dev); sof_suspend() local
296 snd_sof_dsp_power_down_notify(struct snd_sof_dev *sdev) snd_sof_dsp_power_down_notify() argument
315 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_runtime_idle() local
341 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_prepare() local
385 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_complete() local
[all...]
H A Dsof-client.c73 static int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument
78 if (sdev->pdata->ipc_type != SOF_IPC) in sof_register_ipc_flood_test()
82 ret = sof_client_dev_register(sdev, "ipc_flood", i, NULL, 0); in sof_register_ipc_flood_test()
89 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_register_ipc_flood_test()
95 static void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) in sof_unregister_ipc_flood_test() argument
100 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_unregister_ipc_flood_test()
103 static inline int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument
108 static inline void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) {} in sof_unregister_ipc_flood_test() argument
112 static int sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) in sof_register_ipc_msg_injector() argument
114 return sof_client_dev_register(sdev, "msg_injecto in sof_register_ipc_msg_injector()
117 sof_unregister_ipc_msg_injector(struct snd_sof_dev *sdev) sof_unregister_ipc_msg_injector() argument
122 sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) sof_register_ipc_msg_injector() argument
127 sof_unregister_ipc_msg_injector(struct snd_sof_dev *sdev) sof_unregister_ipc_msg_injector() argument
131 sof_register_ipc_kernel_injector(struct snd_sof_dev *sdev) sof_register_ipc_kernel_injector() argument
140 sof_unregister_ipc_kernel_injector(struct snd_sof_dev *sdev) sof_unregister_ipc_kernel_injector() argument
145 sof_register_ipc_kernel_injector(struct snd_sof_dev *sdev) sof_register_ipc_kernel_injector() argument
150 sof_unregister_ipc_kernel_injector(struct snd_sof_dev *sdev) sof_unregister_ipc_kernel_injector() argument
153 sof_register_clients(struct snd_sof_dev *sdev) sof_register_clients() argument
198 sof_unregister_clients(struct snd_sof_dev *sdev) sof_unregister_clients() argument
208 sof_client_dev_register(struct snd_sof_dev *sdev, const char *name, u32 id, const void *data, size_t size) sof_client_dev_register() argument
264 sof_client_dev_unregister(struct snd_sof_dev *sdev, const char *name, u32 id) sof_client_dev_unregister() argument
346 struct snd_sof_dev *sdev = c->sdev; sof_client_ipc4_find_module() local
357 sof_suspend_clients(struct snd_sof_dev *sdev, pm_message_t state) sof_suspend_clients() argument
380 sof_resume_clients(struct snd_sof_dev *sdev) sof_resume_clients() argument
418 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_get_fw_version() local
426 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_get_ipc_max_payload_size() local
434 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_get_ipc_type() local
443 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_core_module_get() local
454 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_core_module_put() local
461 sof_client_ipc_rx_dispatcher(struct snd_sof_dev *sdev, void *msg_buf) sof_client_ipc_rx_dispatcher() argument
494 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_register_ipc_rx_handler() local
532 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_unregister_ipc_rx_handler() local
550 sof_client_fw_state_dispatcher(struct snd_sof_dev *sdev) sof_client_fw_state_dispatcher() argument
565 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_register_fw_state_handler() local
589 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_unregister_fw_state_handler() local
608 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); sof_client_get_fw_state() local
[all...]
H A Dipc3.c18 typedef void (*ipc3_rx_callback)(struct snd_sof_dev *sdev, void *msg_buf);
226 static void sof_ipc3_dump_payload(struct snd_sof_dev *sdev, in sof_ipc3_dump_payload() argument
234 static int sof_ipc3_get_reply(struct snd_sof_dev *sdev) in sof_ipc3_get_reply() argument
236 struct snd_sof_ipc_msg *msg = sdev->msg; in sof_ipc3_get_reply()
242 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, reply, sizeof(*reply)); in sof_ipc3_get_reply()
250 dev_err(sdev->dev, in sof_ipc3_get_reply()
254 dev_err(sdev->dev, "empty reply received\n"); in sof_ipc3_get_reply()
263 dev_dbg(sdev->dev, in sof_ipc3_get_reply()
270 dev_err(sdev in sof_ipc3_get_reply()
293 struct snd_sof_dev *sdev = ipc->sdev; ipc3_wait_tx_done() local
337 struct snd_sof_dev *sdev = ipc->sdev; ipc3_tx_msg_unlocked() local
355 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) sof_ipc3_tx_msg() argument
413 sof_ipc3_set_get_data(struct snd_sof_dev *sdev, void *data, size_t data_bytes, bool set) sof_ipc3_set_get_data() argument
521 sof_ipc3_get_ext_windows(struct snd_sof_dev *sdev, const struct sof_ipc_ext_data_hdr *ext_hdr) sof_ipc3_get_ext_windows() argument
546 sof_ipc3_get_cc_info(struct snd_sof_dev *sdev, const struct sof_ipc_ext_data_hdr *ext_hdr) sof_ipc3_get_cc_info() argument
589 ipc3_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 offset) ipc3_fw_parse_ext_data() argument
651 ipc3_get_windows(struct snd_sof_dev *sdev) ipc3_get_windows() argument
765 ipc3_init_reply_data_buffer(struct snd_sof_dev *sdev) ipc3_init_reply_data_buffer() argument
778 sof_ipc3_validate_fw_version(struct snd_sof_dev *sdev) sof_ipc3_validate_fw_version() argument
825 ipc3_fw_ready(struct snd_sof_dev *sdev, u32 cmd) ipc3_fw_ready() argument
870 ipc3_period_elapsed(struct snd_sof_dev *sdev, u32 msg_id) ipc3_period_elapsed() argument
905 ipc3_xrun(struct snd_sof_dev *sdev, u32 msg_id) ipc3_xrun() argument
938 ipc3_stream_message(struct snd_sof_dev *sdev, void *msg_buf) ipc3_stream_message() argument
959 ipc3_comp_notification(struct snd_sof_dev *sdev, void *msg_buf) ipc3_comp_notification() argument
978 ipc3_trace_message(struct snd_sof_dev *sdev, void *msg_buf) ipc3_trace_message() argument
993 sof_ipc3_do_rx_work(struct snd_sof_dev *sdev, struct sof_ipc_cmd_hdr *hdr, void *msg_buf) sof_ipc3_do_rx_work() argument
1057 sof_ipc3_rx_msg(struct snd_sof_dev *sdev) sof_ipc3_rx_msg() argument
1092 sof_ipc3_set_core_state(struct snd_sof_dev *sdev, int core_idx, bool on) sof_ipc3_set_core_state() argument
1107 sof_ipc3_ctx_ipc(struct snd_sof_dev *sdev, int cmd) sof_ipc3_ctx_ipc() argument
1118 sof_ipc3_ctx_save(struct snd_sof_dev *sdev) sof_ipc3_ctx_save() argument
1123 sof_ipc3_ctx_restore(struct snd_sof_dev *sdev) sof_ipc3_ctx_restore() argument
1128 sof_ipc3_set_pm_gate(struct snd_sof_dev *sdev, u32 flags) sof_ipc3_set_pm_gate() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/intel/
H A Dhda-dsp.c39 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument
47 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
52 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
58 dev_err(sdev->dev, in hda_dsp_core_reset_enter()
65 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
69 dev_err(sdev->dev, in hda_dsp_core_reset_enter()
78 static int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument
85 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
92 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
99 dev_err(sdev in hda_dsp_core_reset_leave()
118 hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_stall_reset() argument
130 hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_is_enabled() argument
155 hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_run() argument
186 hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_power_up() argument
233 hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_power_down() argument
256 hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_enable_core() argument
280 hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_reset_power_down() argument
320 hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev) hda_dsp_ipc_int_enable() argument
338 hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev) hda_dsp_ipc_int_disable() argument
355 hda_dsp_wait_d0i3c_done(struct snd_sof_dev *sdev) hda_dsp_wait_d0i3c_done() argument
372 hda_dsp_send_pm_gate_ipc(struct snd_sof_dev *sdev, u32 flags) hda_dsp_send_pm_gate_ipc() argument
382 hda_dsp_update_d0i3c_register(struct snd_sof_dev *sdev, u8 value) hda_dsp_update_d0i3c_register() argument
431 hda_dsp_d0i3_streaming_applicable(struct snd_sof_dev *sdev) hda_dsp_d0i3_streaming_applicable() argument
455 hda_dsp_set_D0_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) hda_dsp_set_D0_state() argument
537 hda_dsp_state_log(struct snd_sof_dev *sdev) hda_dsp_state_log() argument
577 hda_dsp_set_power_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) hda_dsp_set_power_state() argument
613 hda_dsp_set_power_state_ipc3(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) hda_dsp_set_power_state_ipc3() argument
638 hda_dsp_set_power_state_ipc4(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) hda_dsp_set_power_state_ipc4() argument
679 hda_suspend(struct snd_sof_dev *sdev, bool runtime_suspend) hda_suspend() argument
746 hda_resume(struct snd_sof_dev *sdev, bool runtime_resume) hda_resume() argument
787 hda_dsp_resume(struct snd_sof_dev *sdev) hda_dsp_resume() argument
839 hda_dsp_runtime_resume(struct snd_sof_dev *sdev) hda_dsp_runtime_resume() argument
854 hda_dsp_runtime_idle(struct snd_sof_dev *sdev) hda_dsp_runtime_idle() argument
867 hda_dsp_runtime_suspend(struct snd_sof_dev *sdev) hda_dsp_runtime_suspend() argument
888 hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state) hda_dsp_suspend() argument
948 hda_dsp_check_for_dma_streams(struct snd_sof_dev *sdev) hda_dsp_check_for_dma_streams() argument
967 hda_dsp_s5_quirk(struct snd_sof_dev *sdev) hda_dsp_s5_quirk() argument
997 hda_dsp_shutdown_dma_flush(struct snd_sof_dev *sdev) hda_dsp_shutdown_dma_flush() argument
1020 hda_dsp_shutdown(struct snd_sof_dev *sdev) hda_dsp_shutdown() argument
1026 hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev) hda_dsp_set_hw_params_upon_resume() argument
1044 struct snd_sof_dev *sdev = dev_get_drvdata(bus->dev); hda_dsp_d0i3_work() local
1064 hda_dsp_core_get(struct snd_sof_dev *sdev, int core) hda_dsp_core_get() argument
1104 hda_dsp_disable_interrupts(struct snd_sof_dev *sdev) hda_dsp_disable_interrupts() argument
[all...]
H A Dhda.c48 static u32 hda_get_interface_mask(struct snd_sof_dev *sdev) in hda_get_interface_mask() argument
53 chip = get_chip_info(sdev->pdata); in hda_get_interface_mask()
83 return interface_mask[sdev->dspless_mode_selected]; in hda_get_interface_mask()
143 void hda_common_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable) in hda_common_enable_sdw_irq() argument
147 hdev = sdev->pdata->hw_pdata; in hda_common_enable_sdw_irq()
152 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIC2, in hda_common_enable_sdw_irq()
157 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable() argument
159 u32 interface_mask = hda_get_interface_mask(sdev); in hda_sdw_int_enable()
165 chip = get_chip_info(sdev->pdata); in hda_sdw_int_enable()
167 chip->enable_sdw_irq(sdev, enabl in hda_sdw_int_enable()
170 hda_sdw_acpi_scan(struct snd_sof_dev *sdev) hda_sdw_acpi_scan() argument
192 hda_sdw_probe(struct snd_sof_dev *sdev) hda_sdw_probe() argument
261 hda_sdw_check_lcount_common(struct snd_sof_dev *sdev) hda_sdw_check_lcount_common() argument
284 hda_sdw_check_lcount_ext(struct snd_sof_dev *sdev) hda_sdw_check_lcount_ext() argument
309 hda_sdw_check_lcount(struct snd_sof_dev *sdev) hda_sdw_check_lcount() argument
320 hda_sdw_startup(struct snd_sof_dev *sdev) hda_sdw_startup() argument
341 hda_sdw_exit(struct snd_sof_dev *sdev) hda_sdw_exit() argument
356 hda_common_check_sdw_irq(struct snd_sof_dev *sdev) hda_common_check_sdw_irq() argument
382 hda_dsp_check_sdw_irq(struct snd_sof_dev *sdev) hda_dsp_check_sdw_irq() argument
402 hda_sdw_check_wakeen_irq_common(struct snd_sof_dev *sdev) hda_sdw_check_wakeen_irq_common() argument
415 hda_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) hda_sdw_check_wakeen_irq() argument
430 hda_sdw_process_wakeen(struct snd_sof_dev *sdev) hda_sdw_process_wakeen() argument
446 hda_sdw_acpi_scan(struct snd_sof_dev *sdev) hda_sdw_acpi_scan() argument
451 hda_sdw_probe(struct snd_sof_dev *sdev) hda_sdw_probe() argument
456 hda_sdw_exit(struct snd_sof_dev *sdev) hda_sdw_exit() argument
461 hda_dsp_check_sdw_irq(struct snd_sof_dev *sdev) hda_dsp_check_sdw_irq() argument
471 hda_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) hda_sdw_check_wakeen_irq() argument
598 hda_dsp_get_state(struct snd_sof_dev *sdev, const char *level) hda_dsp_get_state() argument
662 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) hda_dsp_get_registers() argument
691 hda_dsp_dump_ext_rom_status(struct snd_sof_dev *sdev, const char *level, u32 flags) hda_dsp_dump_ext_rom_status() argument
710 hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags) hda_dsp_dump() argument
734 hda_check_ipc_irq(struct snd_sof_dev *sdev) hda_check_ipc_irq() argument
745 hda_ipc_irq_dump(struct snd_sof_dev *sdev) hda_ipc_irq_dump() argument
765 hda_ipc_dump(struct snd_sof_dev *sdev) hda_ipc_dump() argument
784 hda_ipc4_dump(struct snd_sof_dev *sdev) hda_ipc4_dump() argument
802 hda_ipc4_tx_is_busy(struct snd_sof_dev *sdev) hda_ipc4_tx_is_busy() argument
813 hda_init(struct snd_sof_dev *sdev) hda_init() argument
862 check_dmic_num(struct snd_sof_dev *sdev) check_dmic_num() argument
888 check_nhlt_ssp_mask(struct snd_sof_dev *sdev) check_nhlt_ssp_mask() argument
907 check_nhlt_ssp_mclk_mask(struct snd_sof_dev *sdev, int ssp_num) check_nhlt_ssp_mclk_mask() argument
921 fixup_tplg_name(struct snd_sof_dev *sdev, const char *sof_tplg_filename, const char *idisp_str, const char *dmic_str) fixup_tplg_name() argument
946 dmic_detect_topology_fixup(struct snd_sof_dev *sdev, const char **tplg_filename, const char *idisp_str, int *dmic_found, bool tplg_fixup) dmic_detect_topology_fixup() argument
995 hda_init_caps(struct snd_sof_dev *sdev) hda_init_caps() argument
1063 struct snd_sof_dev *sdev = context; hda_dsp_interrupt_handler() local
1086 struct snd_sof_dev *sdev = context; hda_dsp_interrupt_thread() local
1121 hda_dsp_probe(struct snd_sof_dev *sdev) hda_dsp_probe() argument
1306 hda_dsp_remove(struct snd_sof_dev *sdev) hda_dsp_remove() argument
1370 hda_power_down_dsp(struct snd_sof_dev *sdev) hda_power_down_dsp() argument
1379 hda_generic_machine_select(struct snd_sof_dev *sdev, struct snd_soc_acpi_mach **mach) hda_generic_machine_select() argument
1471 hda_generic_machine_select(struct snd_sof_dev *sdev, struct snd_soc_acpi_mach **mach) hda_generic_machine_select() argument
1479 hda_sdw_machine_select(struct snd_sof_dev *sdev) hda_sdw_machine_select() argument
1580 hda_sdw_machine_select(struct snd_sof_dev *sdev) hda_sdw_machine_select() argument
1586 hda_set_mach_params(struct snd_soc_acpi_mach *mach, struct snd_sof_dev *sdev) hda_set_mach_params() argument
1603 hda_machine_select(struct snd_sof_dev *sdev) hda_machine_select() argument
1750 hda_register_clients(struct snd_sof_dev *sdev) hda_register_clients() argument
1755 hda_unregister_clients(struct snd_sof_dev *sdev) hda_unregister_clients() argument
[all...]
H A Dmtl.c28 static void mtl_ipc_host_done(struct snd_sof_dev *sdev) in mtl_ipc_host_done() argument
34 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDR, in mtl_ipc_host_done()
39 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDA, in mtl_ipc_host_done()
43 static void mtl_ipc_dsp_done(struct snd_sof_dev *sdev) in mtl_ipc_dsp_done() argument
49 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXIDA, in mtl_ipc_dsp_done()
53 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXCTL, in mtl_ipc_dsp_done()
58 bool mtl_dsp_check_ipc_irq(struct snd_sof_dev *sdev) in mtl_dsp_check_ipc_irq() argument
63 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq()
67 hfintipptr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, MTL_HFINTIPPTR) & MTL_HFINTIPPTR_PTR_MASK; in mtl_dsp_check_ipc_irq()
68 irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BA in mtl_dsp_check_ipc_irq()
79 mtl_dsp_check_sdw_irq(struct snd_sof_dev *sdev) mtl_dsp_check_sdw_irq() argument
94 mtl_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) mtl_ipc_send_msg() argument
121 mtl_enable_ipc_interrupts(struct snd_sof_dev *sdev) mtl_enable_ipc_interrupts() argument
135 mtl_disable_ipc_interrupts(struct snd_sof_dev *sdev) mtl_disable_ipc_interrupts() argument
148 mtl_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable) mtl_enable_sdw_irq() argument
176 mtl_enable_interrupts(struct snd_sof_dev *sdev, bool enable) mtl_enable_interrupts() argument
233 mtl_dsp_pre_fw_run(struct snd_sof_dev *sdev) mtl_dsp_pre_fw_run() argument
282 mtl_dsp_post_fw_run(struct snd_sof_dev *sdev) mtl_dsp_post_fw_run() argument
304 mtl_dsp_dump(struct snd_sof_dev *sdev, u32 flags) mtl_dsp_dump() argument
325 mtl_dsp_primary_core_is_enabled(struct snd_sof_dev *sdev) mtl_dsp_primary_core_is_enabled() argument
336 mtl_dsp_core_power_up(struct snd_sof_dev *sdev, int core) mtl_dsp_core_power_up() argument
377 mtl_dsp_core_power_down(struct snd_sof_dev *sdev, int core) mtl_dsp_core_power_down() argument
408 mtl_power_down_dsp(struct snd_sof_dev *sdev) mtl_power_down_dsp() argument
435 mtl_dsp_cl_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot) mtl_dsp_cl_init() argument
501 struct snd_sof_dev *sdev = context; mtl_ipc_irq_thread() local
581 mtl_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) mtl_dsp_ipc_get_mailbox_offset() argument
586 mtl_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) mtl_dsp_ipc_get_window_offset() argument
591 mtl_ipc_dump(struct snd_sof_dev *sdev) mtl_ipc_dump() argument
608 mtl_dsp_disable_interrupts(struct snd_sof_dev *sdev) mtl_dsp_disable_interrupts() argument
615 mtl_dsp_get_stream_hda_link_position(struct snd_sof_dev *sdev, struct snd_soc_component *component, struct snd_pcm_substream *substream) mtl_dsp_get_stream_hda_link_position() argument
627 mtl_dsp_core_get(struct snd_sof_dev *sdev, int core) mtl_dsp_core_get() argument
640 mtl_dsp_core_put(struct snd_sof_dev *sdev, int core) mtl_dsp_core_put() argument
661 sof_mtl_ops_init(struct snd_sof_dev *sdev) sof_mtl_ops_init() argument
[all...]
H A Dhda-loader.c29 static void hda_ssp_set_cbp_cfp(struct snd_sof_dev *sdev) in hda_ssp_set_cbp_cfp() argument
31 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_ssp_set_cbp_cfp()
37 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_ssp_set_cbp_cfp()
46 struct hdac_ext_stream *hda_cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format, in hda_cl_stream_prepare() argument
52 struct pci_dev *pci = to_pci_dev(sdev->dev); in hda_cl_stream_prepare()
55 hext_stream = hda_dsp_stream_get(sdev, direction, 0); in hda_cl_stream_prepare()
58 dev_err(sdev->dev, "error: no stream available\n"); in hda_cl_stream_prepare()
67 dev_err(sdev->dev, "error: memory alloc failed: %d\n", ret); in hda_cl_stream_prepare()
76 ret = hda_dsp_iccmax_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_stream_prepare()
78 dev_err(sdev in hda_cl_stream_prepare()
104 cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot) cl_dsp_init() argument
222 cl_trigger(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream, int cmd) cl_trigger() argument
249 hda_cl_cleanup(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, struct hdac_ext_stream *hext_stream) hda_cl_cleanup() argument
281 hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream) hda_cl_copy_fw() argument
321 hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev) hda_dsp_cl_boot_firmware_iccmax() argument
365 hda_dsp_boot_imr(struct snd_sof_dev *sdev) hda_dsp_boot_imr() argument
382 hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev) hda_dsp_cl_boot_firmware() argument
519 hda_dsp_ipc4_load_library(struct snd_sof_dev *sdev, struct sof_ipc4_fw_library *fw_lib, bool reload) hda_dsp_ipc4_load_library() argument
584 hda_dsp_pre_fw_run(struct snd_sof_dev *sdev) hda_dsp_pre_fw_run() argument
591 hda_dsp_post_fw_run(struct snd_sof_dev *sdev) hda_dsp_post_fw_run() argument
618 hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev *sdev, const struct sof_ext_man_elem_header *hdr) hda_dsp_ext_man_get_cavs_config_data() argument
[all...]
H A Dbdw.c76 static void bdw_host_done(struct snd_sof_dev *sdev);
77 static void bdw_dsp_done(struct snd_sof_dev *sdev);
83 static int bdw_run(struct snd_sof_dev *sdev) in bdw_run() argument
86 snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC, in bdw_run()
91 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_run()
98 static int bdw_reset(struct snd_sof_dev *sdev) in bdw_reset() argument
101 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset()
109 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset()
116 static int bdw_set_dsp_D0(struct snd_sof_dev *sdev) in bdw_set_dsp_D0() argument
122 snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BA in bdw_set_dsp_D0()
223 bdw_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) bdw_get_registers() argument
249 bdw_dump(struct snd_sof_dev *sdev, u32 flags) bdw_dump() argument
291 struct snd_sof_dev *sdev = context; bdw_irq_handler() local
305 struct snd_sof_dev *sdev = context; bdw_irq_thread() local
363 bdw_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) bdw_send_msg() argument
373 bdw_get_mailbox_offset(struct snd_sof_dev *sdev) bdw_get_mailbox_offset() argument
378 bdw_get_window_offset(struct snd_sof_dev *sdev, u32 id) bdw_get_window_offset() argument
383 bdw_host_done(struct snd_sof_dev *sdev) bdw_host_done() argument
395 bdw_dsp_done(struct snd_sof_dev *sdev) bdw_dsp_done() argument
409 bdw_probe(struct snd_sof_dev *sdev) bdw_probe() argument
512 bdw_machine_select(struct snd_sof_dev *sdev) bdw_machine_select() argument
530 bdw_set_mach_params(struct snd_soc_acpi_mach *mach, struct snd_sof_dev *sdev) bdw_set_mach_params() argument
[all...]
H A Dhda-ipc.c23 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_host_done() argument
29 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done()
35 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done()
41 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_dsp_done() argument
47 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done()
53 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done()
59 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc_send_msg() argument
62 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg()
64 snd_sof_dsp_write(sdev, HDA_DSP_BA in hda_dsp_ipc_send_msg()
96 hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) hda_dsp_ipc4_send_msg() argument
122 hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev) hda_dsp_ipc_get_reply() argument
160 struct snd_sof_dev *sdev = context; hda_dsp_ipc4_irq_thread() local
242 struct snd_sof_dev *sdev = context; hda_dsp_ipc_irq_thread() local
352 hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev) hda_dsp_check_ipc_irq() argument
384 hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) hda_dsp_ipc_get_mailbox_offset() argument
389 hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) hda_dsp_ipc_get_window_offset() argument
394 hda_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, void *p, size_t sz) hda_ipc_msg_data() argument
419 hda_set_stream_data_offset(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, size_t posn_offset) hda_set_stream_data_offset() argument
[all...]
H A Dhda-ctrl.c30 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset) in hda_dsp_ctrl_link_reset() argument
40 snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL, in hda_dsp_ctrl_link_reset()
46 gctl = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL); in hda_dsp_ctrl_link_reset()
53 dev_err(sdev->dev, "error: failed to %s HDA controller gctl 0x%x\n", in hda_dsp_ctrl_link_reset()
58 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev) in hda_dsp_ctrl_get_caps() argument
60 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_get_caps()
69 ret = hda_dsp_ctrl_link_reset(sdev, true); in hda_dsp_ctrl_get_caps()
72 ret = hda_dsp_ctrl_link_reset(sdev, false); in hda_dsp_ctrl_get_caps()
76 offset = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_LLCH); in hda_dsp_ctrl_get_caps()
79 dev_dbg(sdev in hda_dsp_ctrl_get_caps()
132 hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable) hda_dsp_ctrl_ppcap_enable() argument
140 hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable) hda_dsp_ctrl_ppcap_int_enable() argument
148 hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable) hda_dsp_ctrl_misc_clock_gating() argument
160 hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable) hda_dsp_ctrl_clock_power_gating() argument
182 hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev) hda_dsp_ctrl_init_chip() argument
259 hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev) hda_dsp_ctrl_stop_chip() argument
[all...]
H A Dhda-loader-skl.c115 static int cl_skl_cldma_setup_bdle(struct snd_sof_dev *sdev, in cl_skl_cldma_setup_bdle() argument
135 static void cl_skl_cldma_stream_run(struct snd_sof_dev *sdev, bool enable) in cl_skl_cldma_stream_run() argument
142 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run()
151 val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run()
161 dev_err(sdev->dev, "%s: failed to set Run bit=%d enable=%d\n", in cl_skl_cldma_stream_run()
165 static void cl_skl_cldma_stream_clear(struct snd_sof_dev *sdev) in cl_skl_cldma_stream_clear() argument
170 cl_skl_cldma_stream_run(sdev, 0); in cl_skl_cldma_stream_clear()
175 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear()
178 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear()
182 snd_sof_dsp_write(sdev, HDA_DSP_BA in cl_skl_cldma_stream_clear()
195 cl_skl_cldma_setup_spb(struct snd_sof_dev *sdev, unsigned int size, bool enable) cl_skl_cldma_setup_spb() argument
210 cl_skl_cldma_set_intr(struct snd_sof_dev *sdev, bool enable) cl_skl_cldma_set_intr() argument
218 cl_skl_cldma_cleanup_spb(struct snd_sof_dev *sdev) cl_skl_cldma_cleanup_spb() argument
231 cl_skl_cldma_setup_controller(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab_bdl, unsigned int max_size, u32 count) cl_skl_cldma_setup_controller() argument
267 cl_stream_prepare_skl(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, struct snd_dma_buffer *dmab_bdl) cl_stream_prepare_skl() argument
297 cl_cleanup_skl(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, struct snd_dma_buffer *dmab_bdl) cl_cleanup_skl() argument
307 cl_dsp_init_skl(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab, struct snd_dma_buffer *dmab_bdl) cl_dsp_init_skl() 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) cl_skl_cldma_fill_buffer() argument
418 cl_skl_cldma_wait_interruptible(struct snd_sof_dev *sdev, bool intr_wait) cl_skl_cldma_wait_interruptible() 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) cl_skl_cldma_copy_to_buf() argument
492 cl_copy_fw_skl(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab) cl_copy_fw_skl() argument
514 hda_dsp_cl_boot_firmware_skl(struct snd_sof_dev *sdev) hda_dsp_cl_boot_firmware_skl() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/sof/intel/
H A Dhda-dsp.c37 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument
45 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
50 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
56 dev_err(sdev->dev, in hda_dsp_core_reset_enter()
63 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
67 dev_err(sdev->dev, in hda_dsp_core_reset_enter()
76 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument
83 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
90 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
97 dev_err(sdev in hda_dsp_core_reset_leave()
116 hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_stall_reset() argument
128 hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_run() argument
159 hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_power_up() argument
198 hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_power_down() argument
221 hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_is_enabled() argument
247 hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_enable_core() argument
271 hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev, unsigned int core_mask) hda_dsp_core_reset_power_down() argument
311 hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev) hda_dsp_ipc_int_enable() argument
326 hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev) hda_dsp_ipc_int_disable() argument
340 hda_dsp_wait_d0i3c_done(struct snd_sof_dev *sdev) hda_dsp_wait_d0i3c_done() argument
354 hda_dsp_send_pm_gate_ipc(struct snd_sof_dev *sdev, u32 flags) hda_dsp_send_pm_gate_ipc() argument
372 hda_dsp_update_d0i3c_register(struct snd_sof_dev *sdev, u8 value) hda_dsp_update_d0i3c_register() argument
400 hda_dsp_set_D0_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) hda_dsp_set_D0_state() argument
479 hda_dsp_state_log(struct snd_sof_dev *sdev) hda_dsp_state_log() argument
525 hda_dsp_set_power_state(struct snd_sof_dev *sdev, const struct sof_dsp_power_state *target_state) hda_dsp_set_power_state() argument
611 hda_suspend(struct snd_sof_dev *sdev, bool runtime_suspend) hda_suspend() argument
666 hda_resume(struct snd_sof_dev *sdev, bool runtime_resume) hda_resume() argument
716 hda_dsp_resume(struct snd_sof_dev *sdev) hda_dsp_resume() argument
781 hda_dsp_runtime_resume(struct snd_sof_dev *sdev) hda_dsp_runtime_resume() argument
796 hda_dsp_runtime_idle(struct snd_sof_dev *sdev) hda_dsp_runtime_idle() argument
809 hda_dsp_runtime_suspend(struct snd_sof_dev *sdev) hda_dsp_runtime_suspend() argument
828 hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state) hda_dsp_suspend() argument
894 hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev) hda_dsp_set_hw_params_upon_resume() argument
942 struct snd_sof_dev *sdev = dev_get_drvdata(bus->dev); hda_dsp_d0i3_work() local
[all...]
H A Dhda.c68 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sdw_params_stream() local
85 ret = sof_ipc_tx_message(sdev->ipc, in sdw_params_stream()
89 dev_err(sdev->dev, in sdw_params_stream()
100 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sdw_free_stream() local
116 ret = sof_ipc_tx_message(sdev->ipc, in sdw_free_stream()
120 dev_err(sdev->dev, in sdw_free_stream()
133 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable() argument
135 sdw_intel_enable_irq(sdev->bar[HDA_DSP_BAR], enable); in hda_sdw_int_enable()
138 static int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan() argument
144 handle = ACPI_HANDLE(sdev in hda_sdw_acpi_scan()
156 hda_sdw_probe(struct snd_sof_dev *sdev) hda_sdw_probe() argument
196 hda_sdw_startup(struct snd_sof_dev *sdev) hda_sdw_startup() argument
208 hda_sdw_exit(struct snd_sof_dev *sdev) hda_sdw_exit() argument
223 hda_dsp_check_sdw_irq(struct snd_sof_dev *sdev) hda_dsp_check_sdw_irq() argument
254 hda_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) hda_sdw_check_wakeen_irq() argument
267 hda_sdw_process_wakeen(struct snd_sof_dev *sdev) hda_sdw_process_wakeen() argument
331 hda_dsp_get_status_skl(struct snd_sof_dev *sdev) hda_dsp_get_status_skl() argument
351 hda_dsp_get_status(struct snd_sof_dev *sdev) hda_dsp_get_status() argument
371 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) hda_dsp_get_registers() argument
399 hda_dsp_dump_skl(struct snd_sof_dev *sdev, u32 flags) hda_dsp_dump_skl() argument
430 hda_dsp_dump_ext_rom_status(struct snd_sof_dev *sdev) hda_dsp_dump_ext_rom_status() argument
448 hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags) hda_dsp_dump() argument
479 hda_ipc_irq_dump(struct snd_sof_dev *sdev) hda_ipc_irq_dump() argument
503 hda_ipc_dump(struct snd_sof_dev *sdev) hda_ipc_dump() argument
523 hda_init(struct snd_sof_dev *sdev) hda_init() argument
573 check_nhlt_dmic(struct snd_sof_dev *sdev) check_nhlt_dmic() argument
589 fixup_tplg_name(struct snd_sof_dev *sdev, const char *sof_tplg_filename, const char *idisp_str, const char *dmic_str) fixup_tplg_name() argument
616 hda_init_caps(struct snd_sof_dev *sdev) hda_init_caps() argument
690 struct snd_sof_dev *sdev = context; hda_dsp_interrupt_handler() local
713 struct snd_sof_dev *sdev = context; hda_dsp_interrupt_thread() local
738 hda_dsp_probe(struct snd_sof_dev *sdev) hda_dsp_probe() argument
908 hda_dsp_remove(struct snd_sof_dev *sdev) hda_dsp_remove() argument
965 hda_generic_machine_select(struct snd_sof_dev *sdev) hda_generic_machine_select() argument
1065 hda_generic_machine_select(struct snd_sof_dev *sdev) hda_generic_machine_select() argument
1073 link_slaves_found(struct snd_sof_dev *sdev, const struct snd_soc_acpi_link_adr *link, struct sdw_intel_ctx *sdw) link_slaves_found() argument
1119 hda_sdw_machine_select(struct snd_sof_dev *sdev) hda_sdw_machine_select() argument
1190 hda_sdw_machine_select(struct snd_sof_dev *sdev) hda_sdw_machine_select() argument
1205 hda_machine_select(struct snd_sof_dev *sdev) hda_machine_select() argument
[all...]
H A Dbdw.c72 static void bdw_host_done(struct snd_sof_dev *sdev);
73 static void bdw_dsp_done(struct snd_sof_dev *sdev);
74 static void bdw_get_reply(struct snd_sof_dev *sdev);
80 static int bdw_run(struct snd_sof_dev *sdev) in bdw_run() argument
83 snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC, in bdw_run()
88 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_run()
95 static int bdw_reset(struct snd_sof_dev *sdev) in bdw_reset() argument
98 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset()
106 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset()
113 static int bdw_set_dsp_D0(struct snd_sof_dev *sdev) in bdw_set_dsp_D0() argument
220 bdw_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) bdw_get_registers() argument
246 bdw_dump(struct snd_sof_dev *sdev, u32 flags) bdw_dump() argument
288 struct snd_sof_dev *sdev = context; bdw_irq_handler() local
302 struct snd_sof_dev *sdev = context; bdw_irq_thread() local
361 bdw_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) bdw_send_msg() argument
371 bdw_get_reply(struct snd_sof_dev *sdev) bdw_get_reply() argument
410 bdw_get_mailbox_offset(struct snd_sof_dev *sdev) bdw_get_mailbox_offset() argument
415 bdw_get_window_offset(struct snd_sof_dev *sdev, u32 id) bdw_get_window_offset() argument
420 bdw_host_done(struct snd_sof_dev *sdev) bdw_host_done() argument
432 bdw_dsp_done(struct snd_sof_dev *sdev) bdw_dsp_done() argument
446 bdw_probe(struct snd_sof_dev *sdev) bdw_probe() argument
540 bdw_machine_select(struct snd_sof_dev *sdev) bdw_machine_select() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/amd/
H A Dacp.c63 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor() local
64 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in init_dma_descriptor()
67 addr = desc->sram_pte_offset + sdev->debug_box.offset + in init_dma_descriptor()
70 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_DESC_BASE_ADDR, addr); in init_dma_descriptor()
71 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_DESC_MAX_NUM_DSCR, ACP_MAX_DESC_CNT); in init_dma_descriptor()
77 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor() local
80 offset = ACP_SCRATCH_REG_0 + sdev->debug_box.offset + in configure_dma_descriptor()
84 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset, dscr_info->src_addr); in configure_dma_descriptor()
85 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset + 0x4, dscr_info->dest_addr); in configure_dma_descriptor()
86 snd_sof_dsp_write(sdev, ACP_DSP_BA in configure_dma_descriptor()
92 struct snd_sof_dev *sdev = adata->dev; config_dma_channel() local
122 struct snd_sof_dev *sdev = adata->dev; acpbus_dma_start() local
142 struct snd_sof_dev *sdev = adata->dev; configure_and_run_dma() local
174 struct snd_sof_dev *sdev = adata->dev; psp_mbox_ready() local
199 struct snd_sof_dev *sdev = adata->dev; psp_send_cmd() local
235 struct snd_sof_dev *sdev = adata->dev; configure_and_run_sha_dma() local
294 struct snd_sof_dev *sdev = adata->dev; acp_dma_status() local
310 memcpy_from_scratch(struct snd_sof_dev *sdev, u32 offset, unsigned int *dst, size_t bytes) memcpy_from_scratch() argument
319 memcpy_to_scratch(struct snd_sof_dev *sdev, u32 offset, unsigned int *src, size_t bytes) memcpy_to_scratch() argument
328 acp_memory_init(struct snd_sof_dev *sdev) acp_memory_init() argument
342 struct snd_sof_dev *sdev = context; acp_irq_thread() local
364 struct snd_sof_dev *sdev = dev_id; acp_irq_handler() local
379 acp_power_on(struct snd_sof_dev *sdev) acp_power_on() argument
403 acp_reset(struct snd_sof_dev *sdev) acp_reset() argument
435 acp_init(struct snd_sof_dev *sdev) acp_init() argument
451 amd_sof_acp_suspend(struct snd_sof_dev *sdev, u32 target_state) amd_sof_acp_suspend() argument
467 amd_sof_acp_resume(struct snd_sof_dev *sdev) amd_sof_acp_resume() argument
480 amd_sof_acp_probe(struct snd_sof_dev *sdev) amd_sof_acp_probe() argument
588 amd_sof_acp_remove(struct snd_sof_dev *sdev) amd_sof_acp_remove() argument
[all...]
H A Dacp-ipc.c18 void acp_mailbox_write(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_write() argument
20 memcpy_to_scratch(sdev, offset, message, bytes); in acp_mailbox_write()
24 void acp_mailbox_read(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_read() argument
26 memcpy_from_scratch(sdev, offset, message, bytes); in acp_mailbox_read()
32 struct snd_sof_dev *sdev = adata->dev; in acpbus_trigger_host_to_dsp_swintr() local
33 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in acpbus_trigger_host_to_dsp_swintr()
36 swintr_trigger = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->dsp_intr_base + in acpbus_trigger_host_to_dsp_swintr()
39 snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->dsp_intr_base + DSP_SW_INTR_TRIG_OFFSET, in acpbus_trigger_host_to_dsp_swintr()
43 static void acp_ipc_host_msg_set(struct snd_sof_dev *sdev) in acp_ipc_host_msg_set() argument
45 unsigned int host_msg = sdev in acp_ipc_host_msg_set()
51 acp_dsp_ipc_host_done(struct snd_sof_dev *sdev) acp_dsp_ipc_host_done() argument
59 acp_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) acp_dsp_ipc_dsp_done() argument
67 acp_sof_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) acp_sof_ipc_send_msg() argument
96 acp_dsp_ipc_get_reply(struct snd_sof_dev *sdev) acp_dsp_ipc_get_reply() argument
157 struct snd_sof_dev *sdev = context; acp_sof_ipc_irq_thread() local
240 acp_sof_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, void *p, size_t sz) acp_sof_ipc_msg_data() argument
266 acp_set_stream_data_offset(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, size_t posn_offset) acp_set_stream_data_offset() argument
287 acp_sof_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) acp_sof_ipc_get_mailbox_offset() argument
295 acp_sof_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) acp_sof_ipc_get_window_offset() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dscsi.c160 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local
161 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command()
162 struct Scsi_Host *shost = sdev->host; in scsi_finish_command()
166 scsi_device_unbusy(sdev, cmd); in scsi_finish_command()
176 if (atomic_read(&sdev->device_blocked)) in scsi_finish_command()
177 atomic_set(&sdev->device_blocked, 0); in scsi_finish_command()
179 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, in scsi_finish_command()
205 int scsi_device_max_queue_depth(struct scsi_device *sdev) in scsi_device_max_queue_depth() argument
207 return min_t(int, sdev->host->can_queue, 4096); in scsi_device_max_queue_depth()
212 * @sdev
217 scsi_change_queue_depth(struct scsi_device *sdev, int depth) scsi_change_queue_depth() argument
254 scsi_track_queue_full(struct scsi_device *sdev, int depth) scsi_track_queue_full() argument
292 scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer, u8 page, unsigned len) scsi_vpd_inquiry() argument
336 scsi_get_vpd_size(struct scsi_device *sdev, u8 page) scsi_get_vpd_size() argument
390 scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf, int buf_len) scsi_get_vpd_page() argument
428 scsi_get_vpd_buf(struct scsi_device *sdev, u8 page) scsi_get_vpd_buf() argument
465 scsi_update_vpd_page(struct scsi_device *sdev, u8 page, struct scsi_vpd __rcu **sdev_vpd_buf) scsi_update_vpd_page() argument
492 scsi_attach_vpd(struct scsi_device *sdev) scsi_attach_vpd() argument
538 scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer, unsigned int len, unsigned char opcode, unsigned short sa) scsi_report_opcode() argument
593 scsi_cdl_check_cmd(struct scsi_device *sdev, u8 opcode, u16 sa, unsigned char *buf) scsi_cdl_check_cmd() argument
629 scsi_cdl_check(struct scsi_device *sdev) scsi_cdl_check() argument
680 scsi_cdl_enable(struct scsi_device *sdev, bool enable) scsi_cdl_enable() argument
747 scsi_device_get(struct scsi_device *sdev) scsi_device_get() argument
772 scsi_device_put(struct scsi_device *sdev) scsi_device_put() argument
820 struct scsi_device *sdev; starget_for_each_device() local
848 struct scsi_device *sdev; __starget_for_each_device() local
876 struct scsi_device *sdev; __scsi_device_lookup_by_target() local
901 struct scsi_device *sdev; scsi_device_lookup_by_target() local
934 struct scsi_device *sdev; __scsi_device_lookup() local
962 struct scsi_device *sdev; scsi_device_lookup() local
[all...]
H A Dscsi_scan.c194 * @sdev: scsi device to send command to
201 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() argument
206 sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n"); in scsi_unlock_floptical()
213 scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, result, 0x2a, in scsi_unlock_floptical()
217 static int scsi_realloc_sdev_budget_map(struct scsi_device *sdev, in scsi_realloc_sdev_budget_map() argument
221 bool need_alloc = !sdev->budget_map.map; in scsi_realloc_sdev_budget_map()
226 depth = min_t(unsigned int, depth, scsi_device_max_queue_depth(sdev)); in scsi_realloc_sdev_budget_map()
232 if (!need_alloc && new_shift != sdev->budget_map.shift) in scsi_realloc_sdev_budget_map()
243 blk_mq_freeze_queue(sdev->request_queue); in scsi_realloc_sdev_budget_map()
244 sb_backup = sdev in scsi_realloc_sdev_budget_map()
282 struct scsi_device *sdev; scsi_alloc_sdev() local
643 scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result, int result_len, blist_flags_t *bflags) scsi_probe_lun() argument
859 scsi_add_lun(struct scsi_device *sdev, unsigned char *inq_result, blist_flags_t *bflags, int async) scsi_add_lun() argument
1160 struct scsi_device *sdev; scsi_probe_and_add_lun() local
1409 struct scsi_device *sdev; scsi_report_lun_scan() local
1575 struct scsi_device *sdev = ERR_PTR(-ENODEV); __scsi_add_device() local
1612 struct scsi_device *sdev = scsi_add_device() local
1622 scsi_rescan_device(struct scsi_device *sdev) scsi_rescan_device() argument
1823 struct scsi_device *sdev; scsi_sysfs_add_devices() local
1995 struct scsi_device *sdev; scsi_forget_host() local
[all...]

Completed in 16 milliseconds

12345678910>>...29