Lines Matching refs: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;
1199 error = sc->hw_if->getdev(sc->hw_hdl, &adev);
1384 if (sc->hw_if == NULL)
1784 if (sc == NULL || sc->hw_if == NULL)
2209 if (sc->hw_if == NULL) {
2446 if (sc->hw_if->open) {
2450 * Call hw_if->open() only at first open of
2453 * hw_if
2457 * hw_if->open() is either FREAD or FWRITE.
2473 error = sc->hw_if->open(sc->hw_hdl, hwflags);
2480 * Regardless of whether we called hw_if->open (whether
2481 * hw_if->open exists) or not, we move to the Opened phase
2483 * hw_if->close (if exists) whenever abort.
2484 * Note that both of hw_if->{open,close} are optional.
2493 if (sc->hw_if->speaker_ctl) {
2502 error = sc->hw_if->speaker_ctl(sc->hw_hdl, on);
2519 if (sc->hw_if->init_output) {
2523 error = sc->hw_if->init_output(sc->hw_hdl,
2538 if (sc->hw_if->init_input) {
2542 error = sc->hw_if->init_input(sc->hw_hdl,
2621 if (sc->hw_if->close) {
2624 sc->hw_if->close(sc->hw_hdl);
2761 if (sc->hw_if->close) {
2762 TRACE(2, "hw_if close");
2764 sc->hw_if->close(sc->hw_hdl);
3246 error = sc->hw_if->getdev(sc->hw_hdl, (audio_device_t *)addr);
3301 error = sc->hw_if->query_format(sc->hw_hdl, query);
3337 if (sc->hw_if->dev_ioctl) {
3339 error = sc->hw_if->dev_ioctl(sc->hw_hdl,
5281 if (sc->hw_if->round_blocksize) {
5285 rounded = sc->hw_if->round_blocksize(sc->hw_hdl, blksize,
5314 if (sc->hw_if->round_buffersize) {
5317 rounded = sc->hw_if->round_buffersize(sc->hw_hdl, mode,
5349 if (sc->hw_if->allocm) {
5351 mixer->hwbuf.mem = sc->hw_if->allocm(sc->hw_hdl, mode, bufsize);
5474 if (sc->hw_if->freem) {
5476 sc->hw_if->freem(sc->hw_hdl, mixer->hwbuf.mem, bufsize);
5888 if (sc->hw_if->trigger_output) {
5895 error = sc->hw_if->trigger_output(sc->hw_hdl,
5908 error = sc->hw_if->start_output(sc->hw_hdl,
6201 if (sc->hw_if->trigger_input) {
6208 error = sc->hw_if->trigger_input(sc->hw_hdl,
6221 error = sc->hw_if->start_input(sc->hw_hdl,
6301 error = sc->hw_if->halt_output(sc->hw_hdl);
6331 error = sc->hw_if
6813 error = sc->hw_if->query_format(sc->hw_hdl, &query);
6920 error = sc->hw_if->query_format(sc->hw_hdl, &query);
7773 error = sc->hw_if->set_format(sc->hw_hdl, setmode,
7781 if (sc->hw_if->commit_settings) {
7782 error = sc->hw_if->commit_settings(sc->hw_hdl);
8561 error = sc->hw_if->getdev(sc->hw_hdl, (audio_device_t *)addr);
8605 if (sc->hw_if->commit_settings) {
8606 error = sc->hw_if->commit_settings(sc->hw_hdl);
8620 if (sc->hw_if->dev_ioctl) {
8622 error = sc->hw_if->dev_ioctl(sc->hw_hdl,
9067 return sc->hw_if->set_port(sc->hw_hdl, mc);
9080 return sc->hw_if->get_port(sc->hw_hdl, mc);
9131 if (sc->hw_if->commit_settings)
9132 sc->hw_if->commit_settings(sc->hw_hdl);
9223 return sc->hw_if->query_devinfo(sc->hw_hdl, di);