Home
last modified time | relevance | path

Searched refs:hlink (Results 1 – 7 of 7) sorted by relevance

/linux/sound/hda/core/ext/
H A Dcontroller.c84 struct hdac_ext_link *hlink; in snd_hdac_ext_bus_get_ml_capabilities() local
92 hlink = kzalloc_obj(*hlink); in snd_hdac_ext_bus_get_ml_capabilities()
93 if (!hlink) in snd_hdac_ext_bus_get_ml_capabilities()
95 hlink->index = idx; in snd_hdac_ext_bus_get_ml_capabilities()
96 hlink->bus = bus; in snd_hdac_ext_bus_get_ml_capabilities()
97 hlink->ml_addr = bus->mlcap + AZX_ML_BASE + in snd_hdac_ext_bus_get_ml_capabilities()
99 hlink->lcaps = readl(hlink->ml_addr + AZX_REG_ML_LCAP); in snd_hdac_ext_bus_get_ml_capabilities()
100 hlink->lsdiid = readw(hlink->ml_addr + AZX_REG_ML_LSDIID); in snd_hdac_ext_bus_get_ml_capabilities()
101 hlink->slcount = FIELD_GET(AZX_ML_HDA_LCAP_SLCOUNT, hlink->lcaps) + 1; in snd_hdac_ext_bus_get_ml_capabilities()
103 if (hdac_ext_link_alt(hlink)) { in snd_hdac_ext_bus_get_ml_capabilities()
[all …]
/linux/sound/soc/sof/intel/
H A Dhda-mlink.c113 struct hdac_ext_link *hlink = &h2link->hext_link; in hdaml_lnk_enum() local
116 hlink->lcaps = readl(ml_addr + AZX_REG_ML_LCAP); in hdaml_lnk_enum()
118 h2link->alt = FIELD_GET(AZX_ML_HDA_LCAP_ALT, hlink->lcaps); in hdaml_lnk_enum()
128 hlink->lsdiid = readw(ml_addr + AZX_REG_ML_LSDIID); in hdaml_lnk_enum()
131 link_idx, hlink->lsdiid); in hdaml_lnk_enum()
136 h2link->intc = FIELD_GET(AZX_ML_HDA_LCAP_INTC, hlink->lcaps); in hdaml_lnk_enum()
137 h2link->ofls = FIELD_GET(AZX_ML_HDA_LCAP_OFLS, hlink->lcaps); in hdaml_lnk_enum()
138 h2link->lss = FIELD_GET(AZX_ML_HDA_LCAP_LSS, hlink->lcaps); in hdaml_lnk_enum()
141 h2link->slcount = FIELD_GET(AZX_ML_HDA_LCAP_SLCOUNT, hlink->lcaps) + 1; in hdaml_lnk_enum()
392 struct hdac_ext_link *hlink; in hda_ml_alloc_h2link() local
452 struct hdac_ext_link *hlink, *_h; hda_bus_ml_free() local
471 struct hdac_ext_link *hlink; find_ext2_link() local
498 struct hdac_ext_link *hlink; hdac_bus_eml_enable_interrupt_unlocked() local
516 struct hdac_ext_link *hlink; hdac_bus_eml_enable_interrupt() local
535 struct hdac_ext_link *hlink; hdac_bus_eml_check_interrupt() local
553 struct hdac_ext_link *hlink; hdac_bus_eml_set_syncprd_unlocked() local
579 struct hdac_ext_link *hlink; hdac_bus_eml_wait_syncpu_unlocked() local
603 struct hdac_ext_link *hlink; hdac_bus_eml_sync_arm_unlocked() local
627 struct hdac_ext_link *hlink; hdac_bus_eml_sync_go_unlocked() local
653 struct hdac_ext_link *hlink; hdac_bus_eml_check_cmdsync_unlocked() local
683 struct hdac_ext_link *hlink; hdac_bus_eml_power_up_base() local
745 struct hdac_ext_link *hlink; hdac_bus_eml_power_down_base() local
813 struct hdac_ext_link *hlink; hdac_bus_eml_sdw_get_lsdiid_unlocked() local
829 struct hdac_ext_link *hlink; hdac_bus_eml_sdw_set_lsdiid() local
885 struct hdac_ext_link *hlink; hda_bus_ml_put_all() local
898 struct hdac_ext_link *hlink; hda_bus_ml_reset_losidv() local
908 struct hdac_ext_link *hlink; hda_bus_ml_resume() local
927 struct hdac_ext_link *hlink; hda_bus_ml_suspend() local
994 struct hdac_ext_link *hlink; hdac_bus_eml_enable_offload() local
[all...]
H A Dhda-sdw-bpt.c147 struct hdac_ext_link *hlink; in hda_sdw_bpt_dma_prepare() local
151 hlink = hdac_bus_eml_sdw_get_hlink(bus); in hda_sdw_bpt_dma_prepare()
153 snd_hdac_ext_bus_link_set_stream_id(hlink, stream_tag); in hda_sdw_bpt_dma_prepare()
175 struct hdac_ext_link *hlink; in hda_sdw_bpt_dma_deprepare() local
179 hlink = hdac_bus_eml_sdw_get_hlink(bus); in hda_sdw_bpt_dma_deprepare()
181 snd_hdac_ext_bus_link_clear_stream_id(hlink, stream_tag); in hda_sdw_bpt_dma_deprepare()
/linux/include/sound/
H A Dhdaudio_ext.h112 int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *hlink);
113 int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *hlink);
116 void snd_hdac_ext_bus_link_set_stream_id(struct hdac_ext_link *hlink,
118 void snd_hdac_ext_bus_link_clear_stream_id(struct hdac_ext_link *hlink,
121 int snd_hdac_ext_bus_link_get(struct hdac_bus *bus, struct hdac_ext_link *hlink);
122 int snd_hdac_ext_bus_link_put(struct hdac_bus *bus, struct hdac_ext_link *hlink);
/linux/sound/soc/codecs/
H A Dhdac_hda.c411 struct hdac_ext_link *hlink; in hdac_hda_codec_probe()
414 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_probe()
415 if (!hlink) { in hdac_hda_codec_probe()
420 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hda_codec_probe()
538 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_probe()
549 struct hdac_ext_link *hlink = NULL; in hdac_hda_codec_remove()
551 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_remove()
552 if (!hlink) { in hdac_hda_codec_remove() local
558 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_remove()
623 struct hdac_ext_link *hlink; in hdac_hda_dev_probe()
413 struct hdac_ext_link *hlink; hdac_hda_codec_probe() local
626 struct hdac_ext_link *hlink; hdac_hda_dev_probe() local
[all...]
H A Dhda.c178 struct hdac_ext_link *hlink; in hda_codec_probe() local
186 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr); in hda_codec_probe()
187 if (!hlink) { in hda_codec_probe()
195 snd_hdac_ext_bus_link_get(bus, hlink); in hda_codec_probe()
260 snd_hdac_ext_bus_link_put(bus, hlink); in hda_codec_probe()
273 struct hdac_ext_link *hlink; in hda_codec_remove() local
292 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr); in hda_codec_remove()
293 if (hlink) in hda_codec_remove()
294 snd_hdac_ext_bus_link_put(bus, hlink); in hda_codec_remove()
H A Dhdac_hdmi.c1676 struct hdac_ext_link *hlink; in hdmi_codec_probe()
1685 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdmi_codec_probe()
1686 if (!hlink) { in hdmi_codec_probe()
1691 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdmi_codec_probe()
1850 struct hdac_ext_link *hlink; in hdac_hdmi_dev_probe()
1857 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hdmi_dev_probe()
1858 if (!hlink) { in hdac_hdmi_dev_probe()
1863 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hdmi_dev_probe()
1867 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hdmi_dev_probe()
1879 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hdmi_dev_probe()
1671 struct hdac_ext_link *hlink; hdmi_codec_probe() local
1846 struct hdac_ext_link *hlink; hdac_hdmi_dev_probe() local
1934 struct hdac_ext_link *hlink; hdac_hdmi_runtime_suspend() local
1970 struct hdac_ext_link *hlink; hdac_hdmi_runtime_resume() local
[all...]