Lines Matching defs:slave

257 	struct sdw_slave *slave = dev_to_sdw_dev(dev);
264 if (!slave->unattach_request)
267 time = wait_for_completion_timeout(&slave->initialization_complete,
275 slave->unattach_request = 0;
287 static int max98373_read_prop(struct sdw_slave *slave)
289 struct sdw_slave_prop *prop = &slave->prop;
305 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval,
324 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval,
347 static int max98373_io_init(struct sdw_slave *slave)
349 struct device *dev = &slave->dev;
466 static int max98373_clock_calculate(struct sdw_slave *slave,
481 dev_err(&slave->dev, "Requested clock not found. (clk_freq = %d)\n",
486 static int max98373_clock_config(struct sdw_slave *slave,
489 struct device *dev = &slave->dev;
500 value = max98373_clock_calculate(slave, clk_freq);
533 if (!max98373->slave)
561 ret = sdw_stream_add_slave(max98373->slave, &stream_config,
664 if (!max98373->slave)
667 sdw_stream_remove_slave(max98373->slave, stream->sdw_stream);
757 static int max98373_init(struct sdw_slave *slave, struct regmap *regmap)
761 struct device *dev = &slave->dev;
770 max98373->slave = slave;
788 static int max98373_update_status(struct sdw_slave *slave,
791 struct max98373_priv *max98373 = dev_get_drvdata(&slave->dev);
797 * Perform initialization only if slave status is SDW_SLAVE_ATTACHED
803 return max98373_io_init(slave);
806 static int max98373_bus_config(struct sdw_slave *slave,
811 ret = max98373_clock_config(slave, params);
813 dev_err(&slave->dev, "Invalid clk config");
828 static int max98373_sdw_probe(struct sdw_slave *slave,
834 regmap = devm_regmap_init_sdw(slave, &max98373_sdw_regmap);
838 return max98373_init(slave, regmap);