Lines Matching refs:hlink
165 struct hdac_ext_link *hlink; in snd_hdac_ext_bus_get_ml_capabilities() local
173 hlink = kzalloc(sizeof(*hlink), GFP_KERNEL); in snd_hdac_ext_bus_get_ml_capabilities()
174 if (!hlink) in snd_hdac_ext_bus_get_ml_capabilities()
176 hlink->index = idx; in snd_hdac_ext_bus_get_ml_capabilities()
177 hlink->bus = bus; in snd_hdac_ext_bus_get_ml_capabilities()
178 hlink->ml_addr = ebus->mlcap + AZX_ML_BASE + in snd_hdac_ext_bus_get_ml_capabilities()
180 hlink->lcaps = readl(hlink->ml_addr + AZX_REG_ML_LCAP); in snd_hdac_ext_bus_get_ml_capabilities()
181 hlink->lsdiid = readw(hlink->ml_addr + AZX_REG_ML_LSDIID); in snd_hdac_ext_bus_get_ml_capabilities()
183 list_add_tail(&hlink->list, &ebus->hlink_list); in snd_hdac_ext_bus_get_ml_capabilities()
217 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_get_link() local
225 list_for_each_entry(hlink, &ebus->hlink_list, list) { in snd_hdac_ext_bus_get_link()
227 if (hlink->lsdiid & (0x1 << addr)) in snd_hdac_ext_bus_get_link()
228 return hlink; in snd_hdac_ext_bus_get_link()
290 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_link_power_down_all() local
293 list_for_each_entry(hlink, &ebus->hlink_list, list) { in snd_hdac_ext_bus_link_power_down_all()
294 snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, AZX_MLCTL_SPA, 0); in snd_hdac_ext_bus_link_power_down_all()
295 ret = check_hdac_link_power_active(hlink, false); in snd_hdac_ext_bus_link_power_down_all()