bin/df/df.c
193
static enum { IN_LIST, NOT_IN_LIST } which;
bin/df/df.c
205
return (which == IN_LIST ? 1 : 0);
bin/df/df.c
206
return (which == IN_LIST ? 0 : 1);
bin/df/df.c
225
which = NOT_IN_LIST;
bin/df/df.c
227
which = IN_LIST;
bin/ksh/jobs.c
797
int which = 0;
bin/ksh/jobs.c
801
which |= 1;
bin/ksh/jobs.c
804
which |= 2;
bin/ksh/jobs.c
806
if (which) {
bin/ksh/jobs.c
808
which & 1 ? "stopped" : "",
bin/ksh/jobs.c
809
which == 3 ? " and " : "",
bin/ksh/jobs.c
810
which & 2 ? "running" : "");
distrib/special/more/tgoto.c
103
if (which < 10)
distrib/special/more/tgoto.c
105
if (which < 100)
distrib/special/more/tgoto.c
112
*dp++ = (which / 100) | '0';
distrib/special/more/tgoto.c
113
which %= 100;
distrib/special/more/tgoto.c
120
*dp++ = which / 10 | '0';
distrib/special/more/tgoto.c
124
*dp++ = which % 10 | '0';
distrib/special/more/tgoto.c
128
which = oncol ? destcol : destline;
distrib/special/more/tgoto.c
133
if (which > *cp++)
distrib/special/more/tgoto.c
134
which += *cp++;
distrib/special/more/tgoto.c
141
which += *cp++;
distrib/special/more/tgoto.c
164
if ((which == 0 || which == CTRL('d') || which == '\n')
distrib/special/more/tgoto.c
175
which++;
distrib/special/more/tgoto.c
176
} while (which == '\n');
distrib/special/more/tgoto.c
179
*dp++ = which;
distrib/special/more/tgoto.c
189
which++;
distrib/special/more/tgoto.c
200
which = (which/10 << 4) + which%10;
distrib/special/more/tgoto.c
206
which = which - 2 * (which%16);
distrib/special/more/tgoto.c
76
int which = destline;
games/phantasia/fight.c
1033
callmonster(int which)
games/phantasia/fight.c
1037
which = MIN(which, 99); /* make sure within range */
games/phantasia/fight.c
1040
fseek(Monstfp, (long) which * (long) SZ_MONSTERSTRUCT, SEEK_SET);
games/phantasia/fight.c
1075
which = (int) ROLL(0.0, 100.0);
games/phantasia/fight.c
1076
fseek(Monstfp, (long) which * (long) SZ_MONSTERSTRUCT, SEEK_SET);
lib/libc/arch/mips64/gen/cacheflush.c
33
args.which = cache;
lib/libc/termios/tcflush.c
37
tcflush(int fd, int which)
lib/libc/termios/tcflush.c
41
switch (which) {
lib/libcrypto/x509/x509_asid.c
410
X509v3_asid_add_inherit(ASIdentifiers *asid, int which)
lib/libcrypto/x509/x509_asid.c
419
switch (which) {
lib/libcrypto/x509/x509_asid.c
501
X509v3_asid_add_id_or_range(ASIdentifiers *asid, int which, ASN1_INTEGER *min,
lib/libcrypto/x509/x509_asid.c
511
switch (which) {
lib/libcrypto/x509/x509_asid.c
848
int i1 = 0, i2 = 0, i3 = 0, is_range = 0, which = 0;
lib/libcrypto/x509/x509_asid.c
854
which = V3_ASID_ASNUM;
lib/libcrypto/x509/x509_asid.c
856
which = V3_ASID_RDI;
lib/libcrypto/x509/x509_asid.c
867
if (X509v3_asid_add_inherit(asid, which))
lib/libcrypto/x509/x509_asid.c
925
if (!X509v3_asid_add_id_or_range(asid, which, min, max)) {
lib/libcrypto/x509/x509v3.h
854
int X509v3_asid_add_inherit(ASIdentifiers *asid, int which);
lib/libcrypto/x509/x509v3.h
855
int X509v3_asid_add_id_or_range(ASIdentifiers *asid, int which,
lib/libcurses/tinfo/comp_parse.c
303
extended_captype(TERMTYPE2 *p, unsigned which)
lib/libcurses/tinfo/comp_parse.c
308
if (limit != 0 && which < limit) {
lib/libcurses/tinfo/comp_parse.c
312
if (limit != 0 && which < limit) {
lib/libcurses/tinfo/comp_parse.c
316
if (limit != 0 && which < limit) {
lib/libcurses/tinfo/comp_parse.c
317
result = ((p->Strings[STRCOUNT + which] != CANCELLED_STRING)
lib/libcurses/tinfo/comp_parse.c
320
} else if (which >= limit) {
lib/libcurses/tinfo/comp_parse.c
329
name_of_captype(int which)
lib/libcurses/tinfo/comp_parse.c
332
switch (which) {
lib/libcurses/tinfo/db_iterator.c
123
update_getenv(const char *name, DBDIRS which)
lib/libcurses/tinfo/db_iterator.c
127
if (which < dbdLAST) {
lib/libcurses/tinfo/db_iterator.c
129
char *cached_value = my_vars[which].value;
lib/libcurses/tinfo/db_iterator.c
141
my_vars[which].name = name;
lib/libcurses/tinfo/db_iterator.c
144
FreeIfNeeded(my_vars[which].value);
lib/libcurses/tinfo/db_iterator.c
145
my_vars[which].value = value;
lib/libcurses/tinfo/db_iterator.c
156
cache_getenv(const char *name, DBDIRS which)
lib/libcurses/tinfo/db_iterator.c
160
(void) update_getenv(name, which);
lib/libcurses/tinfo/db_iterator.c
161
if (which < dbdLAST) {
lib/libcurses/tinfo/db_iterator.c
162
result = my_vars[which].value;
lib/libcurses/tinfo/db_iterator.c
449
DBDIRS which;
lib/libcurses/tinfo/db_iterator.c
455
for (which = 0; (int) which < dbdLAST; ++which) {
lib/libcurses/tinfo/db_iterator.c
456
my_vars[which].name = 0;
lib/libcurses/tinfo/db_iterator.c
457
FreeIfNeeded(my_vars[which].value);
lib/libcurses/tinfo/db_iterator.c
458
my_vars[which].value = 0;
lib/libcurses/tinfo/lib_tparm.c
165
visit_nodes(const void *nodep, VISIT which, int depth)
lib/libcurses/tinfo/lib_tparm.c
168
if (which == preorder || which == leaf) {
lib/libedit/filecomplete.c
264
size_t match_list_len, max_equal, which, i;
lib/libedit/filecomplete.c
291
which = 2;
lib/libedit/filecomplete.c
294
for (; which <= matches; which++) {
lib/libedit/filecomplete.c
296
prevstr[i] == match_list[which][i]; i++)
lib/libevent/kqueue.c
213
int which = 0;
lib/libevent/kqueue.c
243
which |= EV_READ;
lib/libevent/kqueue.c
257
which |= EV_READ;
lib/libevent/kqueue.c
259
which |= EV_WRITE;
lib/libevent/kqueue.c
261
which |= EV_SIGNAL;
lib/libevent/kqueue.c
264
if (!which)
lib/libevent/kqueue.c
271
event_active(ev, which, events[i].data);
lib/libevent/kqueue.c
279
event_active(ev, which, 1);
lib/libkeynote/auxil.c
333
keynote_add_htable(struct assertion *as, int which)
lib/libkeynote/auxil.c
344
if (!which)
regress/sbin/ifconfig/ifaddr.c
1604
in_getaddr(const char *s, int which)
regress/sbin/ifconfig/ifaddr.c
1606
struct sockaddr_in *sin = sintab[which], tsin;
regress/sbin/ifconfig/ifaddr.c
1613
if (which != MASK)
regress/sbin/ifconfig/ifaddr.c
1616
if (which == ADDR && strrchr(s, '/') != NULL &&
regress/sbin/ifconfig/ifaddr.c
1634
in_getprefix(const char *plen, int which)
regress/sbin/ifconfig/ifaddr.c
1636
struct sockaddr_in *sin = sintab[which];
regress/sbin/ifconfig/ifaddr.c
1646
if (which != MASK)
regress/sbin/ifconfig/ifaddr.c
1722
in6_getaddr(const char *s, int which)
regress/sbin/ifconfig/ifaddr.c
1724
struct sockaddr_in6 *sin6 = sin6tab[which];
regress/sbin/ifconfig/ifaddr.c
1733
if (which == ADDR && strchr(s, '/') != NULL) {
regress/sbin/ifconfig/ifaddr.c
1761
in6_getprefix(const char *plen, int which)
regress/sbin/ifconfig/ifaddr.c
1763
struct sockaddr_in6 *sin6 = sin6tab[which];
regress/sbin/ifconfig/ifaddr.c
1773
if (which != MASK)
regress/sbin/isakmpd/crypto/cryptotest.c
143
test_crypto (enum transform which)
regress/sbin/isakmpd/crypto/cryptotest.c
150
xf = crypto_get (which);
regress/sys/altivec_ast/vecast.c
106
switch (which) {
regress/sys/altivec_ast/vecast.c
95
enum error_check which, double err_den)
regress/sys/kern/itimer/itimer.c
28
int which, sig;
regress/sys/kern/itimer/itimer.c
34
which = ITIMER_REAL;
regress/sys/kern/itimer/itimer.c
38
which = ITIMER_VIRTUAL;
regress/sys/kern/itimer/itimer.c
42
which = ITIMER_PROF;
regress/sys/kern/itimer/itimer.c
57
if (setitimer(which, &itv, NULL) != 0)
regress/sys/kern/itimer/itimer.c
64
switch (which) {
regress/sys/kern/kqueue/kqueue-tun.c
116
tunnel_ping(int fd, short which, void *arg)
regress/sys/kern/kqueue/kqueue-tun.c
69
tunnel_write(int fd, short which, void *arg)
regress/sys/kern/kqueue/kqueue-tun.c
90
tunnel_read(int fd, short which, void *arg)
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
237
if (which(orig, xp) != j++)
regress/usr.sbin/bgpd/unittests/rde_decide_test.c
242
printf(" %zu", which(orig, xp));
sbin/fdisk/gpt.c
438
GPT_read(const int which)
sbin/fdisk/gpt.c
449
switch (which) {
sbin/fsck/fsck.c
370
return which == IN_LIST ? 1 : 0;
sbin/fsck/fsck.c
372
return which == IN_LIST ? 0 : 1;
sbin/fsck/fsck.c
430
which = NOT_IN_LIST;
sbin/fsck/fsck.c
433
which = IN_LIST;
sbin/fsck/fsck.c
59
static enum { IN_LIST, NOT_IN_LIST } which = NOT_IN_LIST;
sbin/ifconfig/ifconfig.c
6473
in_getaddr(const char *s, int which)
sbin/ifconfig/ifconfig.c
6475
struct sockaddr_in *sin = sintab[which], tsin;
sbin/ifconfig/ifconfig.c
6482
if (which != MASK)
sbin/ifconfig/ifconfig.c
6485
if (which == ADDR && strrchr(s, '/') != NULL &&
sbin/ifconfig/ifconfig.c
6499
if (which == MASK && (ntohl(sin->sin_addr.s_addr) &
sbin/ifconfig/ifconfig.c
6505
in_getprefix(const char *plen, int which)
sbin/ifconfig/ifconfig.c
6507
struct sockaddr_in *sin = sintab[which];
sbin/ifconfig/ifconfig.c
6517
if (which != MASK)
sbin/ifconfig/ifconfig.c
6593
in6_getaddr(const char *s, int which)
sbin/ifconfig/ifconfig.c
6595
struct sockaddr_in6 *sin6 = sin6tab[which];
sbin/ifconfig/ifconfig.c
6604
if (which == ADDR && strchr(s, '/') != NULL) {
sbin/ifconfig/ifconfig.c
6631
in6_getprefix(const char *plen, int which)
sbin/ifconfig/ifconfig.c
6633
struct sockaddr_in6 *sin6 = sin6tab[which];
sbin/ifconfig/ifconfig.c
6643
if (which != MASK)
sbin/mount/mount.c
638
static enum { IN_LIST, NOT_IN_LIST } which;
sbin/mount/mount.c
650
return (which == IN_LIST ? 1 : 0);
sbin/mount/mount.c
651
return (which == IN_LIST ? 0 : 1);
sbin/mount/mount.c
670
which = NOT_IN_LIST;
sbin/mount/mount.c
672
which = IN_LIST;
sbin/route/route.c
1010
if (which == RTA_DST) {
sbin/route/route.c
1036
if (which == RTA_DST && !forcehost) {
sbin/route/route.c
1047
} else if (which != RTA_DST || !forcenet)
sbin/route/route.c
2054
sodump(sup su, char *which)
sbin/route/route.c
2058
printf("%s: link %s; ", which, link_ntoa(&su->sdl));
sbin/route/route.c
2061
printf("%s: inet %s; ", which, inet_ntoa(su->sin.sin_addr));
sbin/route/route.c
2068
which, inet_ntop(AF_INET6, &su->sin6.sin6_addr,
sbin/route/route.c
909
getaddr(int which, int af, char *s, struct hostent **hpp)
sbin/route/route.c
928
rtm_addrs |= which;
sbin/route/route.c
929
switch (which) {
sbin/route/route.c
956
switch (which) {
sbin/umount/umount.c
286
static enum { IN_LIST, NOT_IN_LIST } which;
sbin/umount/umount.c
298
return (which == IN_LIST ? 1 : 0);
sbin/umount/umount.c
299
return (which == IN_LIST ? 0 : 1);
sbin/umount/umount.c
318
which = NOT_IN_LIST;
sbin/umount/umount.c
320
which = IN_LIST;
sbin/wsconsctl/keyboard.c
100
dfbell.which |= WSKBD_BELL_DOVOLUME;
sbin/wsconsctl/keyboard.c
101
if (dfbell.which != 0 &&
sbin/wsconsctl/keyboard.c
114
repeat.which = 0;
sbin/wsconsctl/keyboard.c
116
repeat.which |= WSKBD_KEYREPEAT_DODEL1;
sbin/wsconsctl/keyboard.c
118
repeat.which |= WSKBD_KEYREPEAT_DODELN;
sbin/wsconsctl/keyboard.c
119
if (repeat.which != 0 &&
sbin/wsconsctl/keyboard.c
123
dfrepeat.which = 0;
sbin/wsconsctl/keyboard.c
125
dfrepeat.which |= WSKBD_KEYREPEAT_DODEL1;
sbin/wsconsctl/keyboard.c
127
dfrepeat.which |= WSKBD_KEYREPEAT_DODELN;
sbin/wsconsctl/keyboard.c
128
if (dfrepeat.which != 0 &&
sbin/wsconsctl/keyboard.c
162
bell.which = 0;
sbin/wsconsctl/keyboard.c
164
bell.which |= WSKBD_BELL_DOPITCH;
sbin/wsconsctl/keyboard.c
166
bell.which |= WSKBD_BELL_DOPERIOD;
sbin/wsconsctl/keyboard.c
168
bell.which |= WSKBD_BELL_DOVOLUME;
sbin/wsconsctl/keyboard.c
169
if (bell.which != 0 && ioctl(fd, WSKBDIO_SETBELL, &bell) == -1) {
sbin/wsconsctl/keyboard.c
174
dfbell.which = 0;
sbin/wsconsctl/keyboard.c
176
dfbell.which |= WSKBD_BELL_DOPITCH;
sbin/wsconsctl/keyboard.c
178
dfbell.which |= WSKBD_BELL_DOPERIOD;
sbin/wsconsctl/keyboard.c
180
dfbell.which |= WSKBD_BELL_DOVOLUME;
sbin/wsconsctl/keyboard.c
181
if (dfbell.which != 0 &&
sbin/wsconsctl/keyboard.c
194
repeat.which = 0;
sbin/wsconsctl/keyboard.c
196
repeat.which |= WSKBD_KEYREPEAT_DODEL1;
sbin/wsconsctl/keyboard.c
198
repeat.which |= WSKBD_KEYREPEAT_DODELN;
sbin/wsconsctl/keyboard.c
199
if (repeat.which != 0 &&
sbin/wsconsctl/keyboard.c
205
dfrepeat.which = 0;
sbin/wsconsctl/keyboard.c
207
dfrepeat.which |= WSKBD_KEYREPEAT_DODEL1;
sbin/wsconsctl/keyboard.c
209
dfrepeat.which |= WSKBD_KEYREPEAT_DODELN;
sbin/wsconsctl/keyboard.c
210
if (dfrepeat.which != 0 &&
sbin/wsconsctl/keyboard.c
84
bell.which = 0;
sbin/wsconsctl/keyboard.c
86
bell.which |= WSKBD_BELL_DOPITCH;
sbin/wsconsctl/keyboard.c
88
bell.which |= WSKBD_BELL_DOPERIOD;
sbin/wsconsctl/keyboard.c
90
bell.which |= WSKBD_BELL_DOVOLUME;
sbin/wsconsctl/keyboard.c
91
if (bell.which != 0 && ioctl(fd, WSKBDIO_GETBELL, &bell) == -1)
sbin/wsconsctl/keyboard.c
94
dfbell.which = 0;
sbin/wsconsctl/keyboard.c
96
dfbell.which |= WSKBD_BELL_DOPITCH;
sbin/wsconsctl/keyboard.c
98
dfbell.which |= WSKBD_BELL_DOPERIOD;
sys/arch/arm/arm/arm32_machdep.c
123
arm32_vector_init(vaddr_t va, int which)
sys/arch/arm/arm/arm32_machdep.c
135
if ((which & (1 << vec)) == 0) {
sys/arch/i386/i386/sys_machdep.c
109
sdp = &p->p_addr->u_pcb.pcb_threadsegs[which];
sys/arch/i386/i386/sys_machdep.c
113
curcpu()->ci_gdt[which == TSEG_FS ? GUFS_SEL : GUGS_SEL].sd
sys/arch/i386/i386/sys_machdep.c
88
i386_get_threadbase(struct proc *p, int which)
sys/arch/i386/i386/sys_machdep.c
91
&p->p_addr->u_pcb.pcb_threadsegs[which];
sys/arch/i386/i386/sys_machdep.c
96
i386_set_threadbase(struct proc *p, uint32_t base, int which)
sys/arch/mips64/include/sysarch.h
35
int which;
sys/arch/mips64/mips64/sys_machdep.c
107
if ((cfa->which & BCACHE) != cfa->which)
sys/arch/mips64/mips64/sys_machdep.c
110
if (cfa->which == 0)
sys/arch/mips64/mips64/sys_machdep.c
128
if (cfa->which & ICACHE)
sys/arch/mips64/mips64/sys_machdep.c
130
if (cfa->which & DCACHE)
sys/arch/sparc64/dev/creator.c
265
if (curs->which & WSDISPLAY_CURSOR_DOCUR)
sys/arch/sparc64/dev/creator.c
267
if (curs->which & WSDISPLAY_CURSOR_DOPOS) {
sys/arch/sparc64/dev/creator.c
271
if (curs->which & WSDISPLAY_CURSOR_DOHOT) {
sys/arch/sparc64/dev/creator.c
275
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
sys/arch/sparc64/dev/creator.c
294
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
sys/arch/sparc64/dev/creator.c
351
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
sys/arch/sparc64/dev/creator.c
365
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
sys/arch/sparc64/dev/creator.c
382
if (curs->which & WSDISPLAY_CURSOR_DOCUR)
sys/arch/sparc64/dev/creator.c
384
if (curs->which & WSDISPLAY_CURSOR_DOPOS) {
sys/arch/sparc64/dev/creator.c
388
if (curs->which & WSDISPLAY_CURSOR_DOHOT) {
sys/arch/sparc64/dev/creator.c
392
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
sys/arch/sparc64/dev/creator.c
396
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
sys/arch/sparc64/dev/creator.c
403
creator_updatecursor(sc, curs->which);
sys/arch/sparc64/dev/creator.c
422
creator_updatecursor(struct creator_softc *sc, u_int which)
sys/arch/sparc64/dev/creator.c
426
if (which & WSDISPLAY_CURSOR_DOCMAP) {
sys/arch/sparc64/dev/creator.c
432
if (which & (WSDISPLAY_CURSOR_DOPOS | WSDISPLAY_CURSOR_DOHOT)) {
sys/arch/sparc64/dev/creator.c
442
if (which & WSDISPLAY_CURSOR_DOCUR)
sys/dev/i2c/lm75.c
217
lmtemp_temp_read(struct lmtemp_softc *sc, uint8_t which, int *valp)
sys/dev/i2c/lm75.c
219
u_int8_t cmd = which;
sys/dev/ic/ahci.c
3003
ahci_pmp_read(struct ahci_port *ap, int target, int which, u_int32_t *datap)
sys/dev/ic/ahci.c
3019
fis->features = which;
sys/dev/ic/ahci.c
3037
ahci_pmp_write(struct ahci_port *ap, int target, int which, u_int32_t data)
sys/dev/ic/ahci.c
3053
fis->features = which;
sys/dev/ic/bt485.c
330
v = cursorp->which;
sys/dev/ic/bt485.c
415
cursorp->which = WSDISPLAY_CURSOR_DOALL;
sys/dev/ic/rt2860.c
2850
rt2860_set_leds(struct rt2860_softc *sc, uint16_t which)
sys/dev/ic/rt2860.c
2853
which | (sc->leds & 0x7f), 0);
sys/dev/ic/rtw.c
4889
#define EXTRACT_NIBBLE(d, which) (((d) >> (4 * (which))) & 0xf)
sys/dev/ic/sili.c
1757
sili_pmp_read(struct sili_port *sp, int target, int which, u_int32_t *datap)
sys/dev/ic/sili.c
1780
fis->features = which;
sys/dev/ic/sili.c
1785
printf("sili_pmp_read(%d, %d) failed\n", target, which);
sys/dev/ic/sili.c
1799
sili_pmp_write(struct sili_port *sp, int target, int which, u_int32_t data)
sys/dev/ic/sili.c
1822
fis->features = which;
sys/dev/isa/sbdsp.c
632
sbdsp_set_ifilter(void *addr, int which)
sys/dev/isa/sbdsp.c
638
switch (which) {
sys/dev/pci/drm/i915/gt/intel_engine_user.c
364
unsigned int which;
sys/dev/pci/drm/i915/gt/intel_engine_user.c
366
which = 0;
sys/dev/pci/drm/i915/gt/intel_engine_user.c
369
which |= BIT(engine->uabi_class);
sys/dev/pci/drm/i915/gt/intel_engine_user.c
371
return which;
sys/dev/pci/drm/i915/i915_reg.h
879
#define GEN8_GT_ISR(which) _MMIO(0x44300 + (0x10 * (which)))
sys/dev/pci/drm/i915/i915_reg.h
880
#define GEN8_GT_IMR(which) _MMIO(0x44304 + (0x10 * (which)))
sys/dev/pci/drm/i915/i915_reg.h
881
#define GEN8_GT_IIR(which) _MMIO(0x44308 + (0x10 * (which)))
sys/dev/pci/drm/i915/i915_reg.h
882
#define GEN8_GT_IER(which) _MMIO(0x4430c + (0x10 * (which)))
sys/dev/pci/drm/i915/i915_reg.h
884
#define GEN8_GT_IRQ_REGS(which) I915_IRQ_REGS(GEN8_GT_IMR(which), \
sys/dev/pci/drm/i915/i915_reg.h
885
GEN8_GT_IER(which), \
sys/dev/pci/drm/i915/i915_reg.h
886
GEN8_GT_IIR(which))
sys/dev/pci/if_iwn.c
4031
iwn_set_led(struct iwn_softc *sc, uint8_t which, uint8_t off, uint8_t on)
sys/dev/pci/if_iwn.c
4038
led.which = which;
sys/dev/pci/if_iwn.c
4738
cmd.which = IWN_SENSITIVITY_WORKTBL;
sys/dev/pci/if_iwnreg.h
1043
uint16_t which;
sys/dev/pci/if_iwnreg.h
1061
uint16_t which;
sys/dev/pci/if_iwnreg.h
766
uint8_t which;
sys/dev/pci/if_wpi.c
2121
mrr.which = htole32(WPI_MRR_CTL);
sys/dev/pci/if_wpi.c
2129
mrr.which = htole32(WPI_MRR_DATA);
sys/dev/pci/if_wpi.c
2163
wpi_set_led(struct wpi_softc *sc, uint8_t which, uint8_t off, uint8_t on)
sys/dev/pci/if_wpi.c
2167
led.which = which;
sys/dev/pci/if_wpireg.h
427
uint32_t which;
sys/dev/pci/if_wpireg.h
442
uint8_t which;
sys/dev/pci/tga.c
898
v = cursorp->which;
sys/dev/pci/tga.c
950
cursorp->which = WSDISPLAY_CURSOR_DOALL &
sys/dev/sbus/cgsix.c
302
if (curs->which & WSDISPLAY_CURSOR_DOCUR)
sys/dev/sbus/cgsix.c
304
if (curs->which & WSDISPLAY_CURSOR_DOPOS) {
sys/dev/sbus/cgsix.c
308
if (curs->which & WSDISPLAY_CURSOR_DOHOT) {
sys/dev/sbus/cgsix.c
312
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
sys/dev/sbus/cgsix.c
331
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
sys/dev/sbus/cgsix.c
383
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
sys/dev/sbus/cgsix.c
397
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
sys/dev/sbus/cgsix.c
415
if (curs->which & WSDISPLAY_CURSOR_DOCUR)
sys/dev/sbus/cgsix.c
417
if (curs->which & WSDISPLAY_CURSOR_DOPOS) {
sys/dev/sbus/cgsix.c
421
if (curs->which & WSDISPLAY_CURSOR_DOHOT) {
sys/dev/sbus/cgsix.c
425
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
sys/dev/sbus/cgsix.c
429
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
sys/dev/sbus/cgsix.c
436
cgsix_updatecursor(sc, curs->which);
sys/dev/sbus/cgsix.c
443
cgsix_updatecursor(struct cgsix_softc *sc, u_int which)
sys/dev/sbus/cgsix.c
445
if (which & WSDISPLAY_CURSOR_DOCMAP) {
sys/dev/sbus/cgsix.c
463
if (which & (WSDISPLAY_CURSOR_DOPOS | WSDISPLAY_CURSOR_DOHOT)) {
sys/dev/sbus/cgsix.c
472
if (which & WSDISPLAY_CURSOR_DOCUR) {
sys/dev/usb/if_mtw.c
2754
mtw_set_leds(struct mtw_softc *sc, uint16_t which)
sys/dev/usb/if_mtw.c
2759
cmd.val = htole32(which);
sys/dev/usb/if_run.c
3735
run_set_leds(struct run_softc *sc, uint16_t which)
sys/dev/usb/if_run.c
3738
which | (sc->leds & 0x7f));
sys/dev/usb/if_uath.c
1766
uath_set_led(struct uath_softc *sc, int which, int on)
sys/dev/usb/if_uath.c
1770
led.which = htobe32(which);
sys/dev/usb/if_uath.c
1774
(which == UATH_LED_LINK) ? "link" : "activity",
sys/dev/usb/if_uath.c
840
xled.which = htobe32(0);
sys/dev/usb/if_uath.c
870
xled.which = htobe32(1);
sys/dev/usb/if_uathreg.h
147
uint32_t which;
sys/dev/usb/if_uathreg.h
158
uint32_t which;
sys/dev/usb/if_zyd.c
1715
zyd_set_led(struct zyd_softc *sc, int which, int on)
sys/dev/usb/if_zyd.c
1720
tmp &= ~which;
sys/dev/usb/if_zyd.c
1722
tmp |= which;
sys/dev/wscons/wsconsio.h
149
u_int which; /* values to get/set */
sys/dev/wscons/wsconsio.h
168
u_int which; /* values to get/set */
sys/dev/wscons/wsconsio.h
502
u_int which; /* values to get/set */
sys/dev/wscons/wsdisplay_compat_usl.c
442
bd.which = WSKBD_BELL_DOPERIOD;
sys/dev/wscons/wsdisplay_compat_usl.c
445
bd.which = 0;
sys/dev/wscons/wsdisplay_compat_usl.c
447
bd.which |= WSKBD_BELL_DOPITCH;
sys/dev/wscons/wsdisplay_compat_usl.c
451
bd.which = 0; /* default */
sys/dev/wscons/wskbd.c
1083
(dstp)->pitch = ((srcp)->which & WSKBD_BELL_DOPITCH) ? \
sys/dev/wscons/wskbd.c
1085
(dstp)->period = ((srcp)->which & WSKBD_BELL_DOPERIOD) ? \
sys/dev/wscons/wskbd.c
1087
(dstp)->volume = ((srcp)->which & WSKBD_BELL_DOVOLUME) ? \
sys/dev/wscons/wskbd.c
1089
(dstp)->which = WSKBD_BELL_DOALL; \
sys/dev/wscons/wskbd.c
1131
(dstp)->del1 = ((srcp)->which & WSKBD_KEYREPEAT_DODEL1) ? \
sys/dev/wscons/wskbd.c
1133
(dstp)->delN = ((srcp)->which & WSKBD_KEYREPEAT_DODELN) ? \
sys/dev/wscons/wskbd.c
1135
(dstp)->which = WSKBD_KEYREPEAT_DOALL; \
sys/kern/kern_resource.c
143
syscallarg(int) which;
sys/kern/kern_resource.c
150
switch (SCARG(uap, which)) {
sys/kern/kern_resource.c
227
syscallarg(int) which;
sys/kern/kern_resource.c
241
return (dosetrlimit(p, SCARG(uap, which), &alim));
sys/kern/kern_resource.c
245
dosetrlimit(struct proc *p, u_int which, struct rlimit *limp)
sys/kern/kern_resource.c
252
if (which >= RLIM_NLIMITS || limp->rlim_cur > limp->rlim_max)
sys/kern/kern_resource.c
257
alimp = &p->p_p->ps_limit->pl_rlimit[which];
sys/kern/kern_resource.c
267
alimp = &limit->pl_rlimit[which];
sys/kern/kern_resource.c
269
switch (which) {
sys/kern/kern_resource.c
292
if (which == RLIMIT_CPU && limp->rlim_cur != RLIM_INFINITY &&
sys/kern/kern_resource.c
296
if (which == RLIMIT_STACK) {
sys/kern/kern_resource.c
348
syscallarg(int) which;
sys/kern/kern_resource.c
355
if (SCARG(uap, which) < 0 || SCARG(uap, which) >= RLIM_NLIMITS)
sys/kern/kern_resource.c
358
alimp = limit->pl_rlimit[SCARG(uap, which)];
sys/kern/kern_resource.c
793
lim_cur_proc(struct proc *p, int which)
sys/kern/kern_resource.c
798
KASSERT(which >= 0 && which < RLIM_NLIMITS);
sys/kern/kern_resource.c
801
val = pr->ps_limit->pl_rlimit[which].rlim_cur;
sys/kern/kern_resource.c
89
syscallarg(int) which;
sys/kern/kern_resource.c
95
switch (SCARG(uap, which)) {
sys/kern/kern_time.c
527
setitimer(int which, const struct itimerval *itv, struct itimerval *olditv)
sys/kern/kern_time.c
534
KASSERT(which >= ITIMER_REAL && which <= ITIMER_PROF);
sys/kern/kern_time.c
537
itimer = &pr->ps_timer[which];
sys/kern/kern_time.c
544
if (which == ITIMER_REAL) {
sys/kern/kern_time.c
553
if (which == ITIMER_REAL) {
sys/kern/kern_time.c
561
if (which == ITIMER_VIRTUAL || which == ITIMER_PROF) {
sys/kern/kern_time.c
567
if (which == ITIMER_REAL)
sys/kern/kern_time.c
573
if (which == ITIMER_REAL && timespecisset(&oldits.it_value)) {
sys/kern/kern_time.c
603
syscallarg(int) which;
sys/kern/kern_time.c
607
int which, error;
sys/kern/kern_time.c
609
which = SCARG(uap, which);
sys/kern/kern_time.c
610
if (which < ITIMER_REAL || which > ITIMER_PROF)
sys/kern/kern_time.c
615
setitimer(which, NULL, &aitv);
sys/kern/kern_time.c
629
syscallarg(int) which;
sys/kern/kern_time.c
635
int error, which;
sys/kern/kern_time.c
637
which = SCARG(uap, which);
sys/kern/kern_time.c
638
if (which < ITIMER_REAL || which > ITIMER_PROF)
sys/kern/kern_time.c
662
setitimer(which, newitvp, olditvp);
sys/net/pf.c
645
pf_set_protostate(struct pf_state *st, int which, u_int8_t newstate)
sys/net/pf.c
647
if (which == PF_PEER_DST || which == PF_PEER_BOTH)
sys/net/pf.c
649
if (which == PF_PEER_DST)
sys/net/rtsock.c
1370
rtm_setmetrics(u_long which, const struct rt_metrics *in,
sys/net/rtsock.c
1375
if (which & RTV_MTU)
sys/net/rtsock.c
1377
if (which & RTV_EXPIRE) {
sys/sys/resourcevar.h
100
KASSERT(which >= 0 && which < RLIM_NLIMITS);
sys/sys/resourcevar.h
103
val = limit->pl_rlimit[which].rlim_cur;
sys/sys/resourcevar.h
95
lim_cur(int which)
sys/sys/syscallargs.h
321
syscallarg(int) which;
sys/sys/syscallargs.h
327
syscallarg(int) which;
sys/sys/syscallargs.h
476
syscallarg(int) which;
sys/sys/syscallargs.h
500
syscallarg(int) which;
sys/sys/syscallargs.h
863
syscallarg(int) which;
sys/sys/syscallargs.h
868
syscallarg(int) which;
sys/sys/videoio.h
5489
u_int32_t which;
sys/uvm/uvm_map.c
4862
uvm_map_set_uaddr(struct vm_map *map, struct uvm_addr_state **which,
sys/uvm/uvm_map.c
4868
KASSERT(which != NULL);
sys/uvm/uvm_map.c
4869
KASSERT((void*)map <= (void*)(which) &&
sys/uvm/uvm_map.c
4870
(void*)(which) < (void*)(map + 1));
sys/uvm/uvm_map.c
4876
uvm_addr_destroy(*which);
sys/uvm/uvm_map.c
4877
*which = newval;
usr.bin/mail/cmd2.c
381
ignore1(char **list, struct ignoretab *tab, char *which)
usr.bin/mail/cmd2.c
389
return(igshow(tab, which));
usr.bin/mail/cmd2.c
412
igshow(struct ignoretab *tab, char *which)
usr.bin/mail/cmd2.c
419
printf("No fields currently being %s.\n", which);
usr.bin/rdist/expand.c
128
which = wh;
usr.bin/rdist/expand.c
192
if (IS_ON(which, E_VARS)) {
usr.bin/rdist/expand.c
215
if (IS_ON(which, E_VARS) &&
usr.bin/rdist/expand.c
256
if ((which & ~E_VARS) == 0 || !strcmp((char *)s, "{") ||
usr.bin/rdist/expand.c
278
if (!(which & E_SHELL)) {
usr.bin/rdist/expand.c
279
if (which & E_TILDE)
usr.bin/rdist/expand.c
318
if (which & E_TILDE)
usr.bin/rdist/expand.c
365
if (which & E_TILDE)
usr.bin/rdist/expand.c
47
int which; /* bit mask of types to expand */
usr.bin/rdist/expand.c
571
if (which & E_TILDE) {
usr.bin/ssh/auth-options.c
119
if (!found && (which & OPTIONS_CRITICAL) != 0) {
usr.bin/ssh/auth-options.c
73
u_int which, int crit)
usr.bin/ssh/auth-options.c
96
if ((which & OPTIONS_EXTENSIONS) != 0) {
usr.bin/ssh/dh.c
158
int best, bestcount, which, linenum;
usr.bin/ssh/dh.c
198
which = arc4random_uniform(bestcount);
usr.bin/ssh/dh.c
208
bestcount++ != which) {
usr.bin/ssh/dh.c
218
if (bestcount != which + 1) {
usr.bin/ssh/misc.c
1178
replacearg(arglist *args, u_int which, char *fmt, ...)
usr.bin/ssh/misc.c
1192
if (which >= args->num)
usr.bin/ssh/misc.c
1194
which, args->num);
usr.bin/ssh/misc.c
1195
free(args->list[which]);
usr.bin/ssh/misc.c
1196
args->list[which] = cp;
usr.bin/ssh/ssh-keygen.c
1586
prepare_options_buf(struct sshbuf *c, int which)
usr.bin/ssh/ssh-keygen.c
1598
if ((ext->crit && (which & OPTIONS_EXTENSIONS)) ||
usr.bin/ssh/ssh-keygen.c
1599
(!ext->crit && (which & OPTIONS_CRITICAL)))
usr.bin/ssh/sshconnect.c
729
hostkeys_find_by_key_hostfile(const char *file, const char *which,
usr.bin/ssh/sshconnect.c
734
debug3_f("trying %s hostfile \"%s\"", which, file);
usr.bin/tic/reset_cmd.c
568
int which,
usr.bin/tic/reset_cmd.c
579
(void) which;
usr.bin/tic/reset_cmd.c
582
newer = new_settings->c_cc[which];
usr.bin/tic/reset_cmd.c
583
older = old_settings->c_cc[which];
usr.bin/tr/extern.h
36
enum { STRING1, STRING2 } which;
usr.bin/tr/str.c
254
if (s->which == STRING1)
usr.bin/vi/common/msg.c
502
msg_cmsg(SCR *sp, cmsg_t which, size_t *lenp)
usr.bin/vi/common/msg.c
505
switch (which) {
usr.bin/vi/ex/ex_append.c
27
static int ex_aci(SCR *, EXCMD *, enum which);
usr.bin/vi/ex/ex_append.c
72
ex_aci(SCR *sp, EXCMD *cmdp, enum which cmd)
usr.bin/vi/ex/ex_global.c
30
static int ex_g_setup(SCR *, EXCMD *, enum which);
usr.bin/vi/ex/ex_global.c
62
ex_g_setup(SCR *sp, EXCMD *cmdp, enum which cmd)
usr.bin/vi/ex/ex_read.c
43
enum { R_ARG, R_EXPANDARG, R_FILTER } which;
usr.bin/vi/ex/ex_read.c
64
which = R_ARG;
usr.bin/vi/ex/ex_read.c
74
which = R_FILTER;
usr.bin/vi/ex/ex_read.c
82
which = R_EXPANDARG;
usr.bin/vi/ex/ex_read.c
97
switch (which) {
usr.bin/vi/ex/ex_shift.c
25
static int shift(SCR *, EXCMD *, enum which);
usr.bin/vi/ex/ex_shift.c
67
shift(SCR *sp, EXCMD *cmdp, enum which rl)
usr.bin/vi/ex/ex_util.c
167
ex_emsg(SCR *sp, char *p, exm_t which)
usr.bin/vi/ex/ex_util.c
169
switch (which) {
usr.bin/vi/ex/ex_write.c
124
exwr(SCR *sp, EXCMD *cmdp, enum which cmd)
usr.bin/vi/ex/ex_write.c
31
static int exwr(SCR *, EXCMD *, enum which);
usr.bin/vi/vi/v_itxt.c
167
static int io(SCR *, VICMD *, enum which);
usr.bin/vi/vi/v_itxt.c
194
io(SCR *sp, VICMD *vp, enum which cmd)
usr.bin/vi/vi/v_mark.c
39
static int mark(SCR *, VICMD *, enum which);
usr.bin/vi/vi/v_mark.c
82
mark(SCR *sp, VICMD *vp, enum which cmd)
usr.bin/vi/vi/v_util.c
136
v_emsg(SCR *sp, char *p, vim_t which)
usr.bin/vi/vi/v_util.c
138
switch (which) {
usr.bin/vi/vi/v_util.c
155
which == VIM_NOCOM_B ? M_BERR : M_ERR,
usr.bin/vi/vi/v_word.c
100
fword(SCR *sp, VICMD *vp, enum which type)
usr.bin/vi/vi/v_word.c
260
eword(SCR *sp, VICMD *vp, enum which type)
usr.bin/vi/vi/v_word.c
406
bword(SCR *sp, VICMD *vp, enum which type)
usr.bin/vi/vi/v_word.c
67
static int bword(SCR *, VICMD *, enum which);
usr.bin/vi/vi/v_word.c
68
static int eword(SCR *, VICMD *, enum which);
usr.bin/vi/vi/v_word.c
69
static int fword(SCR *, VICMD *, enum which);
usr.sbin/lldpd/lldpctl.h
68
unsigned int which;