Home
last modified time | relevance | path

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

/openbmc/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 …]
/openbmc/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.c117 struct hdac_ext_link *hlink; in hda_link_dma_cleanup() local
128 hlink = ops->get_hlink(sdev, substream); in hda_link_dma_cleanup()
129 if (!hlink) in hda_link_dma_cleanup()
134 snd_hdac_ext_bus_link_clear_stream_id(hlink, stream_tag); in hda_link_dma_cleanup()
155 struct hdac_ext_link *hlink; in hda_link_dma_hw_params() local
166 hlink = ops->get_hlink(sdev, substream); in hda_link_dma_hw_params()
167 if (!hlink) in hda_link_dma_hw_params()
184 snd_hdac_ext_bus_link_set_stream_id(hlink, stream_tag); in hda_link_dma_hw_params()
/openbmc/linux/sound/soc/codecs/
H A Dhdac_hda.c402 struct hdac_ext_link *hlink; in hdac_hda_codec_probe() local
406 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_probe()
407 if (!hlink) { in hdac_hda_codec_probe()
412 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hda_codec_probe()
510 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_probe()
520 struct hdac_ext_link *hlink = NULL; in hdac_hda_codec_remove() local
522 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_remove()
523 if (!hlink) { in hdac_hda_codec_remove()
529 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_remove()
594 struct hdac_ext_link *hlink; in hdac_hda_dev_probe() local
[all …]
H A Dhda.c176 struct hdac_ext_link *hlink; in hda_codec_probe() local
185 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr); in hda_codec_probe()
186 if (!hlink) { in hda_codec_probe()
194 snd_hdac_ext_bus_link_get(bus, hlink); in hda_codec_probe()
261 snd_hdac_ext_bus_link_put(bus, hlink); in hda_codec_probe()
274 struct hdac_ext_link *hlink; in hda_codec_remove() local
293 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr); in hda_codec_remove()
294 if (hlink) in hda_codec_remove()
295 snd_hdac_ext_bus_link_put(bus, hlink); in hda_codec_remove()
H A Dhdac_hdmi.c1966 struct hdac_ext_link *hlink; in hdmi_codec_probe() local
1975 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdmi_codec_probe()
1976 if (!hlink) { in hdmi_codec_probe()
1981 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdmi_codec_probe()
2145 struct hdac_ext_link *hlink; in hdac_hdmi_dev_probe() local
2152 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hdmi_dev_probe()
2153 if (!hlink) { in hdac_hdmi_dev_probe()
2158 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hdmi_dev_probe()
2205 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hdmi_dev_probe()
2234 struct hdac_ext_link *hlink; in hdac_hdmi_runtime_suspend() local
[all …]
/openbmc/linux/include/sound/
H A Dhdaudio_ext.h102 int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *hlink);
103 int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *hlink);
106 void snd_hdac_ext_bus_link_set_stream_id(struct hdac_ext_link *hlink,
108 void snd_hdac_ext_bus_link_clear_stream_id(struct hdac_ext_link *hlink,
111 int snd_hdac_ext_bus_link_get(struct hdac_bus *bus, struct hdac_ext_link *hlink);
112 int snd_hdac_ext_bus_link_put(struct hdac_bus *bus, struct hdac_ext_link *hlink);
/openbmc/linux/sound/soc/intel/skylake/
H A Dskl.c130 struct hdac_ext_link *hlink; in skl_init_chip() local
138 list_for_each_entry(hlink, &bus->hlink_list, list) in skl_init_chip()
139 writel(0, hlink->ml_addr + AZX_REG_ML_LOSIDV); in skl_init_chip()
364 struct hdac_ext_link *hlink; in skl_resume() local
380 list_for_each_entry(hlink, &bus->hlink_list, list) { in skl_resume()
381 if (hlink->ref_count) in skl_resume()
382 snd_hdac_ext_bus_link_power_up(hlink); in skl_resume()
807 struct hdac_ext_link *hlink; in skl_probe_work() local
848 list_for_each_entry(hlink, &bus->hlink_list, list) in skl_probe_work()
849 snd_hdac_ext_bus_link_put(bus, hlink); in skl_probe_work()
/openbmc/linux/sound/soc/intel/avs/
H A Dcore.c94 struct hdac_ext_link *hlink; in avs_hdac_bus_init_chip() local
101 list_for_each_entry(hlink, &bus->hlink_list, list) in avs_hdac_bus_init_chip()
102 writel(0, hlink->ml_addr + AZX_REG_ML_LOSIDV); in avs_hdac_bus_init_chip()
189 struct hdac_ext_link *hlink; in avs_hda_probe_work() local
204 list_for_each_entry(hlink, &bus->hlink_list, list) in avs_hda_probe_work()
205 snd_hdac_ext_bus_link_put(bus, hlink); in avs_hda_probe_work()