Home
last modified time | relevance | path

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

123

/linux-6.12.1/drivers/soundwire/
Dintel.h108 #define SDW_INTEL_CHECK_OPS(sdw, cb) ((sdw) && (sdw)->link_res && (sdw)->link_res->hw_ops && \ argument
109 (sdw)->link_res->hw_ops->cb)
110 #define SDW_INTEL_OPS(sdw, cb) ((sdw)->link_res->hw_ops->cb) argument
113 void intel_ace2x_debugfs_init(struct sdw_intel *sdw);
114 void intel_ace2x_debugfs_exit(struct sdw_intel *sdw);
116 static inline void intel_ace2x_debugfs_init(struct sdw_intel *sdw) {} in intel_ace2x_debugfs_init() argument
117 static inline void intel_ace2x_debugfs_exit(struct sdw_intel *sdw) {} in intel_ace2x_debugfs_exit() argument
120 static inline void sdw_intel_debugfs_init(struct sdw_intel *sdw) in sdw_intel_debugfs_init() argument
122 if (SDW_INTEL_CHECK_OPS(sdw, debugfs_init)) in sdw_intel_debugfs_init()
123 SDW_INTEL_OPS(sdw, debugfs_init)(sdw); in sdw_intel_debugfs_init() local
[all …]
Dintel_ace2x.c26 static void intel_shim_vs_init(struct sdw_intel *sdw) in intel_shim_vs_init() argument
28 void __iomem *shim_vs = sdw->link_res->shim_vs; in intel_shim_vs_init()
29 struct sdw_bus *bus = &sdw->cdns.bus; in intel_shim_vs_init()
68 static void intel_shim_vs_set_clock_source(struct sdw_intel *sdw, u32 source) in intel_shim_vs_set_clock_source() argument
70 void __iomem *shim_vs = sdw->link_res->shim_vs; in intel_shim_vs_set_clock_source()
79 dev_dbg(sdw->cdns.dev, "clock source %d LVSCTL %#x\n", source, val); in intel_shim_vs_set_clock_source()
82 static int intel_shim_check_wake(struct sdw_intel *sdw) in intel_shim_check_wake() argument
92 static void intel_shim_wake(struct sdw_intel *sdw, bool wake_enable) in intel_shim_wake() argument
99 mutex_lock(sdw->link_res->shim_lock); in intel_shim_wake()
101 ret = hdac_bus_eml_sdw_get_lsdiid_unlocked(sdw->link_res->hbus, sdw->instance, &lsdiid); in intel_shim_wake()
[all …]
Dintel_bus_common.c12 int intel_start_bus(struct sdw_intel *sdw) in intel_start_bus() argument
14 struct device *dev = sdw->cdns.dev; in intel_start_bus()
15 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus()
24 sdw_intel_sync_arm(sdw); in intel_start_bus()
35 ret = sdw_intel_sync_go(sdw); in intel_start_bus()
69 int intel_start_bus_after_reset(struct sdw_intel *sdw) in intel_start_bus_after_reset() argument
71 struct device *dev = sdw->cdns.dev; in intel_start_bus_after_reset()
72 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus_after_reset()
85 clock_stop0 = sdw_cdns_is_clock_stop(&sdw->cdns); in intel_start_bus_after_reset()
102 sdw_intel_sync_arm(sdw); in intel_start_bus_after_reset()
[all …]
Dintel.c74 struct sdw_intel *sdw = s_file->private; in intel_reg_show() local
75 void __iomem *s = sdw->link_res->shim; in intel_reg_show()
76 void __iomem *a = sdw->link_res->alh; in intel_reg_show()
139 struct sdw_intel *sdw = data; in intel_set_m_datamode() local
140 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_m_datamode()
157 struct sdw_intel *sdw = data; in intel_set_s_datamode() local
158 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_s_datamode()
173 static void intel_debugfs_init(struct sdw_intel *sdw) in intel_debugfs_init() argument
175 struct dentry *root = sdw->cdns.bus.debugfs; in intel_debugfs_init()
180 sdw->debugfs = debugfs_create_dir("intel-sdw", root); in intel_debugfs_init()
[all …]
Dintel_auxdevice.c81 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_pre_bank_switch() local
83 return sdw->link_res->hw_ops->pre_bank_switch(sdw); in generic_pre_bank_switch()
89 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_post_bank_switch() local
91 return sdw->link_res->hw_ops->post_bank_switch(sdw); in generic_post_bank_switch()
99 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_new_peripheral_assigned() local
119 if (sdw->link_res->hw_ops->program_sdi && wake_capable) in generic_new_peripheral_assigned()
120 sdw->link_res->hw_ops->program_sdi(sdw, dev_num); in generic_new_peripheral_assigned()
294 struct sdw_intel *sdw; in intel_link_probe() local
299 sdw = devm_kzalloc(dev, sizeof(*sdw), GFP_KERNEL); in intel_link_probe()
300 if (!sdw) in intel_link_probe()
[all …]
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()
88 struct sdw_intel *sdw = data; in intel_set_m_datamode() local
89 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_m_datamode()
106 struct sdw_intel *sdw = data; in intel_set_s_datamode() local
107 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_s_datamode()
122 void intel_ace2x_debugfs_init(struct sdw_intel *sdw) in intel_ace2x_debugfs_init() argument
124 struct dentry *root = sdw->cdns.bus.debugfs; in intel_ace2x_debugfs_init()
129 sdw->debugfs = debugfs_create_dir("intel-sdw", root); in intel_ace2x_debugfs_init()
[all …]
/linux-6.12.1/Documentation/ABI/testing/
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 …]
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-6.12.1/drivers/mfd/
Dcs42l43-sdw.c61 static int cs42l43_read_prop(struct sdw_slave *sdw) in cs42l43_read_prop() argument
63 struct sdw_slave_prop *prop = &sdw->prop; in cs42l43_read_prop()
64 struct device *dev = &sdw->dev; in cs42l43_read_prop()
93 static int cs42l43_sdw_update_status(struct sdw_slave *sdw, enum sdw_slave_status status) in cs42l43_sdw_update_status() argument
95 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev); in cs42l43_sdw_update_status()
101 sdw_write_no_pm(sdw, CS42L43_GEN_INT_MASK_1, in cs42l43_sdw_update_status()
123 static int cs42l43_sdw_interrupt(struct sdw_slave *sdw, in cs42l43_sdw_interrupt() argument
134 sdw_read_no_pm(sdw, CS42L43_GEN_INT_STAT_1); in cs42l43_sdw_interrupt()
135 sdw_write_no_pm(sdw, CS42L43_GEN_INT_STAT_1, CS42L43_INT_STAT_GEN1_MASK); in cs42l43_sdw_interrupt()
140 static int cs42l43_sdw_bus_config(struct sdw_slave *sdw, in cs42l43_sdw_bus_config() argument
[all …]
/linux-6.12.1/include/linux/soundwire/
Dsdw_intel.h413 void (*debugfs_init)(struct sdw_intel *sdw);
414 void (*debugfs_exit)(struct sdw_intel *sdw);
416 int (*get_link_count)(struct sdw_intel *sdw);
418 int (*register_dai)(struct sdw_intel *sdw);
420 void (*check_clock_stop)(struct sdw_intel *sdw);
421 int (*start_bus)(struct sdw_intel *sdw);
422 int (*start_bus_after_reset)(struct sdw_intel *sdw);
423 int (*start_bus_after_clock_stop)(struct sdw_intel *sdw);
424 int (*stop_bus)(struct sdw_intel *sdw, bool clock_stop);
426 int (*link_power_up)(struct sdw_intel *sdw);
[all …]
/linux-6.12.1/drivers/base/regmap/
Dregmap-sdw-mbq.c68 struct regmap *__regmap_init_sdw_mbq(struct sdw_slave *sdw, in __regmap_init_sdw_mbq() argument
79 return __regmap_init(&sdw->dev, &regmap_sdw_mbq, in __regmap_init_sdw_mbq()
80 &sdw->dev, config, lock_key, lock_name); in __regmap_init_sdw_mbq()
84 struct regmap *__devm_regmap_init_sdw_mbq(struct sdw_slave *sdw, in __devm_regmap_init_sdw_mbq() argument
95 return __devm_regmap_init(&sdw->dev, &regmap_sdw_mbq, in __devm_regmap_init_sdw_mbq()
96 &sdw->dev, config, lock_key, lock_name); in __devm_regmap_init_sdw_mbq()
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()
DMakefile18 obj-$(CONFIG_REGMAP_SOUNDWIRE) += regmap-sdw.o
19 obj-$(CONFIG_REGMAP_SOUNDWIRE_MBQ) += regmap-sdw-mbq.o
/linux-6.12.1/sound/soc/amd/acp/
DMakefile13 snd-amd-sdw-acpi-y := amd-sdw-acpi.o
26 snd-acp-sdw-sof-mach-y += acp-sdw-sof-mach.o
39 obj-$(CONFIG_SND_AMD_SOUNDWIRE_ACPI) += snd-amd-sdw-acpi.o
44 obj-$(CONFIG_SND_SOC_AMD_SOF_SDW_MACH) += snd-acp-sdw-sof-mach.o
/linux-6.12.1/sound/soc/codecs/
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()
DMakefile81 snd-soc-cs35l56-sdw-y := cs35l56-sdw.o
85 snd-soc-cs42l42-sdw-y := cs42l42-sdw.o
87 snd-soc-cs42l43-sdw-y := cs42l43-sdw.o
169 snd-soc-max98373-sdw-y := max98373-sdw.o
224 snd-soc-rt1017-sdca-y := rt1017-sdca-sdw.o
228 snd-soc-rt1308-sdw-y := rt1308-sdw.o
229 snd-soc-rt1316-sdw-y := rt1316-sdw.o
231 snd-soc-rt1318-sdw-y := rt1318-sdw.o
232 snd-soc-rt1320-sdw-y := rt1320-sdw.o
252 snd-soc-rt5682-sdw-y := rt5682-sdw.o
[all …]
/linux-6.12.1/sound/soc/amd/ps/
DMakefile6 snd-ps-sdw-dma-y := ps-sdw-dma.o
10 obj-$(CONFIG_SND_SOC_AMD_PS) += snd-ps-sdw-dma.o
Dpci-ps.c150 amd_manager = dev_get_drvdata(&adata->sdw->pdev[0]->dev); in acp63_irq_handler()
159 amd_manager = dev_get_drvdata(&adata->sdw->pdev[1]->dev); in acp63_irq_handler()
271 ret = sdw_amd_probe(&sdw_res, &acp_data->sdw); in amd_sdw_probe()
279 if (acp_data->sdw) in amd_sdw_exit()
280 sdw_amd_exit(acp_data->sdw); in amd_sdw_exit()
281 acp_data->sdw = NULL; in amd_sdw_exit()
294 ret = sdw_amd_get_slave_info(acp_data->sdw); in acp63_sdw_machine_select()
305 acp_data->sdw->ids, in acp63_sdw_machine_select()
306 acp_data->sdw->num_slaves)) in acp63_sdw_machine_select()
639 if (val && adata->sdw->pdev[0]) in handle_acp63_sdw_pme_event()
[all …]
/linux-6.12.1/sound/soc/sof/intel/
Dhda.c157 void *sdw; in hda_sdw_probe() local
209 sdw = sdw_intel_probe(&res); in hda_sdw_probe()
210 if (!sdw) { in hda_sdw_probe()
216 hdev->sdw = sdw; in hda_sdw_probe()
229 if (!hdev->sdw) in hda_sdw_startup()
239 return sdw_intel_startup(hdev->sdw); in hda_sdw_startup()
249 if (hdev->sdw) in hda_sdw_exit()
250 sdw_intel_exit(hdev->sdw); in hda_sdw_exit()
251 hdev->sdw = NULL; in hda_sdw_exit()
266 if (!hdev->sdw) in hda_common_check_sdw_irq()
[all …]
/linux-6.12.1/sound/hda/
DMakefile21 snd-intel-sdw-acpi-y := intel-sdw-acpi.o
22 obj-$(CONFIG_SND_INTEL_SOUNDWIRE_ACPI) += snd-intel-sdw-acpi.o
/linux-6.12.1/sound/soc/sdw_utils/
DMakefile2 snd-soc-sdw-utils-y := soc_sdw_utils.o soc_sdw_dmic.o soc_sdw_rt_dmic.o \
11 obj-$(CONFIG_SND_SOC_SDW_UTILS) += snd-soc-sdw-utils.o
/linux-6.12.1/drivers/dma/stm32/
Dstm32-dma3.c463 u32 sdw = 1 << FIELD_GET(CTR1_SDW_LOG2, ctr1); in stm32_dma3_check_user_setting() local
470 if (bndt % sdw) in stm32_dma3_check_user_setting()
474 if (csar % sdw) in stm32_dma3_check_user_setting()
478 if (sdw == DMA_SLAVE_BUSWIDTH_8_BYTES && port_is_ahb(ddata->ports_max_dw[sap])) in stm32_dma3_check_user_setting()
557 u32 sdw, ddw, sbl_max, dbl_max, tcem, init_dw, init_bl_max; in stm32_dma3_chan_prep_hw() local
567 sdw = chan->dma_config.src_addr_width ? : get_chan_max_dw(sap, chan->max_burst); in stm32_dma3_chan_prep_hw()
573 if (!(dma_device.src_addr_widths & BIT(sdw)) || !(dma_device.dst_addr_widths & BIT(ddw))) { in stm32_dma3_chan_prep_hw()
574 dev_err(chan2dev(chan), "Bus width (src=%u, dst=%u) not supported\n", sdw, ddw); in stm32_dma3_chan_prep_hw()
585 if ((port_is_ahb(sap_max_dw) && sdw == DMA_SLAVE_BUSWIDTH_8_BYTES) || in stm32_dma3_chan_prep_hw()
589 sdw, ddw, sap, dap); in stm32_dma3_chan_prep_hw()
[all …]
/linux-6.12.1/sound/soc/qcom/
DMakefile31 snd-soc-qcom-sdw-y := sdw.o
43 obj-$(CONFIG_SND_SOC_QCOM_SDW) += snd-soc-qcom-sdw.o
/linux-6.12.1/include/linux/
Dregmap.h642 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw,
646 struct regmap *__regmap_init_sdw_mbq(struct sdw_slave *sdw,
703 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw,
707 struct regmap *__devm_regmap_init_sdw_mbq(struct sdw_slave *sdw,
923 #define regmap_init_sdw(sdw, config) \ argument
925 sdw, config)
936 #define regmap_init_sdw_mbq(sdw, config) \ argument
938 sdw, config)
1135 #define devm_regmap_init_sdw(sdw, config) \ argument
1137 sdw, config)
[all …]
/linux-6.12.1/sound/soc/sof/amd/
Dacp-common.c126 return sdw_amd_get_slave_info(acp_data->sdw); in amd_sof_sdw_get_slave_info()
148 acp_data->sdw->ids, in amd_sof_sdw_machine_select()
149 acp_data->sdw->num_slaves)) in amd_sof_sdw_machine_select()

123