Lines Matching defs:link
107 /* since link in On, update the ref */
118 * snd_hdac_link_free_all- free hdac extended link objects
136 * snd_hdac_ext_bus_get_link_index - get link based on codec name
165 static int check_hdac_link_power_active(struct hdac_ext_link *link, bool enable)
175 val = readl(link->ml_addr + AZX_REG_ML_LCTL);
190 * snd_hdac_ext_bus_link_power_up -power up hda link
191 * @link: HD-audio extended link
193 int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *link)
195 snd_hdac_updatel(link->ml_addr, AZX_REG_ML_LCTL,
198 return check_hdac_link_power_active(link, true);
203 * snd_hdac_ext_bus_link_power_down -power down hda link
204 * @link: HD-audio extended link
206 int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *link)
208 snd_hdac_updatel(link->ml_addr, AZX_REG_ML_LCTL, AZX_MLCTL_SPA, 0);
210 return check_hdac_link_power_active(link, false);
215 * snd_hdac_ext_bus_link_power_up_all -power up all hda link
236 * snd_hdac_ext_bus_link_power_down_all -power down all hda link
257 struct hdac_ext_link *link)
265 * if we move from 0 to 1, count will be 1 so power up this link
268 if (++link->ref_count == 1) {
274 ret = snd_hdac_ext_bus_link_power_up(link);
279 snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV,
299 struct hdac_ext_link *link)
309 * so power down this link as well
311 if (--link->ref_count == 0) {
312 ret = snd_hdac_ext_bus_link_power_down(link);