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
152 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_get_link()
154 if (hlink->lsdiid & (0x1 << addr)) in snd_hdac_ext_bus_get_link()
155 return hlink; in snd_hdac_ext_bus_get_link()
218 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_link_power_up_all() local
221 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_up_all()
222 snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, in snd_hdac_ext_bus_link_power_up_all()
224 ret = check_hdac_link_power_active(hlink, true); in snd_hdac_ext_bus_link_power_up_all()
239 struct hdac_ext_link *hlink = NULL; in snd_hdac_ext_bus_link_power_down_all() local
242 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_down_all()
243 snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, in snd_hdac_ext_bus_link_power_down_all()
245 ret = check_hdac_link_power_active(hlink, false); in snd_hdac_ext_bus_link_power_down_all()
297 struct hdac_ext_link *hlink; in snd_hdac_ext_bus_link_put() local
313 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_put()
314 if (hlink->ref_count) { in snd_hdac_ext_bus_link_put()