Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/linux/sound/soc/sof/
H A Dops.h21 #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(struct snd_sof_dev *sdev) in snd_sof_probe() argument
43 return sof_ops(sdev)->probe(sdev); in snd_sof_probe()
[all …]
H A Dcore.c86 void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level, in sof_print_oops_and_stack() argument
96 dev_printk(level, sdev->dev, "unexpected fault %#010x trace %#010x\n", in sof_print_oops_and_stack()
105 dev_printk(level, sdev->dev, "reason: %s (%#x)\n", in sof_print_oops_and_stack()
107 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack()
113 dev_printk(level, sdev->dev, "unknown panic code: %#x\n", in sof_print_oops_and_stack()
115 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack()
118 dev_printk(level, sdev->dev, "panic at %s:%d\n", panic_info->filename, in sof_print_oops_and_stack()
120 sof_oops(sdev, level, oops); in sof_print_oops_and_stack()
121 sof_stack(sdev, level, oops, stack, stack_words); in sof_print_oops_and_stack()
126 void sof_set_fw_state(struct snd_sof_dev *sdev, enum sof_fw_state new_state) in sof_set_fw_state() argument
[all …]
H A Dpm.c21 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 …]
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.c73 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) 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 …]
H A Dsof-priv.h227 int (*pcm_open)(struct snd_sof_dev *sdev,
230 int (*pcm_close)(struct snd_sof_dev *sdev,
234 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
240 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
244 int (*pcm_trigger)(struct snd_sof_dev *sdev,
249 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
253 int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */
260 u64 (*get_stream_position)(struct snd_sof_dev *sdev,
265 int (*ipc_msg_data)(struct snd_sof_dev *sdev,
270 int (*set_stream_data_offset)(struct snd_sof_dev *sdev,
[all …]
H A Dipc3.c18 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 …]
H A Ddebug.c44 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_read() local
87 if (pm_runtime_active(sdev->dev) || in sof_dfsentry_read()
91 dev_info(sdev->dev, in sof_dfsentry_read()
97 if (!pm_runtime_active(sdev->dev) && in sof_dfsentry_read()
99 dev_err(sdev->dev, in sof_dfsentry_read()
133 static int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev, in snd_sof_debugfs_io_item() argument
140 if (!sdev) in snd_sof_debugfs_io_item()
143 dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL); in snd_sof_debugfs_io_item()
150 dfse->sdev = sdev; in snd_sof_debugfs_io_item()
159 dfse->cache_buf = devm_kzalloc(sdev->dev, size, GFP_KERNEL); in snd_sof_debugfs_io_item()
[all …]
/openbmc/linux/sound/soc/sof/intel/
H A Dhda-dsp.c39 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument
47 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
52 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
58 dev_err(sdev->dev, in hda_dsp_core_reset_enter()
65 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
69 dev_err(sdev->dev, in hda_dsp_core_reset_enter()
78 static int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument
85 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
92 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
99 dev_err(sdev->dev, in hda_dsp_core_reset_leave()
[all …]
H A Dhda.c48 static u32 hda_get_interface_mask(struct snd_sof_dev *sdev) in hda_get_interface_mask() argument
53 chip = get_chip_info(sdev->pdata); in hda_get_interface_mask()
83 return interface_mask[sdev->dspless_mode_selected]; in hda_get_interface_mask()
143 void hda_common_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable) in hda_common_enable_sdw_irq() argument
147 hdev = sdev->pdata->hw_pdata; in hda_common_enable_sdw_irq()
152 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIC2, in hda_common_enable_sdw_irq()
157 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable() argument
159 u32 interface_mask = hda_get_interface_mask(sdev); in hda_sdw_int_enable()
165 chip = get_chip_info(sdev->pdata); in hda_sdw_int_enable()
167 chip->enable_sdw_irq(sdev, enable); in hda_sdw_int_enable()
[all …]
H A Dmtl.c28 static void mtl_ipc_host_done(struct snd_sof_dev *sdev) in mtl_ipc_host_done() argument
34 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDR, in mtl_ipc_host_done()
39 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXTDA, in mtl_ipc_host_done()
43 static void mtl_ipc_dsp_done(struct snd_sof_dev *sdev) in mtl_ipc_dsp_done() argument
49 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXIDA, in mtl_ipc_dsp_done()
53 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, MTL_DSP_REG_HFIPCXCTL, in mtl_ipc_dsp_done()
58 bool mtl_dsp_check_ipc_irq(struct snd_sof_dev *sdev) in mtl_dsp_check_ipc_irq() argument
63 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq()
67 hfintipptr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, MTL_HFINTIPPTR) & MTL_HFINTIPPTR_PTR_MASK; in mtl_dsp_check_ipc_irq()
68 irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, hfintipptr + MTL_DSP_IRQSTS); in mtl_dsp_check_ipc_irq()
[all …]
H A Dhda.h554 struct snd_sof_dev *sdev; member
576 int hda_dsp_probe(struct snd_sof_dev *sdev);
577 int hda_dsp_remove(struct snd_sof_dev *sdev);
578 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
579 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
580 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
581 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
583 int hda_power_down_dsp(struct snd_sof_dev *sdev);
584 int hda_dsp_core_get(struct snd_sof_dev *sdev, int core);
585 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev);
[all …]
H A Dhda-ipc.c23 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_host_done() argument
29 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done()
35 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done()
41 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_dsp_done() argument
47 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done()
53 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done()
59 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc_send_msg() argument
62 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg()
64 snd_sof_dsp_write(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCI, in hda_dsp_ipc_send_msg()
96 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 …]
H A Dhda-loader.c29 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()
46 struct hdac_ext_stream *hda_cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format, in hda_cl_stream_prepare() argument
52 struct pci_dev *pci = to_pci_dev(sdev->dev); in hda_cl_stream_prepare()
55 hext_stream = hda_dsp_stream_get(sdev, direction, 0); in hda_cl_stream_prepare()
58 dev_err(sdev->dev, "error: no stream available\n"); in hda_cl_stream_prepare()
67 dev_err(sdev->dev, "error: memory alloc failed: %d\n", ret); in hda_cl_stream_prepare()
76 ret = hda_dsp_iccmax_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_stream_prepare()
78 dev_err(sdev->dev, "error: iccmax stream prepare failed: %d\n", ret); in hda_cl_stream_prepare()
[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_BAR, PCI_VDRTCTL2, in bdw_set_dsp_D0()
[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-ctrl.c30 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 …]
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_BAR, SHIM_IPCD); in atom_dump()
[all …]
/openbmc/linux/sound/soc/sof/amd/
H A Dacp.c62 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor() local
63 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in init_dma_descriptor()
66 addr = desc->sram_pte_offset + sdev->debug_box.offset + in init_dma_descriptor()
69 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_DESC_BASE_ADDR, addr); in init_dma_descriptor()
70 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_DESC_MAX_NUM_DSCR, ACP_MAX_DESC_CNT); in init_dma_descriptor()
76 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor() local
79 offset = ACP_SCRATCH_REG_0 + sdev->debug_box.offset + in configure_dma_descriptor()
83 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset, dscr_info->src_addr); in configure_dma_descriptor()
84 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset + 0x4, dscr_info->dest_addr); in configure_dma_descriptor()
85 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset + 0x8, dscr_info->tx_cnt.u32_all); 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->debug_box.offset + in acp_ipc_host_msg_set()
[all …]
/openbmc/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.c201 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 …]
/openbmc/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 …]
/openbmc/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 …]

12345678910>>...18