/netbsd-current/sys/dev/i2c/ |
H A D | sht4x.c | 246 for (i = 0; i < __arraycount(sht4x_resolutions); i++) { 253 if (i == __arraycount(sht4x_resolutions)) 321 for (i = 0; i < __arraycount(sht4x_heaterpulses); i++) { 328 if (i == __arraycount(sht4x_heaterpulses)) 340 for(int i = 0;i < __arraycount(sht4x_timings);i++) { 560 sc->sc_numsensors = __arraycount(sht4x_sensors); 671 for (i = 0; i < __arraycount(sht4x_resolutions); i++) { 679 if (i == __arraycount(sht4x_resolutions)) 682 for (i = 0; i < __arraycount(sht4x_heateron_commands); i++) { 691 if (i == __arraycount(sht4x_heateron_command [all...] |
/netbsd-current/sys/arch/evbmips/gdium/ |
H A D | gdium_intr.c | 122 struct gdium_intrhead gdium_intrtab[__arraycount(gdium_irqmap)]; 193 for (i = 0; i < __arraycount(gdium_irqmap); i++) { 238 KASSERT(irq < __arraycount(gdium_irqmap)); 368 if (ih >= __arraycount(gdium_irqmap)) 387 if (ih >= __arraycount(gdium_irqmap))
|
/netbsd-current/tests/lib/libc/stdlib/ |
H A D | t_strtoi.c | 135 for (i = 0; i < __arraycount(t); i++) { 182 for (i = 0; i < __arraycount(t); i++) { 225 for (i = 0; i < __arraycount(t); i++) { 257 for (i = 0; i < __arraycount(t); i++) { 314 for (i = 0; i < __arraycount(t); i++) {
|
/netbsd-current/usr.bin/scmdctl/ |
H A D | scmdctl.c | 78 for(long unsigned int i = 0;i < __arraycount(scmdcmds);i++) { 258 valid = valid_cmd(scmdcmds,__arraycount(scmdcmds),argv[1]); 284 validsub = valid_cmd(motorsubcmds,__arraycount(motorsubcmds),argv[2]); 449 validsub = valid_cmd(updateratesubcmds,__arraycount(updateratesubcmds),argv[2]); 489 validsub = valid_cmd(ebussubcmds,__arraycount(ebussubcmds),argv[2]); 497 for(ebus_s = 0; ebus_s < __arraycount(ebus_speeds);ebus_s++) 500 if (ebus_s == __arraycount(ebus_speeds)) { 530 validsub = valid_cmd(locksubcmds,__arraycount(locksubcmds),argv[2]); 532 lock_type = valid_cmd(lockcmdtypes,__arraycount(lockcmdtypes),argv[3]);
|
/netbsd-current/sys/arch/arm/ti/ |
H A D | ti_gpio.c | 183 if (pin >= __arraycount(sc->sc_pins)) 296 if (ipl != IPL_VM || pin >= __arraycount(sc->sc_pins)) 379 if (pin >= __arraycount(sc->sc_pins)) 399 KASSERT(pin < __arraycount(sc->sc_pins)); 414 KASSERT(pin < __arraycount(sc->sc_pins)); 427 KASSERT(pin < __arraycount(sc->sc_pins)); 441 if (ipl != IPL_VM || pin < 0 || pin >= __arraycount(sc->sc_pins)) 549 for (pin = 0; pin < __arraycount(sc->sc_pins); pin++) { 562 gba.gba_npins = __arraycount(sc->sc_pins);
|
/netbsd-current/usr.sbin/sdpd/ |
H A D | compat.c | 579 sdp_put_seq(buf, 18 + 3 * __arraycount(proto)); 583 sdp_put_seq(buf, 8 + 3 * __arraycount(proto)); 586 sdp_put_seq(buf, 3 * __arraycount(proto)); 587 for (i = 0; i < __arraycount(proto); i++) 649 sdp_put_seq(buf, 18 + 3 * __arraycount(proto)); 653 sdp_put_seq(buf, 8 + 3 * __arraycount(proto)); 656 sdp_put_seq(buf, 3 * __arraycount(proto)); 657 for (i = 0; i < __arraycount(proto); i++) 713 sdp_put_seq(buf, 18 + 3 * __arraycount(proto)); 717 sdp_put_seq(buf, 8 + 3 * __arraycount(prot [all...] |
/netbsd-current/tests/lib/libc/stdio/ |
H A D | t_fopen.c | 177 for (i = 0; i < __arraycount(mode); i++) { 274 for (i = 0; i < __arraycount(mode); i++) { 435 for (i = 0; i < __arraycount(devs); i++) { 437 for (j = 0; j < __arraycount(mode); j++) { 475 for (j = 0; j < __arraycount(mode); j++) { 559 for (i = 0; i < __arraycount(std); i++) {
|
/netbsd-current/sys/arch/zaurus/dev/ |
H A D | zkbd.c | 248 sc->sc_nsense = __arraycount(gpio_sense_pins_c3000); 249 sc->sc_nstrobe = __arraycount(gpio_strobe_pins_c3000); 251 sc->sc_nstuck = __arraycount(stuck_keys_c3000); 264 sc->sc_nsense = __arraycount(gpio_sense_pins_c860); 265 sc->sc_nstrobe = __arraycount(gpio_strobe_pins_c860); 267 sc->sc_nstuck = __arraycount(stuck_keys_c860);
|
/netbsd-current/usr.sbin/btattach/ |
H A D | btattach.c | 239 if (i == __arraycount(types)) 335 for (i = 0; i < __arraycount(types); i++) 390 if (writev(fd, iov, __arraycount(iov)) < 0) 506 n = uart_recv_pkt(fd, iov, __arraycount(iov)); 538 n = uart_recv_pkt(fd, iov, __arraycount(iov)); 610 for (i = 0; i < __arraycount(bauds); i++) {
|
/netbsd-current/tests/lib/libc/sys/ |
H A D | t_setrlimit.c | 82 buf = calloc(__arraycount(rlimit), sizeof(int)); 87 for (i = lim = 0; i < __arraycount(rlimit); i++) { 110 for (i = 0; i < __arraycount(rlimit); i++) { 141 for (i = 0; i < __arraycount(rlimit); i++) { 161 for (i = 0; i < __arraycount(rlimit); i++) { 496 for (i = 0; i < __arraycount(rlimit); i++) {
|
/netbsd-current/sys/compat/linux32/arch/aarch64/ |
H A D | linux32_machdep.c | 95 CTASSERT(__arraycount(aux->vfp.ufp.fpregs) == 96 __arraycount(vfpregs->__vfp_fstmx)); 97 for (i = 0; i < __arraycount(aux->vfp.ufp.fpregs); i++) 155 CTASSERT(__arraycount(vfpregs->__vfp_fstmx) == 156 __arraycount(aux->vfp.ufp.fpregs)); 157 for (i = 0; i < __arraycount(vfpregs->__vfp_fstmx); i++)
|
/netbsd-current/sys/arch/mips/atheros/ |
H A D | ar_conf.c | 122 __CTASSERT(__arraycount(chips) > 0); 176 ac < chips + __arraycount(chips);
|
/netbsd-current/tests/rump/rumpkern/h_client/ |
H A D | h_stresscli.c | 89 if (rump_sys___sysctl(hostnamemib, __arraycount(hostnamemib), 165 __arraycount(hostnamemib), NULL, NULL,
|
/netbsd-current/tests/lib/libusbhid/ |
H A D | t_usbhid.c | 125 __arraycount(range_test_report_descriptor))) != NULL); 144 __arraycount(unsigned_range_test_report_descriptor))) != NULL); 188 __arraycount(range_test_report_descriptor))) != NULL); 207 __arraycount(unsigned_range_test_report_descriptor))) != NULL); 252 __arraycount(range_test_report_descriptor))) != NULL); 292 __arraycount(unsigned_range_test_report_descriptor))) != NULL); 347 __arraycount(range_test_report_descriptor))) != NULL); 382 __arraycount(range_test_report_descriptor))) != NULL);
|
/netbsd-current/tests/lib/libm/ |
H A D | t_cosh.c | 70 for (i = 0; i < __arraycount(values); i++) { 167 for (i = 0; i < __arraycount(values); i++) {
|
/netbsd-current/tests/net/if_loop/ |
H A D | t_pr.c | 135 for (i = 0; i < __arraycount(ans); i++) 138 if (i == __arraycount(ans)) {
|
/netbsd-current/lib/libutil/ |
H A D | getfsspecname.c | 55 static const unsigned int miblen = __arraycount(mib); 71 static const unsigned int mib_rootlen = __arraycount(mib_root);
|
/netbsd-current/sbin/gpt/ |
H A D | add.c | 64 addhelp, __arraycount(addhelp), 80 utf8_to_utf16(xname, ent->ent_name, __arraycount(ent->ent_name));
|
/netbsd-current/sys/arch/pmax/tc/ |
H A D | tcbus.c | 227 for (i = 0; i < __arraycount(cnboards); i++) { 232 if (i == __arraycount(cnboards))
|
/netbsd-current/sys/arch/arm/broadcom/ |
H A D | bcm53xx_rng.c | 172 if (nwords > __arraycount(data)) 173 nwords = __arraycount(data);
|
/netbsd-current/sys/arch/arm/sunxi/ |
H A D | sun9i_a80_gpio.c | 214 .npins = __arraycount(a80_pins), 220 .npins = __arraycount(a80_r_pins),
|
/netbsd-current/external/bsd/blocklist/test/ |
H A D | srvtest.c | 212 if (poll(pfd, __arraycount(pfd), INFTIM) == -1) 214 for (size_t i = 0; i < __arraycount(pfd); i++) {
|
/netbsd-current/sys/dev/audio/ |
H A D | audiobell.c | 163 wave1count = __arraycount(sinewave) / step; 194 j %= __arraycount(sinewave);
|
/netbsd-current/sys/arch/arc/jazz/ |
H A D | jazzio.c | 127 for (i = 0; i < __arraycount(jazzio_intrtab); i++) { 174 if (intr < 0 || intr >= __arraycount(jazzio_intrtab))
|
/netbsd-current/sys/arch/mips/adm5120/dev/ |
H A D | admgpio.c | 118 for (pin = 0; pin < __arraycount(sc->sc_pins); pin++) { 137 gba.gba_npins = __arraycount(sc->sc_pins);
|