Lines Matching defs:slave
91 struct sdw_slave *slave = dev_to_sdw_dev(dev);
98 if (!slave->unattach_request)
101 time = wait_for_completion_timeout(&slave->initialization_complete,
110 slave->unattach_request = 0;
119 static int max98363_read_prop(struct sdw_slave *slave)
121 struct sdw_slave_prop *prop = &slave->prop;
137 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval,
157 static int max98363_io_init(struct sdw_slave *slave)
159 struct device *dev = &slave->dev;
221 if (!max98363->slave)
242 ret = sdw_stream_add_slave(max98363->slave, &stream_config,
263 if (!max98363->slave)
266 sdw_stream_remove_slave(max98363->slave, stream);
299 static int max98363_update_status(struct sdw_slave *slave,
302 struct max98363_priv *max98363 = dev_get_drvdata(&slave->dev);
308 * Perform initialization only if slave status is SDW_SLAVE_ATTACHED
314 return max98363_io_init(slave);
387 static int max98363_init(struct sdw_slave *slave, struct regmap *regmap)
391 struct device *dev = &slave->dev;
400 max98363->slave = slave;
433 static int max98363_sdw_probe(struct sdw_slave *slave,
439 regmap = devm_regmap_init_sdw(slave, &max98363_sdw_regmap);
443 return max98363_init(slave, regmap);