Home
last modified time | relevance | path

Searched refs:hlink (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-6.6/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 in snd_hdac_ext_bus_get_ml_capabilities()
118 struct hdac_ext_link *hlink; snd_hdac_ext_link_free_all() local
137 struct hdac_ext_link *hlink; snd_hdac_ext_bus_get_hlink_by_addr() local
167 check_hdac_link_power_active(struct hdac_ext_link *hlink, bool enable) check_hdac_link_power_active() argument
195 snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *hlink) snd_hdac_ext_bus_link_power_up() argument
208 snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *hlink) snd_hdac_ext_bus_link_power_down() argument
222 struct hdac_ext_link *hlink = NULL; snd_hdac_ext_bus_link_power_up_all() local
241 struct hdac_ext_link *hlink = NULL; snd_hdac_ext_bus_link_power_down_all() local
278 snd_hdac_ext_bus_link_get(struct hdac_bus *bus, struct hdac_ext_link *hlink) snd_hdac_ext_bus_link_get() argument
320 snd_hdac_ext_bus_link_put(struct hdac_bus *bus, struct hdac_ext_link *hlink) snd_hdac_ext_bus_link_put() argument
361 struct hdac_ext_link *hlink = hdac_ext_codec_link_up() local
371 struct hdac_ext_link *hlink = hdac_ext_codec_link_down() local
[all...]
/kernel/linux/linux-5.10/sound/hda/ext/
H A Dhdac_ext_controller.c90 struct hdac_ext_link *hlink; in snd_hdac_ext_bus_get_ml_capabilities() local
97 hlink = kzalloc(sizeof(*hlink), GFP_KERNEL); in snd_hdac_ext_bus_get_ml_capabilities()
98 if (!hlink) in snd_hdac_ext_bus_get_ml_capabilities()
100 hlink->index = idx; in snd_hdac_ext_bus_get_ml_capabilities()
101 hlink->bus = bus; in snd_hdac_ext_bus_get_ml_capabilities()
102 hlink->ml_addr = bus->mlcap + AZX_ML_BASE + in snd_hdac_ext_bus_get_ml_capabilities()
104 hlink->lcaps = readl(hlink->ml_addr + AZX_REG_ML_LCAP); in snd_hdac_ext_bus_get_ml_capabilities()
105 hlink in snd_hdac_ext_bus_get_ml_capabilities()
144 struct hdac_ext_link *hlink = NULL; snd_hdac_ext_bus_get_link() local
220 struct hdac_ext_link *hlink = NULL; snd_hdac_ext_bus_link_power_up_all() local
241 struct hdac_ext_link *hlink = NULL; snd_hdac_ext_bus_link_power_down_all() local
302 struct hdac_ext_link *hlink; snd_hdac_ext_bus_link_put() local
[all...]
/kernel/linux/linux-6.6/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
441 struct hdac_ext_link *hlink, *_h; hda_bus_ml_free() local
460 struct hdac_ext_link *hlink; find_ext2_link() local
487 struct hdac_ext_link *hlink; hdac_bus_eml_enable_interrupt() local
509 struct hdac_ext_link *hlink; hdac_bus_eml_check_interrupt() local
527 struct hdac_ext_link *hlink; hdac_bus_eml_set_syncprd_unlocked() local
553 struct hdac_ext_link *hlink; hdac_bus_eml_wait_syncpu_unlocked() local
577 struct hdac_ext_link *hlink; hdac_bus_eml_sync_arm_unlocked() local
601 struct hdac_ext_link *hlink; hdac_bus_eml_sync_go_unlocked() local
627 struct hdac_ext_link *hlink; hdac_bus_eml_check_cmdsync_unlocked() local
657 struct hdac_ext_link *hlink; hdac_bus_eml_power_up_base() local
705 struct hdac_ext_link *hlink; hdac_bus_eml_power_down_base() local
763 struct hdac_ext_link *hlink; hdac_bus_eml_sdw_get_lsdiid_unlocked() local
779 struct hdac_ext_link *hlink; hdac_bus_eml_sdw_set_lsdiid() local
842 struct hdac_ext_link *hlink; hda_bus_ml_put_all() local
855 struct hdac_ext_link *hlink; hda_bus_ml_reset_losidv() local
865 struct hdac_ext_link *hlink; hda_bus_ml_resume() local
884 struct hdac_ext_link *hlink; hda_bus_ml_suspend() local
951 struct hdac_ext_link *hlink; hdac_bus_eml_enable_offload() 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()
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dhdac_hda.c394 struct hdac_ext_link *hlink; in hdac_hda_codec_probe() local
398 hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_probe()
399 if (!hlink) { in hdac_hda_codec_probe()
404 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hda_codec_probe()
505 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_probe()
515 struct hdac_ext_link *hlink = NULL; in hdac_hda_codec_remove() local
517 hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_remove()
518 if (!hlink) { in hdac_hda_codec_remove()
524 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_remove()
580 struct hdac_ext_link *hlink; in hdac_hda_dev_probe() local
[all...]
H A Dhdac_hdmi.c1966 struct hdac_ext_link *hlink = NULL; in hdmi_codec_probe() local
1975 hlink = snd_hdac_ext_bus_get_link(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()
2146 struct hdac_ext_link *hlink; in hdac_hdmi_dev_probe() local
2153 hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev)); in hdac_hdmi_dev_probe()
2154 if (!hlink) { in hdac_hdmi_dev_probe()
2159 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hdmi_dev_probe()
2206 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hdmi_dev_probe()
2235 struct hdac_ext_link *hlink in hdac_hdmi_runtime_suspend() local
2271 struct hdac_ext_link *hlink = NULL; hdac_hdmi_runtime_resume() local
[all...]
/kernel/linux/linux-6.6/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
2270 struct hdac_ext_link *hlink; hdac_hdmi_runtime_resume() local
[all...]
/kernel/linux/linux-6.6/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);
/kernel/linux/linux-5.10/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()
392 list_for_each_entry(hlink, &bus->hlink_list, list) { in skl_resume()
393 if (!hlink->ref_count) in skl_resume()
394 snd_hdac_ext_bus_link_power_down(hlink); in skl_resume()
797 struct hdac_ext_link *hlink; skl_probe_work() local
[all...]
/kernel/linux/linux-5.10/sound/soc/sof/intel/
H A Dhda-dsp.c670 struct hdac_ext_link *hlink = NULL; in hda_resume() local
699 list_for_each_entry(hlink, &bus->hlink_list, list) { in hda_resume()
700 if (!hlink->ref_count) in hda_resume()
701 snd_hdac_ext_bus_link_power_down(hlink); in hda_resume()
726 struct hdac_ext_link *hlink = NULL; in hda_dsp_resume() local
736 list_for_each_entry(hlink, &bus->hlink_list, list) { in hda_dsp_resume()
737 if (hlink->ref_count) { in hda_dsp_resume()
738 ret = snd_hdac_ext_bus_link_power_up(hlink); in hda_dsp_resume()
H A Dhda-ctrl.c189 struct hdac_ext_link *hlink; in hda_dsp_ctrl_init_chip() local
287 list_for_each_entry(hlink, &bus->hlink_list, list) in hda_dsp_ctrl_init_chip()
288 writel(0, hlink->ml_addr + AZX_REG_ML_LOSIDV); in hda_dsp_ctrl_init_chip()
H A Dhda.c621 struct hdac_ext_link *hlink; in hda_init_caps() local
682 list_for_each_entry(hlink, &bus->hlink_list, list) in hda_init_caps()
683 snd_hdac_ext_bus_link_put(bus, hlink); in hda_init_caps()
/kernel/linux/linux-6.6/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()
[all...]
/kernel/linux/linux-6.6/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()

Completed in 18 milliseconds