onoff
x_mode(bool onoff)
if (x_cur_mode == onoff)
x_cur_mode = onoff;
if (onoff) {
board[pos] = onoff;
board[pos + *o++] = onoff;
board[pos + *o++] = onoff;
board[pos + *o] = onoff;
place(const struct shape *shape, int pos, int onoff)
#define SSL_CTX_set_dh_auto(ctx, onoff) \
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_DH_AUTO,onoff,NULL)
#define SSL_CTX_set_ecdh_auto(ctx, onoff) \
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_ECDH_AUTO,onoff,NULL)
#define SSL_set_dh_auto(s, onoff) \
SSL_ctrl(s,SSL_CTRL_SET_DH_AUTO,onoff,NULL)
#define SSL_set_ecdh_auto(s, onoff) \
SSL_ctrl(s,SSL_CTRL_SET_ECDH_AUTO,onoff,NULL)
alpha_pal_wrfen(unsigned long onoff)
register unsigned long a0 __asm("$16") = onoff;
cia_pyxis_intr_enable(int irq, int onoff)
onoff ? "enabling" : "disabling", irq);
if (onoff)
void apm_powmgt_enable(int onoff);
void apm_powmgt_engage(int onoff, u_int devid);
apm_powmgt_enable(int onoff)
regs.cx = onoff ? APM_MGT_ENABLE : APM_MGT_DISABLE;
apm_powmgt_engage(int onoff, u_int dev)
regs.cx = onoff ? APM_MGT_ENGAGE : APM_MGT_DISENGAGE;
apm_devpowmgt_enable(int onoff, u_int dev)
regs.cx = onoff ? APM_MGT_ENABLE : APM_MGT_DISABLE;
rtc_ce(struct rs5c313_softc *sc, int onoff)
if (onoff)
rtc_clk(struct rs5c313_softc *sc, int onoff)
if (onoff)
if (onoff) {
rtc_ce(int onoff)
if (onoff) {
rtc_clk(int onoff)
if (onoff) {
rtc_do(int onoff)
nec86hw_speaker_ctl(void *addr, int onoff)
switch (onoff) {
scif_break(struct scif_softc *sc, int onoff)
if (onoff)
goto onoff;
goto onoff;
onoff:
goto onoff;
goto onoff;
goto onoff;
zs_modem(struct zskbd_softc *zst, int onoff)
if (onoff)
clock_bus_wenable(struct todr_chip_handle *handle, int onoff)
if (onoff)
onoff ? 0 : BUS_SPACE_MAP_READONLY);
"page protection\n", onoff ? "disable" : "enable");
zs_modem(struct zstty_softc *zst, int onoff)
if (onoff)
cztty_break(struct cztty_softc *sc, int onoff)
onoff ? C_CM_SET_BREAK : C_CM_CLR_BREAK);
cztty_modem(struct cztty_softc *sc, int onoff)
if (onoff)
void cztty_modem(struct cztty_softc *sc, int onoff);
void cztty_break(struct cztty_softc *sc, int onoff);
vio_ctrl_rx(struct vio_softc *sc, int cmd, int onoff)
sc->sc_ctrl_rx->onoff = onoff;
DPRINTF("%s: cmd %d %d: %d\n", __func__, cmd, onoff, r);
uint8_t onoff;
zs_ioasic_cnpollc(dev_t dev, int onoff)
moscom_set(void *vsc, int portno, int reg, int onoff)
val = onoff ? MOSCOM_MCR_DTR : 0;
val = onoff ? MOSCOM_MCR_RTS : 0;
if (onoff)
uark_set(void *vsc, int portno, int reg, int onoff)
uark_break(sc, portno, onoff);
uark_break(void *vsc, int portno, int onoff)
onoff ? "on" : "off");
if (onoff)
void ubsa_break(struct ubsa_softc *sc, int onoff);
ubsa_dtr(struct ubsa_softc *sc, int onoff)
DPRINTF(("ubsa_dtr: onoff = %d\n", onoff));
if (sc->sc_dtr == onoff)
sc->sc_dtr = onoff;
ubsa_request(sc, UBSA_SET_DTR, onoff ? 1 : 0);
ubsa_rts(struct ubsa_softc *sc, int onoff)
DPRINTF(("ubsa_rts: onoff = %d\n", onoff));
if (sc->sc_rts == onoff)
sc->sc_rts = onoff;
ubsa_request(sc, UBSA_SET_RTS, onoff ? 1 : 0);
ubsa_break(struct ubsa_softc *sc, int onoff)
DPRINTF(("ubsa_rts: onoff = %d\n", onoff));
ubsa_request(sc, UBSA_SET_BREAK, onoff ? 1 : 0);
ubsa_set(void *addr, int portno, int reg, int onoff)
ubsa_dtr(sc, onoff);
ubsa_rts(sc, onoff);
ubsa_break(sc, onoff);
uchcom_set_break(struct uchcom_softc *sc, int onoff)
if (onoff) {
uchcom_set_break_ch343(struct uchcom_softc *sc, int onoff)
if (!onoff)
uchcom_set(void *arg, int portno, int reg, int onoff)
sc->sc_dtr = !!onoff;
sc->sc_rts = !!onoff;
uchcom_set_break_ch343(sc, onoff);
uchcom_set_break(sc, onoff);
ucom_break(struct ucom_softc *sc, int onoff)
DPRINTF(("ucom_break: onoff=%d\n", onoff));
UCOM_SET_BREAK, onoff);
ucom_dtr(struct ucom_softc *sc, int onoff)
DPRINTF(("ucom_dtr: onoff=%d\n", onoff));
UCOM_SET_DTR, onoff);
ucom_rts(struct ucom_softc *sc, int onoff)
DPRINTF(("ucom_rts: onoff=%d\n", onoff));
UCOM_SET_RTS, onoff);
void (*ucom_set)(void *sc, int portno, int reg, int onoff);
ucycom_set(void *addr, int portno, int reg, int onoff)
if (onoff)
if (onoff)
uftdi_break(void *vsc, int portno, int onoff)
onoff));
if (onoff) {
void uftdi_break(void *sc, int portno, int onoff);
uftdi_set(void *vsc, int portno, int reg, int onoff)
reg, onoff));
ctl = onoff ? FTDI_SIO_SET_DTR_HIGH : FTDI_SIO_SET_DTR_LOW;
ctl = onoff ? FTDI_SIO_SET_RTS_HIGH : FTDI_SIO_SET_RTS_LOW;
uftdi_break(sc, portno, onoff);
uipaq_dtr(struct uipaq_softc* sc, int onoff)
DPRINTF(("%s: uipaq_dtr: onoff=%x\n", sc->sc_dev.dv_xname, onoff));
if (onoff && (sc->sc_lcr & UCDC_LINE_DTR))
if (!onoff && !(sc->sc_lcr & UCDC_LINE_DTR))
sc->sc_lcr = onoff ? sc->sc_lcr | UCDC_LINE_DTR : sc->sc_lcr & ~UCDC_LINE_DTR;
uipaq_rts(struct uipaq_softc* sc, int onoff)
DPRINTF(("%s: uipaq_rts: onoff=%x\n", sc->sc_dev.dv_xname, onoff));
if (onoff && (sc->sc_lcr & UCDC_LINE_RTS)) return;
if (!onoff && !(sc->sc_lcr & UCDC_LINE_RTS)) return;
sc->sc_lcr = onoff ? sc->sc_lcr | UCDC_LINE_RTS : sc->sc_lcr & ~UCDC_LINE_RTS;
uipaq_break(struct uipaq_softc* sc, int onoff)
DPRINTF(("%s: uipaq_break: onoff=%x\n", sc->sc_dev.dv_xname, onoff));
USETW(req.wValue, onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF);
uipaq_set(void *addr, int portno, int reg, int onoff)
uipaq_dtr(addr, onoff);
uipaq_rts(addr, onoff);
uipaq_break(addr, onoff);
sc->sc_dev.dv_xname, reg, onoff);
void uipaq_dtr(struct uipaq_softc *sc, int onoff);
void uipaq_rts(struct uipaq_softc *sc, int onoff);
void uipaq_break(struct uipaq_softc* sc, int onoff);
ukspan_set(void *addr, int portno, int reg, int onoff)
DPRINTF("set %#x = %#x\n", reg, onoff);
int flag = !!onoff;
umcs_set(void *self, int portno, int reg, int onoff)
umcs_dtr(sc, portno, onoff);
umcs_rts(sc, portno, onoff);
umcs_break(sc, portno, onoff);
umcs_dtr(struct umcs_softc *sc, int portno, int onoff)
if (onoff)
umcs_rts(struct umcs_softc *sc, int portno, int onoff)
if (onoff)
umcs_break(struct umcs_softc *sc, int portno, int onoff)
if (onoff)
umct_set(void *addr, int portno, int reg, int onoff)
umct_dtr(sc, onoff);
umct_rts(sc, onoff);
umct_break(sc, onoff);
umct_dtr(struct umct_softc *sc, int onoff)
DPRINTF(("umct_dtr: onoff=%d\n", onoff));
if (sc->sc_dtr == onoff)
sc->sc_dtr = onoff;
umct_rts(struct umct_softc *sc, int onoff)
DPRINTF(("umct_rts: onoff=%d\n", onoff));
if (sc->sc_rts == onoff)
sc->sc_rts = onoff;
umct_break(struct umct_softc *sc, int onoff)
DPRINTF(("umct_break: onoff=%d\n", onoff));
umct_set_lcr(sc, onoff ? sc->last_lcr | LCR_SET_BREAK :
umodem_dtr(struct umodem_softc *sc, int onoff)
DPRINTF(("umodem_dtr: onoff=%d\n", onoff));
if (sc->sc_dtr == onoff)
sc->sc_dtr = onoff;
umodem_rts(struct umodem_softc *sc, int onoff)
DPRINTF(("umodem_rts: onoff=%d\n", onoff));
if (sc->sc_rts == onoff)
sc->sc_rts = onoff;
umodem_break(struct umodem_softc *sc, int onoff)
DPRINTF(("umodem_break: onoff=%d\n", onoff));
USETW(req.wValue, onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF);
umodem_set(void *addr, int portno, int reg, int onoff)
umodem_dtr(sc, onoff);
umodem_rts(sc, onoff);
umodem_break(sc, onoff);
umsm_set(void *addr, int portno, int reg, int onoff)
if (sc->sc_dtr == onoff)
sc->sc_dtr = onoff;
if (sc->sc_rts == onoff)
sc->sc_rts = onoff;
usbd_status uonerng_rts(struct uonerng_softc *sc, int onoff);
uonerng_rts(struct uonerng_softc *sc, int onoff)
if (sc->sc_rts == onoff)
sc->sc_rts = onoff;
uplcom_set(void *addr, int portno, int reg, int onoff)
uplcom_dtr(sc, onoff);
uplcom_rts(sc, onoff);
uplcom_break(sc, onoff);
uplcom_dtr(struct uplcom_softc *sc, int onoff)
DPRINTF(("uplcom_dtr: onoff=%d\n", onoff));
if (sc->sc_dtr != -1 && !sc->sc_dtr == !onoff)
sc->sc_dtr = !!onoff;
uplcom_rts(struct uplcom_softc *sc, int onoff)
DPRINTF(("uplcom_rts: onoff=%d\n", onoff));
if (sc->sc_rts == -1 && !sc->sc_rts == !onoff)
sc->sc_rts = !!onoff;
uplcom_break(struct uplcom_softc *sc, int onoff)
DPRINTF(("uplcom_break: onoff=%d\n", onoff));
USETW(req.wValue, onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF);
uslcom_set(void *vsc, int portno, int reg, int onoff)
ctl = onoff ? USLCOM_CTRL_DTR_ON : 0;
ctl = onoff ? USLCOM_CTRL_RTS_ON : 0;
uslcom_break(sc, portno, onoff);
uslcom_break(void *vsc, int portno, int onoff)
int brk = onoff ? USLCOM_BREAK_ON : USLCOM_BREAK_OFF;
void uslcom_break(void *sc, int portno, int onoff);
uslhcom_set_break(struct uslhcom_softc *sc, int onoff)
if (onoff) {
uslhcom_set(void *arg, int portno, int reg, int onoff)
uslhcom_set_break(sc, onoff);
uticom_set(void *addr, int portno, int reg, int onoff)
uticom_dtr(sc, onoff);
uticom_rts(sc, onoff);
uticom_break(sc, onoff);
uticom_dtr(struct uticom_softc *sc, int onoff)
onoff));
if (sc->sc_dtr == onoff)
sc->sc_dtr = onoff;
uticom_rts(struct uticom_softc *sc, int onoff)
onoff));
if (sc->sc_rts == onoff)
sc->sc_rts = onoff;
uticom_break(struct uticom_softc *sc, int onoff)
onoff));
USETW(req.wValue, onoff ? 1 : 0);
uvscom_dtr(struct uvscom_softc *sc, int onoff)
sc->sc_dev.dv_xname, onoff));
if (sc->sc_dtr == onoff)
sc->sc_dtr = onoff;
if (onoff)
uvscom_rts(struct uvscom_softc *sc, int onoff)
sc->sc_dev.dv_xname, onoff));
if (sc->sc_rts == onoff)
sc->sc_rts = onoff;
if (onoff)
uvscom_break(struct uvscom_softc *sc, int onoff)
sc->sc_dev.dv_xname, onoff));
if (onoff)
uvscom_set(void *addr, int portno, int reg, int onoff)
uvscom_dtr(sc, onoff);
uvscom_rts(sc, onoff);
uvscom_break(sc, onoff);
uxrcom_set(void *vsc, int portno, int reg, int onoff)
index = onoff ? XR_GPIO_SET : XR_GPIO_CLEAR;
uxrcom_break(sc, portno, onoff);
uxrcom_break(void *vsc, int portno, int onoff)
uint8_t brk = onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF;
fprintf(ttyout, "Gate ftp: %s, server %s, port %s.\n", onoff(gatemode),
fprintf(ttyout, "Passive mode: %s.\n", onoff(passivemode));
onoff(verbose), onoff(bell), onoff(interactive),
onoff(doglob));
fprintf(ttyout, "Store unique: %s; Receive unique: %s.\n", onoff(sunique),
onoff(runique));
fprintf(ttyout, "Preserve modification times: %s.\n", onoff(preserve));
fprintf(ttyout, "Case: %s; CR stripping: %s.\n", onoff(mcase), onoff(crflag));
onoff(hash), mark, onoff(progress));
fprintf(ttyout, "Use of PORT/LPRT cmds: %s.\n", onoff(sendport));
fprintf(ttyout, "Use of EPSV/EPRT cmds for IPv4: %s%s.\n", onoff(epsv4),
fprintf(ttyout, "Command line editing: %s.\n", onoff(editing));
fprintf(ttyout, "%s %s.\n", mesg, onoff(*var));
fprintf(ttyout, "Hash mark printing %s", onoff(hash));
onoff(gatemode),
fprintf(ttyout, "Debugging %s (debug=%d).\n", onoff(debug), debug);
char *onoff(int);
int onoff;
onoff = 0;
onoff = 1;
ioctl(tin, FIONBIO, &onoff);
ioctl(tout, FIONBIO, &onoff);
int sock, onoff;
onoff = 1;
if (setsockopt(sock, IPPROTO_IP, IP_RECVIF, &onoff, sizeof(onoff)) !=