/Linux-v4.19/sound/soc/intel/common/ |
D | sst-dsp.h | 177 struct sst_dsp; 221 struct sst_dsp *sst_dsp_new(struct device *dev, 223 void sst_dsp_free(struct sst_dsp *sst); 227 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value); 228 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset); 229 int sst_dsp_shim_update_bits(struct sst_dsp *sst, u32 offset, 231 void sst_dsp_shim_write64(struct sst_dsp *sst, u32 offset, u64 value); 232 u64 sst_dsp_shim_read64(struct sst_dsp *sst, u32 offset); 233 int sst_dsp_shim_update_bits64(struct sst_dsp *sst, u32 offset, 235 void sst_dsp_shim_update_bits_forced(struct sst_dsp *sst, u32 offset, [all …]
|
D | sst-dsp-priv.h | 39 void (*boot)(struct sst_dsp *); 40 void (*reset)(struct sst_dsp *); 41 int (*wake)(struct sst_dsp *); 42 void (*sleep)(struct sst_dsp *); 43 void (*stall)(struct sst_dsp *); 52 void (*ram_read)(struct sst_dsp *sst, void *dest, void __iomem *src, 54 void (*ram_write)(struct sst_dsp *sst, void __iomem *dest, void *src, 57 void (*dump)(struct sst_dsp *); 63 int (*init)(struct sst_dsp *sst, struct sst_pdata *pdata); 64 void (*free)(struct sst_dsp *sst); [all …]
|
D | sst-dsp.c | 77 void sst_memcpy_toio_32(struct sst_dsp *sst, in sst_memcpy_toio_32() 84 void sst_memcpy_fromio_32(struct sst_dsp *sst, void *dest, in sst_memcpy_fromio_32() 92 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write() 102 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read() 115 void sst_dsp_shim_write64(struct sst_dsp *sst, u32 offset, u64 value) in sst_dsp_shim_write64() 125 u64 sst_dsp_shim_read64(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read64() 138 void sst_dsp_shim_write_unlocked(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write_unlocked() 144 u32 sst_dsp_shim_read_unlocked(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read_unlocked() 150 void sst_dsp_shim_write64_unlocked(struct sst_dsp *sst, u32 offset, u64 value) in sst_dsp_shim_write64_unlocked() 156 u64 sst_dsp_shim_read64_unlocked(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read64_unlocked() [all …]
|
D | sst-firmware.c | 45 struct sst_dsp *sst; 75 struct sst_dsp *sst = (struct sst_dsp *)arg; in sst_dma_transfer_complete() 80 static int sst_dsp_dma_copy(struct sst_dsp *sst, dma_addr_t dest_addr, in sst_dsp_dma_copy() 111 int sst_dsp_dma_copyto(struct sst_dsp *sst, dma_addr_t dest_addr, in sst_dsp_dma_copyto() 120 int sst_dsp_dma_copyfrom(struct sst_dsp *sst, dma_addr_t dest_addr, in sst_dsp_dma_copyfrom() 129 static void block_list_remove(struct sst_dsp *dsp, in block_list_remove() 157 static int block_list_prepare(struct sst_dsp *dsp, in block_list_prepare() 221 struct sst_dsp *dsp = (struct sst_dsp *)param; in dma_chan_filter() 226 int sst_dsp_dma_get_channel(struct sst_dsp *dsp, int chan_id) in sst_dsp_dma_get_channel() 261 void sst_dsp_dma_put_channel(struct sst_dsp *dsp) in sst_dsp_dma_put_channel() [all …]
|
D | sst-ipc.h | 53 bool (*is_dsp_busy)(struct sst_dsp *dsp); 54 int (*check_dsp_lp_on)(struct sst_dsp *dsp, bool state); 60 struct sst_dsp *dsp;
|
/Linux-v4.19/sound/soc/intel/skylake/ |
D | skl-sst-dsp.h | 25 struct sst_dsp; 146 int (*load_fw)(struct sst_dsp *ctx); 148 int (*load_library)(struct sst_dsp *ctx, 150 int (*parse_fw)(struct sst_dsp *ctx); 151 int (*set_state_D0)(struct sst_dsp *ctx, unsigned int core_id); 152 int (*set_state_D3)(struct sst_dsp *ctx, unsigned int core_id); 153 int (*set_state_D0i3)(struct sst_dsp *ctx); 154 int (*set_state_D0i0)(struct sst_dsp *ctx); 155 unsigned int (*get_fw_errcode)(struct sst_dsp *ctx); 156 int (*load_mod)(struct sst_dsp *ctx, u16 mod_id, u8 *mod_name); [all …]
|
D | cnl-sst-dsp.c | 35 cnl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_set_reset_state() 52 cnl_dsp_core_unset_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_unset_reset_state() 67 static bool is_cnl_dsp_core_enable(struct sst_dsp *ctx, unsigned int core_mask) in is_cnl_dsp_core_enable() 85 static int cnl_dsp_reset_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_reset_core() 96 static int cnl_dsp_start_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_start_core() 119 static int cnl_dsp_core_power_up(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_power_up() 134 static int cnl_dsp_core_power_down(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_power_down() 149 int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_enable_core() 164 int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_disable_core() 194 struct sst_dsp *ctx = dev_id; in cnl_dsp_sst_interrupt() [all …]
|
D | skl-sst-dsp.c | 30 void skl_dsp_set_state_locked(struct sst_dsp *ctx, int state) in skl_dsp_set_state_locked() 42 void skl_dsp_init_core_state(struct sst_dsp *ctx) in skl_dsp_init_core_state() 57 unsigned int skl_dsp_get_enabled_cores(struct sst_dsp *ctx) in skl_dsp_get_enabled_cores() 86 skl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_core_set_reset_state() 114 struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_core_unset_reset_state() 143 is_skl_dsp_core_enable(struct sst_dsp *ctx, unsigned int core_mask) in is_skl_dsp_core_enable() 161 static int skl_dsp_reset_core(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_reset_core() 172 int skl_dsp_start_core(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_start_core() 196 int skl_dsp_core_power_up(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_core_power_up() 224 int skl_dsp_core_power_down(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_core_power_down() [all …]
|
D | cnl-sst-dsp.h | 19 struct sst_dsp; 94 int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core); 95 int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core); 97 void cnl_dsp_free(struct sst_dsp *dsp); 99 void cnl_ipc_int_enable(struct sst_dsp *ctx); 100 void cnl_ipc_int_disable(struct sst_dsp *ctx); 101 void cnl_ipc_op_int_enable(struct sst_dsp *ctx); 102 void cnl_ipc_op_int_disable(struct sst_dsp *ctx); 103 bool cnl_ipc_int_status(struct sst_dsp *ctx);
|
D | skl-sst-ipc.h | 22 struct sst_dsp; 80 struct sst_dsp *dsp; 206 int skl_ipc_check_D0i0(struct sst_dsp *dsp, bool state); 208 void skl_ipc_int_enable(struct sst_dsp *dsp); 209 void skl_ipc_op_int_enable(struct sst_dsp *ctx); 210 void skl_ipc_op_int_disable(struct sst_dsp *ctx); 211 void skl_ipc_int_disable(struct sst_dsp *dsp); 213 bool skl_ipc_int_status(struct sst_dsp *dsp); 216 void skl_clear_module_cnt(struct sst_dsp *ctx);
|
D | skl-sst-cldma.c | 24 static void skl_cldma_int_enable(struct sst_dsp *ctx) in skl_cldma_int_enable() 30 void skl_cldma_int_disable(struct sst_dsp *ctx) in skl_cldma_int_disable() 36 static void skl_cldma_stream_run(struct sst_dsp *ctx, bool enable) in skl_cldma_stream_run() 62 static void skl_cldma_stream_clear(struct sst_dsp *ctx) in skl_cldma_stream_clear() 84 static void skl_cldma_setup_bdle(struct sst_dsp *ctx, in skl_cldma_setup_bdle() 114 static void skl_cldma_setup_controller(struct sst_dsp *ctx, in skl_cldma_setup_controller() 136 static void skl_cldma_setup_spb(struct sst_dsp *ctx, in skl_cldma_setup_spb() 148 static void skl_cldma_cleanup_spb(struct sst_dsp *ctx) in skl_cldma_cleanup_spb() 158 static void skl_cldma_cleanup(struct sst_dsp *ctx) in skl_cldma_cleanup() 167 int skl_cldma_wait_interruptible(struct sst_dsp *ctx) in skl_cldma_wait_interruptible() [all …]
|
D | skl-sst-cldma.h | 201 struct sst_dsp; 204 void (*cl_setup_bdle)(struct sst_dsp *ctx, 207 void (*cl_setup_controller)(struct sst_dsp *ctx, 210 void (*cl_setup_spb)(struct sst_dsp *ctx, 212 void (*cl_cleanup_spb)(struct sst_dsp *ctx); 213 void (*cl_trigger)(struct sst_dsp *ctx, bool enable); 214 void (*cl_cleanup_controller)(struct sst_dsp *ctx); 215 int (*cl_copy_to_dmabuf)(struct sst_dsp *ctx, 217 void (*cl_stop_dma)(struct sst_dsp *ctx);
|
D | skl-sst.c | 41 static bool skl_check_fw_status(struct sst_dsp *ctx, u32 status) in skl_check_fw_status() 50 static int skl_transfer_firmware(struct sst_dsp *ctx, in skl_transfer_firmware() 74 static int skl_load_base_firmware(struct sst_dsp *ctx) in skl_load_base_firmware() 168 static int skl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in skl_set_dsp_D0() 222 static int skl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) in skl_set_dsp_D3() 252 static unsigned int skl_get_errorcode(struct sst_dsp *ctx) in skl_get_errorcode() 261 static int skl_get_module(struct sst_dsp *ctx, u16 mod_id) in skl_get_module() 273 static int skl_put_module(struct sst_dsp *ctx, u16 mod_id) in skl_put_module() 285 static struct skl_module_table *skl_fill_module_table(struct sst_dsp *ctx, in skl_fill_module_table() 322 struct sst_dsp *ctx, u16 mod_id) in skl_module_get_from_id() [all …]
|
D | bxt-sst.c | 51 static unsigned int bxt_get_errorcode(struct sst_dsp *ctx) in bxt_get_errorcode() 57 bxt_load_library(struct sst_dsp *ctx, struct skl_lib_info *linfo, int lib_count) in bxt_load_library() 105 static int sst_bxt_prepare_fw(struct sst_dsp *ctx, in sst_bxt_prepare_fw() 178 static int sst_transfer_fw_host_dma(struct sst_dsp *ctx) in sst_transfer_fw_host_dma() 192 static int bxt_load_base_firmware(struct sst_dsp *ctx) in bxt_load_base_firmware() 277 static int bxt_d0i3_target_state(struct sst_dsp *ctx) in bxt_d0i3_target_state() 301 struct sst_dsp *ctx = skl->dsp; in bxt_set_dsp_D0i3() 340 static int bxt_schedule_dsp_D0i3(struct sst_dsp *ctx) in bxt_schedule_dsp_D0i3() 357 static int bxt_set_dsp_D0i0(struct sst_dsp *ctx) in bxt_set_dsp_D0i0() 398 static int bxt_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in bxt_set_dsp_D0() [all …]
|
D | cnl-sst.c | 55 static int cnl_prepare_fw(struct sst_dsp *ctx, const void *fwdata, u32 fwsize) in cnl_prepare_fw() 102 static int sst_transfer_fw_host_dma(struct sst_dsp *ctx) in sst_transfer_fw_host_dma() 117 static int cnl_load_base_firmware(struct sst_dsp *ctx) in cnl_load_base_firmware() 176 static int cnl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in cnl_set_dsp_D0() 238 static int cnl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) in cnl_set_dsp_D3() 275 static unsigned int cnl_get_errno(struct sst_dsp *ctx) in cnl_get_errno() 303 struct sst_dsp *dsp = context; in cnl_dsp_irq_thread_handler() 388 static bool cnl_ipc_is_dsp_busy(struct sst_dsp *dsp) in cnl_ipc_is_dsp_busy() 429 struct sst_dsp *sst; in cnl_sst_dsp_init() 468 struct sst_dsp *sst = ctx->dsp; in cnl_sst_init_fw()
|
D | skl-sst-ipc.c | 293 static bool skl_ipc_is_dsp_busy(struct sst_dsp *dsp) in skl_ipc_is_dsp_busy() 314 int skl_ipc_check_D0i0(struct sst_dsp *dsp, bool state) in skl_ipc_check_D0i0() 470 struct sst_dsp *dsp = context; in skl_dsp_irq_thread_handler() 537 void skl_ipc_int_enable(struct sst_dsp *ctx) in skl_ipc_int_enable() 543 void skl_ipc_int_disable(struct sst_dsp *ctx) in skl_ipc_int_disable() 549 void skl_ipc_op_int_enable(struct sst_dsp *ctx) in skl_ipc_op_int_enable() 560 void skl_ipc_op_int_disable(struct sst_dsp *ctx) in skl_ipc_op_int_disable() 572 bool skl_ipc_int_status(struct sst_dsp *ctx) in skl_ipc_int_status()
|
D | skl-sst-utils.c | 244 int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw, in snd_skl_parse_uuids() 379 struct sst_dsp *sst; in skl_sst_ctx_init() 412 struct sst_dsp *dsp = skl->dsp; in skl_prepare_lib_load()
|
D | skl-debug.c | 183 struct sst_dsp *sst = d->skl->skl_sst->dsp; in fw_softreg_read()
|
/Linux-v4.19/sound/soc/intel/haswell/ |
D | sst-haswell-dsp.c | 86 static void hsw_free(struct sst_dsp *sst); 88 static int hsw_parse_module(struct sst_dsp *dsp, struct sst_fw *fw, in hsw_parse_module() 186 struct sst_dsp *dsp = sst_fw->dsp; in hsw_parse_fw_image() 223 struct sst_dsp *sst = (struct sst_dsp *) context; in hsw_irq() 255 static void hsw_set_dsp_D3(struct sst_dsp *sst) in hsw_set_dsp_D3() 296 static void hsw_reset(struct sst_dsp *sst) in hsw_reset() 311 static int hsw_set_dsp_D0(struct sst_dsp *sst) in hsw_set_dsp_D0() 405 static void hsw_boot(struct sst_dsp *sst) in hsw_boot() 415 static void hsw_stall(struct sst_dsp *sst) in hsw_stall() 423 static void hsw_sleep(struct sst_dsp *sst) in hsw_sleep() [all …]
|
D | sst-haswell-ipc.c | 281 struct sst_dsp *dsp; 725 struct sst_dsp *sst = hsw->dsp; in hsw_process_notification() 776 struct sst_dsp *sst = (struct sst_dsp *) context; in hsw_irq_thread() 977 struct sst_dsp *sst = hsw->dsp; in sst_hsw_stream_new() 1003 struct sst_dsp *sst = hsw->dsp; in sst_hsw_stream_free() 1158 struct sst_dsp *dsp = sst_hsw_get_dsp(hsw); in sst_hsw_stream_set_module_info() 1458 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_runtime_module_create() 1499 struct sst_dsp *sst = hsw->dsp; in sst_hsw_dx_state_dump() 1552 struct sst_dsp *sst = hsw->dsp; in sst_hsw_dx_state_restore() 1581 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_dsp_load() [all …]
|
D | sst-haswell-ipc.h | 501 struct sst_dsp *sst_hsw_get_dsp(struct sst_hsw *hsw);
|
D | sst-haswell-pcm.c | 480 struct sst_dsp *dsp; in hsw_pcm_hw_params()
|
/Linux-v4.19/sound/soc/intel/baytrail/ |
D | sst-baytrail-dsp.c | 65 static int sst_byt_parse_module(struct sst_dsp *dsp, struct sst_fw *fw, in sst_byt_parse_module() 126 struct sst_dsp *dsp = sst_fw->dsp; in sst_byt_parse_fw_image() 159 static void sst_byt_dump_shim(struct sst_dsp *sst) in sst_byt_dump_shim() 181 struct sst_dsp *sst = (struct sst_dsp *) context; in sst_byt_irq() 207 static void sst_byt_boot(struct sst_dsp *sst) in sst_byt_boot() 232 static void sst_byt_reset(struct sst_dsp *sst) in sst_byt_reset() 258 static int sst_byt_resource_map(struct sst_dsp *sst, struct sst_pdata *pdata) in sst_byt_resource_map() 293 static int sst_byt_init(struct sst_dsp *sst, struct sst_pdata *pdata) in sst_byt_init() 345 static void sst_byt_free(struct sst_dsp *sst) in sst_byt_free()
|
D | sst-baytrail-ipc.c | 170 struct sst_dsp *dsp; 277 struct sst_dsp *sst = byt->dsp; in sst_byt_process_notification() 306 struct sst_dsp *sst = (struct sst_dsp *) context; in sst_byt_irq_thread() 351 struct sst_dsp *sst = byt->dsp; in sst_byt_stream_new() 444 struct sst_dsp *sst = byt->dsp; in sst_byt_stream_free() 552 struct sst_dsp *sst = byt->dsp; in sst_byt_get_dsp_position() 564 struct sst_dsp *sst_byt_get_dsp(struct sst_byt *byt) in sst_byt_get_dsp() 643 struct sst_dsp *sst = ipc->dsp; in byt_shim_dbg() 675 static bool byt_is_dsp_busy(struct sst_dsp *dsp) in byt_is_dsp_busy()
|
D | sst-baytrail-ipc.h | 68 struct sst_dsp *sst_byt_get_dsp(struct sst_byt *byt);
|