Home
last modified time | relevance | path

Searched refs:sdw_slave (Results 1 – 25 of 48) sorted by relevance

12

/linux-5.19.10/include/linux/soundwire/
Dsdw.h11 struct sdw_slave;
455 int sdw_slave_read_prop(struct sdw_slave *slave);
618 int (*read_prop)(struct sdw_slave *sdw);
619 int (*interrupt_callback)(struct sdw_slave *slave,
621 int (*update_status)(struct sdw_slave *slave,
623 int (*bus_config)(struct sdw_slave *slave,
625 int (*port_prep)(struct sdw_slave *slave,
628 int (*clk_stop)(struct sdw_slave *slave,
665 struct sdw_slave { struct
689 #define dev_to_sdw_dev(_dev) container_of(_dev, struct sdw_slave, dev) argument
[all …]
/linux-5.19.10/drivers/soundwire/
Dbus.h33 void sdw_slave_debugfs_init(struct sdw_slave *slave);
34 void sdw_slave_debugfs_exit(struct sdw_slave *slave);
40 static inline void sdw_slave_debugfs_init(struct sdw_slave *slave) {} in sdw_slave_debugfs_init()
41 static inline void sdw_slave_debugfs_exit(struct sdw_slave *slave) {} in sdw_slave_debugfs_exit()
116 struct sdw_slave *slave;
147 struct sdw_dpn_prop *sdw_get_slave_dpn_prop(struct sdw_slave *slave,
150 int sdw_configure_dpn_intr(struct sdw_slave *slave, int port,
159 int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave,
215 int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size);
Dsysfs_slave.c74 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
98 struct sdw_slave *slave = dev_to_sdw_dev(dev); in modalias_show()
147 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
161 struct sdw_slave *slave = dev_to_sdw_dev(dev); in words_show()
193 int sdw_slave_sysfs_init(struct sdw_slave *slave) in sdw_slave_sysfs_init()
235 struct sdw_slave *slave = dev_to_sdw_dev(dev); in status_show()
244 struct sdw_slave *slave = dev_to_sdw_dev(dev); in device_number_show()
Dbus.c151 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_delete_slave()
327 int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, in sdw_fill_msg()
384 sdw_nread_no_pm(struct sdw_slave *slave, u32 addr, size_t count, u8 *val) in sdw_nread_no_pm()
401 sdw_nwrite_no_pm(struct sdw_slave *slave, u32 addr, size_t count, const u8 *val) in sdw_nwrite_no_pm()
417 int sdw_write_no_pm(struct sdw_slave *slave, u32 addr, u8 value) in sdw_write_no_pm()
489 int sdw_read_no_pm(struct sdw_slave *slave, u32 addr) in sdw_read_no_pm()
502 int sdw_update_no_pm(struct sdw_slave *slave, u32 addr, u8 mask, u8 val) in sdw_update_no_pm()
516 int sdw_update(struct sdw_slave *slave, u32 addr, u8 mask, u8 val) in sdw_update()
536 int sdw_nread(struct sdw_slave *slave, u32 addr, size_t count, u8 *val) in sdw_nread()
560 int sdw_nwrite(struct sdw_slave *slave, u32 addr, size_t count, const u8 *val) in sdw_nwrite()
[all …]
Dbus_type.c21 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id()
39 struct sdw_slave *slave; in sdw_bus_match()
52 int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size) in sdw_slave_modalias()
63 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_uevent()
82 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_drv_probe()
165 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_drv_remove()
185 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_drv_shutdown()
Dsysfs_local.h15 int sdw_slave_sysfs_init(struct sdw_slave *slave);
16 int sdw_slave_sysfs_dpn_init(struct sdw_slave *slave);
Ddebugfs.c33 static ssize_t sdw_sprintf(struct sdw_slave *slave, in sdw_sprintf()
49 struct sdw_slave *slave = s_file->private; in sdw_slave_reg_show()
121 void sdw_slave_debugfs_init(struct sdw_slave *slave) in sdw_slave_debugfs_init()
138 void sdw_slave_debugfs_exit(struct sdw_slave *slave) in sdw_slave_debugfs_exit()
Dsysfs_slave_dpn.c53 static ssize_t field##_dpn_show(struct sdw_slave *slave, \
87 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
113 static ssize_t field##_dpn_show(struct sdw_slave *slave, \
152 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
280 int sdw_slave_sysfs_dpn_init(struct sdw_slave *slave) in sdw_slave_sysfs_dpn_init()
/linux-5.19.10/sound/soc/codecs/
Drt1308-sdw.c120 static int rt1308_read_prop(struct sdw_slave *slave) in rt1308_read_prop()
193 dev_dbg(&rt1308->sdw_slave->dev, "%s m_btl_l=0x%x, m_btl_r=0x%x\n", __func__, in rt1308_apply_calib_params()
195 dev_dbg(&rt1308->sdw_slave->dev, "%s c_btl_l=0x%x, c_btl_r=0x%x\n", __func__, in rt1308_apply_calib_params()
199 static int rt1308_io_init(struct device *dev, struct sdw_slave *slave) in rt1308_io_init()
279 static int rt1308_update_status(struct sdw_slave *slave, in rt1308_update_status()
301 static int rt1308_bus_config(struct sdw_slave *slave, in rt1308_bus_config()
316 static int rt1308_interrupt_callback(struct sdw_slave *slave, in rt1308_interrupt_callback()
546 if (!rt1308->sdw_slave) in rt1308_sdw_hw_params()
574 retval = sdw_stream_add_slave(rt1308->sdw_slave, &stream_config, in rt1308_sdw_hw_params()
593 if (!rt1308->sdw_slave) in rt1308_sdw_pcm_hw_free()
[all …]
Dsdw-mockup.c22 struct sdw_slave *slave;
164 static int sdw_mockup_update_status(struct sdw_slave *slave, in sdw_mockup_update_status()
170 static int sdw_mockup_read_prop(struct sdw_slave *slave) in sdw_mockup_read_prop()
234 static int sdw_mockup_bus_config(struct sdw_slave *slave, in sdw_mockup_bus_config()
240 static int sdw_mockup_interrupt_callback(struct sdw_slave *slave, in sdw_mockup_interrupt_callback()
253 static int sdw_mockup_sdw_probe(struct sdw_slave *slave, in sdw_mockup_sdw_probe()
277 static int sdw_mockup_sdw_remove(struct sdw_slave *slave) in sdw_mockup_sdw_remove()
Drt1316-sdw.c195 static int rt1316_read_prop(struct sdw_slave *slave) in rt1316_read_prop()
257 static int rt1316_io_init(struct device *dev, struct sdw_slave *slave) in rt1316_io_init()
310 static int rt1316_update_status(struct sdw_slave *slave, in rt1316_update_status()
534 if (!rt1316->sdw_slave) in rt1316_sdw_hw_params()
558 retval = sdw_stream_add_slave(rt1316->sdw_slave, &stream_config, in rt1316_sdw_hw_params()
577 if (!rt1316->sdw_slave) in rt1316_sdw_pcm_hw_free()
580 sdw_stream_remove_slave(rt1316->sdw_slave, stream->sdw_stream); in rt1316_sdw_pcm_hw_free()
636 struct sdw_slave *slave) in rt1316_sdw_init()
646 rt1316->sdw_slave = slave; in rt1316_sdw_init()
666 static int rt1316_sdw_probe(struct sdw_slave *slave, in rt1316_sdw_probe()
[all …]
Drt715-sdca-sdw.c119 static int rt715_sdca_update_status(struct sdw_slave *slave, in rt715_sdca_update_status()
138 static int rt715_sdca_read_prop(struct sdw_slave *slave) in rt715_sdca_read_prop()
180 static int rt715_sdca_sdw_probe(struct sdw_slave *slave, in rt715_sdca_sdw_probe()
197 static int rt715_sdca_sdw_remove(struct sdw_slave *slave) in rt715_sdca_sdw_remove()
233 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt715_dev_resume()
Drt715-sdca.h22 struct sdw_slave *slave;
133 int rt715_sdca_io_init(struct device *dev, struct sdw_slave *slave);
135 struct regmap *regmap, struct sdw_slave *slave);
Drt711-sdca-sdw.c141 static int rt711_sdca_update_status(struct sdw_slave *slave, in rt711_sdca_update_status()
178 static int rt711_sdca_read_prop(struct sdw_slave *slave) in rt711_sdca_read_prop()
241 static int rt711_sdca_interrupt_callback(struct sdw_slave *slave, in rt711_sdca_interrupt_callback()
347 static int rt711_sdca_sdw_probe(struct sdw_slave *slave, in rt711_sdca_sdw_probe()
364 static int rt711_sdca_sdw_remove(struct sdw_slave *slave) in rt711_sdca_sdw_remove()
407 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_sdca_dev_system_suspend()
438 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_sdca_dev_resume()
Drt700-sdw.c313 static int rt700_update_status(struct sdw_slave *slave, in rt700_update_status()
335 static int rt700_read_prop(struct sdw_slave *slave) in rt700_read_prop()
399 static int rt700_bus_config(struct sdw_slave *slave, in rt700_bus_config()
414 static int rt700_interrupt_callback(struct sdw_slave *slave, in rt700_interrupt_callback()
443 static int rt700_sdw_probe(struct sdw_slave *slave, in rt700_sdw_probe()
463 static int rt700_sdw_remove(struct sdw_slave *slave) in rt700_sdw_remove()
501 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt700_dev_system_suspend()
531 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt700_dev_resume()
Drt711-sdw.c317 static int rt711_update_status(struct sdw_slave *slave, in rt711_update_status()
339 static int rt711_read_prop(struct sdw_slave *slave) in rt711_read_prop()
404 static int rt711_bus_config(struct sdw_slave *slave, in rt711_bus_config()
419 static int rt711_interrupt_callback(struct sdw_slave *slave, in rt711_interrupt_callback()
444 static int rt711_sdw_probe(struct sdw_slave *slave, in rt711_sdw_probe()
464 static int rt711_sdw_remove(struct sdw_slave *slave) in rt711_sdw_remove()
508 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_dev_system_suspend()
537 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_dev_resume()
Dmax98373-sdw.c270 struct sdw_slave *slave = dev_to_sdw_dev(dev); in max98373_resume()
300 static int max98373_read_prop(struct sdw_slave *slave) in max98373_read_prop()
360 static int max98373_io_init(struct sdw_slave *slave) in max98373_io_init()
479 static int max98373_clock_calculate(struct sdw_slave *slave, in max98373_clock_calculate()
499 static int max98373_clock_config(struct sdw_slave *slave, in max98373_clock_config()
770 static int max98373_init(struct sdw_slave *slave, struct regmap *regmap) in max98373_init()
812 static int max98373_update_status(struct sdw_slave *slave, in max98373_update_status()
830 static int max98373_bus_config(struct sdw_slave *slave, in max98373_bus_config()
852 static int max98373_sdw_probe(struct sdw_slave *slave, in max98373_sdw_probe()
865 static int max98373_sdw_remove(struct sdw_slave *slave) in max98373_sdw_remove()
Drt1308-sdw.h159 struct sdw_slave *sdw_slave; member
Drt1316-sdw.h44 struct sdw_slave *sdw_slave; member
Dwcd938x-sdw.c92 int wcd938x_swr_get_current_bank(struct sdw_slave *sdev) in wcd938x_swr_get_current_bank()
161 static int wcd9380_update_status(struct sdw_slave *slave, in wcd9380_update_status()
167 static int wcd9380_bus_config(struct sdw_slave *slave, in wcd9380_bus_config()
175 static int wcd9380_interrupt_callback(struct sdw_slave *slave, in wcd9380_interrupt_callback()
216 static int wcd9380_probe(struct sdw_slave *pdev, in wcd9380_probe()
Drt5682-sdw.c333 struct sdw_slave *slave) in rt5682_sdw_init()
377 static int rt5682_io_init(struct device *dev, struct sdw_slave *slave) in rt5682_io_init()
531 static int rt5682_update_status(struct sdw_slave *slave, in rt5682_update_status()
553 static int rt5682_read_prop(struct sdw_slave *slave) in rt5682_read_prop()
663 static int rt5682_bus_config(struct sdw_slave *slave, in rt5682_bus_config()
678 static int rt5682_interrupt_callback(struct sdw_slave *slave, in rt5682_interrupt_callback()
703 static int rt5682_sdw_probe(struct sdw_slave *slave, in rt5682_sdw_probe()
718 static int rt5682_sdw_remove(struct sdw_slave *slave) in rt5682_sdw_remove()
755 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt5682_dev_system_suspend()
782 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt5682_dev_resume()
Drt700.h17 struct sdw_slave *slave;
170 int rt700_io_init(struct device *dev, struct sdw_slave *slave);
172 struct regmap *regmap, struct sdw_slave *slave);
Drt711-sdca.h21 struct sdw_slave *slave;
237 int rt711_sdca_io_init(struct device *dev, struct sdw_slave *slave);
239 struct regmap *mbq_regmap, struct sdw_slave *slave);
/linux-5.19.10/drivers/base/regmap/
Dregmap-sdw.c14 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_write()
22 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_read()
56 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw, in __regmap_init_sdw()
72 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw, in __devm_regmap_init_sdw()
Dregmap-sdw-mbq.c15 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_mbq_write()
28 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_mbq_read()
68 struct regmap *__regmap_init_sdw_mbq(struct sdw_slave *sdw, in __regmap_init_sdw_mbq()
84 struct regmap *__devm_regmap_init_sdw_mbq(struct sdw_slave *sdw, in __devm_regmap_init_sdw_mbq()

12