Lines Matching refs:hlink

94 	struct hdac_ext_link *hlink;  in snd_hdac_ext_bus_get_ml_capabilities()  local
101 hlink = kzalloc(sizeof(*hlink), GFP_KERNEL); in snd_hdac_ext_bus_get_ml_capabilities()
102 if (!hlink) in snd_hdac_ext_bus_get_ml_capabilities()
104 hlink->index = idx; in snd_hdac_ext_bus_get_ml_capabilities()
105 hlink->bus = bus; in snd_hdac_ext_bus_get_ml_capabilities()
106 hlink->ml_addr = bus->mlcap + AZX_ML_BASE + in snd_hdac_ext_bus_get_ml_capabilities()
108 hlink->lcaps = readl(hlink->ml_addr + AZX_REG_ML_LCAP); in snd_hdac_ext_bus_get_ml_capabilities()
109 hlink->lsdiid = readw(hlink->ml_addr + AZX_REG_ML_LSDIID); in snd_hdac_ext_bus_get_ml_capabilities()
112 hlink->ref_count = 1; in snd_hdac_ext_bus_get_ml_capabilities()
114 list_add_tail(&hlink->list, &bus->hlink_list); in snd_hdac_ext_bus_get_ml_capabilities()
148 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_get_link() local
156 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_get_link()
158 if (hlink->lsdiid & (0x1 << addr)) in snd_hdac_ext_bus_get_link()
159 return hlink; in snd_hdac_ext_bus_get_link()
221 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_link_power_up_all() local
224 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_up_all()
225 snd_hdac_updatel(hlink->ml_addr, in snd_hdac_ext_bus_link_power_up_all()
227 ret = check_hdac_link_power_active(hlink, true); in snd_hdac_ext_bus_link_power_up_all()
242 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_link_power_down_all() local
245 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_down_all()
246 snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, AZX_MLCTL_SPA, 0); 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()
294 struct hdac_ext_link *hlink; in snd_hdac_ext_bus_link_put() local
310 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_put()
311 if (hlink->ref_count) { in snd_hdac_ext_bus_link_put()