Home
last modified time | relevance | path

Searched refs:sdev (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/linux/sound/soc/sof/
H A Dcore.c110 * @sdev: Pointer to the device's sdev
123 void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level, in sof_print_oops_and_stack() argument
133 dev_printk(level, sdev->dev, "unexpected fault %#010x trace %#010x\n", in sof_print_oops_and_stack()
142 dev_printk(level, sdev->dev, "reason: %s (%#x)\n", in sof_print_oops_and_stack()
144 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack()
150 dev_printk(level, sdev->dev, "unknown panic code: %#x\n", in sof_print_oops_and_stack()
152 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack()
155 dev_printk(level, sdev->dev, "panic at %s:%d\n", panic_info->filename, in sof_print_oops_and_stack()
157 sof_oops(sdev, leve in sof_print_oops_and_stack()
163 sof_set_fw_state(struct snd_sof_dev * sdev,enum sof_fw_state new_state) sof_set_fw_state() argument
183 sof_of_machine_select(struct snd_sof_dev * sdev) sof_of_machine_select() argument
206 sof_machine_check(struct snd_sof_dev * sdev) sof_machine_check() argument
265 sof_select_ipc_and_paths(struct snd_sof_dev * sdev) sof_select_ipc_and_paths() argument
317 validate_sof_ops(struct snd_sof_dev * sdev) validate_sof_ops() argument
345 sof_init_sof_ops(struct snd_sof_dev * sdev) sof_init_sof_ops() argument
368 sof_init_environment(struct snd_sof_dev * sdev) sof_init_environment() argument
454 sof_probe_continue(struct snd_sof_dev * sdev) sof_probe_continue() argument
598 struct snd_sof_dev *sdev = sof_probe_work() local
632 struct snd_sof_dev *sdev; snd_sof_device_probe() local
725 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_probe_completed() local
733 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_remove() local
791 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_device_shutdown() local
806 sof_machine_register(struct snd_sof_dev * sdev,void * pdata) sof_machine_register() argument
831 sof_machine_unregister(struct snd_sof_dev * sdev,void * pdata) sof_machine_unregister() argument
[all...]
H A Dpm.c26 static u32 snd_sof_dsp_power_target(struct snd_sof_dev *sdev) in snd_sof_dsp_power_target()
30 switch (sdev->system_suspend_target) { in snd_sof_dsp_power_target()
45 if (snd_sof_stream_suspend_ignored(sdev)) in snd_sof_dsp_power_target()
60 static void sof_cache_debugfs(struct snd_sof_dev *sdev) in sof_cache_debugfs()
64 list_for_each_entry(dfse, &sdev->dfsentry_list, list) { in sof_cache_debugfs()
78 int snd_sof_boot_dsp_firmware(struct snd_sof_dev *sdev) in sof_resume()
80 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in sof_resume()
81 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_resume()
84 guard(mutex)(&sdev->dsp_fw_boot_mutex); in sof_resume()
86 if (sdev in sof_resume()
21 snd_sof_dsp_power_target(struct snd_sof_dev * sdev) snd_sof_dsp_power_target() argument
55 sof_cache_debugfs(struct snd_sof_dev * sdev) sof_cache_debugfs() argument
75 struct snd_sof_dev *sdev = dev_get_drvdata(dev); sof_resume() local
198 struct snd_sof_dev *sdev = dev_get_drvdata(dev); sof_suspend() local
296 snd_sof_dsp_power_down_notify(struct snd_sof_dev * sdev) snd_sof_dsp_power_down_notify() argument
315 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_runtime_idle() local
341 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_prepare() local
385 struct snd_sof_dev *sdev = dev_get_drvdata(dev); snd_sof_complete() local
[all...]
H A Dloader.c17 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 …]
H A Dsof-client.c55 struct snd_sof_dev *sdev; member
90 static int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument
95 if (sdev->pdata->ipc_type != SOF_IPC_TYPE_3) in sof_register_ipc_flood_test()
99 ret = sof_client_dev_register(sdev, "ipc_flood", i, NULL, 0); in sof_register_ipc_flood_test()
106 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_register_ipc_flood_test()
112 static void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) in sof_unregister_ipc_flood_test() argument
117 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_unregister_ipc_flood_test()
120 static inline int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument
125 static inline void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) {} in sof_unregister_ipc_flood_test() argument
129 static int sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) in sof_register_ipc_msg_injector() argument
[all …]
H A Ddebug.c26 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 in snd_sof_debugfs_io_item()
155 snd_sof_debugfs_add_region_item_iomem(struct snd_sof_dev * sdev,enum snd_sof_fw_blk_type blk_type,u32 offset,size_t size,const char * name,enum sof_debugfs_access_type access_type) snd_sof_debugfs_add_region_item_iomem() argument
171 snd_sof_debugfs_buf_item(struct snd_sof_dev * sdev,void * base,size_t size,const char * name,mode_t mode) snd_sof_debugfs_buf_item() argument
198 memory_info_update(struct snd_sof_dev * sdev,char * buf,size_t buff_size) memory_info_update() argument
252 struct snd_sof_dev *sdev = dfse->sdev; memory_info_read() local
270 struct snd_sof_dev *sdev = dfse->sdev; memory_info_open() local
291 snd_sof_dbg_memory_info_init(struct snd_sof_dev * sdev) snd_sof_dbg_memory_info_init() argument
311 snd_sof_dbg_init(struct snd_sof_dev * sdev) snd_sof_dbg_init() argument
379 snd_sof_free_debug(struct snd_sof_dev * sdev) snd_sof_free_debug() argument
400 snd_sof_dbg_print_fw_state(struct snd_sof_dev * sdev,const char * level) snd_sof_dbg_print_fw_state() argument
415 snd_sof_dsp_dbg_dump(struct snd_sof_dev * sdev,const char * msg,u32 flags) snd_sof_dsp_dbg_dump() argument
440 snd_sof_ipc_dump(struct snd_sof_dev * sdev) snd_sof_ipc_dump() argument
451 snd_sof_handle_fw_exception(struct snd_sof_dev * sdev,const char * msg) snd_sof_handle_fw_exception() argument
[all...]
H A Dipc3-dtrace.c45 static int trace_filter_append_elem(struct snd_sof_dev *sdev, u32 key, u32 value, in trace_filter_append_elem() argument
59 static int trace_filter_parse_entry(struct snd_sof_dev *sdev, const char *line, in trace_filter_parse_entry() argument
75 dev_err(sdev->dev, "Invalid trace filter entry '%s'\n", line); in trace_filter_parse_entry()
80 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_BY_UUID, in trace_filter_parse_entry()
86 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_BY_PIPE, in trace_filter_parse_entry()
92 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_BY_COMP, in trace_filter_parse_entry()
98 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_SET_LEVEL | in trace_filter_parse_entry()
110 static int trace_filter_parse(struct snd_sof_dev *sdev, char *string, in trace_filter_parse() argument
135 entry_len = trace_filter_parse_entry(sdev, entry, *out, capacity, &cnt); in trace_filter_parse()
137 dev_err(sdev->dev, in trace_filter_parse()
[all …]
/linux/sound/soc/sof/imx/
H A Dimx-common.c22 * @sdev: SOF device
28 void imx8_get_registers(struct snd_sof_dev *sdev, in imx8_get_registers() argument
33 u32 offset = sdev->dsp_oops_offset; in imx8_get_registers()
36 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in imx8_get_registers()
40 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in imx8_get_registers()
45 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in imx8_get_registers()
49 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in imx8_get_registers()
55 * @sdev: SOF device
58 void imx8_dump(struct snd_sof_dev *sdev, u32 flags) in imx8_dump() argument
68 sof_mailbox_read(sdev, sde in imx8_dump()
84 struct snd_sof_dev *sdev; imx_handle_reply() local
96 struct snd_sof_dev *sdev; imx_handle_request() local
120 imx_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) imx_send_msg() argument
130 imx_get_bar_index(struct snd_sof_dev * sdev,u32 type) imx_get_bar_index() argument
141 imx_get_mailbox_offset(struct snd_sof_dev * sdev) imx_get_mailbox_offset() argument
146 imx_get_window_offset(struct snd_sof_dev * sdev,u32 id) imx_get_window_offset() argument
151 imx_set_power_state(struct snd_sof_dev * sdev,const struct sof_dsp_power_state * target) imx_set_power_state() argument
159 imx_common_resume(struct snd_sof_dev * sdev) imx_common_resume() argument
177 imx_common_suspend(struct snd_sof_dev * sdev) imx_common_suspend() argument
198 imx_runtime_resume(struct snd_sof_dev * sdev) imx_runtime_resume() argument
214 imx_resume(struct snd_sof_dev * sdev) imx_resume() argument
238 imx_runtime_suspend(struct snd_sof_dev * sdev) imx_runtime_suspend() argument
252 imx_suspend(struct snd_sof_dev * sdev,unsigned int target_state) imx_suspend() argument
282 imx_parse_ioremap_memory(struct snd_sof_dev * sdev) imx_parse_ioremap_memory() argument
332 struct snd_sof_dev *sdev; imx_unregister_action() local
343 imx_probe(struct snd_sof_dev * sdev) imx_probe() argument
423 imx_remove(struct snd_sof_dev * sdev) imx_remove() argument
[all...]
/linux/sound/soc/sof/intel/
H A Dhda.c84 struct snd_sof_dev *sdev = widget_to_sdev(w); in sdw_params_free() local
86 if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4) { in sdw_params_free()
137 static int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan() argument
139 u32 interface_mask = hda_get_interface_mask(sdev); in hda_sdw_acpi_scan()
147 handle = ACPI_HANDLE(sdev->dev); in hda_sdw_acpi_scan()
150 hdev = sdev->pdata->hw_pdata; in hda_sdw_acpi_scan()
159 static int hda_sdw_probe(struct snd_sof_dev *sdev) in hda_sdw_probe() argument
166 hdev = sdev->pdata->hw_pdata; in hda_sdw_probe()
170 chip = get_chip_info(sdev->pdata); in hda_sdw_probe()
172 res.mmio_base = sdev->bar[HDA_DSP_BAR]; in hda_sdw_probe()
[all …]
H A Dmtl.c32 static void mtl_ipc_host_done(struct snd_sof_dev *sdev) in mtl_ipc_host_done() argument
38 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDR, in mtl_ipc_host_done()
43 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDA, in mtl_ipc_host_done()
47 static void mtl_ipc_dsp_done(struct snd_sof_dev *sdev) in mtl_ipc_dsp_done() argument
53 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXIDA, in mtl_ipc_dsp_done()
57 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXCTL, in mtl_ipc_dsp_done()
62 bool mtl_dsp_check_ipc_irq(struct snd_sof_dev *sdev) in mtl_dsp_check_ipc_irq() argument
67 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq()
71 hfintipptr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, MTL_HFINTIPPTR) & MTL_HFINTIPPTR_PTR_MASK; in mtl_dsp_check_ipc_irq()
72 irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, hfintipptr + MTL_DSP_IRQSTS); in mtl_dsp_check_ipc_irq()
[all …]
H A Dhda-ipc.c29 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_BA in hda_dsp_ipc_send_msg()
104 hda_dsp_ipc4_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) hda_dsp_ipc4_send_msg() argument
131 hda_dsp_ipc_get_reply(struct snd_sof_dev * sdev) hda_dsp_ipc_get_reply() argument
170 struct snd_sof_dev *sdev = context; hda_dsp_ipc4_irq_thread() local
253 struct snd_sof_dev *sdev = context; hda_dsp_ipc_irq_thread() local
364 hda_dsp_check_ipc_irq(struct snd_sof_dev * sdev) hda_dsp_check_ipc_irq() argument
397 hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev * sdev) hda_dsp_ipc_get_mailbox_offset() argument
403 hda_dsp_ipc_get_window_offset(struct snd_sof_dev * sdev,u32 id) hda_dsp_ipc_get_window_offset() argument
409 hda_ipc_msg_data(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,void * p,size_t sz) hda_ipc_msg_data() argument
435 hda_set_stream_data_offset(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,size_t posn_offset) hda_set_stream_data_offset() argument
460 hda_ipc4_dsp_dump(struct snd_sof_dev * sdev,u32 flags) hda_ipc4_dsp_dump() argument
474 hda_check_ipc_irq(struct snd_sof_dev * sdev) hda_check_ipc_irq() argument
486 hda_ipc_irq_dump(struct snd_sof_dev * sdev) hda_ipc_irq_dump() argument
507 hda_ipc_dump(struct snd_sof_dev * sdev) hda_ipc_dump() argument
527 hda_ipc4_dump(struct snd_sof_dev * sdev) hda_ipc4_dump() argument
546 hda_ipc4_tx_is_busy(struct snd_sof_dev * sdev) hda_ipc4_tx_is_busy() argument
[all...]
H A Dhda-loader-skl.c115 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 …]
H A Dbdw.c76 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_BA in bdw_set_dsp_D0()
223 bdw_get_registers(struct snd_sof_dev * sdev,struct sof_ipc_dsp_oops_xtensa * xoops,struct sof_ipc_panic_info * panic_info,u32 * stack,size_t stack_words) bdw_get_registers() argument
249 bdw_dump(struct snd_sof_dev * sdev,u32 flags) bdw_dump() argument
291 struct snd_sof_dev *sdev = context; bdw_irq_handler() local
305 struct snd_sof_dev *sdev = context; bdw_irq_thread() local
363 bdw_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) bdw_send_msg() argument
373 bdw_get_mailbox_offset(struct snd_sof_dev * sdev) bdw_get_mailbox_offset() argument
378 bdw_get_window_offset(struct snd_sof_dev * sdev,u32 id) bdw_get_window_offset() argument
383 bdw_host_done(struct snd_sof_dev * sdev) bdw_host_done() argument
395 bdw_dsp_done(struct snd_sof_dev * sdev) bdw_dsp_done() argument
409 bdw_probe(struct snd_sof_dev * sdev) bdw_probe() argument
511 bdw_machine_select(struct snd_sof_dev * sdev) bdw_machine_select() argument
530 bdw_set_mach_params(struct snd_soc_acpi_mach * mach,struct snd_sof_dev * sdev) bdw_set_mach_params() argument
[all...]
H A Dcnl.c33 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 …]
H A Dhda-loader.c34 static void hda_ssp_set_cbp_cfp(struct snd_sof_dev *sdev) in hda_ssp_set_cbp_cfp() argument
36 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_ssp_set_cbp_cfp()
42 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_ssp_set_cbp_cfp()
66 int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot) in hda_cl_prepare()
68 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_cl_prepare()
77 ret = hda_dsp_core_power_up(sdev, chip->host_managed_cores_mask); in hda_cl_prepare()
80 dev_err(sdev->dev, "error: dsp core 0/1 power up failed\n"); in hda_cl_prepare()
84 hda_ssp_set_cbp_cfp(sdev); in hda_cl_prepare()
91 snd_sof_dsp_write(sdev, HDA_DSP_BAR, chip->ipc_req, ipc_hdr); in hda_cl_prepare()
94 ret = hda_dsp_core_run(sdev, chi in hda_cl_prepare()
56 struct snd_sof_dev *sdev = dev_get_drvdata(dev); hda_cl_prepare() local
123 cl_dsp_init(struct snd_sof_dev * sdev,int stream_tag,bool imr_boot) cl_dsp_init() argument
244 struct snd_sof_dev *sdev = dev_get_drvdata(dev); hda_cl_trigger() local
278 struct snd_sof_dev *sdev = dev_get_drvdata(dev); hda_cl_cleanup() local
315 hda_cl_copy_fw(struct snd_sof_dev * sdev,struct hdac_ext_stream * hext_stream) hda_cl_copy_fw() argument
363 hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev * sdev) hda_dsp_cl_boot_firmware_iccmax() argument
410 hda_dsp_boot_imr(struct snd_sof_dev * sdev) hda_dsp_boot_imr() argument
427 hda_dsp_cl_boot_firmware(struct snd_sof_dev * sdev) hda_dsp_cl_boot_firmware() argument
572 hda_dsp_ipc4_load_library(struct snd_sof_dev * sdev,struct sof_ipc4_fw_library * fw_lib,bool reload) hda_dsp_ipc4_load_library() argument
691 hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev * sdev,const struct sof_ext_man_elem_header * hdr) hda_dsp_ext_man_get_cavs_config_data() argument
[all...]
H A Datom.c28 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_BA in atom_dump()
105 struct snd_sof_dev *sdev = context; atom_irq_handler() local
138 struct snd_sof_dev *sdev = context; atom_irq_thread() local
181 atom_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) atom_send_msg() argument
196 atom_get_mailbox_offset(struct snd_sof_dev * sdev) atom_get_mailbox_offset() argument
202 atom_get_window_offset(struct snd_sof_dev * sdev,u32 id) atom_get_window_offset() argument
208 atom_host_done(struct snd_sof_dev * sdev) atom_host_done() argument
221 atom_dsp_done(struct snd_sof_dev * sdev) atom_dsp_done() argument
232 atom_run(struct snd_sof_dev * sdev) atom_run() argument
253 atom_reset(struct snd_sof_dev * sdev) atom_reset() argument
272 fixup_tplg_name(struct snd_sof_dev * sdev,const char * sof_tplg_filename,const char * ssp_str) fixup_tplg_name() argument
296 atom_machine_select(struct snd_sof_dev * sdev) atom_machine_select() argument
407 atom_set_mach_params(struct snd_soc_acpi_mach * mach,struct snd_sof_dev * sdev) atom_set_mach_params() argument
[all...]
/linux/sound/soc/sof/amd/
H A Dacp.c50 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor() local
51 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in init_dma_descriptor()
52 struct acp_dev_data *acp_data = sdev->pdata->hw_pdata; in init_dma_descriptor()
56 addr = desc->sram_pte_offset + sdev->debug_box.offset + in init_dma_descriptor()
70 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_base_addr, addr); in init_dma_descriptor()
71 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_max_num_dscr, ACP_MAX_DESC_CNT); in init_dma_descriptor()
77 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor() local
80 offset = ACP_SCRATCH_REG_0 + sdev->debug_box.offset + in configure_dma_descriptor()
84 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset, dscr_info->src_addr); in configure_dma_descriptor()
85 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset + 0x4, dscr_info->dest_addr); in configure_dma_descriptor()
[all …]
H A Dacp-ipc.c18 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 in acp_ipc_host_msg_set()
51 acp_dsp_ipc_host_done(struct snd_sof_dev * sdev) acp_dsp_ipc_host_done() argument
59 acp_dsp_ipc_dsp_done(struct snd_sof_dev * sdev) acp_dsp_ipc_dsp_done() argument
67 acp_sof_ipc_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) acp_sof_ipc_send_msg() argument
96 acp_dsp_ipc_get_reply(struct snd_sof_dev * sdev) acp_dsp_ipc_get_reply() argument
157 struct snd_sof_dev *sdev = context; acp_sof_ipc_irq_thread() local
249 acp_sof_ipc_msg_data(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,void * p,size_t sz) acp_sof_ipc_msg_data() argument
275 acp_set_stream_data_offset(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,size_t posn_offset) acp_set_stream_data_offset() argument
296 acp_sof_ipc_get_mailbox_offset(struct snd_sof_dev * sdev) acp_sof_ipc_get_mailbox_offset() argument
304 acp_sof_ipc_get_window_offset(struct snd_sof_dev * sdev,u32 id) acp_sof_ipc_get_window_offset() argument
[all...]
/linux/drivers/scsi/
H A Dscsi.c160 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 …]
H A Dscsi_scan.c202 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() argument
207 sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n"); in scsi_unlock_floptical()
214 scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, result, 0x2a, in scsi_unlock_floptical()
218 static int scsi_realloc_sdev_budget_map(struct scsi_device *sdev, in scsi_realloc_sdev_budget_map() argument
222 bool need_alloc = !sdev->budget_map.map; in scsi_realloc_sdev_budget_map()
228 depth = min_t(unsigned int, depth, scsi_device_max_queue_depth(sdev)); in scsi_realloc_sdev_budget_map()
234 if (!need_alloc && new_shift != sdev->budget_map.shift) in scsi_realloc_sdev_budget_map()
245 memflags = blk_mq_freeze_queue(sdev->request_queue); in scsi_realloc_sdev_budget_map()
246 sb_backup = sdev->budget_map; in scsi_realloc_sdev_budget_map()
248 ret = sbitmap_init_node(&sdev->budget_map, in scsi_realloc_sdev_budget_map()
[all …]
H A Dscsi_dh.c71 scsi_dh_find_driver(struct scsi_device *sdev) in scsi_dh_find_driver() argument
75 if (scsi_device_tpgs(sdev)) in scsi_dh_find_driver()
79 if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) && in scsi_dh_find_driver()
80 !strncmp(sdev->model, b->model, strlen(b->model))) { in scsi_dh_find_driver()
124 static int scsi_dh_handler_attach(struct scsi_device *sdev, in scsi_dh_handler_attach() argument
132 error = scsi_dh->attach(sdev); in scsi_dh_handler_attach()
150 sdev_printk(KERN_ERR, sdev, "%s: Attach failed (%d)\n", in scsi_dh_handler_attach()
154 sdev->handler = scsi_dh; in scsi_dh_handler_attach()
163 static void scsi_dh_handler_detach(struct scsi_device *sdev) in scsi_dh_handler_detach() argument
165 sdev->handler->detach(sdev); in scsi_dh_handler_detach()
[all …]
/linux/drivers/media/radio/si4713/
H A Dsi4713.c174 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/drivers/net/ethernet/alacritech/
H A Dslicoss.c78 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 …]
/linux/drivers/usb/usbip/
H A Dstub_dev.c21 struct stub_device *sdev = dev_get_drvdata(dev); in usbip_status_show() local
24 if (!sdev) { in usbip_status_show()
29 spin_lock_irq(&sdev->ud.lock); in usbip_status_show()
30 status = sdev->ud.status; in usbip_status_show()
31 spin_unlock_irq(&sdev->ud.lock); in usbip_status_show()
45 struct stub_device *sdev = dev_get_drvdata(dev); in usbip_sockfd_store() local
52 if (!sdev) { in usbip_sockfd_store()
66 mutex_lock(&sdev->ud.sysfs_lock); in usbip_sockfd_store()
67 spin_lock_irq(&sdev->ud.lock); in usbip_sockfd_store()
69 if (sdev->ud.status != SDEV_ST_AVAILABLE) { in usbip_sockfd_store()
[all …]
/linux/include/scsi/
H A Dscsi_device.h308 #define sdev_dbg(sdev, fmt, a...) \ argument
309 dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
319 #define sdev_printk(l, sdev, fmt, a...) \ argument
320 sdev_prefix_printk(l, sdev, NULL, fmt, ##a)
389 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target() argument
391 return to_scsi_target(sdev->sdev_gendev.parent); in scsi_target()
406 void scsi_attach_vpd(struct scsi_device *sdev);
407 void scsi_cdl_check(struct scsi_device *sdev);
408 int scsi_cdl_enable(struct scsi_device *sdev, bool enable);
440 #define shost_for_each_device(sdev, shost) \ argument
[all …]
/linux/drivers/iommu/
H A Dsprd-iommu.c81 struct sprd_iommu_device *sdev; member
92 sprd_iommu_write(struct sprd_iommu_device *sdev, unsigned int reg, u32 val) in sprd_iommu_write() argument
94 writel_relaxed(val, sdev->base + reg); in sprd_iommu_write()
98 sprd_iommu_read(struct sprd_iommu_device *sdev, unsigned int reg) in sprd_iommu_read() argument
100 return readl_relaxed(sdev->base + reg); in sprd_iommu_read()
104 sprd_iommu_update_bits(struct sprd_iommu_device *sdev, unsigned int reg, in sprd_iommu_update_bits() argument
107 u32 t = sprd_iommu_read(sdev, reg); in sprd_iommu_update_bits()
110 sprd_iommu_write(sdev, reg, t); in sprd_iommu_update_bits()
114 sprd_iommu_get_version(struct sprd_iommu_device *sdev) in sprd_iommu_get_version() argument
116 int ver = (sprd_iommu_read(sdev, SPRD_IOMMU_VERSION) & in sprd_iommu_get_version()
[all …]

12345678910>>...14