Home
last modified time | relevance | path

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

12345678910>>...16

/Linux-v6.1/sound/soc/sof/
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 …]
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 …]
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 = sdev->ipc->ops->pm; in sof_resume()
77 const struct sof_ipc_tplg_ops *tplg_ops = sdev->ipc->ops->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 …]
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()
34 ret = request_firmware(&plat_data->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()
54 dev_dbg(sdev->dev, "firmware doesn't contain extended manifest\n"); in snd_sof_load_firmware_raw()
57 dev_err(sdev->dev, "error: firmware %s contains unsupported or invalid extended manifest: %d\n", in snd_sof_load_firmware_raw()
68 int snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev) in snd_sof_load_firmware_memcpy() argument
[all …]
Dsof-client.c71 static int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument
76 if (sdev->pdata->ipc_type != SOF_IPC) in sof_register_ipc_flood_test()
80 ret = sof_client_dev_register(sdev, "ipc_flood", i, NULL, 0); in sof_register_ipc_flood_test()
87 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_register_ipc_flood_test()
93 static void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) in sof_unregister_ipc_flood_test() argument
98 sof_client_dev_unregister(sdev, "ipc_flood", i); in sof_unregister_ipc_flood_test()
101 static inline int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) in sof_register_ipc_flood_test() argument
106 static inline void sof_unregister_ipc_flood_test(struct snd_sof_dev *sdev) {} in sof_unregister_ipc_flood_test() argument
110 static int sof_register_ipc_msg_injector(struct snd_sof_dev *sdev) in sof_register_ipc_msg_injector() argument
112 return sof_client_dev_register(sdev, "msg_injector", 0, NULL, 0); in sof_register_ipc_msg_injector()
[all …]
Dipc3.c18 typedef void (*ipc3_rx_callback)(struct snd_sof_dev *sdev, void *msg_buf);
226 static int sof_ipc3_get_reply(struct snd_sof_dev *sdev) in sof_ipc3_get_reply() argument
228 struct snd_sof_ipc_msg *msg = sdev->msg; in sof_ipc3_get_reply()
234 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, reply, sizeof(*reply)); in sof_ipc3_get_reply()
242 dev_err(sdev->dev, in sof_ipc3_get_reply()
246 dev_err(sdev->dev, "empty reply received\n"); in sof_ipc3_get_reply()
255 dev_dbg(sdev->dev, in sof_ipc3_get_reply()
262 dev_err(sdev->dev, in sof_ipc3_get_reply()
273 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, in sof_ipc3_get_reply()
285 struct snd_sof_dev *sdev = ipc->sdev; in ipc3_wait_tx_done() local
[all …]
Dsof-priv.h202 int (*pcm_open)(struct snd_sof_dev *sdev,
205 int (*pcm_close)(struct snd_sof_dev *sdev,
209 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
215 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
219 int (*pcm_trigger)(struct snd_sof_dev *sdev,
224 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
228 int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */
231 int (*ipc_msg_data)(struct snd_sof_dev *sdev,
236 int (*set_stream_data_offset)(struct snd_sof_dev *sdev,
255 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
[all …]
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 …]
/Linux-v6.1/sound/soc/sof/intel/
Dhda-dsp.c38 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument
46 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
51 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
57 dev_err(sdev->dev, in hda_dsp_core_reset_enter()
64 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
68 dev_err(sdev->dev, in hda_dsp_core_reset_enter()
77 static int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument
84 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
91 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
98 dev_err(sdev->dev, in hda_dsp_core_reset_leave()
[all …]
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 static bool mtl_dsp_check_ipc_irq(struct snd_sof_dev *sdev) in mtl_dsp_check_ipc_irq() argument
64 hfintipptr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, MTL_HFINTIPPTR) & MTL_HFINTIPPTR_PTR_MASK; in mtl_dsp_check_ipc_irq()
65 irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, hfintipptr + MTL_DSP_IRQSTS); in mtl_dsp_check_ipc_irq()
67 trace_sof_intel_hda_irq_ipc_check(sdev, irq_status); in mtl_dsp_check_ipc_irq()
[all …]
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()
70 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 …]
Dhda.c52 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component); in hda_ctrl_dai_widget_setup() local
53 const struct sof_ipc_tplg_ops *tplg_ops = sdev->ipc->ops->tplg; in hda_ctrl_dai_widget_setup()
58 dev_err(sdev->dev, "%s: No DAI for DAI widget %s\n", __func__, w->name); in hda_ctrl_dai_widget_setup()
69 ret = tplg_ops->dai_config(sdev, swidget, flags, data); in hda_ctrl_dai_widget_setup()
71 dev_err(sdev->dev, "%s: DAI config failed for widget %s\n", __func__, in hda_ctrl_dai_widget_setup()
85 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component); in hda_ctrl_dai_widget_free() local
86 const struct sof_ipc_tplg_ops *tplg_ops = sdev->ipc->ops->tplg; in hda_ctrl_dai_widget_free()
90 dev_err(sdev->dev, "%s: No DAI for BE DAI widget %s\n", __func__, w->name); in hda_ctrl_dai_widget_free()
102 ret = tplg_ops->dai_config(sdev, swidget, flags, data); in hda_ctrl_dai_widget_free()
104 dev_err(sdev->dev, "%s: DAI config failed for widget '%s'\n", __func__, in hda_ctrl_dai_widget_free()
[all …]
Dhda-loader-skl.c116 static int cl_skl_cldma_setup_bdle(struct snd_sof_dev *sdev, in cl_skl_cldma_setup_bdle() argument
136 static void cl_skl_cldma_stream_run(struct snd_sof_dev *sdev, bool enable) in cl_skl_cldma_stream_run() argument
143 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run()
152 val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run()
162 dev_err(sdev->dev, "%s: failed to set Run bit=%d enable=%d\n", in cl_skl_cldma_stream_run()
166 static void cl_skl_cldma_stream_clear(struct snd_sof_dev *sdev) in cl_skl_cldma_stream_clear() argument
171 cl_skl_cldma_stream_run(sdev, 0); in cl_skl_cldma_stream_clear()
176 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear()
179 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear()
183 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear()
[all …]
Dhda-loader.c27 static void hda_ssp_set_cbp_cfp(struct snd_sof_dev *sdev) in hda_ssp_set_cbp_cfp() argument
29 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_ssp_set_cbp_cfp()
35 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_ssp_set_cbp_cfp()
44 struct hdac_ext_stream *hda_cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format, in hda_cl_stream_prepare() argument
50 struct pci_dev *pci = to_pci_dev(sdev->dev); in hda_cl_stream_prepare()
53 hext_stream = hda_dsp_stream_get(sdev, direction, 0); in hda_cl_stream_prepare()
56 dev_err(sdev->dev, "error: no stream available\n"); in hda_cl_stream_prepare()
65 dev_err(sdev->dev, "error: memory alloc failed: %d\n", ret); in hda_cl_stream_prepare()
74 ret = hda_dsp_iccmax_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_stream_prepare()
76 dev_err(sdev->dev, "error: iccmax stream prepare failed: %d\n", ret); in hda_cl_stream_prepare()
[all …]
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 …]
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
43 hipcida = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDA); in cnl_ipc4_irq_thread()
46 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cnl_ipc4_irq_thread()
49 cnl_ipc_dsp_done(sdev); in cnl_ipc4_irq_thread()
54 hipctdr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCTDR); in cnl_ipc4_irq_thread()
57 u32 hipctdd = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cnl_ipc4_irq_thread()
64 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in cnl_ipc4_irq_thread()
65 struct sof_ipc4_msg *data = sdev->ipc->msg.reply_data; in cnl_ipc4_irq_thread()
[all …]
Dhda.h541 struct snd_sof_dev *sdev; member
563 int hda_dsp_probe(struct snd_sof_dev *sdev);
564 int hda_dsp_remove(struct snd_sof_dev *sdev);
565 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
566 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
567 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
568 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
570 int hda_power_down_dsp(struct snd_sof_dev *sdev);
571 int hda_dsp_core_get(struct snd_sof_dev *sdev, int core);
572 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev);
[all …]
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 …]
/Linux-v6.1/sound/soc/sof/amd/
Dacp.c41 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor() local
42 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in init_dma_descriptor()
45 addr = desc->sram_pte_offset + sdev->debug_box.offset + in init_dma_descriptor()
48 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_DESC_BASE_ADDR, addr); in init_dma_descriptor()
49 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_DMA_DESC_MAX_NUM_DSCR, ACP_MAX_DESC_CNT); in init_dma_descriptor()
55 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor() local
58 offset = ACP_SCRATCH_REG_0 + sdev->debug_box.offset + in configure_dma_descriptor()
62 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset, dscr_info->src_addr); in configure_dma_descriptor()
63 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset + 0x4, dscr_info->dest_addr); in configure_dma_descriptor()
64 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset + 0x8, dscr_info->tx_cnt.u32_all); in configure_dma_descriptor()
[all …]
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 …]
/Linux-v6.1/drivers/scsi/
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 …]
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_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, 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 …]
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-v6.1/drivers/media/radio/si4713/
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-v6.1/drivers/net/ethernet/alacritech/
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>>...16