Lines Matching refs:rt715
149 struct rt715_priv *rt715 = dev_get_drvdata(dev); in rt715_sdw_read() local
164 ret = regmap_write(rt715->sdw_regmap, reg, 0); in rt715_sdw_read()
169 ret = regmap_write(rt715->sdw_regmap, reg2, val2); in rt715_sdw_read()
174 ret = regmap_write(rt715->sdw_regmap, reg3, in rt715_sdw_read()
180 ret = regmap_write(rt715->sdw_regmap, reg4, (*val & 0xff)); in rt715_sdw_read()
185 ret = regmap_write(rt715->sdw_regmap, reg, *val); in rt715_sdw_read()
191 ret = regmap_write(rt715->sdw_regmap, reg, in rt715_sdw_read()
197 ret = regmap_write(rt715->sdw_regmap, reg2, (*val & 0xff)); in rt715_sdw_read()
203 ret = regmap_write(rt715->sdw_regmap, reg2, in rt715_sdw_read()
207 ret = regmap_write(rt715->sdw_regmap, reg, (*val & 0xff)); in rt715_sdw_read()
211 ret = regmap_write(rt715->sdw_regmap, reg, in rt715_sdw_read()
217 ret = regmap_write(rt715->sdw_regmap, reg2, (*val & 0xff)); in rt715_sdw_read()
221 ret = regmap_write(rt715->sdw_regmap, reg, *val); in rt715_sdw_read()
225 ret = regmap_read(rt715->sdw_regmap, reg, val); in rt715_sdw_read()
236 ret = regmap_read(rt715->sdw_regmap, RT715_READ_HDA_3, in rt715_sdw_read()
240 ret = regmap_read(rt715->sdw_regmap, RT715_READ_HDA_2, in rt715_sdw_read()
244 ret = regmap_read(rt715->sdw_regmap, RT715_READ_HDA_1, in rt715_sdw_read()
248 ret = regmap_read(rt715->sdw_regmap, RT715_READ_HDA_0, in rt715_sdw_read()
272 struct rt715_priv *rt715 = dev_get_drvdata(dev); in rt715_sdw_write() local
286 ret = regmap_write(rt715->sdw_regmap, reg, 0); in rt715_sdw_write()
291 ret = regmap_write(rt715->sdw_regmap, reg2, val2); in rt715_sdw_write()
296 ret = regmap_write(rt715->sdw_regmap, reg3, in rt715_sdw_write()
302 ret = regmap_write(rt715->sdw_regmap, reg4, (val & 0xff)); in rt715_sdw_write()
307 ret = regmap_write(rt715->sdw_regmap, reg, val); in rt715_sdw_write()
311 ret = regmap_write(rt715->sdw_regmap, reg, val); in rt715_sdw_write()
315 ret = regmap_write(rt715->sdw_regmap, reg, in rt715_sdw_write()
321 ret = regmap_write(rt715->sdw_regmap, reg2, (val & 0xff)); in rt715_sdw_write()
327 ret = regmap_write(rt715->sdw_regmap, reg2, in rt715_sdw_write()
331 ret = regmap_write(rt715->sdw_regmap, reg, (val & 0xff)); in rt715_sdw_write()
417 struct rt715_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_update_status() local
420 rt715->status = status; in rt715_update_status()
425 if (rt715->hw_init || rt715->status != SDW_SLAVE_ATTACHED) in rt715_update_status()
479 struct rt715_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_bus_config() local
482 memcpy(&rt715->params, params, sizeof(*params)); in rt715_bus_config()
526 struct rt715_priv *rt715 = dev_get_drvdata(dev); in rt715_dev_suspend() local
528 if (!rt715->hw_init) in rt715_dev_suspend()
531 regcache_cache_only(rt715->regmap, true); in rt715_dev_suspend()
541 struct rt715_priv *rt715 = dev_get_drvdata(dev); in rt715_dev_resume() local
544 if (!rt715->hw_init) in rt715_dev_resume()
559 regcache_cache_only(rt715->regmap, false); in rt715_dev_resume()
560 regcache_sync_region(rt715->regmap, 0x3000, 0x8fff); in rt715_dev_resume()
561 regcache_sync_region(rt715->regmap, 0x752039, 0x752039); in rt715_dev_resume()