/openbsd-current/sys/kern/ |
H A D | tty.c | 186 if (!ISSET(tp->t_state, TS_ISOPEN)) { 245 if (!ISSET(tp->t_cflag, CREAD)) 253 if (ISSET(lflag, PENDIN)) 259 if (ISSET(lflag, ICANON)) { 271 if ((error = (ISSET(c, TTY_ERRORMASK))) != 0) { 273 if (ISSET(error, TTY_FE) && !c) { /* Break. */ 274 if (ISSET(iflag, IGNBRK)) 277 if (ISSET(iflag, BRKINT)) { 281 else if (ISSET(iflag, PARMRK)) 283 } else if ((ISSET(erro [all...] |
H A D | vfs_bio.c | 114 if (ISSET(bp->b_flags, B_DELWRI)) 377 KASSERT(ISSET(bp->b_flags, B_BC)); 378 KASSERT(ISSET(bp->b_flags, B_DMA)); 386 KASSERT(!ISSET(bp->b_flags, B_DMA)); 403 KASSERT(ISSET(bp->b_flags, B_BC)); 404 KASSERT(ISSET(bp->b_flags, B_BUSY)); 409 if (!ISSET(bp->b_flags, B_DMA)) { 413 KASSERT(ISSET(bp->b_flags, B_DMA)); 437 if (!ISSET(bp->b_flags, (B_DONE | B_DELWRI))) { 547 if (ISSET(b [all...] |
H A D | kern_clockintr.c | 76 if (ISSET(cq->cq_flags, CQ_INTRCLOCK)) { 146 KASSERT(ISSET(cq->cq_flags, CQ_INIT)); 148 if (ISSET(cq->cq_flags, CQ_INTRCLOCK)) 172 KASSERT(ISSET(cq->cq_flags, CQ_INIT)); 216 if (ISSET(cq->cq_flags, CQ_IGNORE_REQUEST)) { 220 if (ISSET(request->cr_flags, CR_RESCHEDULE)) { 224 if (ISSET(cq->cq_flags, CQ_NEED_WAKEUP)) { 238 if (ISSET(cq->cq_flags, CQ_INTRCLOCK)) { 335 if (ISSET(cl->cl_flags, CLST_PENDING)) { 338 if (ISSET(c [all...] |
/openbsd-current/usr.sbin/iostat/ |
H A D | iostat.c | 96 #define ISSET(x, a) ((x) & (a)) macro 164 if (!ISSET(todo, SHOW_CPU | SHOW_TTY | SHOW_STATS_1 | SHOW_STATS_2)) 198 if (!ISSET(todo, SHOW_TOTALS)) 233 if (ISSET(todo, SHOW_TTY)) { 234 if (ISSET(todo, SHOW_TOTALS)) 240 if (ISSET(todo, SHOW_STATS_1)) 245 if (ISSET(todo, SHOW_STATS_2)) 250 if (ISSET(todo, SHOW_CPU)) 255 if (ISSET(todo, SHOW_TTY)) { 256 if (ISSET(tod [all...] |
/openbsd-current/sys/dev/ic/ |
H A D | com.c | 258 if (!ISSET(tp->t_state, TS_ISOPEN)) { 264 if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) { 273 if (ISSET(sc->sc_swflags, COM_SW_CLOCAL)) 275 if (ISSET(sc->sc_swflags, COM_SW_CRTSCTS)) 277 if (ISSET(sc->sc_swflags, COM_SW_MDMBUF)) 294 if (!ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) { 313 if (ISSET(sc->sc_hwflags, COM_HW_FIFO)) { 348 if(!ISSET(com_read_reg(sc, 357 while (ISSET(com_read_reg(sc, com_lsr), LSR_RXRDY)) 362 if (!ISSET(s [all...] |
H A D | z8530tty.c | 289 if (ISSET(zst->zst_hwflags, ZS_HWFLAG_NO_DCD)) 351 if (ISSET(zst->zst_hwflags, ZS_HWFLAG_CONSOLE)) { 381 } else if (!ISSET(zst->zst_hwflags, ZS_HWFLAG_NORESET)) { 429 if (ISSET(tp->t_cflag, HUPCL) || ISSET(tp->t_state, TS_WOPEN)) { 436 if (!ISSET(zst->zst_hwflags, ZS_HWFLAG_CONSOLE)) { 480 if (ISSET(tp->t_state, TS_ISOPEN) && 481 ISSET(tp->t_state, TS_XCLUDE) && 490 if (!ISSET(tp->t_state, TS_ISOPEN)) { 512 if (ISSET(zs [all...] |
H A D | cy.c | 290 if (!ISSET(tp->t_state, TS_ISOPEN)) { 296 if (ISSET(cy->cy_openflags, TIOCFLAG_CLOCAL)) 298 if (ISSET(cy->cy_openflags, TIOCFLAG_CRTSCTS)) 300 if (ISSET(cy->cy_openflags, TIOCFLAG_MDMBUF)) 352 ISSET(cy->cy_openflags, TIOCFLAG_SOFTCAR) || 353 ISSET(tp->t_cflag, MDMBUF) || 354 ISSET(cy->cy_carrier_stat, CD1400_MSVR2_CD)) 358 } else if (ISSET(tp->t_state, TS_XCLUDE) && suser(p) != 0) { 365 if (!ISSET(flag, O_NONBLOCK)) { 366 while (!ISSET(t [all...] |
H A D | pluart.c | 254 if (!ISSET(is, UART_IMSC_RXIM) && !ISSET(is, UART_IMSC_RTIM) && 255 !ISSET(is, UART_IMSC_TXIM)) 258 if (ISSET(is, UART_IMSC_TXIM) && ISSET(tp->t_state, TS_BUSY)) { 267 while (!ISSET(bus_space_read_4(iot, ioh, UART_FR), UART_FR_RXFE)) { 271 if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) { 285 if (p == sc->sc_ibufhigh && ISSET(tp->t_cflag, CRTSCTS)) { 312 switch (ISSET(t->c_cflag, CSIZE)) { 327 if (ISSET( [all...] |
/openbsd-current/sys/arch/m88k/m88k/ |
H A D | m88100_machdep.c | 90 if (!ISSET(eframe->tf_dmt0, DMT_VALID)) 104 if (!ISSET(dmtx, DMT_VALID)) 143 if (ISSET(dmtx, DMT_WRITE)) 156 if (!ISSET(eframe->tf_dmt0, DMT_VALID)) 175 if (!ISSET(dmtx, DMT_VALID)) 184 if (!ISSET(dmtx, DMT_LOCKBAR)) { 187 if (x == 2 && ISSET(dmtx, DMT_DOUB1)) { 190 if (ISSET(dmtx, DMT_WRITE)) { 211 ISSET(dmtx, DMT_DAS) ? 's' : 'u') 220 ISSET(dmt [all...] |
/openbsd-current/sys/scsi/ |
H A D | sd.c | 179 if (ISSET(link->flags, SDEV_ATAPI) && ISSET(link->flags, 192 if (!ISSET(link->flags, SDEV_UMASS)) 199 if (ISSET(link->flags, SDEV_REMOVABLE)) 208 if (ISSET(link->flags, SDEV_REMOVABLE)) 216 if (ISSET(sc->flags, SDF_THIN)) { 220 if (ISSET(link->flags, SDEV_READONLY)) 250 if (ISSET(sc->flags, SDF_DYING)) 260 if (ISSET(sc->flags, SDF_DIRTY)) 270 if (ISSET(s [all...] |
H A D | st.c | 371 if (ISSET(st->flags, ST_DYING)) { 382 if (ISSET(flags, FWRITE) && ISSET(link->flags, SDEV_READONLY)) { 393 if (ISSET(link->flags, SDEV_OPEN)) { 413 if (!ISSET(link->flags, SDEV_MEDIA_LOADED)) 456 if (ISSET(st->flags, ST_DYING)) { 466 if (ISSET(st->flags, ST_WRITTEN) && !ISSET(st->flags, ST_FM_WRITTEN)) 502 if (ISSET(st->flags, ST_MOUNTED)) 527 if (ISSET(s [all...] |
/openbsd-current/sys/arch/sh/dev/ |
H A D | scif.c | 478 if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP)) 551 if (ISSET(sc->sc_swflags, TIOCFLAG_SOFTCAR) || 552 ISSET(sc->sc_hwflags, SCIF_HW_CONSOLE)) { 568 lcr = ISSET(sc->sc_lcr, LCR_SBREAK) | cflag2lcr(t->c_cflag); 577 if (ISSET(t->c_cflag, CRTSCTS)) { 596 if (ISSET(sc->sc_hwflags, SCIF_HW_HAYESP)) 598 else if (ISSET(sc->sc_hwflags, SCIF_HW_FIFO)) 624 if (!ISSET(t->c_cflag, CHWFLOW)) { 628 if (ISSET(sc->sc_rx_flags, RX_TTY_OVERFLOWED)) { 644 if (!ISSET( [all...] |
/openbsd-current/sys/dev/sdmmc/ |
H A D | sdhc.c | 256 if (ISSET(sc->sc_flags, SDHC_F_32BIT_ACCESS)) 278 if (usedma && ISSET(caps, SDHC_ADMA2_SUPP)) { 280 if (ISSET(caps, SDHC_64BIT_DMA_SUPP)) 337 if (ISSET(caps, SDHC_VOLTAGE_SUPP_1_8V)) 339 if (ISSET(caps, SDHC_VOLTAGE_SUPP_3_0V)) 341 if (ISSET(caps, SDHC_VOLTAGE_SUPP_3_3V)) 363 if (ISSET(hp->flags, SHF_USE_DMA)) { 414 if (ISSET(hp->flags, SHF_USE_DMA)) 417 if (ISSET(caps, SDHC_HIGH_SPEED_SUPP)) 419 if (ISSET(cap [all...] |
H A D | sdmmc_mem.c | 131 if (ISSET(sc->sc_flags, SMF_SD_MODE) && 132 !ISSET(sc->sc_flags, SMF_IO_MODE)) { 137 if (!ISSET(sc->sc_flags, SMF_SD_MODE)) { 161 if (ISSET(sc->sc_flags, SMF_SD_MODE)) { 176 if (ISSET(sc->sc_flags, SMF_SD_MODE) && ISSET(new_ocr, MMC_OCR_S18A)) { 282 if (!ISSET(sc->sc_flags, SMF_SD_MODE)) 363 if (ISSET(sc->sc_flags, SMF_SD_MODE)) { 415 if (ISSET(sc->sc_flags, SMF_SD_MODE)) { 594 !ISSET(s [all...] |
H A D | sdmmc.c | 107 if (ISSET(saa->caps, SMC_CAPS_8BIT_MODE)) 109 else if (ISSET(saa->caps, SMC_CAPS_4BIT_MODE)) 113 if (ISSET(saa->caps, SMC_CAPS_SD_HIGHSPEED)) 115 if (ISSET(saa->caps, SMC_CAPS_UHS_SDR50)) 117 if (ISSET(saa->caps, SMC_CAPS_UHS_SDR104)) 119 if (ISSET(saa->caps, SMC_CAPS_MMC_HIGHSPEED)) 121 if (ISSET(saa->caps, SMC_CAPS_MMC_DDR52)) 123 if (ISSET(saa->caps, SMC_CAPS_MMC_HS200)) 125 if (ISSET(saa->caps, SMC_CAPS_DMA)) 139 if (ISSET(s [all...] |
/openbsd-current/sys/dev/fdt/ |
H A D | exuart.c | 301 ISSET(tp->t_cflag, CRTSCTS)) { 318 if (ISSET(tp->t_state, TS_BUSY)) { 341 if (ISSET(uintp, EXUART_UINTP_RXD)) { 346 if (ISSET(uintp, EXUART_UINTP_TXD)) { 352 if(!ISSET(bus_space_read_2(iot, ioh, EXUART_USR2), EXUART_SR2_RDR)) 357 while(ISSET(bus_space_read_2(iot, ioh, EXUART_USR2), EXUART_SR2_RDR)) { 365 if (p == sc->sc_ibufhigh && ISSET(tp->t_cflag, CRTSCTS)) 421 switch (ISSET(t->c_cflag, CSIZE)) { 441 if (ISSET(t->c_cflag, PARENB)) { 442 if (ISSET( [all...] |
H A D | imxuart.c | 209 if (ISSET(sr1, IMXUART_SR1_TRDY) && ISSET(tp->t_state, TS_BUSY)) { 219 if(!ISSET(bus_space_read_2(iot, ioh, IMXUART_USR2), IMXUART_SR2_RDR)) 224 while(ISSET(bus_space_read_2(iot, ioh, IMXUART_USR2), IMXUART_SR2_RDR)) { 226 if (ISSET(c, IMXUART_RX_BRK)) { 228 if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE)) { 243 ISSET(tp->t_cflag, CRTSCTS)) { 274 switch (ISSET(t->c_cflag, CSIZE)) { 288 if (ISSET(t->c_cflag, PARENB)) { 298 while (ISSET(t [all...] |
/openbsd-current/sys/sys/ |
H A D | rwlock.h | 70 ((ISSET(flags, RWL_DUPOK) ? LO_DUPOK : 0) | \ 71 (ISSET(flags, RWL_NOWITNESS) ? 0 : LO_WITNESS) | \ 72 (ISSET(flags, RWL_IS_VNODE) ? LO_IS_VNODE : 0) | \ 77 ((ISSET(flags, RWL_DUPOK) ? LO_DUPOK : 0) | \ 78 (ISSET(flags, RWL_NOWITNESS) ? 0 : LO_WITNESS) | \ 79 (ISSET(flags, RWL_IS_VNODE) ? LO_IS_VNODE : 0) | \
|
/openbsd-current/sys/dev/sun/ |
H A D | sunms.c | 166 if (ISSET(c, 0x80) && !ISSET(c, 0x30)) 181 sc->sc_pktlen = ISSET(c, 0x08) ? 3 : 5; 183 if (!ISSET(c, 1 << 2)) /* left button */ 185 if (!ISSET(c, 1 << 1)) /* middle button */ 187 if (!ISSET(c, 1 << 0)) /* right button */
|
H A D | z8530ms.c | 288 if (ISSET(rr1, ZSRR1_FE | ZSRR1_DO | ZSRR1_PE)) { 308 if (!ISSET(rr0, ZSRR0_RX_READY)) 349 if (!force && ISSET(rr0, ZSRR0_BREAK)) { 368 if (ISSET(delta, cs->cs_rr0_mask)) { 398 if (ISSET(intr_flags, INTR_BPS_CHANGE)) { 420 if (ISSET(intr_flags, INTR_RX_OVERRUN)) 428 if (ISSET(intr_flags, INTR_ST_CHECK)) { 453 if (!ISSET(rr0, ZSRR0_RX_READY))
|
/openbsd-current/sys/dev/sbus/ |
H A D | magma.c | 459 if (ISSET(status, CD1400_SVRR_RXRDY)) { 490 if (ISSET(rivr, CD1400_RIVR_EXCEPTION)) { 522 if (ISSET(status, CD1400_SVRR_MDMCH)) { 535 carrier = ISSET(msvr, cd->cd_parmode ? CD1400_MSVR2_DSR : CD1400_MSVR2_CD); 547 if (ISSET(status, CD1400_SVRR_TXRDY)) { 585 if (!ISSET(mtty->mp_flags, MTTYF_STOP)) { 589 if (ISSET(mtty->mp_flags, MTTYF_SET_BREAK)) { 597 if (ISSET(mtty->mp_flags, MTTYF_CLR_BREAK)) { 630 if (mtty->mp_txc == 0 || ISSET(mtty->mp_flags, MTTYF_STOP)) { 683 if (!ISSET(t [all...] |
/openbsd-current/sys/arch/octeon/dev/ |
H A D | cn30xxsmi.c | 107 while (ISSET(smi_rd, SMI_RD_DAT_PENDING)) { 113 if (ISSET(smi_rd, SMI_RD_DAT_PENDING)) { 117 return ISSET(smi_rd, SMI_RD_DAT_VAL) ? (smi_rd & SMI_RD_DAT_DAT) : 0; 135 while (ISSET(smi_wr, SMI_WR_DAT_PENDING)) { 141 if (ISSET(smi_wr, SMI_WR_DAT_PENDING)) {
|
H A D | octmmc.c | 463 if (ISSET(isr, MIO_EMM_INT_CMD_DONE) || 464 ISSET(isr, MIO_EMM_INT_CMD_ERR) || 465 ISSET(isr, MIO_EMM_INT_DMA_DONE) || 466 ISSET(isr, MIO_EMM_INT_DMA_ERR)) { 637 if (!ISSET(cmd->c_flags, SCF_CMD_READ)) 642 ISSET(cmd->c_flags, SCF_CMD_READ) ? BUS_DMASYNC_PREREAD : 661 if (!ISSET(cmd->c_flags, SCF_CMD_READ)) 672 if (ISSET(sc->sc_intr_status, MIO_EMM_INT_DMA_ERR)) { 675 if (ISSET(status, MIO_EMM_RSP_STS_DMA_PEND)) { 696 ISSET(statu [all...] |
/openbsd-current/lib/libc/gen/ |
H A D | fts.c | 60 #define ISSET(opt) (sp->fts_options & (opt)) macro 63 #define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd)) 98 if (ISSET(FTS_LOGICAL)) 120 p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW), -1); 162 if (!ISSET(FTS_NOCHDIR) && 224 rfd = ISSET(FTS_NOCHDIR) ? -1 : sp->fts_rfd; 263 if (sp->fts_cur == NULL || ISSET(FTS_STOP)) 288 if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { 303 (ISSET(FTS_XDEV) && p->fts_dev != sp->fts_dev)) { 315 if (sp->fts_child && ISSET(FTS_NAMEONL [all...] |
/openbsd-current/sys/net/ |
H A D | if_sec.c | 168 if (ISSET(ifp->if_flags, IFF_RUNNING)) 191 if (ISSET(ifp->if_flags, IFF_UP)) { 192 if (!ISSET(ifp->if_flags, IFF_RUNNING)) 197 if (ISSET(ifp->if_flags, IFF_RUNNING)) 231 KASSERT(!ISSET(ifp->if_flags, IFF_RUNNING)); 259 KASSERT(ISSET(ifp->if_flags, IFF_RUNNING)); 291 if (!ISSET(ifp->if_flags, IFF_RUNNING)) { 366 if (!ISSET(ifp->if_flags, IFF_RUNNING)) 495 KASSERT(ISSET(tdb->tdb_flags, TDBF_IFACE)); 497 if (!ISSET(td [all...] |