Lines Matching refs:sc_flags
81 int sc_flags; member
148 sc->sc_flags = BELLF_ALIVE; in bellattach()
169 if (unit >= NBELL || !(sc->sc_flags & BELLF_ALIVE)) in bellopen()
172 if (sc->sc_flags & BELLF_OPEN) in bellopen()
175 sc->sc_flags |= BELLF_OPEN; in bellopen()
176 sc->sc_flags |= (flags & (FREAD | FWRITE)); in bellopen()
187 sc->sc_flags &= ~BELLF_OPEN; in bellclose()
201 if (!(sc->sc_flags & FREAD)) in bellioctl()
214 if (!(sc->sc_flags & FWRITE)) in bellioctl()
221 if (!(sc->sc_flags & FREAD)) in bellioctl()
231 if (!(sc->sc_flags & FWRITE)) in bellioctl()
416 sc->sc_flags |= BELLF_ON; in bell_on()
422 if (sc->sc_flags & BELLF_ON) { in bell_off()
424 sc->sc_flags &= ~BELLF_ON; in bell_off()
435 if (sc->sc_flags & BELLF_OUT) { in opm_bell()
437 } else if (sc->sc_flags & BELLF_ON) in opm_bell()
443 sc->sc_flags |= BELLF_OUT; in opm_bell()
454 sc->sc_flags &= ~BELLF_OUT; in bell_timeout()
464 if (sc->sc_flags & BELLF_OUT) in opm_bell_on()
466 if (sc->sc_flags & BELLF_ON) in opm_bell_on()
477 if (sc->sc_flags & BELLF_ON) in opm_bell_off()