Home
last modified time | relevance | path

Searched refs:sst (Results 1 – 25 of 65) sorted by relevance

123

/kernel/linux/linux-5.10/sound/soc/intel/common/
Dsst-dsp.c48 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write() argument
52 spin_lock_irqsave(&sst->spinlock, flags); in sst_dsp_shim_write()
53 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write()
54 spin_unlock_irqrestore(&sst->spinlock, flags); in sst_dsp_shim_write()
58 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset) in sst_dsp_shim_read() argument
63 spin_lock_irqsave(&sst->spinlock, flags); in sst_dsp_shim_read()
64 val = sst->ops->read(sst->addr.shim, offset); in sst_dsp_shim_read()
65 spin_unlock_irqrestore(&sst->spinlock, flags); 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() argument
73 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write_unlocked()
[all …]
Dsst-dsp.h30 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,
38 void sst_dsp_shim_write_unlocked(struct sst_dsp *sst, u32 offset, u32 value);
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,
42 void sst_dsp_shim_update_bits_forced_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);
[all …]
DMakefile2 snd-soc-sst-dsp-objs := sst-dsp.o
3 snd-soc-sst-ipc-objs := sst-ipc.o
14 obj-$(CONFIG_SND_SOC_INTEL_SST) += snd-soc-sst-dsp.o snd-soc-sst-ipc.o
Dsst-dsp-priv.h30 int (*init)(struct sst_dsp *sst);
31 void (*free)(struct sst_dsp *sst);
/kernel/linux/linux-5.10/sound/soc/intel/boards/
DMakefile2 snd-soc-sst-haswell-objs := haswell.o
3 snd-soc-sst-bdw-rt5650-mach-objs := bdw-rt5650.o
4 snd-soc-sst-bdw-rt5677-mach-objs := bdw-rt5677.o
5 snd-soc-sst-broadwell-objs := broadwell.o
6 snd-soc-sst-bxt-da7219_max98357a-objs := bxt_da7219_max98357a.o hda_dsp_common.o
7 snd-soc-sst-bxt-rt298-objs := bxt_rt298.o hda_dsp_common.o
8 snd-soc-sst-sof-pcm512x-objs := sof_pcm512x.o hda_dsp_common.o
9 snd-soc-sst-sof-wm8804-objs := sof_wm8804.o
10 snd-soc-sst-glk-rt5682_max98357a-objs := glk_rt5682_max98357a.o hda_dsp_common.o
11 snd-soc-sst-bytcr-rt5640-objs := bytcr_rt5640.o
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/atom/
Dsst-mfld-platform-compress.c56 if (!sst || !try_module_get(sst->dev->driver->owner)) { in sst_platform_compr_open()
61 stream->compr_ops = sst->compr_ops; in sst_platform_compr_open()
65 sst->compr_ops->power(sst->dev, true); in sst_platform_compr_open()
83 sst->compr_ops->power(sst->dev, false); in sst_platform_compr_free()
88 ret_val = stream->compr_ops->close(sst->dev, str_id); in sst_platform_compr_free()
89 module_put(sst->dev->driver->owner); in sst_platform_compr_free()
159 retval = stream->compr_ops->open(sst->dev, &str_params, &cb); in sst_platform_compr_set_params()
177 return stream->compr_ops->stream_start(sst->dev, stream->id); in sst_platform_compr_trigger()
181 return stream->compr_ops->stream_drop(sst->dev, stream->id); in sst_platform_compr_trigger()
185 return stream->compr_ops->stream_drain(sst->dev, stream->id); in sst_platform_compr_trigger()
[all …]
DMakefile2 snd-soc-sst-atom-hifi2-platform-objs := sst-mfld-platform-pcm.o \
3 sst-mfld-platform-compress.o \
4 sst-atom-controls.o
6 obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM) += snd-soc-sst-atom-hifi2-platform.o
9 obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM) += sst/
Dsst-mfld-platform-pcm.c26 struct sst_device *sst; variable
36 if (sst) { in sst_register_dsp()
37 dev_err(dev->dev, "we already have a device %s\n", sst->name); in sst_register_dsp()
43 sst = dev; in sst_register_dsp()
53 if (dev != sst) in sst_unregister_dsp()
58 if (!sst) { in sst_unregister_dsp()
63 module_put(sst->dev->driver->owner); in sst_unregister_dsp()
64 dev_dbg(dev->dev, "unreg %s\n", sst->name); in sst_unregister_dsp()
65 sst = NULL; in sst_unregister_dsp()
247 ret_val = stream->ops->open(sst->dev, &str_params); in sst_platform_alloc_stream()
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
DMakefile3 skl-sst-ipc.o skl-sst-dsp.o cnl-sst-dsp.o skl-sst-cldma.o \
4 skl-sst.o bxt-sst.o cnl-sst.o skl-sst-utils.o
Dskl-sst-dsp.c409 struct sst_dsp *sst; in skl_dsp_ctx_init() local
411 sst = devm_kzalloc(dev, sizeof(*sst), GFP_KERNEL); in skl_dsp_ctx_init()
412 if (sst == NULL) in skl_dsp_ctx_init()
415 spin_lock_init(&sst->spinlock); in skl_dsp_ctx_init()
416 mutex_init(&sst->mutex); in skl_dsp_ctx_init()
417 sst->dev = dev; in skl_dsp_ctx_init()
418 sst->sst_dev = sst_dev; in skl_dsp_ctx_init()
419 sst->irq = irq; in skl_dsp_ctx_init()
420 sst->ops = sst_dev->ops; in skl_dsp_ctx_init()
421 sst->thread_context = sst_dev->thread_context; in skl_dsp_ctx_init()
[all …]
Dskl-sst.c522 struct sst_dsp *sst; in skl_sst_dsp_init() local
532 sst = skl->dsp; in skl_sst_dsp_init()
533 sst->addr.lpe = mmio_base; in skl_sst_dsp_init()
534 sst->addr.shim = mmio_base; in skl_sst_dsp_init()
535 sst->addr.sram0_base = SKL_ADSP_SRAM0_BASE; in skl_sst_dsp_init()
536 sst->addr.sram1_base = SKL_ADSP_SRAM1_BASE; in skl_sst_dsp_init()
537 sst->addr.w0_stat_sz = SKL_ADSP_W0_STAT_SZ; in skl_sst_dsp_init()
538 sst->addr.w0_up_sz = SKL_ADSP_W0_UP_SZ; in skl_sst_dsp_init()
540 sst_dsp_mailbox_init(sst, (SKL_ADSP_SRAM0_BASE + SKL_ADSP_W0_STAT_SZ), in skl_sst_dsp_init()
545 skl_dsp_free(sst); in skl_sst_dsp_init()
[all …]
Dbxt-sst.c549 struct sst_dsp *sst; in bxt_sst_dsp_init() local
559 sst = skl->dsp; in bxt_sst_dsp_init()
560 sst->fw_ops = bxt_fw_ops; in bxt_sst_dsp_init()
561 sst->addr.lpe = mmio_base; in bxt_sst_dsp_init()
562 sst->addr.shim = mmio_base; in bxt_sst_dsp_init()
563 sst->addr.sram0_base = BXT_ADSP_SRAM0_BASE; in bxt_sst_dsp_init()
564 sst->addr.sram1_base = BXT_ADSP_SRAM1_BASE; in bxt_sst_dsp_init()
565 sst->addr.w0_stat_sz = SKL_ADSP_W0_STAT_SZ; in bxt_sst_dsp_init()
566 sst->addr.w0_up_sz = SKL_ADSP_W0_UP_SZ; in bxt_sst_dsp_init()
568 sst_dsp_mailbox_init(sst, (BXT_ADSP_SRAM0_BASE + SKL_ADSP_W0_STAT_SZ), in bxt_sst_dsp_init()
[all …]
Dcnl-sst.c440 struct sst_dsp *sst; in cnl_sst_dsp_init() local
450 sst = cnl->dsp; in cnl_sst_dsp_init()
451 sst->fw_ops = cnl_fw_ops; in cnl_sst_dsp_init()
452 sst->addr.lpe = mmio_base; in cnl_sst_dsp_init()
453 sst->addr.shim = mmio_base; in cnl_sst_dsp_init()
454 sst->addr.sram0_base = CNL_ADSP_SRAM0_BASE; in cnl_sst_dsp_init()
455 sst->addr.sram1_base = CNL_ADSP_SRAM1_BASE; in cnl_sst_dsp_init()
456 sst->addr.w0_stat_sz = CNL_ADSP_W0_STAT_SZ; in cnl_sst_dsp_init()
457 sst->addr.w0_up_sz = CNL_ADSP_W0_UP_SZ; in cnl_sst_dsp_init()
459 sst_dsp_mailbox_init(sst, (CNL_ADSP_SRAM0_BASE + CNL_ADSP_W0_STAT_SZ), in cnl_sst_dsp_init()
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/atom/sst/
Dsst_pvt.c220 int sst_prepare_and_post_msg(struct intel_sst_drv *sst, in sst_prepare_and_post_msg() argument
230 pvt_id = sst_assign_pvt_id(sst); in sst_prepare_and_post_msg()
236 &msg, large, sst, &block, ipc_msg, pvt_id); in sst_prepare_and_post_msg()
241 test_and_clear_bit(pvt_id, &sst->pvt_id); in sst_prepare_and_post_msg()
245 dev_dbg(sst->dev, "pvt_id = %d, pipe id = %d, task = %d ipc_msg: %d\n", in sst_prepare_and_post_msg()
251 dev_dbg(sst->dev, "header:%x\n", in sst_prepare_and_post_msg()
253 dev_dbg(sst->dev, "response rqd: %x", in sst_prepare_and_post_msg()
255 dev_dbg(sst->dev, "msg->mrfld_header.p.header_low_payload:%d", in sst_prepare_and_post_msg()
267 sst->ops->post_message(sst, msg, true); in sst_prepare_and_post_msg()
269 sst_add_to_dispatch_list_and_post(sst, msg); in sst_prepare_and_post_msg()
[all …]
DMakefile2 snd-intel-sst-core-objs := sst.o sst_ipc.o sst_stream.o sst_drv_interface.o sst_loader.o sst_pvt.o
3 snd-intel-sst-pci-objs += sst_pci.o
4 snd-intel-sst-acpi-objs += sst_acpi.o
6 obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM) += snd-intel-sst-core.o
7 obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_PCI) += snd-intel-sst-pci.o
8 obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI) += snd-intel-sst-acpi.o
Dsst_loader.c285 static int sst_cache_and_parse_fw(struct intel_sst_drv *sst, in sst_cache_and_parse_fw() argument
290 sst->fw_in_mem = kzalloc(fw->size, GFP_KERNEL); in sst_cache_and_parse_fw()
291 if (!sst->fw_in_mem) { in sst_cache_and_parse_fw()
295 dev_dbg(sst->dev, "copied fw to %p", sst->fw_in_mem); in sst_cache_and_parse_fw()
296 dev_dbg(sst->dev, "phys: %lx", (unsigned long)virt_to_phys(sst->fw_in_mem)); in sst_cache_and_parse_fw()
297 memcpy(sst->fw_in_mem, fw->data, fw->size); in sst_cache_and_parse_fw()
298 retval = sst_parse_fw_memcpy(sst, fw->size, &sst->memcpy_list); in sst_cache_and_parse_fw()
300 dev_err(sst->dev, "Failed to parse fw\n"); in sst_cache_and_parse_fw()
301 kfree(sst->fw_in_mem); in sst_cache_and_parse_fw()
302 sst->fw_in_mem = NULL; in sst_cache_and_parse_fw()
[all …]
Dsst.h431 int (*save_dsp_context)(struct intel_sst_drv *sst);
434 void (*post_download)(struct intel_sst_drv *sst);
474 int intel_sst_register_compress(struct intel_sst_drv *sst);
475 int intel_sst_remove_compress(struct intel_sst_drv *sst);
491 int sst_driver_ops(struct intel_sst_drv *sst);
494 int sst_prepare_and_post_msg(struct intel_sst_drv *sst,
507 void sst_add_to_dispatch_list_and_post(struct intel_sst_drv *sst,
Dsst.c143 static int sst_save_dsp_context_v2(struct intel_sst_drv *sst) in sst_save_dsp_context_v2() argument
147 ret = sst_prepare_and_post_msg(sst, SST_TASK_ID_MEDIA, IPC_CMD, in sst_save_dsp_context_v2()
152 dev_err(sst->dev, "not suspending FW!!, Err: %d\n", ret); in sst_save_dsp_context_v2()
173 int sst_driver_ops(struct intel_sst_drv *sst) in sst_driver_ops() argument
176 switch (sst->dev_id) { in sst_driver_ops()
180 sst->tstamp = SST_TIME_STAMP_MRFLD; in sst_driver_ops()
181 sst->ops = &mrfld_ops; in sst_driver_ops()
185 dev_err(sst->dev, in sst_driver_ops()
187 sst->dev_id); in sst_driver_ops()
/kernel/linux/linux-5.10/arch/arm64/crypto/
Dsha2-ce-glue.c26 struct sha256_state sst; member
33 asmlinkage int sha2_ce_transform(struct sha256_ce_state *sst, u8 const *src,
36 static void __sha2_ce_transform(struct sha256_state *sst, u8 const *src, in __sha2_ce_transform() argument
43 rem = sha2_ce_transform(container_of(sst, struct sha256_ce_state, in __sha2_ce_transform()
44 sst), src, blocks); in __sha2_ce_transform()
52 sst.count);
58 static void __sha256_block_data_order(struct sha256_state *sst, u8 const *src, in __sha256_block_data_order() argument
61 sha256_block_data_order(sst->state, src, blocks); in __sha256_block_data_order()
83 bool finalize = !sctx->sst.count && !(len % SHA256_BLOCK_SIZE) && len; in sha256_ce_finup()
123 memcpy(out, &sctx->sst, sizeof(struct sha256_state)); in sha256_ce_export()
[all …]
Dsha1-ce-glue.c25 struct sha1_state sst; member
32 asmlinkage int sha1_ce_transform(struct sha1_ce_state *sst, u8 const *src,
35 static void __sha1_ce_transform(struct sha1_state *sst, u8 const *src, in __sha1_ce_transform() argument
42 rem = sha1_ce_transform(container_of(sst, struct sha1_ce_state, in __sha1_ce_transform()
43 sst), src, blocks); in __sha1_ce_transform()
50 const u32 sha1_ce_offsetof_count = offsetof(struct sha1_ce_state, sst.count);
71 bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE) && len; in sha1_ce_finup()
104 memcpy(out, &sctx->sst, sizeof(struct sha1_state)); in sha1_ce_export()
112 memcpy(&sctx->sst, in, sizeof(struct sha1_state)); in sha1_ce_import()
Dsha512-ce-glue.c29 asmlinkage int sha512_ce_transform(struct sha512_state *sst, u8 const *src,
34 static void __sha512_ce_transform(struct sha512_state *sst, u8 const *src, in __sha512_ce_transform() argument
41 rem = sha512_ce_transform(sst, src, blocks); in __sha512_ce_transform()
48 static void __sha512_block_data_order(struct sha512_state *sst, u8 const *src, in __sha512_block_data_order() argument
51 sha512_block_data_order(sst->state, src, blocks); in __sha512_block_data_order()
Dsha256-glue.c29 static void __sha256_block_data_order(struct sha256_state *sst, u8 const *src, in __sha256_block_data_order() argument
32 sha256_block_data_order(sst->state, src, blocks); in __sha256_block_data_order()
38 static void __sha256_block_neon(struct sha256_state *sst, u8 const *src, in __sha256_block_neon() argument
41 sha256_block_neon(sst->state, src, blocks); in __sha256_block_neon()
/kernel/linux/linux-5.10/drivers/hsi/controllers/
Domap_ssi_port.c146 omap_port->sst.divisor = val; in ssi_div_set()
349 if (omap_port->sst.mode != SSI_MODE_FRAME) { in ssi_async_break()
393 BUG_ON(msg->channel >= omap_port->sst.channels); in ssi_async()
460 void __iomem *sst = omap_port->sst_base; in ssi_setup() local
478 writel_relaxed(SSI_MODE_SLEEP, sst + SSI_SST_MODE_REG); in ssi_setup()
483 writel_relaxed(31, sst + SSI_SST_FRAMESIZE_REG); in ssi_setup()
484 writel_relaxed(div, sst + SSI_SST_DIVISOR_REG); in ssi_setup()
485 writel_relaxed(cl->tx_cfg.num_hw_channels, sst + SSI_SST_CHANNELS_REG); in ssi_setup()
486 writel_relaxed(cl->tx_cfg.arb_mode, sst + SSI_SST_ARBMODE_REG); in ssi_setup()
487 writel_relaxed(cl->tx_cfg.mode, sst + SSI_SST_MODE_REG); in ssi_setup()
[all …]
/kernel/linux/linux-5.10/crypto/
Dsm3_generic.c124 static void sm3_transform(struct sm3_state *sst, u8 const *src) in sm3_transform() argument
130 sm3_compress(w, wt, sst->state); in sm3_transform()
136 static void sm3_generic_block_fn(struct sm3_state *sst, u8 const *src, in sm3_generic_block_fn() argument
140 sm3_transform(sst, src); in sm3_generic_block_fn()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dfpsimd.c423 static void __fpsimd_to_sve(void *sst, struct user_fpsimd_state const *fst, in __fpsimd_to_sve() argument
430 p = (__uint128_t *)ZREG(sst, vq, i); in __fpsimd_to_sve()
450 void *sst = task->thread.sve_state; in fpsimd_to_sve() local
457 __fpsimd_to_sve(sst, fst, vq); in fpsimd_to_sve()
474 void const *sst = task->thread.sve_state; in sve_to_fpsimd() local
484 p = (__uint128_t const *)ZREG(sst, vq, i); in sve_to_fpsimd()
572 void *sst = task->thread.sve_state; in sve_sync_from_fpsimd_zeropad() local
580 memset(sst, 0, SVE_SIG_REGS_SIZE(vq)); in sve_sync_from_fpsimd_zeropad()
581 __fpsimd_to_sve(sst, fst, vq); in sve_sync_from_fpsimd_zeropad()

123