Lines Matching defs:hw_if
112 * returned in the second parameter to hw_if->get_locks(). It is known
125 * IPL_SOFT*), returned in the first parameter to hw_if->get_locks(). It
921 const struct audio_hw_if *hw_if;
938 hw_if = sa->hwif;
941 if (hw_if == NULL) {
942 panic("audioattach: missing hw_if method");
944 if (hw_if->get_locks == NULL || hw_if->get_props == NULL) {
949 hw_if->get_locks(hdlp, &sc->sc_intr_lock, &sc->sc_lock);
950 sc->sc_props = hw_if->get_props(hdlp);
958 if (hw_if->query_format == NULL ||
959 hw_if->set_format == NULL ||
960 hw_if->getdev == NULL ||
961 hw_if->set_port == NULL ||
962 hw_if->get_port == NULL ||
963 hw_if->query_devinfo == NULL) {
968 if ((hw_if->start_output == NULL &&
969 hw_if->trigger_output == NULL) ||
970 hw_if->halt_output == NULL) {
975 if ((hw_if->start_input == NULL &&
976 hw_if->trigger_input == NULL) ||
977 hw_if->halt_input == NULL) {
983 sc->hw_if = hw_if;
1183 /* Clearing hw_if means that device is attached but disabled. */
1184 sc->hw_if = NULL;
1200 error = sc->hw_if->getdev(sc->hw_hdl, &adev);
1385 if (sc->hw_if == NULL)
1785 if (sc == NULL || sc->hw_if == NULL)
2210 if (sc->hw_if == NULL) {
2447 if (sc->hw_if->open) {
2451 * Call hw_if->open() only at first open of
2454 * hw_if->open() is always (FREAD | FWRITE)
2458 * hw_if->open() is either FREAD or FWRITE.
2474 error = sc->hw_if->open(sc->hw_hdl, hwflags);
2481 * Regardless of whether we called hw_if->open (whether
2482 * hw_if->open exists) or not, we move to the Opened phase
2484 * hw_if->close (if exists) whenever abort.
2485 * Note that both of hw_if->{open,close} are optional.
2494 if (sc->hw_if->speaker_ctl) {
2503 error = sc->hw_if->speaker_ctl(sc->hw_hdl, on);
2520 if (sc->hw_if->init_output) {
2524 error = sc->hw_if->init_output(sc->hw_hdl,
2539 if (sc->hw_if->init_input) {
2543 error = sc->hw_if->init_input(sc->hw_hdl,
2622 if (sc->hw_if->close) {
2625 sc->hw_if->close(sc->hw_hdl);
2762 if (sc->hw_if->close) {
2763 TRACE(2, "hw_if close");
2765 sc->hw_if->close(sc->hw_hdl);
3247 error = sc->hw_if->getdev(sc->hw_hdl, (audio_device_t *)addr);
3302 error = sc->hw_if->query_format(sc->hw_hdl, query);
3338 if (sc->hw_if->dev_ioctl) {
3340 error = sc->hw_if->dev_ioctl(sc->hw_hdl,
5282 if (sc->hw_if->round_blocksize) {
5286 rounded = sc->hw_if->round_blocksize(sc->hw_hdl, blksize,
5315 if (sc->hw_if->round_buffersize) {
5318 rounded = sc->hw_if->round_buffersize(sc->hw_hdl, mode,
5350 if (sc->hw_if->allocm) {
5352 mixer->hwbuf.mem = sc->hw_if->allocm(sc->hw_hdl, mode, bufsize);
5475 if (sc->hw_if->freem) {
5477 sc->hw_if->freem(sc->hw_hdl, mixer->hwbuf.mem, bufsize);
5889 if (sc->hw_if->trigger_output) {
5896 error = sc->hw_if->trigger_output(sc->hw_hdl,
5909 error = sc->hw_if->start_output(sc->hw_hdl,
6202 if (sc->hw_if->trigger_input) {
6209 error = sc->hw_if->trigger_input(sc->hw_hdl,
6222 error = sc->hw_if->start_input(sc->hw_hdl,
6302 error = sc->hw_if->halt_output(sc->hw_hdl);
6332 hw_if->halt_input(sc->hw_hdl);
6814 error = sc->hw_if->query_format(sc->hw_hdl, &query);
6921 error = sc->hw_if->query_format(sc->hw_hdl, &query);
7774 error = sc->hw_if->set_format(sc->hw_hdl, setmode,
7782 if (sc->hw_if->commit_settings) {
7783 error = sc->hw_if->commit_settings(sc->hw_hdl);
8562 error = sc->hw_if->getdev(sc->hw_hdl, (audio_device_t *)addr);
8606 if (sc->hw_if->commit_settings) {
8607 error = sc->hw_if->commit_settings(sc->hw_hdl);
8621 if (sc->hw_if->dev_ioctl) {
8623 error = sc->hw_if->dev_ioctl(sc->hw_hdl,
9068 return sc->hw_if->set_port(sc->hw_hdl, mc);
9081 return sc->hw_if->get_port(sc->hw_hdl, mc);
9132 if (sc->hw_if->commit_settings)
9133 sc->hw_if->commit_settings(sc->hw_hdl);
9224 return sc->hw_if->query_devinfo(sc->hw_hdl, di);