Home
last modified time | relevance | path

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

1234

/linux/include/linux/soundwire/
H A Dsdw.h26 struct sdw_slave;
468 int sdw_slave_read_prop(struct sdw_slave *slave);
469 int sdw_slave_read_lane_mapping(struct sdw_slave *slave);
497 struct sdw_slave *array[];
624 int (*read_prop)(struct sdw_slave *sdw);
625 int (*interrupt_callback)(struct sdw_slave *slave,
627 int (*update_status)(struct sdw_slave *slave,
629 int (*bus_config)(struct sdw_slave *slave,
631 int (*port_prep)(struct sdw_slave *slave,
634 int (*clk_stop)(struct sdw_slave *slave,
[all …]
/linux/drivers/soundwire/
H A 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()
146 struct sdw_slave *slave;
185 struct sdw_dpn_prop *sdw_get_slave_dpn_prop(struct sdw_slave *slave,
188 int sdw_configure_dpn_intr(struct sdw_slave *slave, int port,
196 int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave,
241 int sdw_slave_modalias(const struct sdw_slave *slave, char *buf, size_t size);
H A Dsysfs_slave.c73 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
97 struct sdw_slave *slave = dev_to_sdw_dev(dev); in modalias_show()
145 struct sdw_slave *slave = dev_to_sdw_dev(dev); \
159 struct sdw_slave *slave = dev_to_sdw_dev(dev); in words_show()
185 struct sdw_slave *slave = dev_to_sdw_dev(kobj_to_dev(kobj)); in dp0_attr_visible()
194 struct sdw_slave *slave = dev_to_sdw_dev(kobj_to_dev(kobj)); in dp0_group_visible()
230 struct sdw_slave *slave = dev_to_sdw_dev(dev); in status_show()
239 struct sdw_slave *slave = dev_to_sdw_dev(dev); in device_number_show()
H A Dbus.c171 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_delete_slave()
361 int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, in sdw_fill_msg()
414 static int sdw_ntransfer_no_pm(struct sdw_slave *slave, u32 addr, u8 flags, in sdw_ntransfer_no_pm()
451 int sdw_nread_no_pm(struct sdw_slave *slave, u32 addr, size_t count, u8 *val) in sdw_nread_no_pm()
467 int sdw_nwrite_no_pm(struct sdw_slave *slave, u32 addr, size_t count, const u8 *val) in sdw_nwrite_no_pm()
479 int sdw_write_no_pm(struct sdw_slave *slave, u32 addr, u8 value) in sdw_write_no_pm()
556 int sdw_read_no_pm(struct sdw_slave *slave, u32 addr) in sdw_read_no_pm()
569 int sdw_update_no_pm(struct sdw_slave *slave, u32 addr, u8 mask, u8 val) in sdw_update_no_pm()
583 int sdw_update(struct sdw_slave *slave, u32 addr, u8 mask, u8 val) in sdw_update()
608 int sdw_nread(struct sdw_slave *slave, u32 addr, size_t count, u8 *val) in sdw_nread()
[all …]
H A Dbus_type.c21 sdw_get_device_id(struct sdw_slave *slave, const 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 const struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_slave_uevent()
76 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_bus_probe()
162 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_bus_remove()
179 struct sdw_slave *slave = dev_to_sdw_dev(dev); in sdw_bus_shutdown()
H A Ddebugfs.c36 static ssize_t sdw_sprintf(struct sdw_slave *slave, in sdw_sprintf()
52 struct sdw_slave *slave = s_file->private; in sdw_slave_reg_show()
151 struct sdw_slave *slave = data; in set_command()
169 struct sdw_slave *slave = data; in set_command_type()
188 struct sdw_slave *slave = data; in set_start_address()
204 struct sdw_slave *slave = data; in set_num_bytes()
221 static int do_bpt_sequence(struct sdw_slave *slave, bool write, u8 *buffer) in do_bpt_sequence()
248 struct sdw_slave *slave = data; in cmd_go()
338 void sdw_slave_debugfs_init(struct sdw_slave *slave) in sdw_slave_debugfs_init()
366 void sdw_slave_debugfs_exit(struct sdw_slave *slave) in sdw_slave_debugfs_exit()
/linux/sound/soc/sdca/
H A Dsdca_device.c18 void sdca_lookup_interface_revision(struct sdw_slave *slave) in sdca_lookup_interface_revision()
36 void sdca_lookup_swft(struct sdw_slave *slave) in sdca_lookup_swft()
50 static bool sdca_device_quirk_rt712_vb(struct sdw_slave *slave) in sdca_device_quirk_rt712_vb()
79 static bool sdca_device_quirk_skip_func_type_patching(struct sdw_slave *slave) in sdca_device_quirk_skip_func_type_patching()
96 bool sdca_device_quirk_match(struct sdw_slave *slave, enum sdca_quirk quirk) in sdca_device_quirk_match()
/linux/sound/soc/codecs/
H A Drt1318-sdw.c344 static int rt1318_read_prop(struct sdw_slave *slave) in rt1318_read_prop()
403 static int rt1318_io_init(struct device *dev, struct sdw_slave *slave) in rt1318_io_init()
442 static int rt1318_update_status(struct sdw_slave *slave, in rt1318_update_status()
580 if (!rt1318->sdw_slave) in rt1318_sdw_hw_params()
604 retval = sdw_stream_add_slave(rt1318->sdw_slave, &stream_config, in rt1318_sdw_hw_params()
654 if (!rt1318->sdw_slave) in rt1318_sdw_pcm_hw_free()
657 sdw_stream_remove_slave(rt1318->sdw_slave, sdw_stream); in rt1318_sdw_pcm_hw_free()
681 dev_dbg(&rt1318->sdw_slave->dev, "%s pm_runtime_resume, ret=%d", __func__, ret); in rt1318_sdw_component_probe()
733 struct sdw_slave *slave) in rt1318_sdw_init()
743 rt1318->sdw_slave = slave; in rt1318_sdw_init()
[all …]
H A Drt1308-sdw.c122 static int rt1308_read_prop(struct sdw_slave *slave) in rt1308_read_prop()
195 dev_dbg(&rt1308->sdw_slave->dev, "%s m_btl_l=0x%x, m_btl_r=0x%x\n", __func__, in rt1308_apply_calib_params()
197 dev_dbg(&rt1308->sdw_slave->dev, "%s c_btl_l=0x%x, c_btl_r=0x%x\n", __func__, in rt1308_apply_calib_params()
212 static int rt1308_io_init(struct device *dev, struct sdw_slave *slave) in rt1308_io_init()
300 static int rt1308_update_status(struct sdw_slave *slave, in rt1308_update_status()
319 static int rt1308_bus_config(struct sdw_slave *slave, in rt1308_bus_config()
334 static int rt1308_interrupt_callback(struct sdw_slave *slave, in rt1308_interrupt_callback()
544 if (!rt1308->sdw_slave) in rt1308_sdw_hw_params()
561 retval = sdw_stream_add_slave(rt1308->sdw_slave, &stream_config, in rt1308_sdw_hw_params()
580 if (!rt1308->sdw_slave) in rt1308_sdw_pcm_hw_free()
[all …]
H A Drt1316-sdw.c195 static int rt1316_read_prop(struct sdw_slave *slave) in rt1316_read_prop()
267 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()
523 if (!rt1316->sdw_slave) in rt1316_sdw_hw_params()
535 retval = sdw_stream_add_slave(rt1316->sdw_slave, &stream_config, in rt1316_sdw_hw_params()
554 if (!rt1316->sdw_slave) in rt1316_sdw_pcm_hw_free()
557 sdw_stream_remove_slave(rt1316->sdw_slave, sdw_stream); in rt1316_sdw_pcm_hw_free()
597 rt1316_sdw_parse_dt(rt1316, &rt1316->sdw_slave->dev); in rt1316_sdw_component_probe()
656 struct sdw_slave *slave) in rt1316_sdw_init()
666 rt1316->sdw_slave = slave; in rt1316_sdw_init()
[all …]
H A Drt1017-sdca-sdw.c256 static int rt1017_sdca_read_prop(struct sdw_slave *slave) in rt1017_sdca_read_prop()
318 static int rt1017_sdca_io_init(struct device *dev, struct sdw_slave *slave) in rt1017_sdca_io_init()
370 static int rt1017_sdca_update_status(struct sdw_slave *slave, in rt1017_sdca_update_status()
589 if (!rt1017->sdw_slave) in rt1017_sdca_pcm_hw_params()
617 retval = sdw_stream_add_slave(rt1017->sdw_slave, &stream_config, in rt1017_sdca_pcm_hw_params()
661 if (!rt1017->sdw_slave) in rt1017_sdca_pcm_hw_free()
664 sdw_stream_remove_slave(rt1017->sdw_slave, sdw_stream); in rt1017_sdca_pcm_hw_free()
702 struct sdw_slave *slave) in rt1017_sdca_init()
712 rt1017->sdw_slave = slave; in rt1017_sdca_init()
730 static int rt1017_sdca_sdw_probe(struct sdw_slave *slave, in rt1017_sdca_sdw_probe()
[all …]
H A Dsdw-mockup.c22 struct sdw_slave *slave;
126 static int sdw_mockup_update_status(struct sdw_slave *slave, in sdw_mockup_update_status()
132 static int sdw_mockup_read_prop(struct sdw_slave *slave) in sdw_mockup_read_prop()
196 static int sdw_mockup_bus_config(struct sdw_slave *slave, in sdw_mockup_bus_config()
202 static int sdw_mockup_interrupt_callback(struct sdw_slave *slave, in sdw_mockup_interrupt_callback()
215 static int sdw_mockup_sdw_probe(struct sdw_slave *slave, in sdw_mockup_sdw_probe()
H A Dcs42l42-sdw.c128 static int cs42l42_sdw_port_prep(struct sdw_slave *slave, in cs42l42_sdw_port_prep()
202 static int cs42l42_sdw_poll_status(struct sdw_slave *peripheral, u8 mask, u8 match) in cs42l42_sdw_poll_status()
222 struct sdw_slave *peripheral = context; in cs42l42_sdw_read()
272 struct sdw_slave *peripheral = context; in cs42l42_sdw_write()
283 static void cs42l42_sdw_init(struct sdw_slave *peripheral) in cs42l42_sdw_init()
309 static int cs42l42_sdw_read_prop(struct sdw_slave *peripheral) in cs42l42_sdw_read_prop()
339 static int cs42l42_sdw_update_status(struct sdw_slave *peripheral, in cs42l42_sdw_update_status()
385 static int cs42l42_sdw_bus_config(struct sdw_slave *peripheral, in cs42l42_sdw_bus_config()
434 struct sdw_slave *peripheral = cs42l42->sdw_peripheral; in cs42l42_sdw_handle_unattach()
522 static int cs42l42_sdw_probe(struct sdw_slave *peripheral, const struct sdw_device_id *id) in cs42l42_sdw_probe()
[all …]
H A Drt715-sdca-sdw.c118 static int rt715_sdca_update_status(struct sdw_slave *slave, in rt715_sdca_update_status()
134 static int rt715_sdca_read_prop(struct sdw_slave *slave) in rt715_sdca_read_prop()
176 static int rt715_sdca_sdw_probe(struct sdw_slave *slave, in rt715_sdca_sdw_probe()
193 static void rt715_sdca_sdw_remove(struct sdw_slave *slave) in rt715_sdca_sdw_remove()
224 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt715_dev_resume()
H A Drt1320-sdw.c1070 static int rt1320_read_prop(struct sdw_slave *slave) in rt1320_read_prop()
1150 pm_runtime_mark_last_busy(&rt1320->sdw_slave->dev); in rt1320_pde_transition_delay()
1163 dev_warn(&rt1320->sdw_slave->dev, "%s PDE to %s is NOT ready", __func__, ps?"PS3":"PS0"); in rt1320_pde_transition_delay()
1173 struct device *dev = &rt1320->sdw_slave->dev; in rt1320_data_rw()
1184 ret = sdw_bpt_send_sync(rt1320->sdw_slave->bus, rt1320->sdw_slave, &rt1320->bra_msg); in rt1320_data_rw()
1270 struct device *dev = &rt1320->sdw_slave->dev; in rt1320_check_fw_ready()
1305 struct device *dev = &rt1320->sdw_slave->dev; in rt1320_dspfw_status()
1341 struct device *dev = &rt1320->sdw_slave->dev; in rt1320_check_power_state_ready()
1363 struct device *dev = &rt1320->sdw_slave->dev; in rt1320_process_fw_param()
1413 dev_err(&rt1320->sdw_slave->dev, "%s: FW is NOT ready for SET/GET_PARAM\n", __func__); in rt1320_process_fw_param()
[all …]
H A Drt715-sdca.h22 struct sdw_slave *slave;
128 int rt715_sdca_io_init(struct device *dev, struct sdw_slave *slave);
130 struct regmap *regmap, struct sdw_slave *slave);
H A Dmax98363.c91 struct sdw_slave *slave = dev_to_sdw_dev(dev); in max98363_resume()
115 static int max98363_read_prop(struct sdw_slave *slave) in max98363_resume()
153 static int max98363_io_init(struct sdw_slave *slave) in max98363_read_prop()
294 static int max98363_update_status(struct sdw_slave *slave,
382 static int max98363_init(struct sdw_slave *slave, struct regmap *regmap)
428 static int max98363_sdw_probe(struct sdw_slave *slave, in max98363_init()
H A Drt711-sdca-sdw.c141 static int rt711_sdca_update_status(struct sdw_slave *slave, in rt711_sdca_update_status()
175 static int rt711_sdca_read_prop(struct sdw_slave *slave) in rt711_sdca_read_prop()
245 static int rt711_sdca_interrupt_callback(struct sdw_slave *slave, in rt711_sdca_interrupt_callback()
351 static int rt711_sdca_sdw_probe(struct sdw_slave *slave, in rt711_sdca_sdw_probe()
368 static void rt711_sdca_sdw_remove(struct sdw_slave *slave) in rt711_sdca_sdw_remove()
408 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_sdca_dev_system_suspend()
439 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_sdca_dev_resume()
H A Drt721-sdca-sdw.c191 static int rt721_sdca_update_status(struct sdw_slave *slave, in rt721_sdca_update_status()
225 static int rt721_sdca_read_prop(struct sdw_slave *slave) in rt721_sdca_read_prop()
296 static int rt721_sdca_interrupt_callback(struct sdw_slave *slave, in rt721_sdca_interrupt_callback()
401 static int rt721_sdca_sdw_probe(struct sdw_slave *slave, in rt721_sdca_sdw_probe()
418 static void rt721_sdca_sdw_remove(struct sdw_slave *slave) in rt721_sdca_sdw_remove()
459 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt721_sdca_dev_system_suspend()
490 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt721_sdca_dev_resume()
H A Drt711-sdw.c319 static int rt711_update_status(struct sdw_slave *slave, in rt711_update_status()
338 static int rt711_read_prop(struct sdw_slave *slave) in rt711_read_prop()
403 static int rt711_bus_config(struct sdw_slave *slave, in rt711_bus_config()
418 static int rt711_interrupt_callback(struct sdw_slave *slave, in rt711_interrupt_callback()
442 static int rt711_sdw_probe(struct sdw_slave *slave, in rt711_sdw_probe()
460 static void rt711_sdw_remove(struct sdw_slave *slave) in rt711_sdw_remove()
501 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_dev_system_suspend()
530 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_dev_resume()
H A Drt700-sdw.c313 static int rt700_update_status(struct sdw_slave *slave, in rt700_update_status()
332 static int rt700_read_prop(struct sdw_slave *slave) in rt700_read_prop()
396 static int rt700_bus_config(struct sdw_slave *slave, in rt700_bus_config()
411 static int rt700_interrupt_callback(struct sdw_slave *slave, in rt700_interrupt_callback()
439 static int rt700_sdw_probe(struct sdw_slave *slave, in rt700_sdw_probe()
457 static void rt700_sdw_remove(struct sdw_slave *slave) in rt700_sdw_remove()
490 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt700_dev_system_suspend()
520 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt700_dev_resume()
H A Drt5682-sdw.c299 struct sdw_slave *slave) in rt5682_sdw_init()
369 static int rt5682_io_init(struct device *dev, struct sdw_slave *slave) in rt5682_io_init()
522 static int rt5682_update_status(struct sdw_slave *slave, in rt5682_update_status()
541 static int rt5682_read_prop(struct sdw_slave *slave) in rt5682_read_prop()
651 static int rt5682_bus_config(struct sdw_slave *slave, in rt5682_bus_config()
666 static int rt5682_interrupt_callback(struct sdw_slave *slave, in rt5682_interrupt_callback()
690 static int rt5682_sdw_probe(struct sdw_slave *slave, in rt5682_sdw_probe()
703 static void rt5682_sdw_remove(struct sdw_slave *slave) in rt5682_sdw_remove()
738 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt5682_dev_system_suspend()
765 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt5682_dev_resume()
H A Dmax98373-sdw.c266 struct sdw_slave *slave = dev_to_sdw_dev(dev); in max98373_resume()
295 static int max98373_read_prop(struct sdw_slave *slave) in max98373_read_prop()
355 static int max98373_io_init(struct sdw_slave *slave) in max98373_io_init()
462 static int max98373_clock_calculate(struct sdw_slave *slave, in max98373_clock_calculate()
482 static int max98373_clock_config(struct sdw_slave *slave, in max98373_clock_config()
724 static int max98373_init(struct sdw_slave *slave, struct regmap *regmap) in max98373_init()
785 static int max98373_update_status(struct sdw_slave *slave, in max98373_update_status()
803 static int max98373_bus_config(struct sdw_slave *slave, in max98373_bus_config()
825 static int max98373_sdw_probe(struct sdw_slave *slave, in max98373_sdw_probe()
838 static void max98373_sdw_remove(struct sdw_slave *slave) in max98373_sdw_remove()
H A Drt1316-sdw.h44 struct sdw_slave *sdw_slave; member
/linux/drivers/base/regmap/
H A Dregmap-sdw.c15 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_write()
28 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_gather_write()
39 struct sdw_slave *slave = dev_to_sdw_dev(dev); in regmap_sdw_read()
69 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw, in __regmap_init_sdw()
85 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw, in __devm_regmap_init_sdw()

1234