Searched refs:onoff (Results 26 - 50 of 75) sorted by relevance

123

/freebsd-current/sys/dev/usb/serial/
H A Duplcom.c660 uplcom_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) argument
665 DPRINTF("onoff = %d\n", onoff);
667 if (onoff)
684 uplcom_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) argument
689 DPRINTF("onoff = %d\n", onoff);
691 if (onoff)
708 uplcom_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) argument
714 DPRINTF("onoff
[all...]
H A Dumodem.c672 umodem_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) argument
677 DPRINTF("onoff=%d\n", onoff);
679 if (onoff)
696 umodem_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) argument
701 DPRINTF("onoff=%d\n", onoff);
703 if (onoff)
720 umodem_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) argument
726 DPRINTF("onoff
[all...]
H A Dumcs.c562 umcs7840_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) argument
567 if (onoff)
573 DPRINTF("Port %d DTR set to: %s\n", pn, onoff ? "on" : "off");
577 umcs7840_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) argument
582 if (onoff)
588 DPRINTF("Port %d RTS set to: %s\n", pn, onoff ? "on" : "off");
592 umcs7840_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) argument
597 if (onoff)
603 DPRINTF("Port %d BREAK set to: %s\n", pn, onoff ? "on" : "off");
H A Duslcom.c561 uslcom_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) argument
567 DPRINTF("onoff = %d\n", onoff);
569 ctl = onoff ? USLCOM_MHS_DTR_ON : 0;
585 uslcom_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) argument
591 DPRINTF("onoff = %d\n", onoff);
593 ctl = onoff ? USLCOM_MHS_RTS_ON : 0;
728 uslcom_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) argument
732 uint16_t brk = onoff
[all...]
H A Duark.c429 uark_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) argument
433 DPRINTF("onoff=%d\n", onoff);
435 uark_cfg_write(sc, 4, onoff ? 0x01 : 0x00);
H A Duipaq.c1241 uipaq_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) argument
1246 DPRINTF("onoff=%d\n", onoff);
1248 if (onoff)
1265 uipaq_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) argument
1270 DPRINTF("onoff=%d\n", onoff);
1272 if (onoff)
1289 uipaq_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) argument
1295 temp = onoff
[all...]
H A Dufoma.c866 ufoma_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) argument
879 wValue = onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF;
923 ufoma_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) argument
930 if (onoff)
939 ufoma_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) argument
946 if (onoff)
H A Dubser.c483 ubser_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) argument
490 if (onoff) {
H A Duftdi.c1353 uftdi_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) argument
1360 DPRINTFN(2, "DTR=%u\n", onoff);
1362 wValue = onoff ? FTDI_SIO_SET_DTR_HIGH : FTDI_SIO_SET_DTR_LOW;
1374 uftdi_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) argument
1381 DPRINTFN(2, "RTS=%u\n", onoff);
1383 wValue = onoff ? FTDI_SIO_SET_RTS_HIGH : FTDI_SIO_SET_RTS_LOW;
1395 uftdi_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) argument
1402 DPRINTFN(2, "BREAK=%u\n", onoff);
1404 if (onoff) {
H A Du3g.c1234 u3g_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) argument
1238 DPRINTF("onoff = %d\n", onoff);
1240 if (onoff)
1249 u3g_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) argument
1253 DPRINTF("onoff = %d\n", onoff);
1255 if (onoff)
/freebsd-current/usr.sbin/sesutil/
H A Dsesutil.c128 do_led(int fd, unsigned int idx, elm_type_t type, bool onoff, bool setfault) argument
130 int state = onoff ? 1 : 0;
185 bool all, isses, onoff; local
189 onoff = false;
209 onoff = true;
211 onoff = false;
271 do_led(fd, sesid, objp[sesid].elm_type, onoff, setfault);
293 onoff, setfault);
308 onoff, setfault);
/freebsd-current/contrib/dialog/samples/
H A Ddialog.py184 lambda i, item, onoff, fs=('off', 'on'): (i + 1, item, fs[onoff]),
/freebsd-current/contrib/tnftp/src/
H A Dextern.h166 const char *onoff(int);
/freebsd-current/sys/dev/netmap/
H A Dnetmap_pipe.c461 * There are two cases on registration (onoff==1)
476 * There are two additional cases on unregister (onoff==0)
493 netmap_pipe_reg(struct netmap_adapter *na, int onoff) argument
500 nm_prdis("%p: onoff %d", na, onoff);
501 if (onoff) {
511 netmap_krings_mode_commit(na, onoff);
523 if (onoff) {
H A Dnetmap_monitor.c509 netmap_monitor_reg_common(struct netmap_adapter *na, int onoff, int zmon) argument
519 nm_prdis("%p: onoff %d", na, onoff);
520 if (onoff) {
706 netmap_zmon_reg(struct netmap_adapter *na, int onoff) argument
708 return netmap_monitor_reg_common(na, onoff, 1 /* zcopy */);
883 netmap_monitor_reg(struct netmap_adapter *na, int onoff) argument
885 return netmap_monitor_reg_common(na, onoff, 0 /* no zcopy */);
H A Dif_ptnet.c210 static int ptnet_nm_register(struct netmap_adapter *na, int onoff);
213 static void ptnet_nm_intr(struct netmap_adapter *na, int onoff);
1164 ptnet_nm_register(struct netmap_adapter *na, int onoff) argument
1174 if (!onoff) {
1184 if (native && !onoff && na->active_fds == 0) {
1192 if (onoff) {
1221 netmap_krings_mode_commit(na, onoff);
1228 netmap_krings_mode_commit(na, onoff);
1236 if (onoff) {
1274 ptnet_nm_intr(struct netmap_adapter *na, int onoff) argument
[all...]
H A Dnetmap_bdg.c1064 netmap_vp_reg(struct netmap_adapter *na, int onoff) argument
1074 if (onoff) {
1075 netmap_krings_mode_commit(na, onoff);
1084 netmap_krings_mode_commit(na, onoff);
1305 netmap_bwrap_reg(struct netmap_adapter *na, int onoff) argument
1314 nm_prdis("%s %s", na->name, onoff ? "on" : "off");
1316 if (onoff) {
1343 error = hwna->nm_register(hwna, onoff);
1356 netmap_vp_reg(na, onoff);
1358 netmap_vp_reg(&hostna->up, onoff);
[all...]
H A Dif_re_netmap.h47 re_netmap_reg(struct netmap_adapter *na, int onoff) argument
54 if (onoff) {
/freebsd-current/sys/dev/mwl/
H A Dmwlhal.h279 * onoff != 0 turns radio on; otherwise off.
287 int mwl_hal_setradio(struct mwl_hal *mh, int onoff, MWL_HAL_PREAMBLE preamble);
602 int mwl_hal_setwmm(struct mwl_hal *mh, int onoff);
643 int mwl_hal_setoptimizationlevel(struct mwl_hal *mh, int onoff);
/freebsd-current/usr.sbin/watchdogd/
H A Dwatchdogd.c70 static int watchdog_onoff(int onoff);
404 watchdog_onoff(int onoff) argument
412 if (onoff) {
/freebsd-current/sys/dev/isci/
H A Disci_controller.c277 static void isci_led_fault_func(void *priv, int onoff) argument
281 /* map onoff to the fault LED */
282 phy->led_fault = onoff;
287 static void isci_led_locate_func(void *priv, int onoff) argument
291 /* map onoff to the locate LED */
292 phy->led_locate = onoff;
/freebsd-current/sys/dev/ahci/
H A Dahciem.c59 static void ahci_em_led(void *priv, int onoff);
322 ahci_em_led(void *priv, int onoff) argument
334 if (onoff)
339 if (onoff)
344 if (onoff)
/freebsd-current/crypto/heimdal/appl/telnet/telnet/
H A Dexterns.h267 void NetNonblockingIO(int fd, int onoff);
/freebsd-current/sys/dev/usb/net/
H A Duhso.c963 uhso_radio_ctrl(struct uhso_softc *sc, int onoff) argument
969 req.bRequest = onoff ? 0x82 : 0x81;
980 return (onoff);
1445 uhso_ucom_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) argument
1452 if (onoff)
1461 uhso_ucom_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) argument
1468 if (onoff)
/freebsd-current/contrib/lua/src/
H A Dltests.c97 static int onoff = 0; local
104 onoff = 0;
106 onoff = 1;
135 if (buff[0] != '#' && onoff) /* unexpected warning? */
140 if (onoff)

Completed in 446 milliseconds

123