Lines Matching refs:ebus
38 int snd_hdac_ext_bus_parse_capabilities(struct hdac_ext_bus *ebus) in snd_hdac_ext_bus_parse_capabilities() argument
42 struct hdac_bus *bus = &ebus->bus; in snd_hdac_ext_bus_parse_capabilities()
60 ebus->mlcap = bus->remap_addr + offset; in snd_hdac_ext_bus_parse_capabilities()
65 ebus->gtscap = bus->remap_addr + offset; in snd_hdac_ext_bus_parse_capabilities()
71 ebus->ppcap = bus->remap_addr + offset; in snd_hdac_ext_bus_parse_capabilities()
77 ebus->spbcap = bus->remap_addr + offset; in snd_hdac_ext_bus_parse_capabilities()
111 void snd_hdac_ext_bus_ppcap_enable(struct hdac_ext_bus *ebus, bool enable) in snd_hdac_ext_bus_ppcap_enable() argument
113 struct hdac_bus *bus = &ebus->bus; in snd_hdac_ext_bus_ppcap_enable()
115 if (!ebus->ppcap) { in snd_hdac_ext_bus_ppcap_enable()
121 snd_hdac_updatel(ebus->ppcap, AZX_REG_PP_PPCTL, 0, AZX_PPCTL_GPROCEN); in snd_hdac_ext_bus_ppcap_enable()
123 snd_hdac_updatel(ebus->ppcap, AZX_REG_PP_PPCTL, AZX_PPCTL_GPROCEN, 0); in snd_hdac_ext_bus_ppcap_enable()
132 void snd_hdac_ext_bus_ppcap_int_enable(struct hdac_ext_bus *ebus, bool enable) in snd_hdac_ext_bus_ppcap_int_enable() argument
134 struct hdac_bus *bus = &ebus->bus; in snd_hdac_ext_bus_ppcap_int_enable()
136 if (!ebus->ppcap) { in snd_hdac_ext_bus_ppcap_int_enable()
142 snd_hdac_updatel(ebus->ppcap, AZX_REG_PP_PPCTL, 0, AZX_PPCTL_PIE); in snd_hdac_ext_bus_ppcap_int_enable()
144 snd_hdac_updatel(ebus->ppcap, AZX_REG_PP_PPCTL, AZX_PPCTL_PIE, 0); in snd_hdac_ext_bus_ppcap_int_enable()
161 int snd_hdac_ext_bus_get_ml_capabilities(struct hdac_ext_bus *ebus) in snd_hdac_ext_bus_get_ml_capabilities() argument
166 struct hdac_bus *bus = &ebus->bus; in snd_hdac_ext_bus_get_ml_capabilities()
168 link_count = readl(ebus->mlcap + AZX_REG_ML_MLCD) + 1; 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()
183 list_add_tail(&hlink->list, &ebus->hlink_list); in snd_hdac_ext_bus_get_ml_capabilities()
196 void snd_hdac_link_free_all(struct hdac_ext_bus *ebus) in snd_hdac_link_free_all() argument
200 while (!list_empty(&ebus->hlink_list)) { in snd_hdac_link_free_all()
201 l = list_first_entry(&ebus->hlink_list, struct hdac_ext_link, list); in snd_hdac_link_free_all()
213 struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_ext_bus *ebus, in snd_hdac_ext_bus_get_link() argument
222 if (ebus->idx != bus_idx) in snd_hdac_ext_bus_get_link()
225 list_for_each_entry(hlink, &ebus->hlink_list, list) { in snd_hdac_ext_bus_get_link()
288 int snd_hdac_ext_bus_link_power_down_all(struct hdac_ext_bus *ebus) in snd_hdac_ext_bus_link_power_down_all() argument
293 list_for_each_entry(hlink, &ebus->hlink_list, list) { in snd_hdac_ext_bus_link_power_down_all()