Lines Matching defs:sdev
148 int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* mandatory */
151 int (*pcm_open)(struct snd_sof_dev *sdev,
154 int (*pcm_close)(struct snd_sof_dev *sdev,
158 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
164 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
168 int (*pcm_trigger)(struct snd_sof_dev *sdev,
173 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
178 int (*probe_assign)(struct snd_sof_dev *sdev,
181 int (*probe_free)(struct snd_sof_dev *sdev,
184 int (*probe_set_params)(struct snd_sof_dev *sdev,
188 int (*probe_trigger)(struct snd_sof_dev *sdev,
191 int (*probe_pointer)(struct snd_sof_dev *sdev,
198 void (*ipc_msg_data)(struct snd_sof_dev *sdev,
203 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
218 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
219 int (*set_power_state)(struct snd_sof_dev *sdev,
233 int (*trace_init)(struct snd_sof_dev *sdev,
235 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
236 int (*trace_trigger)(struct snd_sof_dev *sdev,
240 int (*get_bar_index)(struct snd_sof_dev *sdev,
242 int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
243 int (*get_window_offset)(struct snd_sof_dev *sdev,
247 int (*machine_register)(struct snd_sof_dev *sdev,
249 void (*machine_unregister)(struct snd_sof_dev *sdev,
251 void (*machine_select)(struct snd_sof_dev *sdev); /* optional */
267 void (*dsp_oops)(struct snd_sof_dev *sdev, void *oops);
268 void (*dsp_stack)(struct snd_sof_dev *sdev, void *oops,
272 #define sof_arch_ops(sdev) ((sdev)->pdata->desc->ops->arch_ops)
303 struct snd_sof_dev *sdev;
304 struct list_head list; /* list in sdev dfsentry list */
460 int snd_sof_dsp_power_down_notify(struct snd_sof_dev *sdev);
464 void snd_sof_new_platform_drv(struct snd_sof_dev *sdev);
473 int snd_sof_load_firmware(struct snd_sof_dev *sdev);
474 int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev);
475 int snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev);
476 int snd_sof_run_firmware(struct snd_sof_dev *sdev);
477 int snd_sof_parse_module_memcpy(struct snd_sof_dev *sdev,
479 void snd_sof_fw_unload(struct snd_sof_dev *sdev);
480 int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset);
485 struct snd_sof_ipc *snd_sof_ipc_init(struct snd_sof_dev *sdev);
486 void snd_sof_ipc_free(struct snd_sof_dev *sdev);
487 void snd_sof_ipc_reply(struct snd_sof_dev *sdev, u32 msg_id);
488 void snd_sof_ipc_msgs_rx(struct snd_sof_dev *sdev);
489 int snd_sof_ipc_stream_pcm_params(struct snd_sof_dev *sdev,
491 int snd_sof_dsp_mailbox_init(struct snd_sof_dev *sdev, u32 dspbox,
494 int snd_sof_ipc_valid(struct snd_sof_dev *sdev);
505 int snd_sof_init_trace(struct snd_sof_dev *sdev);
506 void snd_sof_release_trace(struct snd_sof_dev *sdev);
507 void snd_sof_free_trace(struct snd_sof_dev *sdev);
508 int snd_sof_dbg_init(struct snd_sof_dev *sdev);
509 void snd_sof_free_debug(struct snd_sof_dev *sdev);
510 int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev,
514 int snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev,
517 int snd_sof_trace_update_pos(struct snd_sof_dev *sdev,
519 void snd_sof_trace_notify_for_error(struct snd_sof_dev *sdev);
520 void snd_sof_get_status(struct snd_sof_dev *sdev, u32 panic_code,
524 int snd_sof_init_trace_ipc(struct snd_sof_dev *sdev);
525 void snd_sof_handle_fw_exception(struct snd_sof_dev *sdev);
535 static inline void sof_stack(struct snd_sof_dev *sdev, void *oops, u32 *stack,
538 sof_arch_ops(sdev)->dsp_stack(sdev, oops, stack, stack_words);
541 static inline void sof_oops(struct snd_sof_dev *sdev, void *oops)
543 if (sof_arch_ops(sdev)->dsp_oops)
544 sof_arch_ops(sdev)->dsp_oops(sdev, oops);
552 void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value);
553 void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value);
554 u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr);
555 u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr);
556 void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset,
558 void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset,
560 void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src,
562 void sof_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest,
565 int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id);
567 void intel_ipc_msg_data(struct snd_sof_dev *sdev,
570 int intel_ipc_pcm_params(struct snd_sof_dev *sdev,
574 int intel_pcm_open(struct snd_sof_dev *sdev,
576 int intel_pcm_close(struct snd_sof_dev *sdev,
579 int sof_machine_check(struct snd_sof_dev *sdev);