Home
last modified time | relevance | path

Searched refs:sdw (Results 1 – 25 of 62) sorted by relevance

123

/linux/drivers/soundwire/
H A Dintel.h133 #define SDW_INTEL_CHECK_OPS(sdw, cb) ((sdw) && (sdw)->link_res && (sdw)->link_res->hw_ops && \ argument
134 (sdw)->link_res->hw_ops->cb)
135 #define SDW_INTEL_OPS(sdw, cb) ((sdw)->link_res->hw_ops->cb) argument
138 void intel_ace2x_debugfs_init(struct sdw_intel *sdw);
139 void intel_ace2x_debugfs_exit(struct sdw_intel *sdw);
141 static inline void intel_ace2x_debugfs_init(struct sdw_intel *sdw) {} in intel_ace2x_debugfs_init() argument
142 static inline void intel_ace2x_debugfs_exit(struct sdw_intel *sdw) {} in intel_ace2x_debugfs_exit() argument
145 static inline void sdw_intel_debugfs_init(struct sdw_intel *sdw) in sdw_intel_debugfs_init() argument
147 if (SDW_INTEL_CHECK_OPS(sdw, debugfs_init)) in sdw_intel_debugfs_init()
148 SDW_INTEL_OPS(sdw, debugfs_init)(sdw); in sdw_intel_debugfs_init() local
[all …]
H A Dintel_ace2x.c49 static int intel_ace2x_bpt_open_stream(struct sdw_intel *sdw, struct sdw_slave *slave, in intel_ace2x_bpt_open_stream() argument
52 struct sdw_cdns *cdns = &sdw->cdns; in intel_ace2x_bpt_open_stream()
202 sdw->bpt_ctx.pdi0_buffer_size = pdi0_buffer_size; in intel_ace2x_bpt_open_stream()
203 sdw->bpt_ctx.pdi1_buffer_size = pdi1_buffer_size; in intel_ace2x_bpt_open_stream()
204 sdw->bpt_ctx.num_frames = num_frames; in intel_ace2x_bpt_open_stream()
205 sdw->bpt_ctx.data_per_frame = data_per_frame; in intel_ace2x_bpt_open_stream()
251 sdw->instance, &sdw->bpt_ctx.bpt_tx_stream, in intel_ace2x_bpt_open_stream()
252 &sdw->bpt_ctx.dmab_tx_bdl, pdi0_buffer_size, tx_dma_bandwidth, in intel_ace2x_bpt_open_stream()
253 &sdw->bpt_ctx.bpt_rx_stream, &sdw->bpt_ctx.dmab_rx_bdl, in intel_ace2x_bpt_open_stream()
263 sdw->bpt_ctx.dmab_tx_bdl.area, in intel_ace2x_bpt_open_stream()
[all …]
H A Dintel_auxdevice.c94 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_bpt_send_async() local
96 if (sdw->link_res->hw_ops->bpt_send_async) in generic_bpt_send_async()
97 return sdw->link_res->hw_ops->bpt_send_async(sdw, slave, msg); in generic_bpt_send_async()
104 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_bpt_wait() local
106 if (sdw->link_res->hw_ops->bpt_wait) in generic_bpt_wait()
107 return sdw->link_res->hw_ops->bpt_wait(sdw, slave, msg); in generic_bpt_wait()
114 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_pre_bank_switch() local
116 return sdw->link_res->hw_ops->pre_bank_switch(sdw); in generic_pre_bank_switch()
122 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_post_bank_switch() local
124 return sdw->link_res->hw_ops->post_bank_switch(sdw); in generic_post_bank_switch()
[all …]
H A Dintel_ace2x_debugfs.c39 struct sdw_intel *sdw = s_file->private; in intel_reg_show() local
40 void __iomem *s = sdw->link_res->shim; in intel_reg_show()
41 void __iomem *vs_s = sdw->link_res->shim_vs; in intel_reg_show()
79 if (sdw->link_res->mic_privacy) { in intel_reg_show()
94 struct sdw_intel *sdw = data; in intel_set_m_datamode() local
95 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_m_datamode()
112 struct sdw_intel *sdw = data; in intel_set_s_datamode() local
113 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_s_datamode()
128 void intel_ace2x_debugfs_init(struct sdw_intel *sdw) in intel_ace2x_debugfs_init() argument
130 struct dentry *root = sdw->cdns.bus.debugfs; in intel_ace2x_debugfs_init()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-soundwire-slave1 What: /sys/bus/soundwire/devices/sdw:.../status
2 /sys/bus/soundwire/devices/sdw:.../device_number
19 What: /sys/bus/soundwire/devices/sdw:.../dev-properties/mipi_revision
20 /sys/bus/soundwire/devices/sdw:.../dev-properties/wake_capable
21 /sys/bus/soundwire/devices/sdw:.../dev-properties/test_mode_capable
22 /sys/bus/soundwire/devices/sdw:.../dev-properties/clk_stop_mode1
23 /sys/bus/soundwire/devices/sdw:.../dev-properties/simple_clk_stop_capable
24 /sys/bus/soundwire/devices/sdw:.../dev-properties/clk_stop_timeout
25 /sys/bus/soundwire/devices/sdw:.../dev-properties/ch_prep_timeout
26 /sys/bus/soundwire/devices/sdw:.../dev-properties/reset_behave
[all …]
H A Dsysfs-bus-soundwire-master1 What: /sys/bus/soundwire/devices/sdw-master-<N>/revision
2 /sys/bus/soundwire/devices/sdw-master-<N>/clk_stop_modes
3 /sys/bus/soundwire/devices/sdw-master-<N>/clk_freq
4 /sys/bus/soundwire/devices/sdw-master-<N>/clk_gears
5 /sys/bus/soundwire/devices/sdw-master-<N>/default_col
6 /sys/bus/soundwire/devices/sdw-master-<N>/default_frame_rate
7 /sys/bus/soundwire/devices/sdw-master-<N>/default_row
8 /sys/bus/soundwire/devices/sdw-master-<N>/dynamic_shape
9 /sys/bus/soundwire/devices/sdw-master-<N>/err_threshold
10 /sys/bus/soundwire/devices/sdw-master-<N>/max_clk_freq
/linux/drivers/mfd/
H A Dcs42l43-sdw.c60 static int cs42l43_read_prop(struct sdw_slave *sdw) in cs42l43_read_prop() argument
62 struct sdw_slave_prop *prop = &sdw->prop; in cs42l43_read_prop()
63 struct device *dev = &sdw->dev; in cs42l43_read_prop()
92 static int cs42l43_sdw_update_status(struct sdw_slave *sdw, enum sdw_slave_status status) in cs42l43_sdw_update_status() argument
94 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev); in cs42l43_sdw_update_status()
100 sdw_write_no_pm(sdw, CS42L43_GEN_INT_MASK_1, in cs42l43_sdw_update_status()
115 static int cs42l43_sdw_interrupt(struct sdw_slave *sdw, in cs42l43_sdw_interrupt() argument
126 sdw_read_no_pm(sdw, CS42L43_GEN_INT_STAT_1); in cs42l43_sdw_interrupt()
127 sdw_write_no_pm(sdw, CS42L43_GEN_INT_STAT_1, CS42L43_INT_STAT_GEN1_MASK); in cs42l43_sdw_interrupt()
132 static int cs42l43_sdw_bus_config(struct sdw_slave *sdw, in cs42l43_sdw_bus_config() argument
[all …]
/linux/sound/soc/sdca/
H A Dsdca_class.c27 static int class_read_prop(struct sdw_slave *sdw) in class_read_prop() argument
29 struct sdw_slave_prop *prop = &sdw->prop; in class_read_prop()
31 sdw_slave_read_prop(sdw); in class_read_prop()
98 sdca_dev_unregister_functions(drv->sdw); in class_remove_functions()
108 ret = sdw_slave_wait_for_init(drv->sdw, CLASS_SDW_ATTACH_TIMEOUT_MS); in class_boot_work()
115 drv->sdw->irq); in class_boot_work()
119 ret = sdca_dev_register_functions(drv->sdw); in class_boot_work()
139 static int class_sdw_probe(struct sdw_slave *sdw, const struct sdw_device_id *id) in class_sdw_probe() argument
141 struct device *dev = &sdw->dev; in class_sdw_probe()
146 sdca_lookup_swft(sdw); in class_sdw_probe()
[all …]
H A Dsdca_class_function.c16 #include <linux/soundwire/sdw.h>
25 #include <sound/sdw.h>
135 struct sdw_slave *sdw = dev_to_sdw_dev(drv->dev->parent); in class_function_sdw_add_peripheral() local
155 ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream); in class_function_sdw_add_peripheral()
157 dev_err(drv->dev, "failed to add sdw stream: %d\n", ret); in class_function_sdw_add_peripheral()
170 struct sdw_slave *sdw = dev_to_sdw_dev(drv->dev->parent); in class_function_sdw_remove_peripheral() local
175 return sdw_stream_remove_slave(sdw, sdw_stream); in class_function_sdw_remove_peripheral()
362 drv->regmap = devm_regmap_init_sdw_mbq_cfg(dev, core->sdw, config, mbq_config); in class_function_probe()
/linux/include/linux/soundwire/
H A Dsdw_intel.h416 void (*debugfs_init)(struct sdw_intel *sdw);
417 void (*debugfs_exit)(struct sdw_intel *sdw);
419 int (*get_link_count)(struct sdw_intel *sdw);
421 int (*register_dai)(struct sdw_intel *sdw);
423 void (*check_clock_stop)(struct sdw_intel *sdw);
424 int (*start_bus)(struct sdw_intel *sdw);
425 int (*start_bus_after_reset)(struct sdw_intel *sdw);
426 int (*start_bus_after_clock_stop)(struct sdw_intel *sdw);
427 int (*stop_bus)(struct sdw_intel *sdw, bool clock_stop);
429 int (*link_power_up)(struct sdw_intel *sdw);
[all …]
H A Dsdw.h624 int (*read_prop)(struct sdw_slave *sdw);
714 int (*probe)(struct sdw_slave *sdw, const struct sdw_device_id *id);
715 void (*remove)(struct sdw_slave *sdw);
716 void (*shutdown)(struct sdw_slave *sdw);
/linux/sound/soc/amd/acp/
H A DMakefile13 snd-amd-sdw-acpi-y := amd-sdw-acpi.o
28 snd-acp-sdw-mach-y := acp-sdw-mach-common.o
29 snd-acp-sdw-sof-mach-y += acp-sdw-sof-mach.o
30 snd-acp-sdw-legacy-mach-y += acp-sdw-legacy-mach.o
44 obj-$(CONFIG_SND_AMD_SOUNDWIRE_ACPI) += snd-amd-sdw-acpi.o
49 obj-$(CONFIG_SND_SOC_AMD_SDW_MACH_COMMON) += snd-acp-sdw-mach.o
50 obj-$(CONFIG_SND_SOC_AMD_SOF_SDW_MACH) += snd-acp-sdw-sof-mach.o
51 obj-$(CONFIG_SND_SOC_AMD_LEGACY_SDW_MACH) += snd-acp-sdw-legacy-mach.o
/linux/drivers/base/regmap/
H A Dregmap-sdw.c69 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw, in __regmap_init_sdw() argument
80 return __regmap_init(&sdw->dev, &regmap_sdw, in __regmap_init_sdw()
81 &sdw->dev, config, lock_key, lock_name); in __regmap_init_sdw()
85 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw, in __devm_regmap_init_sdw() argument
96 return __devm_regmap_init(&sdw->dev, &regmap_sdw, in __devm_regmap_init_sdw()
97 &sdw->dev, config, lock_key, lock_name); in __devm_regmap_init_sdw()
H A DMakefile18 obj-$(CONFIG_REGMAP_SOUNDWIRE) += regmap-sdw.o
19 obj-$(CONFIG_REGMAP_SOUNDWIRE_MBQ) += regmap-sdw-mbq.o
/linux/sound/soc/codecs/
H A Dcs42l43-sdw.c26 struct sdw_slave *sdw = dev_to_sdw_dev(priv->dev->parent); in cs42l43_sdw_add_peripheral() local
37 ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream); in cs42l43_sdw_add_peripheral()
52 struct sdw_slave *sdw = dev_to_sdw_dev(priv->dev->parent); in cs42l43_sdw_remove_peripheral() local
57 return sdw_stream_remove_slave(sdw, sdw_stream); in cs42l43_sdw_remove_peripheral()
/linux/sound/hda/core/
H A DMakefile21 snd-intel-sdw-acpi-y := intel-sdw-acpi.o
22 obj-$(CONFIG_SND_INTEL_SOUNDWIRE_ACPI) += snd-intel-sdw-acpi.o
/linux/sound/soc/amd/ps/
H A Dpci-ps.c29 amd_manager = dev_get_drvdata(&adata->sdw->pdev[0]->dev); in handle_acp70_sdw_wake_event()
36 amd_manager = dev_get_drvdata(&adata->sdw->pdev[1]->dev); in handle_acp70_sdw_wake_event()
212 amd_manager = dev_get_drvdata(&adata->sdw->pdev[0]->dev); in acp63_irq_handler()
221 amd_manager = dev_get_drvdata(&adata->sdw->pdev[1]->dev); in acp63_irq_handler()
294 ret = sdw_amd_probe(&sdw_res, &acp_data->sdw); in amd_sdw_probe()
302 if (acp_data->sdw) in amd_sdw_exit()
303 sdw_amd_exit(acp_data->sdw); in amd_sdw_exit()
304 acp_data->sdw = NULL; in amd_sdw_exit()
317 ret = sdw_amd_get_slave_info(acp_data->sdw); in acp63_sdw_machine_select()
328 acp_data->sdw->peripherals)) in acp63_sdw_machine_select()
[all …]
H A Dps-common.c148 if (val && adata->sdw->pdev[0]) in handle_acp63_sdw_pme_event()
149 pm_request_resume(&adata->sdw->pdev[0]->dev); in handle_acp63_sdw_pme_event()
152 if (val && adata->sdw->pdev[1]) in handle_acp63_sdw_pme_event()
153 pm_request_resume(&adata->sdw->pdev[1]->dev); in handle_acp63_sdw_pme_event()
/linux/sound/soc/sof/intel/
H A Dhda.c24 #include <linux/soundwire/sdw.h>
164 void *sdw; in hda_sdw_probe() local
219 sdw = sdw_intel_probe(&res); in hda_sdw_probe()
220 if (!sdw) { in hda_sdw_probe()
226 hdev->sdw = sdw; in hda_sdw_probe()
239 if (!hdev->sdw) in hda_sdw_startup()
249 return sdw_intel_startup(hdev->sdw); in hda_sdw_startup()
259 if (hdev->sdw) in hda_sdw_exit()
260 sdw_intel_exit(hdev->sdw); in hda_sdw_exit()
[all...]
/linux/drivers/dma/stm32/
H A Dstm32-dma3.c478 u32 sdw = 1 << FIELD_GET(CTR1_SDW_LOG2, ctr1); in stm32_dma3_check_user_setting() local
485 if (bndt % sdw) in stm32_dma3_check_user_setting()
489 if (csar % sdw) in stm32_dma3_check_user_setting()
493 if (sdw == DMA_SLAVE_BUSWIDTH_8_BYTES && port_is_ahb(ddata->ports_max_dw[sap])) in stm32_dma3_check_user_setting()
575 u32 sdw, ddw, sbl_max, dbl_max, tcem, init_dw, init_bl_max; in stm32_dma3_chan_prep_hw() local
585 sdw = chan->dma_config.src_addr_width ? : get_chan_max_dw(sap, chan->max_burst); in stm32_dma3_chan_prep_hw()
591 if (!(dma_device.src_addr_widths & BIT(sdw)) || !(dma_device.dst_addr_widths & BIT(ddw))) { in stm32_dma3_chan_prep_hw()
592 dev_err(chan2dev(chan), "Bus width (src=%u, dst=%u) not supported\n", sdw, ddw); in stm32_dma3_chan_prep_hw()
603 if ((port_is_ahb(sap_max_dw) && sdw == DMA_SLAVE_BUSWIDTH_8_BYTES) || in stm32_dma3_chan_prep_hw()
607 sdw, ddw, sap, dap); in stm32_dma3_chan_prep_hw()
[all …]
/linux/sound/soc/qcom/
H A DMakefile31 snd-soc-qcom-sdw-y := sdw.o
44 obj-$(CONFIG_SND_SOC_QCOM_SDW) += snd-soc-qcom-sdw.o
/linux/Documentation/sound/codecs/
H A Dcs35l56.rst163 [ 7.568374] cs35l56 sdw:0:0:01fa:3556:01:0: supply VDD_P not found, using dummy regulator
164 [ 7.605208] cs35l56 sdw:0:0:01fa:3556:01:0: supply VDD_IO not found, using dummy regulator
165 [ 7.605313] cs35l56 sdw:0:0:01fa:3556:01:0: supply VDD_A not found, using dummy regulator
166 [ 7.939279] cs35l56 sdw:0:0:01fa:3556:01:0: Cirrus Logic CS35L56 Rev B0 OTP3 fw:3.4.4 (patched=0)
167 [ 7.947844] cs35l56 sdw:0:0:01fa:3556:01:0: Slave 4 state check1: UNATTACHED, status was 1
168 [ 8.740280] cs35l56 sdw:0:0:01fa:3556:01:0: supply VDD_B not found, using dummy regulator
169 [ 8.740552] cs35l56 sdw:0:0:01fa:3556:01:0: supply VDD_AMP not found, using dummy regulator
170 …[ 9.242164] cs35l56 sdw:0:0:01fa:3556:01:0: DSP1: cirrus/cs35l56-b0-dsp1-misc-xxxxxxxx.wmfw: forma…
171 …[ 9.242173] cs35l56 sdw:0:0:01fa:3556:01:0: DSP1: cirrus/cs35l56-b0-dsp1-misc-xxxxxxxx.wmfw: Tue 0…
172 …[ 9.991709] cs35l56 sdw:0:0:01fa:3556:01:0: DSP1: Firmware: 1a00d6 vendor: 0x2 v3.11.23, 41 algori…
[all …]
/linux/sound/soc/sof/amd/
H A Dacp.c433 amd_manager = dev_get_drvdata(&adata->sdw->pdev[0]->dev); in amd_sof_check_and_handle_acp70_sdw_wake_irq()
440 amd_manager = dev_get_drvdata(&adata->sdw->pdev[1]->dev); in amd_sof_check_and_handle_acp70_sdw_wake_irq()
534 amd_manager = dev_get_drvdata(&adata->sdw->pdev[0]->dev); in acp_irq_handler()
563 amd_manager = dev_get_drvdata(&adata->sdw->pdev[1]->dev); in acp_power_on()
785 if (!acp_data->sdw) in amd_sof_sdw_probe()
897 ret = sdw_amd_probe(&sdw_res, &acp_data->sdw); in amd_sof_acp_probe()
908 if (acp_data->sdw) in amd_sof_acp_probe()
909 sdw_amd_exit(acp_data->sdw); in amd_sof_acp_probe()
910 acp_data->sdw = NULL; in amd_sof_acp_probe()
1051 if (adata->sdw)
[all...]
H A Dacp-common.c126 return sdw_amd_get_slave_info(acp_data->sdw); in amd_sof_sdw_get_slave_info()
148 acp_data->sdw->peripherals)) in amd_sof_sdw_machine_select()
152 if (!mach->machine_check || mach->machine_check(acp_data->sdw)) in amd_sof_sdw_machine_select()
/linux/include/linux/mfd/
H A Dcs42l43.h76 struct sdw_slave *sdw; member

123