Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/soundwire/
H A Dintel.h96 #define SDW_INTEL_CHECK_OPS(sdw, cb) ((sdw) && (sdw)->link_res && (sdw)->link_res->hw_ops && \ argument
97 (sdw)->link_res->hw_ops->cb)
98 #define SDW_INTEL_OPS(sdw, cb) ((sdw)->link_res->hw_ops->cb) argument
101 void intel_ace2x_debugfs_init(struct sdw_intel *sdw);
102 void intel_ace2x_debugfs_exit(struct sdw_intel *sdw);
104 static inline void intel_ace2x_debugfs_init(struct sdw_intel *sdw) {} in intel_ace2x_debugfs_init() argument
105 static inline void intel_ace2x_debugfs_exit(struct sdw_intel *sdw) {} in intel_ace2x_debugfs_exit() argument
108 static inline void sdw_intel_debugfs_init(struct sdw_intel *sdw) in sdw_intel_debugfs_init() argument
110 if (SDW_INTEL_CHECK_OPS(sdw, debugfs_init)) in sdw_intel_debugfs_init()
111 SDW_INTEL_OPS(sdw, debugfs_init)(sdw); in sdw_intel_debugfs_init() local
[all …]
H A 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 …]
H A Dintel_ace2x.c23 static void intel_shim_vs_init(struct sdw_intel *sdw) in intel_shim_vs_init() argument
25 void __iomem *shim_vs = sdw->link_res->shim_vs; in intel_shim_vs_init()
36 static int intel_shim_check_wake(struct sdw_intel *sdw) in intel_shim_check_wake() argument
41 shim_vs = sdw->link_res->shim_vs; in intel_shim_check_wake()
47 static void intel_shim_wake(struct sdw_intel *sdw, bool wake_enable) in intel_shim_wake() argument
49 void __iomem *shim_vs = sdw->link_res->shim_vs; in intel_shim_wake()
71 static int intel_link_power_up(struct sdw_intel *sdw) in intel_link_power_up() argument
73 struct sdw_bus *bus = &sdw->cdns.bus; in intel_link_power_up()
75 u32 *shim_mask = sdw->link_res->shim_mask; in intel_link_power_up()
76 unsigned int link_id = sdw->instance; in intel_link_power_up()
[all …]
H A Dintel.c73 struct sdw_intel *sdw = s_file->private; in intel_reg_show() local
74 void __iomem *s = sdw->link_res->shim; in intel_reg_show()
75 void __iomem *a = sdw->link_res->alh; in intel_reg_show()
140 struct sdw_intel *sdw = data; in intel_set_m_datamode() local
141 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_m_datamode()
158 struct sdw_intel *sdw = data; in intel_set_s_datamode() local
159 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_s_datamode()
174 static void intel_debugfs_init(struct sdw_intel *sdw) in intel_debugfs_init() argument
176 struct dentry *root = sdw->cdns.bus.debugfs; in intel_debugfs_init()
181 sdw->debugfs = debugfs_create_dir("intel-sdw", root); in intel_debugfs_init()
[all …]
H A Dintel_auxdevice.c80 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_pre_bank_switch() local
82 return sdw->link_res->hw_ops->pre_bank_switch(sdw); in generic_pre_bank_switch()
88 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_post_bank_switch() local
90 return sdw->link_res->hw_ops->post_bank_switch(sdw); in generic_post_bank_switch()
98 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_new_peripheral_assigned() local
118 if (sdw->link_res->hw_ops->program_sdi && wake_capable) in generic_new_peripheral_assigned()
119 sdw->link_res->hw_ops->program_sdi(sdw, dev_num); in generic_new_peripheral_assigned()
217 struct sdw_intel *sdw; in intel_link_probe() local
222 sdw = devm_kzalloc(dev, sizeof(*sdw), GFP_KERNEL); in intel_link_probe()
223 if (!sdw) in intel_link_probe()
[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()
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 …]
/openbmc/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
/openbmc/linux/drivers/mfd/
H A Dcs42l43-sdw.c57 static int cs42l43_read_prop(struct sdw_slave *sdw) in cs42l43_read_prop() argument
59 struct sdw_slave_prop *prop = &sdw->prop; in cs42l43_read_prop()
60 struct device *dev = &sdw->dev; in cs42l43_read_prop()
89 static int cs42l43_sdw_update_status(struct sdw_slave *sdw, enum sdw_slave_status status) in cs42l43_sdw_update_status() argument
91 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev); in cs42l43_sdw_update_status()
97 sdw_write_no_pm(sdw, CS42L43_GEN_INT_MASK_1, in cs42l43_sdw_update_status()
119 static int cs42l43_sdw_interrupt(struct sdw_slave *sdw, in cs42l43_sdw_interrupt() argument
130 sdw_read_no_pm(sdw, CS42L43_GEN_INT_STAT_1); in cs42l43_sdw_interrupt()
131 sdw_write_no_pm(sdw, CS42L43_GEN_INT_STAT_1, CS42L43_INT_STAT_GEN1_MASK); in cs42l43_sdw_interrupt()
136 static int cs42l43_sdw_bus_config(struct sdw_slave *sdw, in cs42l43_sdw_bus_config() argument
[all …]
H A Dcs42l43.c537 if (cs42l43->sdw) { in cs42l43_soft_reset()
571 if (cs42l43->sdw) in cs42l43_wait_for_attach()
830 if (cs42l43->sdw) in cs42l43_irq_config()
831 cs42l43->irq = cs42l43->sdw->irq; in cs42l43_irq_config()
/openbmc/linux/include/linux/soundwire/
H A Dsdw_intel.h400 void (*debugfs_init)(struct sdw_intel *sdw);
401 void (*debugfs_exit)(struct sdw_intel *sdw);
403 int (*register_dai)(struct sdw_intel *sdw);
405 void (*check_clock_stop)(struct sdw_intel *sdw);
406 int (*start_bus)(struct sdw_intel *sdw);
407 int (*start_bus_after_reset)(struct sdw_intel *sdw);
408 int (*start_bus_after_clock_stop)(struct sdw_intel *sdw);
409 int (*stop_bus)(struct sdw_intel *sdw, bool clock_stop);
411 int (*link_power_up)(struct sdw_intel *sdw);
412 int (*link_power_down)(struct sdw_intel *sdw);
[all …]
H A Dsdw.h633 int (*read_prop)(struct sdw_slave *sdw);
722 int (*probe)(struct sdw_slave *sdw,
724 int (*remove)(struct sdw_slave *sdw);
725 void (*shutdown)(struct sdw_slave *sdw);
/openbmc/linux/drivers/base/regmap/
H A 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()
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
/openbmc/linux/sound/soc/codecs/
H A Dcs42l43-sdw.c25 struct sdw_slave *sdw = dev_to_sdw_dev(priv->dev->parent); in cs42l43_sdw_add_peripheral() local
40 ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream); in cs42l43_sdw_add_peripheral()
55 struct sdw_slave *sdw = dev_to_sdw_dev(priv->dev->parent); in cs42l43_sdw_remove_peripheral() local
60 return sdw_stream_remove_slave(sdw, sdw_stream); in cs42l43_sdw_remove_peripheral()
H A DMakefile76 snd-soc-cs35l56-sdw-objs := cs35l56-sdw.o
79 snd-soc-cs42l42-sdw-objs := cs42l42-sdw.o
81 snd-soc-cs42l43-sdw-objs := cs42l43-sdw.o
158 snd-soc-max98373-sdw-objs := max98373-sdw.o
210 snd-soc-rt1017-sdca-objs := rt1017-sdca-sdw.o
214 snd-soc-rt1308-sdw-objs := rt1308-sdw.o
215 snd-soc-rt1316-sdw-objs := rt1316-sdw.o
216 snd-soc-rt1318-sdw-objs := rt1318-sdw.o
236 snd-soc-rt5682-sdw-objs := rt5682-sdw.o
239 snd-soc-rt700-objs := rt700.o rt700-sdw.o
[all …]
/openbmc/linux/sound/soc/amd/ps/
H A DMakefile6 snd-ps-sdw-dma-objs := ps-sdw-dma.o
10 obj-$(CONFIG_SND_SOC_AMD_PS) += snd-ps-sdw-dma.o
/openbmc/linux/sound/hda/
H A DMakefile21 snd-intel-sdw-acpi-objs := intel-sdw-acpi.o
22 obj-$(CONFIG_SND_INTEL_SOUNDWIRE_ACPI) += snd-intel-sdw-acpi.o
/openbmc/linux/sound/soc/sof/intel/
H A Dhda.c149 if (!hdev->sdw) in hda_common_enable_sdw_irq()
197 void *sdw; in hda_sdw_probe() local
249 sdw = sdw_intel_probe(&res); in hda_sdw_probe()
250 if (!sdw) { in hda_sdw_probe()
256 hdev->sdw = sdw; in hda_sdw_probe()
268 ctx = hdev->sdw; in hda_sdw_check_lcount_common()
294 ctx = hdev->sdw; in hda_sdw_check_lcount_ext()
328 if (!hdev->sdw) in hda_sdw_startup()
338 return sdw_intel_startup(hdev->sdw); in hda_sdw_startup()
349 if (hdev->sdw) in hda_sdw_exit()
[all …]
/openbmc/linux/sound/soc/qcom/
H A DMakefile31 snd-soc-qcom-sdw-objs := sdw.o
42 obj-$(CONFIG_SND_SOC_QCOM_SDW) += snd-soc-qcom-sdw.o
/openbmc/linux/include/linux/
H A Dregmap.h637 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw,
641 struct regmap *__regmap_init_sdw_mbq(struct sdw_slave *sdw,
698 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw,
702 struct regmap *__devm_regmap_init_sdw_mbq(struct sdw_slave *sdw,
918 #define regmap_init_sdw(sdw, config) \ argument
920 sdw, config)
931 #define regmap_init_sdw_mbq(sdw, config) \ argument
933 sdw, config)
1130 #define devm_regmap_init_sdw(sdw, config) \ argument
1132 sdw, config)
[all …]
/openbmc/linux/include/linux/mfd/
H A Dcs42l43.h75 struct sdw_slave *sdw; member
/openbmc/linux/sound/soc/intel/common/
H A DMakefile16 soc-acpi-intel-sdw-mockup-match.o
/openbmc/linux/sound/soc/intel/boards/
H A DMakefile39 snd-soc-sof-sdw-objs += sof_sdw.o \
83 obj-$(CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH) += snd-soc-sof-sdw.o

123