Lines Matching refs:slave
317 static int rt711_update_status(struct sdw_slave *slave, in rt711_update_status() argument
320 struct rt711_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_update_status()
336 return rt711_io_init(&slave->dev, slave); in rt711_update_status()
339 static int rt711_read_prop(struct sdw_slave *slave) in rt711_read_prop() argument
341 struct sdw_slave_prop *prop = &slave->prop; in rt711_read_prop()
359 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_read_prop()
378 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_read_prop()
404 static int rt711_bus_config(struct sdw_slave *slave, in rt711_bus_config() argument
407 struct rt711_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_bus_config()
412 ret = rt711_clock_config(&slave->dev); in rt711_bus_config()
414 dev_err(&slave->dev, "Invalid clk config"); in rt711_bus_config()
419 static int rt711_interrupt_callback(struct sdw_slave *slave, in rt711_interrupt_callback() argument
422 struct rt711_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_interrupt_callback()
424 dev_dbg(&slave->dev, in rt711_interrupt_callback()
444 static int rt711_sdw_probe(struct sdw_slave *slave, in rt711_sdw_probe() argument
450 sdw_regmap = devm_regmap_init_sdw(slave, &rt711_sdw_regmap); in rt711_sdw_probe()
454 regmap = devm_regmap_init(&slave->dev, NULL, in rt711_sdw_probe()
455 &slave->dev, &rt711_regmap); in rt711_sdw_probe()
459 rt711_init(&slave->dev, sdw_regmap, regmap, slave); in rt711_sdw_probe()
464 static int rt711_sdw_remove(struct sdw_slave *slave) in rt711_sdw_remove() argument
466 struct rt711_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_sdw_remove()
475 pm_runtime_disable(&slave->dev); in rt711_sdw_remove()
508 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_dev_system_suspend() local
521 ret = sdw_update_no_pm(slave, SDW_SCP_INTMASK1, in rt711_dev_system_suspend()
527 dev_dbg(&slave->dev, "%s: could not disable imp-def interrupts\n:", __func__); in rt711_dev_system_suspend()
537 struct sdw_slave *slave = dev_to_sdw_dev(dev); in rt711_dev_resume() local
544 if (!slave->unattach_request) { in rt711_dev_resume()
547 sdw_write_no_pm(slave, SDW_SCP_INTMASK1, SDW_SCP_INT1_IMPL_DEF); in rt711_dev_resume()
554 time = wait_for_completion_timeout(&slave->initialization_complete, in rt711_dev_resume()
557 dev_err(&slave->dev, "Initialization not complete, timed out\n"); in rt711_dev_resume()
562 slave->unattach_request = 0; in rt711_dev_resume()