Searched refs:__arraycount (Results 176 - 200 of 1159) sorted by relevance

1234567891011>>

/netbsd-current/sys/dev/i2c/
H A Dsht4x.c246 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 Dgdium_intr.c122 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 Dt_strtoi.c135 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 Dscmdctl.c78 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 Dti_gpio.c183 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 Dcompat.c579 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 Dt_fopen.c177 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 Dzkbd.c248 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 Dbtattach.c239 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 Dt_setrlimit.c82 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 Dlinux32_machdep.c95 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 Dar_conf.c122 __CTASSERT(__arraycount(chips) > 0);
176 ac < chips + __arraycount(chips);
/netbsd-current/tests/rump/rumpkern/h_client/
H A Dh_stresscli.c89 if (rump_sys___sysctl(hostnamemib, __arraycount(hostnamemib),
165 __arraycount(hostnamemib), NULL, NULL,
/netbsd-current/tests/lib/libusbhid/
H A Dt_usbhid.c125 __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 Dt_cosh.c70 for (i = 0; i < __arraycount(values); i++) {
167 for (i = 0; i < __arraycount(values); i++) {
/netbsd-current/tests/net/if_loop/
H A Dt_pr.c135 for (i = 0; i < __arraycount(ans); i++)
138 if (i == __arraycount(ans)) {
/netbsd-current/lib/libutil/
H A Dgetfsspecname.c55 static const unsigned int miblen = __arraycount(mib);
71 static const unsigned int mib_rootlen = __arraycount(mib_root);
/netbsd-current/sbin/gpt/
H A Dadd.c64 addhelp, __arraycount(addhelp),
80 utf8_to_utf16(xname, ent->ent_name, __arraycount(ent->ent_name));
/netbsd-current/sys/arch/pmax/tc/
H A Dtcbus.c227 for (i = 0; i < __arraycount(cnboards); i++) {
232 if (i == __arraycount(cnboards))
/netbsd-current/sys/arch/arm/broadcom/
H A Dbcm53xx_rng.c172 if (nwords > __arraycount(data))
173 nwords = __arraycount(data);
/netbsd-current/sys/arch/arm/sunxi/
H A Dsun9i_a80_gpio.c214 .npins = __arraycount(a80_pins),
220 .npins = __arraycount(a80_r_pins),
/netbsd-current/external/bsd/blocklist/test/
H A Dsrvtest.c212 if (poll(pfd, __arraycount(pfd), INFTIM) == -1)
214 for (size_t i = 0; i < __arraycount(pfd); i++) {
/netbsd-current/sys/dev/audio/
H A Daudiobell.c163 wave1count = __arraycount(sinewave) / step;
194 j %= __arraycount(sinewave);
/netbsd-current/sys/arch/arc/jazz/
H A Djazzio.c127 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 Dadmgpio.c118 for (pin = 0; pin < __arraycount(sc->sc_pins); pin++) {
137 gba.gba_npins = __arraycount(sc->sc_pins);

Completed in 328 milliseconds

1234567891011>>