Lines Matching defs:slave

267 	struct sdw_slave *slave = dev_to_sdw_dev(dev);
274 if (!slave->unattach_request)
277 time = wait_for_completion_timeout(&slave->initialization_complete,
281 sdw_show_ping_status(slave->bus, true);
287 slave->unattach_request = 0;
299 static int max98373_read_prop(struct sdw_slave *slave)
301 struct sdw_slave_prop *prop = &slave->prop;
317 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval,
336 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval,
359 static int max98373_io_init(struct sdw_slave *slave)
361 struct device *dev = &slave->dev;
467 static int max98373_clock_calculate(struct sdw_slave *slave,
482 dev_err(&slave->dev, "Requested clock not found. (clk_freq = %d)\n",
487 static int max98373_clock_config(struct sdw_slave *slave,
490 struct device *dev = &slave->dev;
501 value = max98373_clock_calculate(slave, clk_freq);
532 if (!max98373->slave)
552 ret = sdw_stream_add_slave(max98373->slave, &stream_config,
655 if (!max98373->slave)
658 sdw_stream_remove_slave(max98373->slave, sdw_stream);
729 static int max98373_init(struct sdw_slave *slave, struct regmap *regmap)
734 struct device *dev = &slave->dev;
743 max98373->slave = slave;
790 static int max98373_update_status(struct sdw_slave *slave,
793 struct max98373_priv *max98373 = dev_get_drvdata(&slave->dev);
799 * Perform initialization only if slave status is SDW_SLAVE_ATTACHED
805 return max98373_io_init(slave);
808 static int max98373_bus_config(struct sdw_slave *slave,
813 ret = max98373_clock_config(slave, params);
815 dev_err(&slave->dev, "Invalid clk config");
830 static int max98373_sdw_probe(struct sdw_slave *slave,
836 regmap = devm_regmap_init_sdw(slave, &max98373_sdw_regmap);
840 return max98373_init(slave, regmap);
843 static int max98373_sdw_remove(struct sdw_slave *slave)
845 pm_runtime_disable(&slave->dev);