| /freebsd-13-stable/sys/dev/terasic/de4led/ |
| HD | terasic_de4led.c | 58 led_update(struct terasic_de4led_softc *sc, int bit, int onoff) in led_update() argument 62 TERASIC_DE4LED_SETLED(sc, bit, onoff); in led_update() 68 led_0(void *arg, int onoff) in led_0() argument 71 led_update(arg, 0, onoff); in led_0() 75 led_1(void *arg, int onoff) in led_1() argument 78 led_update(arg, 1, onoff); in led_1() 82 led_2(void *arg, int onoff) in led_2() argument 85 led_update(arg, 2, onoff); in led_2() 89 led_3(void *arg, int onoff) in led_3() argument 92 led_update(arg, 3, onoff); in led_3() [all …]
|
| HD | terasic_de4led.h | 62 #define TERASIC_DE4LED_SETLED(sc, led, onoff) do { \ argument 64 (sc)->tdl_bits |= ((onoff != 0) ? 1 : 0) << (led); \
|
| /freebsd-13-stable/usr.bin/systat/ |
| HD | netcmds.c | 65 int onoff; member 124 changeitems(const char *args, int onoff) in changeitems() argument 148 selectport(sp->s_port, onoff); in changeitems() 160 selecthost(&in, onoff); in changeitems() 195 int onoff; member 199 selectport(long port, int onoff) in selectport() argument 212 p->onoff = onoff; in selectport() 221 p->onoff = onoff; in selectport() 233 return (p->onoff); in checkport() 246 if (!p->onoff) in showports() [all …]
|
| /freebsd-13-stable/sys/i386/i386/ |
| HD | geode.c | 98 led_func(void *ptr, int onoff) in led_func() argument 106 onoff = !onoff; in led_func() 110 if (onoff) in led_func() 118 cs5536_led_func(void *ptr, int onoff) in cs5536_led_func() argument 126 onoff = !onoff; in cs5536_led_func() 135 if (onoff) in cs5536_led_func()
|
| /freebsd-13-stable/contrib/openpam/lib/libpam/ |
| HD | openpam_set_feature.c | 46 openpam_set_feature(int feature, int onoff) in openpam_set_feature() argument 52 openpam_features[feature].onoff = onoff; in openpam_set_feature()
|
| HD | openpam_get_feature.c | 46 openpam_get_feature(int feature, int *onoff) in openpam_get_feature() argument 52 *onoff = openpam_features[feature].onoff; in openpam_get_feature()
|
| HD | openpam_features.h | 36 int onoff; member 43 openpam_features[OPENPAM_##f].onoff
|
| /freebsd-13-stable/sys/dev/usb/serial/ |
| HD | usb_serial.c | 1001 uint8_t onoff; in ucom_modem() local 1041 onoff = (sc->sc_mcr & SER_DTR) ? 1 : 0; in ucom_modem() 1042 ucom_dtr(sc, onoff); in ucom_modem() 1044 onoff = (sc->sc_mcr & SER_RTS) ? 1 : 0; in ucom_modem() 1045 ucom_rts(sc, onoff); in ucom_modem() 1145 ucom_ring(struct ucom_softc *sc, uint8_t onoff) in ucom_ring() argument 1147 DPRINTF("onoff = %d\n", onoff); in ucom_ring() 1149 if (onoff) in ucom_ring() 1156 ucom_break(struct ucom_softc *sc, uint8_t onoff) in ucom_break() argument 1158 DPRINTF("onoff = %d\n", onoff); in ucom_break() [all …]
|
| HD | ubsa.c | 397 ubsa_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) in ubsa_cfg_set_dtr() argument 401 DPRINTF("onoff = %d\n", onoff); in ubsa_cfg_set_dtr() 403 ubsa_cfg_request(sc, UBSA_REG_DTR, onoff ? 1 : 0); in ubsa_cfg_set_dtr() 407 ubsa_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) in ubsa_cfg_set_rts() argument 411 DPRINTF("onoff = %d\n", onoff); in ubsa_cfg_set_rts() 413 ubsa_cfg_request(sc, UBSA_REG_RTS, onoff ? 1 : 0); in ubsa_cfg_set_rts() 417 ubsa_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) in ubsa_cfg_set_break() argument 421 DPRINTF("onoff = %d\n", onoff); in ubsa_cfg_set_break() 423 ubsa_cfg_request(sc, UBSA_REG_BREAK, onoff ? 1 : 0); in ubsa_cfg_set_break()
|
| HD | uvscom.c | 498 uvscom_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) in uvscom_cfg_set_dtr() argument 502 DPRINTF("onoff = %d\n", onoff); in uvscom_cfg_set_dtr() 504 if (onoff) in uvscom_cfg_set_dtr() 513 uvscom_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) in uvscom_cfg_set_rts() argument 517 DPRINTF("onoff = %d\n", onoff); in uvscom_cfg_set_rts() 519 if (onoff) in uvscom_cfg_set_rts() 528 uvscom_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) in uvscom_cfg_set_break() argument 532 DPRINTF("onoff = %d\n", onoff); in uvscom_cfg_set_break() 534 if (onoff) in uvscom_cfg_set_break()
|
| HD | uchcom.c | 553 uchcom_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) in uchcom_cfg_set_break() argument 560 if (onoff) { in uchcom_cfg_set_break() 649 uchcom_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) in uchcom_cfg_set_dtr() argument 653 DPRINTF("onoff = %d\n", onoff); in uchcom_cfg_set_dtr() 655 sc->sc_dtr = onoff; in uchcom_cfg_set_dtr() 660 uchcom_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) in uchcom_cfg_set_rts() argument 664 DPRINTF("onoff = %d\n", onoff); in uchcom_cfg_set_rts() 666 sc->sc_rts = onoff; in uchcom_cfg_set_rts()
|
| HD | umct.c | 437 umct_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) in umct_cfg_set_break() argument 441 if (onoff) in umct_cfg_set_break() 450 umct_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) in umct_cfg_set_dtr() argument 454 if (onoff) in umct_cfg_set_dtr() 463 umct_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) in umct_cfg_set_rts() argument 467 if (onoff) in umct_cfg_set_rts()
|
| HD | umodem.c | 674 umodem_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) in umodem_cfg_set_dtr() argument 679 DPRINTF("onoff=%d\n", onoff); in umodem_cfg_set_dtr() 681 if (onoff) in umodem_cfg_set_dtr() 698 umodem_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) in umodem_cfg_set_rts() argument 703 DPRINTF("onoff=%d\n", onoff); in umodem_cfg_set_rts() 705 if (onoff) in umodem_cfg_set_rts() 722 umodem_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) in umodem_cfg_set_break() argument 728 DPRINTF("onoff=%d\n", onoff); in umodem_cfg_set_break() 731 temp = onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF; in umodem_cfg_set_break()
|
| HD | umoscom.c | 419 umoscom_cfg_set_break(struct ucom_softc *ucom, uint8_t onoff) in umoscom_cfg_set_break() argument 425 if (onoff) in umoscom_cfg_set_break() 432 umoscom_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff) in umoscom_cfg_set_dtr() argument 436 if (onoff) in umoscom_cfg_set_dtr() 445 umoscom_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff) in umoscom_cfg_set_rts() argument 449 if (onoff) in umoscom_cfg_set_rts()
|
| /freebsd-13-stable/sys/dev/gpio/ |
| HD | gpioled.c | 73 gpioled_control(void *priv, int onoff) in gpioled_control() argument 82 onoff = !onoff; in gpioled_control() 84 onoff ? GPIO_PIN_HIGH : GPIO_PIN_LOW); in gpioled_control()
|
| /freebsd-13-stable/contrib/apr-util/encoding/ |
| HD | apr_base64.c | 80 int onoff; in apr_base64init_ebcdic() local 84 rv = apr_xlate_sb_get(to_ascii, &onoff); in apr_base64init_ebcdic() 88 if (!onoff) { /* If conversion is not single-byte-only */ in apr_base64init_ebcdic() 91 rv = apr_xlate_sb_get(to_ebcdic, &onoff); in apr_base64init_ebcdic() 95 if (!onoff) { /* If conversion is not single-byte-only */ in apr_base64init_ebcdic()
|
| /freebsd-13-stable/crypto/heimdal/appl/ftp/ftp/ |
| HD | cmds.c | 839 onoff(int bool) in onoff() function 872 onoff(verbose), onoff(bell), onoff(interactive), in status() 873 onoff(doglob)); in status() 874 printf("Store unique: %s; Receive unique: %s\n", onoff(sunique), in status() 875 onoff(runique)); in status() 876 printf("Case: %s; CR stripping: %s\n",onoff(mcase),onoff(crflag)); in status() 890 onoff(hash), onoff(sendport)); in status() 909 printf("Bell mode %s.\n", onoff(bell)); in setbell() 922 printf("Packet tracing %s.\n", onoff(trace)); in settrace() 935 printf("Hash mark printing %s", onoff(hash)); in sethash() [all …]
|
| /freebsd-13-stable/contrib/tnftp/src/ |
| HD | cmds.c | 789 onoff(int val) in onoff() function 825 fprintf(ttyout, "Gate ftp: %s, server %s, port %s.\n", onoff(gatemode), in status() 828 onoff(passivemode), onoff(activefallback)); in status() 832 onoff(verbose), onoff(bell), onoff(interactive), onoff(doglob)); in status() 834 onoff(sunique), onoff(runique)); in status() 835 fprintf(ttyout, "Preserve modification times: %s.\n", onoff(preserve)); in status() 836 fprintf(ttyout, "Case: %s; CR stripping: %s.\n", onoff(mcase), in status() 837 onoff(crflag)); in status() 852 onoff(hash), mark, onoff(progress)); in status() 855 onoff(rate_get), rate_get, rate_get_incr); in status() [all …]
|
| /freebsd-13-stable/sbin/conscontrol/ |
| HD | conscontrol.c | 89 consmute(const char *onoff) in consmute() argument 94 if (strcmp(onoff, "on") == 0) in consmute() 96 else if (strcmp(onoff, "off") == 0) in consmute()
|
| /freebsd-13-stable/share/examples/ipfilter/samples/ |
| HD | proxy.c | 141 int onoff, ofd, slen; local 208 onoff = 1; 209 if (ioctl(fd, SIOCSTLCK, &onoff) == 0) { 212 onoff = 0; 213 if (ioctl(fd, SIOCSTLCK, &onoff) != 0)
|
| /freebsd-13-stable/crypto/heimdal/appl/telnet/telnet/ |
| HD | sys_bsd.c | 325 int onoff; in TerminalNewMode() local 434 onoff = 0; in TerminalNewMode() 452 onoff = 1; in TerminalNewMode() 509 ioctl(tin, FIONBIO, (char *)&onoff); in TerminalNewMode() 510 ioctl(tout, FIONBIO, (char *)&onoff); in TerminalNewMode() 629 NetNonblockingIO(int fd, int onoff) in NetNonblockingIO() argument 631 ioctl(fd, FIONBIO, (char *)&onoff); in NetNonblockingIO()
|
| /freebsd-13-stable/crypto/openssl/ssl/ |
| HD | ssl_conf.c | 106 unsigned long option_value, int onoff) in ssl_set_option() argument 112 onoff ^= 1; in ssl_set_option() 131 if (onoff) in ssl_set_option() 138 const char *name, int namelen, int onoff) in ssl_match_option() argument 148 ssl_set_option(cctx, tbl->name_flags, tbl->option_value, onoff); in ssl_match_option() 157 int onoff = 1; in ssl_set_option_list() local 168 onoff = 1; in ssl_set_option_list() 172 onoff = 0; in ssl_set_option_list() 176 if (ssl_match_option(cctx, tbl, elem, len, onoff)) in ssl_set_option_list()
|
| /freebsd-13-stable/usr.sbin/sesutil/ |
| HD | sesutil.c | 128 do_led(int fd, unsigned int idx, elm_type_t type, bool onoff, bool setfault) in do_led() argument 130 int state = onoff ? 1 : 0; in do_led() 185 bool all, isses, onoff; in sesled() local 189 onoff = false; in sesled() 209 onoff = true; in sesled() 211 onoff = false; in sesled() 271 do_led(fd, sesid, objp[sesid].elm_type, onoff, setfault); in sesled() 293 onoff, setfault); in sesled() 308 onoff, setfault); in sesled()
|
| /freebsd-13-stable/sys/powerpc/mikrotik/ |
| HD | rb_led.c | 142 rbled_toggle(void *priv, int onoff) in rbled_toggle() argument 146 GPIO_PIN_SET(sc->sc_gpio, sc->sc_ledpin, onoff); in rbled_toggle()
|
| /freebsd-13-stable/sys/contrib/device-tree/Bindings/gnss/ |
| HD | sirfstar.txt | 29 - sirf,onoff-gpios : GPIO used to power on and off device (pin name: ON_OFF) 43 sirf,onoff-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
|