/Linux-v5.4/sound/soc/intel/skylake/ |
D | skl-sst-dsp.h | 17 struct sst_dsp; 138 int (*load_fw)(struct sst_dsp *ctx); 140 int (*load_library)(struct sst_dsp *ctx, 142 int (*parse_fw)(struct sst_dsp *ctx); 143 int (*set_state_D0)(struct sst_dsp *ctx, unsigned int core_id); 144 int (*set_state_D3)(struct sst_dsp *ctx, unsigned int core_id); 145 int (*set_state_D0i3)(struct sst_dsp *ctx); 146 int (*set_state_D0i0)(struct sst_dsp *ctx); 147 unsigned int (*get_fw_errcode)(struct sst_dsp *ctx); 148 int (*load_mod)(struct sst_dsp *ctx, u16 mod_id, u8 *mod_name); [all …]
|
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() 59 static bool is_cnl_dsp_core_enable(struct sst_dsp *ctx, unsigned int core_mask) in is_cnl_dsp_core_enable() 77 static int cnl_dsp_reset_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_reset_core() 88 static int cnl_dsp_start_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_start_core() 111 static int cnl_dsp_core_power_up(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_power_up() 126 static int cnl_dsp_core_power_down(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_power_down() 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() [all …]
|
D | skl-sst-dsp.c | 22 void skl_dsp_set_state_locked(struct sst_dsp *ctx, int state) in skl_dsp_set_state_locked() 34 void skl_dsp_init_core_state(struct sst_dsp *ctx) in skl_dsp_init_core_state() 49 unsigned int skl_dsp_get_enabled_cores(struct sst_dsp *ctx) in skl_dsp_get_enabled_cores() 78 skl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_core_set_reset_state() 106 struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_core_unset_reset_state() 135 is_skl_dsp_core_enable(struct sst_dsp *ctx, unsigned int core_mask) in is_skl_dsp_core_enable() 153 static int skl_dsp_reset_core(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_reset_core() 164 int skl_dsp_start_core(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_start_core() 188 int skl_dsp_core_power_up(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_core_power_up() 216 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 | 11 struct sst_dsp; 85 int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core); 86 int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core); 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);
|
D | skl-sst-cldma.c | 16 static void skl_cldma_int_enable(struct sst_dsp *ctx) in skl_cldma_int_enable() 22 void skl_cldma_int_disable(struct sst_dsp *ctx) in skl_cldma_int_disable() 28 static void skl_cldma_stream_run(struct sst_dsp *ctx, bool enable) in skl_cldma_stream_run() 54 static void skl_cldma_stream_clear(struct sst_dsp *ctx) in skl_cldma_stream_clear() 76 static void skl_cldma_setup_bdle(struct sst_dsp *ctx, in skl_cldma_setup_bdle() 106 static void skl_cldma_setup_controller(struct sst_dsp *ctx, in skl_cldma_setup_controller() 128 static void skl_cldma_setup_spb(struct sst_dsp *ctx, in skl_cldma_setup_spb() 140 static void skl_cldma_cleanup_spb(struct sst_dsp *ctx) in skl_cldma_cleanup_spb() 150 static void skl_cldma_cleanup(struct sst_dsp *ctx) in skl_cldma_cleanup() 159 int skl_cldma_wait_interruptible(struct sst_dsp *ctx) in skl_cldma_wait_interruptible() [all …]
|
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);
|
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 *dsp); 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 *dsp); 158 bool skl_ipc_int_status(struct sst_dsp *dsp); 161 void skl_clear_module_cnt(struct sst_dsp *ctx);
|
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() 160 static int skl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in skl_set_dsp_D0() 214 static int skl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) in skl_set_dsp_D3() 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() 277 static struct skl_module_table *skl_fill_module_table(struct sst_dsp *ctx, in skl_fill_module_table() 314 struct sst_dsp *ctx, u16 mod_id) in skl_module_get_from_id() [all …]
|
D | bxt-sst.c | 43 static unsigned int bxt_get_errorcode(struct sst_dsp *ctx) in bxt_get_errorcode() 49 bxt_load_library(struct sst_dsp *ctx, struct skl_lib_info *linfo, int lib_count) in bxt_load_library() 97 static int sst_bxt_prepare_fw(struct sst_dsp *ctx, in sst_bxt_prepare_fw() 170 static int sst_transfer_fw_host_dma(struct sst_dsp *ctx) in sst_transfer_fw_host_dma() 184 static int bxt_load_base_firmware(struct sst_dsp *ctx) in bxt_load_base_firmware() 269 static int bxt_d0i3_target_state(struct sst_dsp *ctx) in bxt_d0i3_target_state() 293 struct sst_dsp *ctx = skl->dsp; in bxt_set_dsp_D0i3() 332 static int bxt_schedule_dsp_D0i3(struct sst_dsp *ctx) in bxt_schedule_dsp_D0i3() 349 static int bxt_set_dsp_D0i0(struct sst_dsp *ctx) in bxt_set_dsp_D0i0() 390 static int bxt_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in bxt_set_dsp_D0() [all …]
|
D | cnl-sst.c | 46 static int cnl_prepare_fw(struct sst_dsp *ctx, const void *fwdata, u32 fwsize) in cnl_prepare_fw() 93 static int sst_transfer_fw_host_dma(struct sst_dsp *ctx) in sst_transfer_fw_host_dma() 108 static int cnl_load_base_firmware(struct sst_dsp *ctx) in cnl_load_base_firmware() 167 static int cnl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in cnl_set_dsp_D0() 229 static int cnl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) in cnl_set_dsp_D3() 266 static unsigned int cnl_get_errno(struct sst_dsp *ctx) in cnl_get_errno() 294 struct sst_dsp *dsp = context; in cnl_dsp_irq_thread_handler() 379 static bool cnl_ipc_is_dsp_busy(struct sst_dsp *dsp) in cnl_ipc_is_dsp_busy() 420 struct sst_dsp *sst; in cnl_sst_dsp_init() 459 struct sst_dsp *sst = skl->dsp; in cnl_sst_init_fw()
|
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()
|
D | skl-sst-utils.c | 229 int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw, in snd_skl_parse_uuids() 361 struct sst_dsp *sst; in skl_sst_ctx_init() 388 struct sst_dsp *dsp = skl->dsp; in skl_prepare_lib_load()
|
D | skl.h | 91 struct sst_dsp *dsp;
|
D | skl-debug.c | 175 struct sst_dsp *sst = d->skl->dsp; in fw_softreg_read()
|
/Linux-v5.4/sound/soc/intel/common/ |
D | sst-dsp.h | 168 struct sst_dsp; 212 struct sst_dsp *sst_dsp_new(struct device *dev, 214 void sst_dsp_free(struct sst_dsp *sst); 218 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value); 219 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset); 220 int sst_dsp_shim_update_bits(struct sst_dsp *sst, u32 offset, 222 void sst_dsp_shim_write64(struct sst_dsp *sst, u32 offset, u64 value); 223 u64 sst_dsp_shim_read64(struct sst_dsp *sst, u32 offset); 224 int sst_dsp_shim_update_bits64(struct sst_dsp *sst, u32 offset, 226 void sst_dsp_shim_update_bits_forced(struct sst_dsp *sst, u32 offset, [all …]
|
D | sst-dsp-priv.h | 30 void (*boot)(struct sst_dsp *); 31 void (*reset)(struct sst_dsp *); 32 int (*wake)(struct sst_dsp *); 33 void (*sleep)(struct sst_dsp *); 34 void (*stall)(struct sst_dsp *); 43 void (*ram_read)(struct sst_dsp *sst, void *dest, void __iomem *src, 45 void (*ram_write)(struct sst_dsp *sst, void __iomem *dest, void *src, 48 void (*dump)(struct sst_dsp *); 54 int (*init)(struct sst_dsp *sst, struct sst_pdata *pdata); 55 void (*free)(struct sst_dsp *sst); [all …]
|
D | sst-dsp.c | 68 void sst_memcpy_toio_32(struct sst_dsp *sst, in sst_memcpy_toio_32() 75 void sst_memcpy_fromio_32(struct sst_dsp *sst, void *dest, in sst_memcpy_fromio_32() 83 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write() 93 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read() 106 void sst_dsp_shim_write64(struct sst_dsp *sst, u32 offset, u64 value) in sst_dsp_shim_write64() 116 u64 sst_dsp_shim_read64(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read64() 129 void sst_dsp_shim_write_unlocked(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write_unlocked() 135 u32 sst_dsp_shim_read_unlocked(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read_unlocked() 141 void sst_dsp_shim_write64_unlocked(struct sst_dsp *sst, u32 offset, u64 value) in sst_dsp_shim_write64_unlocked() 147 u64 sst_dsp_shim_read64_unlocked(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read64_unlocked() [all …]
|
D | sst-firmware.c | 36 struct sst_dsp *sst; 66 struct sst_dsp *sst = (struct sst_dsp *)arg; in sst_dma_transfer_complete() 71 static int sst_dsp_dma_copy(struct sst_dsp *sst, dma_addr_t dest_addr, in sst_dsp_dma_copy() 102 int sst_dsp_dma_copyto(struct sst_dsp *sst, dma_addr_t dest_addr, in sst_dsp_dma_copyto() 111 int sst_dsp_dma_copyfrom(struct sst_dsp *sst, dma_addr_t dest_addr, in sst_dsp_dma_copyfrom() 120 static void block_list_remove(struct sst_dsp *dsp, in block_list_remove() 148 static int block_list_prepare(struct sst_dsp *dsp, in block_list_prepare() 212 struct sst_dsp *dsp = (struct sst_dsp *)param; in dma_chan_filter() 217 int sst_dsp_dma_get_channel(struct sst_dsp *dsp, int chan_id) in sst_dsp_dma_get_channel() 252 void sst_dsp_dma_put_channel(struct sst_dsp *dsp) in sst_dsp_dma_put_channel() [all …]
|
D | sst-ipc.h | 39 struct sst_dsp; 46 bool (*is_dsp_busy)(struct sst_dsp *dsp); 47 int (*check_dsp_lp_on)(struct sst_dsp *dsp, bool state); 53 struct sst_dsp *dsp;
|
/Linux-v5.4/sound/soc/intel/haswell/ |
D | sst-haswell-dsp.c | 77 static void hsw_free(struct sst_dsp *sst); 79 static int hsw_parse_module(struct sst_dsp *dsp, struct sst_fw *fw, in hsw_parse_module() 177 struct sst_dsp *dsp = sst_fw->dsp; in hsw_parse_fw_image() 214 struct sst_dsp *sst = (struct sst_dsp *) context; in hsw_irq() 246 static void hsw_set_dsp_D3(struct sst_dsp *sst) in hsw_set_dsp_D3() 287 static void hsw_reset(struct sst_dsp *sst) in hsw_reset() 302 static int hsw_set_dsp_D0(struct sst_dsp *sst) in hsw_set_dsp_D0() 396 static void hsw_boot(struct sst_dsp *sst) in hsw_boot() 406 static void hsw_stall(struct sst_dsp *sst) in hsw_stall() 414 static void hsw_sleep(struct sst_dsp *sst) in hsw_sleep() [all …]
|
D | sst-haswell-ipc.c | 272 struct sst_dsp *dsp; 711 struct sst_dsp *sst = hsw->dsp; in hsw_process_notification() 762 struct sst_dsp *sst = (struct sst_dsp *) context; in hsw_irq_thread() 967 struct sst_dsp *sst = hsw->dsp; in sst_hsw_stream_new() 993 struct sst_dsp *sst = hsw->dsp; in sst_hsw_stream_free() 1149 struct sst_dsp *dsp = sst_hsw_get_dsp(hsw); in sst_hsw_stream_set_module_info() 1453 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_runtime_module_create() 1494 struct sst_dsp *sst = hsw->dsp; in sst_hsw_dx_state_dump() 1547 struct sst_dsp *sst = hsw->dsp; in sst_hsw_dx_state_restore() 1576 struct sst_dsp *dsp = hsw->dsp; in sst_hsw_dsp_load() [all …]
|
D | sst-haswell-ipc.h | 492 struct sst_dsp *sst_hsw_get_dsp(struct sst_hsw *hsw);
|
/Linux-v5.4/sound/soc/intel/baytrail/ |
D | sst-baytrail-dsp.c | 57 static int sst_byt_parse_module(struct sst_dsp *dsp, struct sst_fw *fw, in sst_byt_parse_module() 118 struct sst_dsp *dsp = sst_fw->dsp; in sst_byt_parse_fw_image() 151 static void sst_byt_dump_shim(struct sst_dsp *sst) in sst_byt_dump_shim() 173 struct sst_dsp *sst = (struct sst_dsp *) context; in sst_byt_irq() 199 static void sst_byt_boot(struct sst_dsp *sst) in sst_byt_boot() 224 static void sst_byt_reset(struct sst_dsp *sst) in sst_byt_reset() 250 static int sst_byt_resource_map(struct sst_dsp *sst, struct sst_pdata *pdata) in sst_byt_resource_map() 285 static int sst_byt_init(struct sst_dsp *sst, struct sst_pdata *pdata) in sst_byt_init() 337 static void sst_byt_free(struct sst_dsp *sst) in sst_byt_free()
|
D | sst-baytrail-ipc.c | 162 struct sst_dsp *dsp; 270 struct sst_dsp *sst = byt->dsp; in sst_byt_process_notification() 298 struct sst_dsp *sst = (struct sst_dsp *) context; in sst_byt_irq_thread() 343 struct sst_dsp *sst = byt->dsp; in sst_byt_stream_new() 437 struct sst_dsp *sst = byt->dsp; in sst_byt_stream_free() 542 struct sst_dsp *sst = byt->dsp; in sst_byt_get_dsp_position() 554 struct sst_dsp *sst_byt_get_dsp(struct sst_byt *byt) in sst_byt_get_dsp() 633 struct sst_dsp *sst = ipc->dsp; in byt_shim_dbg() 665 static bool byt_is_dsp_busy(struct sst_dsp *dsp) in byt_is_dsp_busy()
|
D | sst-baytrail-ipc.h | 60 struct sst_dsp *sst_byt_get_dsp(struct sst_byt *byt);
|