/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl-sst-dsp.h | 17 struct sst_dsp; 140 int (*load_fw)(struct sst_dsp *ctx); 142 int (*load_library)(struct sst_dsp *ctx, 144 int (*parse_fw)(struct sst_dsp *ctx); 147 int (*set_state_D0i3)(struct sst_dsp *ctx); 148 int (*set_state_D0i0)(struct sst_dsp *ctx); 197 int skl_cldma_prepare(struct sst_dsp *ctx); 217 int skl_dsp_wake(struct sst_dsp *ctx); 218 int skl_dsp_sleep(struct sst_dsp *ctx); 219 void skl_dsp_free(struct sst_dsp *dsp); [all …]
|
H A D | cnl-sst-dsp.c | 27 cnl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_set_reset_state() 44 cnl_dsp_core_unset_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_unset_reset_state() 141 int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_enable_core() 156 int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_disable_core() 186 struct sst_dsp *ctx = dev_id; in cnl_dsp_sst_interrupt() 210 void cnl_dsp_free(struct sst_dsp *dsp) in cnl_dsp_free() 220 void cnl_ipc_int_enable(struct sst_dsp *ctx) in cnl_ipc_int_enable() 226 void cnl_ipc_int_disable(struct sst_dsp *ctx) in cnl_ipc_int_disable() 232 void cnl_ipc_op_int_enable(struct sst_dsp *ctx) in cnl_ipc_op_int_enable() 245 void cnl_ipc_op_int_disable(struct sst_dsp *ctx) in cnl_ipc_op_int_disable() [all …]
|
H A D | skl-sst-dsp.c | 34 void skl_dsp_init_core_state(struct sst_dsp *ctx) in skl_dsp_init_core_state() 106 struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_core_unset_reset_state() 274 int skl_dsp_boot(struct sst_dsp *ctx) in skl_dsp_boot() 304 struct sst_dsp *ctx = dev_id; in skl_dsp_sst_interrupt() 393 int skl_dsp_wake(struct sst_dsp *ctx) in skl_dsp_wake() 399 int skl_dsp_sleep(struct sst_dsp *ctx) in skl_dsp_sleep() 405 struct sst_dsp *skl_dsp_ctx_init(struct device *dev, in skl_dsp_ctx_init() 409 struct sst_dsp *sst; in skl_dsp_ctx_init() 433 int skl_dsp_acquire_irq(struct sst_dsp *sst) in skl_dsp_acquire_irq() 448 void skl_dsp_free(struct sst_dsp *dsp) in skl_dsp_free() [all …]
|
H A D | cnl-sst-dsp.h | 11 struct sst_dsp; 85 int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core_mask); 86 int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core_mask); 88 void cnl_dsp_free(struct sst_dsp *dsp); 90 void cnl_ipc_int_enable(struct sst_dsp *ctx); 91 void cnl_ipc_int_disable(struct sst_dsp *ctx); 92 void cnl_ipc_op_int_enable(struct sst_dsp *ctx); 93 void cnl_ipc_op_int_disable(struct sst_dsp *ctx); 94 bool cnl_ipc_int_status(struct sst_dsp *ctx);
|
H A D | skl-sst-cldma.h | 193 struct sst_dsp; 196 void (*cl_setup_bdle)(struct sst_dsp *ctx, 199 void (*cl_setup_controller)(struct sst_dsp *ctx, 202 void (*cl_setup_spb)(struct sst_dsp *ctx, 204 void (*cl_cleanup_spb)(struct sst_dsp *ctx); 205 void (*cl_trigger)(struct sst_dsp *ctx, bool enable); 206 void (*cl_cleanup_controller)(struct sst_dsp *ctx); 207 int (*cl_copy_to_dmabuf)(struct sst_dsp *ctx, 209 void (*cl_stop_dma)(struct sst_dsp *ctx);
|
H A D | skl-sst-cldma.c | 18 static void skl_cldma_int_enable(struct sst_dsp *ctx) in skl_cldma_int_enable() 24 void skl_cldma_int_disable(struct sst_dsp *ctx) in skl_cldma_int_disable() 56 static void skl_cldma_stream_clear(struct sst_dsp *ctx) in skl_cldma_stream_clear() 78 static void skl_cldma_setup_bdle(struct sst_dsp *ctx, in skl_cldma_setup_bdle() 134 static void skl_cldma_setup_spb(struct sst_dsp *ctx, in skl_cldma_setup_spb() 146 static void skl_cldma_cleanup_spb(struct sst_dsp *ctx) in skl_cldma_cleanup_spb() 156 static void skl_cldma_cleanup(struct sst_dsp *ctx) in skl_cldma_cleanup() 165 int skl_cldma_wait_interruptible(struct sst_dsp *ctx) in skl_cldma_wait_interruptible() 188 static void skl_cldma_stop(struct sst_dsp *ctx) in skl_cldma_stop() 312 void skl_cldma_process_intr(struct sst_dsp *ctx) in skl_cldma_process_intr() [all …]
|
H A D | skl-sst-ipc.h | 15 struct sst_dsp; 151 int skl_ipc_check_D0i0(struct sst_dsp *dsp, bool state); 153 void skl_ipc_int_enable(struct sst_dsp *ctx); 154 void skl_ipc_op_int_enable(struct sst_dsp *ctx); 155 void skl_ipc_op_int_disable(struct sst_dsp *ctx); 156 void skl_ipc_int_disable(struct sst_dsp *ctx); 158 bool skl_ipc_int_status(struct sst_dsp *ctx); 161 void skl_clear_module_cnt(struct sst_dsp *ctx);
|
H A D | skl-sst.c | 33 static bool skl_check_fw_status(struct sst_dsp *ctx, u32 status) in skl_check_fw_status() 42 static int skl_transfer_firmware(struct sst_dsp *ctx, in skl_transfer_firmware() 66 static int skl_load_base_firmware(struct sst_dsp *ctx) in skl_load_base_firmware() 244 static unsigned int skl_get_errorcode(struct sst_dsp *ctx) in skl_get_errorcode() 253 static int skl_get_module(struct sst_dsp *ctx, u16 mod_id) in skl_get_module() 265 static int skl_put_module(struct sst_dsp *ctx, u16 mod_id) in skl_put_module() 314 struct sst_dsp *ctx, u16 mod_id) in skl_module_get_from_id() 469 void skl_clear_module_cnt(struct sst_dsp *ctx) in skl_clear_module_cnt() 482 static void skl_clear_module_table(struct sst_dsp *ctx) in skl_clear_module_table() 522 struct sst_dsp *sst; in skl_sst_dsp_init() [all …]
|
H A D | bxt-sst.c | 40 static unsigned int bxt_get_errorcode(struct sst_dsp *ctx) in bxt_get_errorcode() 94 static int sst_bxt_prepare_fw(struct sst_dsp *ctx, in sst_bxt_prepare_fw() 167 static int sst_transfer_fw_host_dma(struct sst_dsp *ctx) in sst_transfer_fw_host_dma() 181 static int bxt_load_base_firmware(struct sst_dsp *ctx) in bxt_load_base_firmware() 266 static int bxt_d0i3_target_state(struct sst_dsp *ctx) in bxt_d0i3_target_state() 290 struct sst_dsp *ctx = skl->dsp; in bxt_set_dsp_D0i3() 329 static int bxt_schedule_dsp_D0i3(struct sst_dsp *ctx) in bxt_schedule_dsp_D0i3() 346 static int bxt_set_dsp_D0i0(struct sst_dsp *ctx) in bxt_set_dsp_D0i0() 387 static int bxt_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in bxt_set_dsp_D0() 549 struct sst_dsp *sst; in bxt_sst_dsp_init() [all …]
|
H A D | cnl-sst.c | 46 static int cnl_prepare_fw(struct sst_dsp *ctx, const void *fwdata, u32 fwsize) in cnl_prepare_fw() 109 static int sst_transfer_fw_host_dma(struct sst_dsp *ctx) in sst_transfer_fw_host_dma() 124 static int cnl_load_base_firmware(struct sst_dsp *ctx) in cnl_load_base_firmware() 188 static int cnl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in cnl_set_dsp_D0() 251 static int cnl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) in cnl_set_dsp_D3() 288 static unsigned int cnl_get_errno(struct sst_dsp *ctx) in cnl_get_errno() 314 struct sst_dsp *dsp = context; in cnl_dsp_irq_thread_handler() 399 static bool cnl_ipc_is_dsp_busy(struct sst_dsp *dsp) in cnl_ipc_is_dsp_busy() 440 struct sst_dsp *sst; in cnl_sst_dsp_init() 479 struct sst_dsp *sst = skl->dsp; in cnl_sst_init_fw()
|
H A D | skl-sst-ipc.c | 287 static bool skl_ipc_is_dsp_busy(struct sst_dsp *dsp) in skl_ipc_is_dsp_busy() 308 int skl_ipc_check_D0i0(struct sst_dsp *dsp, bool state) in skl_ipc_check_D0i0() 491 struct sst_dsp *dsp = context; in skl_dsp_irq_thread_handler() 558 void skl_ipc_int_enable(struct sst_dsp *ctx) in skl_ipc_int_enable() 564 void skl_ipc_int_disable(struct sst_dsp *ctx) in skl_ipc_int_disable() 570 void skl_ipc_op_int_enable(struct sst_dsp *ctx) in skl_ipc_op_int_enable() 581 void skl_ipc_op_int_disable(struct sst_dsp *ctx) in skl_ipc_op_int_disable() 593 bool skl_ipc_int_status(struct sst_dsp *ctx) in skl_ipc_int_status()
|
H A D | skl-sst-utils.c | 229 int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw, in snd_skl_parse_uuids() 362 struct sst_dsp *sst; in skl_sst_ctx_init() 389 struct sst_dsp *dsp = skl->dsp; in skl_prepare_lib_load()
|
H A D | skl.h | 91 struct sst_dsp *dsp;
|
H A D | skl-debug.c | 177 struct sst_dsp *sst = d->skl->dsp; in fw_softreg_read()
|
/openbmc/linux/sound/soc/intel/common/ |
H A D | sst-dsp.h | 15 struct sst_dsp; 30 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value); 31 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset); 32 int sst_dsp_shim_update_bits(struct sst_dsp *sst, u32 offset, 34 void sst_dsp_shim_update_bits_forced(struct sst_dsp *sst, u32 offset, 39 u32 sst_dsp_shim_read_unlocked(struct sst_dsp *sst, u32 offset); 40 int sst_dsp_shim_update_bits_unlocked(struct sst_dsp *sst, u32 offset, 52 int sst_dsp_mailbox_init(struct sst_dsp *sst, u32 inbox_offset, 54 void sst_dsp_inbox_write(struct sst_dsp *sst, void *message, size_t bytes); 55 void sst_dsp_inbox_read(struct sst_dsp *sst, void *message, size_t bytes); [all …]
|
H A D | sst-dsp.c | 48 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write() 58 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read() 71 void sst_dsp_shim_write_unlocked(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write_unlocked() 77 u32 sst_dsp_shim_read_unlocked(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read_unlocked() 83 int sst_dsp_shim_update_bits_unlocked(struct sst_dsp *sst, u32 offset, in sst_dsp_shim_update_bits_unlocked() 119 int sst_dsp_shim_update_bits(struct sst_dsp *sst, u32 offset, in sst_dsp_shim_update_bits() 133 void sst_dsp_shim_update_bits_forced(struct sst_dsp *sst, u32 offset, in sst_dsp_shim_update_bits_forced() 144 int sst_dsp_register_poll(struct sst_dsp *ctx, u32 offset, u32 mask, in sst_dsp_register_poll() 208 void sst_dsp_outbox_read(struct sst_dsp *sst, void *message, size_t bytes) in sst_dsp_outbox_read() 221 void sst_dsp_inbox_write(struct sst_dsp *sst, void *message, size_t bytes) in sst_dsp_inbox_write() [all …]
|
H A D | sst-ipc.h | 37 struct sst_dsp; 44 bool (*is_dsp_busy)(struct sst_dsp *dsp); 45 int (*check_dsp_lp_on)(struct sst_dsp *dsp, bool state); 51 struct sst_dsp *dsp;
|
H A D | sst-dsp-priv.h | 30 int (*init)(struct sst_dsp *sst); 31 void (*free)(struct sst_dsp *sst); 59 struct sst_dsp { struct
|