Lines Matching refs:slave
313 static int rt700_update_status(struct sdw_slave *slave, in rt700_update_status() argument
316 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_update_status()
332 return rt700_io_init(&slave->dev, slave); in rt700_update_status()
335 static int rt700_read_prop(struct sdw_slave *slave) in rt700_read_prop() argument
337 struct sdw_slave_prop *prop = &slave->prop; in rt700_read_prop()
354 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt700_read_prop()
373 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt700_read_prop()
399 static int rt700_bus_config(struct sdw_slave *slave, in rt700_bus_config() argument
402 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_bus_config()
407 ret = rt700_clock_config(&slave->dev); in rt700_bus_config()
409 dev_err(&slave->dev, "Invalid clk config"); in rt700_bus_config()
414 static int rt700_interrupt_callback(struct sdw_slave *slave, in rt700_interrupt_callback() argument
417 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_interrupt_callback()
419 dev_dbg(&slave->dev, in rt700_interrupt_callback()
443 static int rt700_sdw_probe(struct sdw_slave *slave, in rt700_sdw_probe() argument
449 sdw_regmap = devm_regmap_init_sdw(slave, &rt700_sdw_regmap); in rt700_sdw_probe()
453 regmap = devm_regmap_init(&slave->dev, NULL, in rt700_sdw_probe()
454 &slave->dev, &rt700_regmap); in rt700_sdw_probe()
458 rt700_init(&slave->dev, sdw_regmap, regmap, slave); in rt700_sdw_probe()
463 static int rt700_sdw_remove(struct sdw_slave *slave) in rt700_sdw_remove() argument
465 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_sdw_remove()
473 pm_runtime_disable(&slave->dev); in rt700_sdw_remove()
501 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt700_dev_system_suspend() local
515 ret = sdw_update_no_pm(slave, SDW_SCP_INTMASK1, in rt700_dev_system_suspend()
521 dev_dbg(&slave->dev, "%s: could not disable imp-def interrupts\n:", __func__); in rt700_dev_system_suspend()
531 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt700_dev_resume() local
538 if (!slave->unattach_request) in rt700_dev_resume()
541 time = wait_for_completion_timeout(&slave->initialization_complete, in rt700_dev_resume()
544 dev_err(&slave->dev, "Initialization not complete, timed out\n"); in rt700_dev_resume()
545 sdw_show_ping_status(slave->bus, true); in rt700_dev_resume()
551 slave->unattach_request = 0; in rt700_dev_resume()