/linux-6.12.1/sound/soc/sof/ |
D | ops.h | 21 #define sof_ops(sdev) \ argument 22 ((sdev)->pdata->desc->ops) 24 static inline int sof_ops_init(struct snd_sof_dev *sdev) in sof_ops_init() argument 26 if (sdev->pdata->desc->ops_init) in sof_ops_init() 27 return sdev->pdata->desc->ops_init(sdev); in sof_ops_init() 32 static inline void sof_ops_free(struct snd_sof_dev *sdev) in sof_ops_free() argument 34 if (sdev->pdata->desc->ops_free) in sof_ops_free() 35 sdev->pdata->desc->ops_free(sdev); in sof_ops_free() 41 static inline int snd_sof_probe_early(struct snd_sof_dev *sdev) in snd_sof_probe_early() argument 43 if (sof_ops(sdev)->probe_early) in snd_sof_probe_early() [all …]
|
D | core.c | 87 void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level, in sof_print_oops_and_stack() argument 97 dev_printk(level, sdev->dev, "unexpected fault %#010x trace %#010x\n", in sof_print_oops_and_stack() 106 dev_printk(level, sdev->dev, "reason: %s (%#x)\n", in sof_print_oops_and_stack() 108 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack() 114 dev_printk(level, sdev->dev, "unknown panic code: %#x\n", in sof_print_oops_and_stack() 116 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack() 119 dev_printk(level, sdev->dev, "panic at %s:%d\n", panic_info->filename, in sof_print_oops_and_stack() 121 sof_oops(sdev, level, oops); in sof_print_oops_and_stack() 122 sof_stack(sdev, level, oops, stack, stack_words); in sof_print_oops_and_stack() 127 void sof_set_fw_state(struct snd_sof_dev *sdev, enum sof_fw_state new_state) in sof_set_fw_state() argument [all …]
|
D | pm.c | 21 static u32 snd_sof_dsp_power_target(struct snd_sof_dev *sdev) in snd_sof_dsp_power_target() argument 25 switch (sdev->system_suspend_target) { in snd_sof_dsp_power_target() 40 if (snd_sof_stream_suspend_ignored(sdev)) in snd_sof_dsp_power_target() 55 static void sof_cache_debugfs(struct snd_sof_dev *sdev) in sof_cache_debugfs() argument 59 list_for_each_entry(dfse, &sdev->dfsentry_list, list) { in sof_cache_debugfs() 75 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sof_resume() local 76 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in sof_resume() 77 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_resume() 78 u32 old_state = sdev->dsp_power_state.state; in sof_resume() 82 if (!runtime_resume && !sof_ops(sdev)->resume) in sof_resume() [all …]
|
D | loader.c | 17 int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev) in snd_sof_load_firmware_raw() argument 19 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_raw() 25 if (sdev->basefw.fw) in snd_sof_load_firmware_raw() 34 ret = request_firmware(&sdev->basefw.fw, fw_filename, sdev->dev); in snd_sof_load_firmware_raw() 37 dev_err(sdev->dev, in snd_sof_load_firmware_raw() 39 dev_err(sdev->dev, in snd_sof_load_firmware_raw() 43 dev_dbg(sdev->dev, "request_firmware %s successful\n", in snd_sof_load_firmware_raw() 48 ext_man_size = sdev->ipc->ops->fw_loader->parse_ext_manifest(sdev); in snd_sof_load_firmware_raw() 51 sdev->basefw.payload_offset = ext_man_size; in snd_sof_load_firmware_raw() 54 dev_dbg(sdev->dev, "firmware doesn't contain extended manifest\n"); in snd_sof_load_firmware_raw() [all …]
|
D | sof-client.c | 73 static int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument 78 if (sdev->pdata->ipc_type != SOF_IPC_TYPE_3) in sof_register_ipc_flood_test() 82 ret = sof_client_dev_register(sdev, "ipc_flood", i, NULL, 0); in sof_register_ipc_flood_test() 89 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_register_ipc_flood_test() 95 static void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) in sof_unregister_ipc_flood_test() argument 100 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_unregister_ipc_flood_test() 103 static inline int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument 108 static inline void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) {} in sof_unregister_ipc_flood_test() argument 112 static int sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) in sof_register_ipc_msg_injector() argument 114 return sof_client_dev_register(sdev, "msg_injector", 0, NULL, 0); in sof_register_ipc_msg_injector() [all …]
|
D | debug.c | 26 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_read() local 69 if (pm_runtime_active(sdev->dev) || in sof_dfsentry_read() 73 dev_info(sdev->dev, in sof_dfsentry_read() 79 if (!pm_runtime_active(sdev->dev) && in sof_dfsentry_read() 81 dev_err(sdev->dev, in sof_dfsentry_read() 114 static int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev, in snd_sof_debugfs_io_item() argument 121 if (!sdev) in snd_sof_debugfs_io_item() 124 dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL); in snd_sof_debugfs_io_item() 131 dfse->sdev = sdev; in snd_sof_debugfs_io_item() 140 dfse->cache_buf = devm_kzalloc(sdev->dev, size, GFP_KERNEL); in snd_sof_debugfs_io_item() [all …]
|
D | sof-priv.h | 237 int (*pcm_open)(struct snd_sof_dev *sdev, 240 int (*pcm_close)(struct snd_sof_dev *sdev, 244 int (*pcm_hw_params)(struct snd_sof_dev *sdev, 250 int (*pcm_hw_free)(struct snd_sof_dev *sdev, 254 int (*pcm_trigger)(struct snd_sof_dev *sdev, 259 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev, 263 int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */ 272 u64 (*get_dai_frame_counter)(struct snd_sof_dev *sdev, 282 u64 (*get_host_byte_counter)(struct snd_sof_dev *sdev, 287 int (*ipc_msg_data)(struct snd_sof_dev *sdev, [all …]
|
D | ipc3.c | 18 typedef void (*ipc3_rx_callback)(struct snd_sof_dev *sdev, void *msg_buf); 226 static void sof_ipc3_dump_payload(struct snd_sof_dev *sdev, in sof_ipc3_dump_payload() argument 234 static int sof_ipc3_get_reply(struct snd_sof_dev *sdev) in sof_ipc3_get_reply() argument 236 struct snd_sof_ipc_msg *msg = sdev->msg; in sof_ipc3_get_reply() 242 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, reply, sizeof(*reply)); in sof_ipc3_get_reply() 250 dev_err(sdev->dev, in sof_ipc3_get_reply() 254 dev_err(sdev->dev, "empty reply received\n"); in sof_ipc3_get_reply() 263 dev_dbg(sdev->dev, in sof_ipc3_get_reply() 270 dev_err(sdev->dev, in sof_ipc3_get_reply() 281 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, in sof_ipc3_get_reply() [all …]
|
/linux-6.12.1/sound/soc/sof/intel/ |
D | hda-dsp.c | 45 static void hda_get_interfaces(struct snd_sof_dev *sdev, u32 *interface_mask) in hda_get_interfaces() argument 49 chip = get_chip_info(sdev->pdata); in hda_get_interfaces() 85 u32 hda_get_interface_mask(struct snd_sof_dev *sdev) in hda_get_interface_mask() argument 89 hda_get_interfaces(sdev, interface_mask); in hda_get_interface_mask() 91 return interface_mask[sdev->dspless_mode_selected]; in hda_get_interface_mask() 95 bool hda_is_chain_dma_supported(struct snd_sof_dev *sdev, u32 dai_type) in hda_is_chain_dma_supported() argument 100 if (sdev->dspless_mode_selected) in hda_is_chain_dma_supported() 103 hda_get_interfaces(sdev, interface_mask); in hda_is_chain_dma_supported() 115 chip = get_chip_info(sdev->pdata); in hda_is_chain_dma_supported() 129 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument [all …]
|
D | hda.c | 77 struct snd_sof_dev *sdev = widget_to_sdev(w); in sdw_params_free() local 79 if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4) { in sdw_params_free() 130 static int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan() argument 132 u32 interface_mask = hda_get_interface_mask(sdev); in hda_sdw_acpi_scan() 140 handle = ACPI_HANDLE(sdev->dev); in hda_sdw_acpi_scan() 143 hdev = sdev->pdata->hw_pdata; in hda_sdw_acpi_scan() 152 static int hda_sdw_probe(struct snd_sof_dev *sdev) in hda_sdw_probe() argument 159 hdev = sdev->pdata->hw_pdata; in hda_sdw_probe() 163 chip = get_chip_info(sdev->pdata); in hda_sdw_probe() 165 res.mmio_base = sdev->bar[HDA_DSP_BAR]; in hda_sdw_probe() [all …]
|
D | hda.h | 560 struct snd_sof_dev *sdev; member 583 bool hda_is_chain_dma_supported(struct snd_sof_dev *sdev, u32 dai_type); 588 int hda_dsp_probe_early(struct snd_sof_dev *sdev); 589 int hda_dsp_probe(struct snd_sof_dev *sdev); 590 void hda_dsp_remove(struct snd_sof_dev *sdev); 591 void hda_dsp_remove_late(struct snd_sof_dev *sdev); 592 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask); 593 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask); 594 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask); 595 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev, [all …]
|
D | hda-ipc.c | 29 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_host_done() argument 35 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done() 41 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done() 47 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_dsp_done() argument 53 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done() 59 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done() 65 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc_send_msg() argument 68 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg() 70 snd_sof_dsp_write(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCI, in hda_dsp_ipc_send_msg() 104 int hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc4_send_msg() argument [all …]
|
D | mtl.c | 31 static void mtl_ipc_host_done(struct snd_sof_dev *sdev) in mtl_ipc_host_done() argument 37 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDR, in mtl_ipc_host_done() 42 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDA, in mtl_ipc_host_done() 46 static void mtl_ipc_dsp_done(struct snd_sof_dev *sdev) in mtl_ipc_dsp_done() argument 52 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXIDA, in mtl_ipc_dsp_done() 56 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXCTL, in mtl_ipc_dsp_done() 61 bool mtl_dsp_check_ipc_irq(struct snd_sof_dev *sdev) in mtl_dsp_check_ipc_irq() argument 66 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq() 70 hfintipptr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, MTL_HFINTIPPTR) & MTL_HFINTIPPTR_PTR_MASK; in mtl_dsp_check_ipc_irq() 71 irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, hfintipptr + MTL_DSP_IRQSTS); in mtl_dsp_check_ipc_irq() [all …]
|
D | hda-loader-skl.c | 115 static int cl_skl_cldma_setup_bdle(struct snd_sof_dev *sdev, in cl_skl_cldma_setup_bdle() argument 135 static void cl_skl_cldma_stream_run(struct snd_sof_dev *sdev, bool enable) in cl_skl_cldma_stream_run() argument 142 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run() 151 val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run() 161 dev_err(sdev->dev, "%s: failed to set Run bit=%d enable=%d\n", in cl_skl_cldma_stream_run() 165 static void cl_skl_cldma_stream_clear(struct snd_sof_dev *sdev) in cl_skl_cldma_stream_clear() argument 170 cl_skl_cldma_stream_run(sdev, 0); in cl_skl_cldma_stream_clear() 175 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 178 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 182 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() [all …]
|
D | bdw.c | 76 static void bdw_host_done(struct snd_sof_dev *sdev); 77 static void bdw_dsp_done(struct snd_sof_dev *sdev); 83 static int bdw_run(struct snd_sof_dev *sdev) in bdw_run() argument 86 snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC, in bdw_run() 91 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_run() 98 static int bdw_reset(struct snd_sof_dev *sdev) in bdw_reset() argument 101 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 109 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 116 static int bdw_set_dsp_D0(struct snd_sof_dev *sdev) in bdw_set_dsp_D0() argument 122 snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BAR, PCI_VDRTCTL2, in bdw_set_dsp_D0() [all …]
|
D | cnl.c | 33 static void cnl_ipc_host_done(struct snd_sof_dev *sdev); 34 static void cnl_ipc_dsp_done(struct snd_sof_dev *sdev); 39 struct snd_sof_dev *sdev = context; in cnl_ipc4_irq_thread() local 44 hipcida = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDA); in cnl_ipc4_irq_thread() 45 hipctdr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCTDR); in cnl_ipc4_irq_thread() 48 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cnl_ipc4_irq_thread() 51 cnl_ipc_dsp_done(sdev); in cnl_ipc4_irq_thread() 59 u32 hipctdd = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cnl_ipc4_irq_thread() 66 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in cnl_ipc4_irq_thread() 67 struct sof_ipc4_msg *data = sdev->ipc->msg.reply_data; in cnl_ipc4_irq_thread() [all …]
|
D | hda-loader.c | 29 static void hda_ssp_set_cbp_cfp(struct snd_sof_dev *sdev) in hda_ssp_set_cbp_cfp() argument 31 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_ssp_set_cbp_cfp() 37 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_ssp_set_cbp_cfp() 50 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in hda_cl_prepare() local 55 hext_stream = hda_dsp_stream_get(sdev, direction, 0); in hda_cl_prepare() 58 dev_err(sdev->dev, "error: no stream available\n"); in hda_cl_prepare() 67 dev_err(sdev->dev, "error: memory alloc failed: %d\n", ret); in hda_cl_prepare() 76 ret = hda_dsp_iccmax_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_prepare() 78 dev_err(sdev->dev, "error: iccmax stream prepare failed: %d\n", ret); in hda_cl_prepare() 82 ret = hda_dsp_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_prepare() [all …]
|
D | hda-ctrl.c | 30 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset) in hda_dsp_ctrl_link_reset() argument 40 snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL, in hda_dsp_ctrl_link_reset() 46 gctl = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL); in hda_dsp_ctrl_link_reset() 53 dev_err(sdev->dev, "error: failed to %s HDA controller gctl 0x%x\n", in hda_dsp_ctrl_link_reset() 58 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev) in hda_dsp_ctrl_get_caps() argument 60 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_get_caps() 69 ret = hda_dsp_ctrl_link_reset(sdev, true); in hda_dsp_ctrl_get_caps() 72 ret = hda_dsp_ctrl_link_reset(sdev, false); in hda_dsp_ctrl_get_caps() 76 offset = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_LLCH); in hda_dsp_ctrl_get_caps() 79 dev_dbg(sdev->dev, "checking for capabilities at offset 0x%x\n", in hda_dsp_ctrl_get_caps() [all …]
|
D | atom.c | 28 static void atom_host_done(struct snd_sof_dev *sdev); 29 static void atom_dsp_done(struct snd_sof_dev *sdev); 35 static void atom_get_registers(struct snd_sof_dev *sdev, in atom_get_registers() argument 40 u32 offset = sdev->dsp_oops_offset; in atom_get_registers() 43 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in atom_get_registers() 49 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in atom_get_registers() 54 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in atom_get_registers() 58 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in atom_get_registers() 61 void atom_dump(struct snd_sof_dev *sdev, u32 flags) in atom_dump() argument 69 status = snd_sof_dsp_read64(sdev, DSP_BAR, SHIM_IPCD); in atom_dump() [all …]
|
/linux-6.12.1/drivers/scsi/ |
D | scsi.c | 160 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local 161 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() 162 struct Scsi_Host *shost = sdev->host; in scsi_finish_command() 166 scsi_device_unbusy(sdev, cmd); in scsi_finish_command() 176 if (atomic_read(&sdev->device_blocked)) in scsi_finish_command() 177 atomic_set(&sdev->device_blocked, 0); in scsi_finish_command() 179 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, in scsi_finish_command() 205 int scsi_device_max_queue_depth(struct scsi_device *sdev) in scsi_device_max_queue_depth() argument 207 return min_t(int, sdev->host->can_queue, 4096); in scsi_device_max_queue_depth() 217 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth() argument [all …]
|
D | scsi_scan.c | 201 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() argument 206 sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n"); in scsi_unlock_floptical() 213 scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, result, 0x2a, in scsi_unlock_floptical() 217 static int scsi_realloc_sdev_budget_map(struct scsi_device *sdev, in scsi_realloc_sdev_budget_map() argument 221 bool need_alloc = !sdev->budget_map.map; in scsi_realloc_sdev_budget_map() 226 depth = min_t(unsigned int, depth, scsi_device_max_queue_depth(sdev)); in scsi_realloc_sdev_budget_map() 232 if (!need_alloc && new_shift != sdev->budget_map.shift) in scsi_realloc_sdev_budget_map() 243 blk_mq_freeze_queue(sdev->request_queue); in scsi_realloc_sdev_budget_map() 244 sb_backup = sdev->budget_map; in scsi_realloc_sdev_budget_map() 246 ret = sbitmap_init_node(&sdev->budget_map, in scsi_realloc_sdev_budget_map() [all …]
|
/linux-6.12.1/sound/soc/sof/amd/ |
D | acp.c | 65 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor() local 66 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in init_dma_descriptor() 67 struct acp_dev_data *acp_data = sdev->pdata->hw_pdata; in init_dma_descriptor() 71 addr = desc->sram_pte_offset + sdev->debug_box.offset + in init_dma_descriptor() 83 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_base_addr, addr); in init_dma_descriptor() 84 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_max_num_dscr, ACP_MAX_DESC_CNT); in init_dma_descriptor() 90 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor() local 93 offset = ACP_SCRATCH_REG_0 + sdev->debug_box.offset + in configure_dma_descriptor() 97 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset, dscr_info->src_addr); in configure_dma_descriptor() 98 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset + 0x4, dscr_info->dest_addr); in configure_dma_descriptor() [all …]
|
D | acp-ipc.c | 18 void acp_mailbox_write(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_write() argument 20 memcpy_to_scratch(sdev, offset, message, bytes); in acp_mailbox_write() 24 void acp_mailbox_read(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_read() argument 26 memcpy_from_scratch(sdev, offset, message, bytes); in acp_mailbox_read() 32 struct snd_sof_dev *sdev = adata->dev; in acpbus_trigger_host_to_dsp_swintr() local 33 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in acpbus_trigger_host_to_dsp_swintr() 36 swintr_trigger = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->dsp_intr_base + in acpbus_trigger_host_to_dsp_swintr() 39 snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->dsp_intr_base + DSP_SW_INTR_TRIG_OFFSET, in acpbus_trigger_host_to_dsp_swintr() 43 static void acp_ipc_host_msg_set(struct snd_sof_dev *sdev) in acp_ipc_host_msg_set() argument 45 unsigned int host_msg = sdev->debug_box.offset + in acp_ipc_host_msg_set() [all …]
|
/linux-6.12.1/drivers/media/radio/si4713/ |
D | si4713.c | 174 struct si4713_device *sdev = dev; in si4713_handler() local 176 v4l2_dbg(2, debug, &sdev->sd, in si4713_handler() 178 complete(&sdev->work); in si4713_handler() 193 static int si4713_send_command(struct si4713_device *sdev, const u8 command, in si4713_send_command() argument 197 struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd); in si4713_send_command() 208 DBG_BUFFER(&sdev->sd, "Parameters", data1, argn + 1); in si4713_send_command() 212 v4l2_err(&sdev->sd, "Error while sending command 0x%02x\n", in si4713_send_command() 221 if (!wait_for_completion_timeout(&sdev->work, in si4713_send_command() 223 v4l2_warn(&sdev->sd, in si4713_send_command() 231 v4l2_err(&sdev->sd, in si4713_send_command() [all …]
|
/linux-6.12.1/drivers/net/ethernet/alacritech/ |
D | slicoss.c | 78 static unsigned int slic_next_compl_idx(struct slic_device *sdev) in slic_next_compl_idx() argument 80 struct slic_stat_queue *stq = &sdev->stq; in slic_next_compl_idx() 102 slic_write(sdev, SLIC_REG_RBAR, lower_32_bits(paddr) | in slic_next_compl_idx() 105 slic_flush_write(sdev); in slic_next_compl_idx() 139 static void slic_start_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_start_upr() argument 145 slic_write(sdev, reg, lower_32_bits(upr->paddr)); in slic_start_upr() 146 slic_flush_write(sdev); in slic_start_upr() 149 static void slic_queue_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_queue_upr() argument 151 struct slic_upr_list *upr_list = &sdev->upr_list; in slic_queue_upr() 162 slic_start_upr(sdev, upr); in slic_queue_upr() [all …]
|