Lines Matching refs:link_res
337 void __iomem *shim_vs = sdw->link_res->shim_vs; in intel_shim_vs_init()
379 void __iomem *shim_vs = sdw->link_res->shim_vs; in intel_shim_vs_set_clock_source()
408 mutex_lock(sdw->link_res->shim_lock); in intel_shim_wake()
410 ret = hdac_bus_eml_sdw_get_lsdiid_unlocked(sdw->link_res->hbus, sdw->instance, &lsdiid); in intel_shim_wake()
414 wake_en = snd_hdac_chip_readw(sdw->link_res->hbus, WAKEEN); in intel_shim_wake()
420 snd_hdac_chip_writew(sdw->link_res->hbus, WAKEEN, wake_en); in intel_shim_wake()
424 snd_hdac_chip_writew(sdw->link_res->hbus, WAKEEN, wake_en); in intel_shim_wake()
427 wake_sts = snd_hdac_chip_readw(sdw->link_res->hbus, STATESTS); in intel_shim_wake()
429 snd_hdac_chip_writew(sdw->link_res->hbus, STATESTS, wake_sts); in intel_shim_wake()
432 mutex_unlock(sdw->link_res->shim_lock); in intel_shim_wake()
439 u32 *shim_mask = sdw->link_res->shim_mask; in intel_link_power_up()
458 mutex_lock(sdw->link_res->shim_lock); in intel_link_power_up()
460 ret = hdac_bus_eml_sdw_power_up_unlocked(sdw->link_res->hbus, link_id); in intel_link_power_up()
473 ret = hdac_bus_eml_sdw_set_syncprd_unlocked(sdw->link_res->hbus, syncprd); in intel_link_power_up()
481 ret = hdac_bus_eml_sdw_wait_syncpu_unlocked(sdw->link_res->hbus); in intel_link_power_up()
488 hdac_bus_eml_enable_interrupt_unlocked(sdw->link_res->hbus, true, in intel_link_power_up()
499 mutex_unlock(sdw->link_res->shim_lock); in intel_link_power_up()
506 u32 *shim_mask = sdw->link_res->shim_mask; in intel_link_power_down()
510 mutex_lock(sdw->link_res->shim_lock); in intel_link_power_down()
517 hdac_bus_eml_enable_interrupt_unlocked(sdw->link_res->hbus, true, in intel_link_power_down()
520 ret = hdac_bus_eml_sdw_power_down_unlocked(sdw->link_res->hbus, link_id); in intel_link_power_down()
531 mutex_unlock(sdw->link_res->shim_lock); in intel_link_power_down()
540 mutex_lock(sdw->link_res->shim_lock); in intel_sync_arm()
542 hdac_bus_eml_sdw_sync_arm_unlocked(sdw->link_res->hbus, link_id); in intel_sync_arm()
544 mutex_unlock(sdw->link_res->shim_lock); in intel_sync_arm()
551 ret = hdac_bus_eml_sdw_sync_go_unlocked(sdw->link_res->hbus); in intel_sync_go_unlocked()
562 mutex_lock(sdw->link_res->shim_lock); in intel_sync_go()
566 mutex_unlock(sdw->link_res->shim_lock); in intel_sync_go()
573 return hdac_bus_eml_sdw_check_cmdsync_unlocked(sdw->link_res->hbus); in intel_check_cmdsync_unlocked()
583 struct sdw_intel_link_res *res = sdw->link_res; in intel_params_stream()
604 struct sdw_intel_link_res *res = sdw->link_res; in intel_free_stream()
797 struct sdw_intel_link_res *res = sdw->link_res; in intel_trigger()
865 void __iomem *shim = sdw->link_res->shim; in intel_pdi_init()
882 void __iomem *shim = sdw->link_res->shim; in intel_pdi_get_ch_cap()
1012 ret = hdac_bus_eml_sdw_set_lsdiid(sdw->link_res->hbus, sdw->instance, dev_num); in intel_program_sdi()
1022 ret = hdac_bus_eml_get_count(sdw->link_res->hbus, true, AZX_REG_ML_LEPTR_ID_SDW); in intel_get_link_count()