Home
last modified time | relevance | path

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

/linux/sound/hda/ext/
H A Dhdac_ext_controller.c83 struct hdac_ext_link *hlink; in snd_hdac_ext_bus_get_ml_capabilities() local
90 hlink = kzalloc(sizeof(*hlink), GFP_KERNEL); in snd_hdac_ext_bus_get_ml_capabilities()
91 if (!hlink) in snd_hdac_ext_bus_get_ml_capabilities()
93 hlink->index = idx; in snd_hdac_ext_bus_get_ml_capabilities()
94 hlink->bus = bus; in snd_hdac_ext_bus_get_ml_capabilities()
95 hlink->ml_addr = bus->mlcap + AZX_ML_BASE + in snd_hdac_ext_bus_get_ml_capabilities()
97 hlink->lcaps = readl(hlink->ml_addr + AZX_REG_ML_LCAP); in snd_hdac_ext_bus_get_ml_capabilities()
98 hlink->lsdiid = readw(hlink->ml_addr + AZX_REG_ML_LSDIID); in snd_hdac_ext_bus_get_ml_capabilities()
101 hlink->ref_count = 1; in snd_hdac_ext_bus_get_ml_capabilities()
103 list_add_tail(&hlink->list, &bus->hlink_list); in snd_hdac_ext_bus_get_ml_capabilities()
[all …]
/linux/sound/soc/sof/intel/
H A Dhda-mlink.c102 struct hdac_ext_link *hlink = &h2link->hext_link; in hdaml_lnk_enum() local
105 hlink->lcaps = readl(ml_addr + AZX_REG_ML_LCAP); in hdaml_lnk_enum()
107 h2link->alt = FIELD_GET(AZX_ML_HDA_LCAP_ALT, hlink->lcaps); in hdaml_lnk_enum()
117 hlink->lsdiid = readw(ml_addr + AZX_REG_ML_LSDIID); in hdaml_lnk_enum()
120 link_idx, hlink->lsdiid); in hdaml_lnk_enum()
125 h2link->intc = FIELD_GET(AZX_ML_HDA_LCAP_INTC, hlink->lcaps); in hdaml_lnk_enum()
126 h2link->ofls = FIELD_GET(AZX_ML_HDA_LCAP_OFLS, hlink->lcaps); in hdaml_lnk_enum()
127 h2link->lss = FIELD_GET(AZX_ML_HDA_LCAP_LSS, hlink->lcaps); in hdaml_lnk_enum()
130 h2link->slcount = FIELD_GET(AZX_ML_HDA_LCAP_SLCOUNT, hlink->lcaps) + 1; in hdaml_lnk_enum()
381 struct hdac_ext_link *hlink; in hda_ml_alloc_h2link() local
[all …]
H A Dhda-dai.c113 struct hdac_ext_link *hlink; in hda_link_dma_cleanup() local
124 hlink = ops->get_hlink(sdev, substream); in hda_link_dma_cleanup()
125 if (!hlink) in hda_link_dma_cleanup()
130 snd_hdac_ext_bus_link_clear_stream_id(hlink, stream_tag); in hda_link_dma_cleanup()
162 struct hdac_ext_link *hlink; in hda_link_dma_hw_params() local
173 hlink = ops->get_hlink(sdev, substream); in hda_link_dma_hw_params()
174 if (!hlink) in hda_link_dma_hw_params()
191 snd_hdac_ext_bus_link_set_stream_id(hlink, stream_tag); in hda_link_dma_hw_params()
/linux/sound/soc/codecs/
H A Dhdac_hda.c412 struct hdac_ext_link *hlink; in hdac_hda_codec_probe() local
416 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_probe()
417 if (!hlink) { in hdac_hda_codec_probe()
422 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hda_codec_probe()
541 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_probe()
551 struct hdac_ext_link *hlink = NULL; in hdac_hda_codec_remove() local
553 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_remove()
554 if (!hlink) { in hdac_hda_codec_remove()
560 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_remove()
625 struct hdac_ext_link *hlink; in hdac_hda_dev_probe() local
[all …]
H A Dhda.c178 struct hdac_ext_link *hlink; in hda_codec_probe() local
187 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr); in hda_codec_probe()
188 if (!hlink) { in hda_codec_probe()
196 snd_hdac_ext_bus_link_get(bus, hlink); in hda_codec_probe()
263 snd_hdac_ext_bus_link_put(bus, hlink); in hda_codec_probe()
276 struct hdac_ext_link *hlink; in hda_codec_remove() local
295 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr); in hda_codec_remove()
296 if (hlink) in hda_codec_remove()
297 snd_hdac_ext_bus_link_put(bus, hlink); in hda_codec_remove()
H A Dhdac_hdmi.c1968 struct hdac_ext_link *hlink; in hdmi_codec_probe() local
1977 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdmi_codec_probe()
1978 if (!hlink) { in hdmi_codec_probe()
1983 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdmi_codec_probe()
2147 struct hdac_ext_link *hlink; in hdac_hdmi_dev_probe() local
2154 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hdmi_dev_probe()
2155 if (!hlink) { in hdac_hdmi_dev_probe()
2160 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hdmi_dev_probe()
2207 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hdmi_dev_probe()
2236 struct hdac_ext_link *hlink; in hdac_hdmi_runtime_suspend() local
[all …]
/linux/include/sound/
H A Dhdaudio_ext.h106 int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *hlink);
107 int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *hlink);
110 void snd_hdac_ext_bus_link_set_stream_id(struct hdac_ext_link *hlink,
112 void snd_hdac_ext_bus_link_clear_stream_id(struct hdac_ext_link *hlink,
115 int snd_hdac_ext_bus_link_get(struct hdac_bus *bus, struct hdac_ext_link *hlink);
116 int snd_hdac_ext_bus_link_put(struct hdac_bus *bus, struct hdac_ext_link *hlink);
/linux/sound/soc/intel/avs/
H A Dcore.c102 struct hdac_ext_link *hlink; in avs_hdac_bus_init_chip() local
109 list_for_each_entry(hlink, &bus->hlink_list, list) in avs_hdac_bus_init_chip()
110 writel(0, hlink->ml_addr + AZX_REG_ML_LOSIDV); in avs_hdac_bus_init_chip()
198 struct hdac_ext_link *hlink; in avs_hda_probe_work() local
209 list_for_each_entry(hlink, &bus->hlink_list, list) in avs_hda_probe_work()
210 snd_hdac_ext_bus_link_put(bus, hlink); in avs_hda_probe_work()