Lines Matching defs:host_if
502 struct ac97_host_if *host_if;
946 if (as->host_if->read(as->host_if->arg, reg, val)) {
958 return as->host_if->write(as->host_if->arg, reg, val);
964 ret = as->host_if->write(as->host_if->arg, reg, val);
965 as->host_if->read(as->host_if->arg, reg, &actual);
1227 ac97_attach(struct ac97_host_if *host_if, device_t sc_dev, kmutex_t *lk)
1229 return ac97_attach_type(host_if, sc_dev, AC97_CODEC_TYPE_AUDIO, lk);
1233 ac97_attach_type(struct ac97_host_if *host_if, device_t sc_dev, int type, kmutex_t *lk)
1253 as->host_if = host_if;
1257 if ((error = host_if->attach(host_if->arg, &as->codec_if))) {
1264 if (host_if->reset != NULL) {
1265 if ((error = host_if->reset(host_if->arg))) {
1272 if (host_if->flags)
1273 as->host_flags = host_if->flags(host_if->arg);
1282 host_if->write(host_if->arg, AC97_REG_RESET, 0);
1289 host_if->write(host_if->arg, AC97_REG_POWER, AC97_POWER_MIXER);
1295 host_if->write(host_if->arg, AC97_REG_POWER, POWER_EAMP_ON(as));
1307 host_if->write(host_if->arg, AC97_REG_EXT_MODEM_ID, 0);
1819 if (spdif && as->host_if->spdif_event != NULL) {
1821 as->host_if->spdif_event(as->host_if->arg, cp->un.ord);