Lines Matching refs:rt700

88 	struct rt700_priv *rt700 = dev_get_drvdata(dev);  in rt700_sdw_read()  local
103 ret = regmap_write(rt700->sdw_regmap, reg, 0); in rt700_sdw_read()
108 ret = regmap_write(rt700->sdw_regmap, reg2, val2); in rt700_sdw_read()
113 ret = regmap_write(rt700->sdw_regmap, in rt700_sdw_read()
119 ret = regmap_write(rt700->sdw_regmap, reg4, (*val & 0xff)); in rt700_sdw_read()
124 ret = regmap_write(rt700->sdw_regmap, reg, *val); in rt700_sdw_read()
130 ret = regmap_write(rt700->sdw_regmap, in rt700_sdw_read()
136 ret = regmap_write(rt700->sdw_regmap, reg2, (*val & 0xff)); in rt700_sdw_read()
142 ret = regmap_write(rt700->sdw_regmap, in rt700_sdw_read()
146 ret = regmap_write(rt700->sdw_regmap, reg, (*val & 0xff)); in rt700_sdw_read()
150 ret = regmap_write(rt700->sdw_regmap, in rt700_sdw_read()
156 ret = regmap_write(rt700->sdw_regmap, reg2, (*val & 0xff)); in rt700_sdw_read()
160 ret = regmap_write(rt700->sdw_regmap, reg, *val); in rt700_sdw_read()
164 ret = regmap_read(rt700->sdw_regmap, reg, val); in rt700_sdw_read()
175 ret = regmap_read(rt700->sdw_regmap, in rt700_sdw_read()
179 ret = regmap_read(rt700->sdw_regmap, in rt700_sdw_read()
183 ret = regmap_read(rt700->sdw_regmap, in rt700_sdw_read()
187 ret = regmap_read(rt700->sdw_regmap, in rt700_sdw_read()
211 struct rt700_priv *rt700 = dev_get_drvdata(dev); in rt700_sdw_write() local
225 ret = regmap_write(rt700->sdw_regmap, reg, 0); in rt700_sdw_write()
230 ret = regmap_write(rt700->sdw_regmap, reg2, val2); in rt700_sdw_write()
235 ret = regmap_write(rt700->sdw_regmap, in rt700_sdw_write()
241 ret = regmap_write(rt700->sdw_regmap, reg4, (val & 0xff)); in rt700_sdw_write()
246 ret = regmap_write(rt700->sdw_regmap, reg, val); in rt700_sdw_write()
250 ret = regmap_write(rt700->sdw_regmap, reg, val); in rt700_sdw_write()
254 ret = regmap_write(rt700->sdw_regmap, in rt700_sdw_write()
260 ret = regmap_write(rt700->sdw_regmap, reg2, (val & 0xff)); in rt700_sdw_write()
266 ret = regmap_write(rt700->sdw_regmap, in rt700_sdw_write()
270 ret = regmap_write(rt700->sdw_regmap, reg, (val & 0xff)); in rt700_sdw_write()
316 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_update_status() local
319 rt700->status = status; in rt700_update_status()
322 rt700->hw_init = false; in rt700_update_status()
328 if (rt700->hw_init || rt700->status != SDW_SLAVE_ATTACHED) in rt700_update_status()
402 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_bus_config() local
405 memcpy(&rt700->params, params, sizeof(*params)); in rt700_bus_config()
417 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_interrupt_callback() local
422 mutex_lock(&rt700->disable_irq_lock); in rt700_interrupt_callback()
423 if (status->control_port & 0x4 && !rt700->disable_irq) { in rt700_interrupt_callback()
425 &rt700->jack_detect_work, msecs_to_jiffies(250)); in rt700_interrupt_callback()
427 mutex_unlock(&rt700->disable_irq_lock); in rt700_interrupt_callback()
465 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_sdw_remove() local
467 if (rt700->hw_init) { in rt700_sdw_remove()
468 cancel_delayed_work_sync(&rt700->jack_detect_work); in rt700_sdw_remove()
469 cancel_delayed_work_sync(&rt700->jack_btn_check_work); in rt700_sdw_remove()
472 if (rt700->first_hw_init) in rt700_sdw_remove()
486 struct rt700_priv *rt700 = dev_get_drvdata(dev); in rt700_dev_suspend() local
488 if (!rt700->hw_init) in rt700_dev_suspend()
491 cancel_delayed_work_sync(&rt700->jack_detect_work); in rt700_dev_suspend()
492 cancel_delayed_work_sync(&rt700->jack_btn_check_work); in rt700_dev_suspend()
494 regcache_cache_only(rt700->regmap, true); in rt700_dev_suspend()
502 struct rt700_priv *rt700 = dev_get_drvdata(dev); in rt700_dev_system_suspend() local
505 if (!rt700->hw_init) in rt700_dev_system_suspend()
513 mutex_lock(&rt700->disable_irq_lock); in rt700_dev_system_suspend()
514 rt700->disable_irq = true; in rt700_dev_system_suspend()
517 mutex_unlock(&rt700->disable_irq_lock); in rt700_dev_system_suspend()
532 struct rt700_priv *rt700 = dev_get_drvdata(dev); in rt700_dev_resume() local
535 if (!rt700->first_hw_init) in rt700_dev_resume()
550 regcache_cache_only(rt700->regmap, false); in rt700_dev_resume()
551 regcache_sync_region(rt700->regmap, 0x3000, 0x8fff); in rt700_dev_resume()
552 regcache_sync_region(rt700->regmap, 0x752010, 0x75206b); in rt700_dev_resume()