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
[all …]
H A Dhda-sdw-bpt.c147 struct hdac_ext_link *hlink; in hda_sdw_bpt_dma_deprepare()
151 hlink = hdac_bus_eml_sdw_get_hlink(bus); in hda_sdw_bpt_dma_deprepare()
153 snd_hdac_ext_bus_link_set_stream_id(hlink, stream_tag); in hda_sdw_bpt_dma_deprepare()
175 struct hdac_ext_link *hlink; in hda_sdw_bpt_dma_deprepare()
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()
135 struct hdac_ext_link *hlink; hda_sdw_bpt_dma_prepare() local
163 struct hdac_ext_link *hlink; hda_sdw_bpt_dma_deprepare() local
/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()
539 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_probe()
550 struct hdac_ext_link *hlink = NULL; in hdac_hda_codec_remove()
552 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_remove() local
553 if (!hlink) { in hdac_hda_codec_remove()
559 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_remove()
624 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()
1851 struct hdac_ext_link *hlink; in hdac_hdmi_dev_probe()
1858 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hdmi_dev_probe()
1859 if (!hlink) { in hdac_hdmi_dev_probe()
1864 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hdmi_dev_probe()
1911 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in clear_dapm_works()
1939 struct hdac_ext_link *hlink; in hdac_hdmi_runtime_suspend()
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...]
/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);