Lines Matching refs:hlink

90 	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->lsdiid = readw(hlink->ml_addr + AZX_REG_ML_LSDIID); in snd_hdac_ext_bus_get_ml_capabilities()
108 hlink->ref_count = 1; in snd_hdac_ext_bus_get_ml_capabilities()
110 list_add_tail(&hlink->list, &bus->hlink_list); in snd_hdac_ext_bus_get_ml_capabilities()
144 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_get_link() local
154 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_get_link()
156 if (hlink->lsdiid & (0x1 << addr)) in snd_hdac_ext_bus_get_link()
157 return hlink; in snd_hdac_ext_bus_get_link()
220 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_link_power_up_all() local
223 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_up_all()
224 snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, in snd_hdac_ext_bus_link_power_up_all()
226 ret = check_hdac_link_power_active(hlink, true); in snd_hdac_ext_bus_link_power_up_all()
241 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_link_power_down_all() local
244 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_down_all()
245 snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, in snd_hdac_ext_bus_link_power_down_all()
247 ret = check_hdac_link_power_active(hlink, false); in snd_hdac_ext_bus_link_power_down_all()
302 struct hdac_ext_link *hlink; in snd_hdac_ext_bus_link_put() local
318 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_put()
319 if (hlink->ref_count) { in snd_hdac_ext_bus_link_put()
339 struct hdac_ext_link *hlink = in hdac_ext_codec_link_up() local
342 if (hlink) in hdac_ext_codec_link_up()
343 snd_hdac_ext_bus_link_get(codec->bus, hlink); in hdac_ext_codec_link_up()
349 struct hdac_ext_link *hlink = in hdac_ext_codec_link_down() local
352 if (hlink) in hdac_ext_codec_link_down()
353 snd_hdac_ext_bus_link_put(codec->bus, hlink); in hdac_ext_codec_link_down()