Home
last modified time | relevance | path

Searched refs:NELEM (Results 1 – 25 of 180) sorted by relevance

12345678

/dragonfly/test/cocci/
H A Duseful_macros.cocci44 +NELEM(T)
47 +NELEM(T)
50 +NELEM(T)
/dragonfly/sys/bus/gpio/gpio_intel/
H A Dgpio_intel.c114 for (i = 0; i < NELEM(sc->intrmaps); i++) { in gpio_intel_attach()
117 for (i = 0; i < NELEM(sc->iomaps); i++) { in gpio_intel_attach()
220 for (i = 0; i < NELEM(sc->intrmaps); i++) { in gpio_intel_alloc_intr()
230 for (i = 0; i < NELEM(sc->intrmaps); i++) { in gpio_intel_alloc_intr()
311 for (i = 0; i < NELEM(sc->iomaps); i++) { in gpio_intel_alloc_io_pin()
317 for (i = 0; i < NELEM(sc->iomaps); i++) { in gpio_intel_alloc_io_pin()
/dragonfly/usr.bin/objformat/
H A Dobjformat.c57 #ifndef NELEM
58 #define NELEM(ary) (sizeof(ary) / sizeof((ary)[0])) macro
127 for (cmds = commands; cmds < &commands[NELEM(commands) - 1]; ++cmds) { in main()
/dragonfly/sys/sys/
H A Ddtype.h72 #define DKMAXTYPES (NELEM(dktypenames) - 1)
190 #define FSMAXTYPES (NELEM(fstypenames) - 1)
H A Dparam.h385 #define nitems(x) NELEM(x)
419 #define NELEM(ary) (sizeof(ary) / sizeof((ary)[0])) macro
/dragonfly/libexec/talkd/
H A Dprint.c46 #define NTYPES NELEM(types)
50 #define NANSWERS NELEM(answers)
/dragonfly/usr.sbin/mtree/
H A Dmtree.c117 for (i = 0; i < NELEM(flavors); i++) in main()
122 if (i == NELEM(flavors)) in main()
315 for (i = 0; i < NELEM(flavors); i++) in usage()
/dragonfly/usr.bin/ypcat/
H A Dypcat.c99 for (i = 0; i < NELEM(ypaliases); i++) in main()
124 for (i = 0; (!notrans) && i < NELEM(ypaliases); i++) in main()
/dragonfly/usr.bin/ypmatch/
H A Dypmatch.c84 for (i = 0; i < NELEM(ypaliases); i++) in main()
109 for (i = 0; (!notrans) && i < NELEM(ypaliases); i++) in main()
/dragonfly/games/colorbars/
H A Dcolorbars.c52 size_t lengths[NELEM(colorInfo)]; in main()
54 static const size_t numcolors = NELEM(colorInfo); in main()
/dragonfly/sys/net/
H A Dnetisr.c400 KASSERT((num > 0 && num <= NELEM(netisrs)), in netisr_queue()
462 KASSERT((num > 0 && num <= NELEM(netisrs)), ("bad isr %d", num)); in netisr_handle()
539 KASSERT((num > 0 && num <= NELEM(netisrs)), in netisr_register()
559 KASSERT((num > 0 && num <= NELEM(netisrs)), in netisr_register_hashcheck()
701 KASSERT((num > 0 && num <= NELEM(netisrs)), in schednetisr()
/dragonfly/usr.bin/ypwhich/
H A Dypwhich.c152 for (i = 0; i < NELEM(ypaliases); i++) in main()
207 for (i = 0; (!notrans) && i < NELEM(ypaliases); i++) in main()
/dragonfly/usr.bin/systat/
H A Dmain.c206 (void) getloadavg(avenrun, NELEM(avenrun)); in display()
235 (void) getloadavg(avenrun, NELEM(avenrun)); in load()
/dragonfly/sys/dev/powermng/kate/
H A Dkate.c139 for (i = 0; i < NELEM(kate_proc); i++) in kate_probe()
173 for (i = 0; i < NELEM(kate_proc) && sc->sc_rev == '\0'; i++) in kate_attach()
/dragonfly/usr.bin/c89/
H A Dc89.c42 #define N_ARGS_PREPENDED NELEM(args_prepended)
/dragonfly/lib/libc/resolv/
H A Dherror.c84 int h_nerr = { NELEM(h_errlist) };
/dragonfly/sys/dev/drm/include/linux/
H A Dhashtable.h64 #define __arraycount(array) NELEM(array)
/dragonfly/sys/netproto/mpls/
H A Dmpls_proto.c88 .dom_protoswNPROTOSW = &mplssw[NELEM(mplssw)],
/dragonfly/sys/kern/
H A Duipc_proto.c83 .dom_protoswNPROTOSW = &localsw[NELEM(localsw)],
H A Dtty_conf.c79 int nlinesw = NELEM(linesw);
/dragonfly/sys/bus/cam/scsi/
H A Dscsi_all.c148 NELEM(plextor_cd_ops),
621 NELEM(scsi_op_quirk_table), in scsi_op_desc()
629 num_ops[1] = NELEM(scsi_op_codes); in scsi_op_desc()
640 num_ops[0] = NELEM(scsi_op_codes); in scsi_op_desc()
710 const int sense_key_table_size = NELEM(sense_key_table);
730 NELEM(quantum_fireball_entries),
741 NELEM(sony_mo_entries),
747 const int sense_quirk_table_size = NELEM(sense_quirk_table);
2647 const int asc_table_size = NELEM(asc_table);
3497 num_syncrates = NELEM(scsi_syncrates); in scsi_calc_syncsrate()
[all …]
/dragonfly/usr.sbin/boot0cfg/
H A Dboot0cfg.c66 static const int nopt = NELEM(opttbl);
357 for (i = 0; i < NELEM(ident); i++) { in boot0bs()
/dragonfly/usr.sbin/pfctl/
H A Dpfctl_parser.c212 for (i=0; i < NELEM(icmp_type); i++) { in geticmptypebynumber()
217 for (i=0; i < NELEM(icmp6_type); i++) { in geticmptypebynumber()
231 for (i=0; i < NELEM(icmp_type); i++) { in geticmptypebyname()
236 for (i=0; i < NELEM(icmp6_type); i++) { in geticmptypebyname()
250 for (i=0; i < NELEM(icmp_code); i++) { in geticmpcodebynumber()
256 for (i=0; i < NELEM(icmp6_code); i++) { in geticmpcodebynumber()
271 for (i=0; i < NELEM(icmp_code); i++) { in geticmpcodebyname()
277 for (i=0; i < NELEM(icmp6_code); i++) { in geticmpcodebyname()
/dragonfly/usr.sbin/rtadvd/
H A Dif.c422 if (sysctl(mib, NELEM(mib), NULL, &len, NULL, 0) < in update_ifinfo()
432 if (sysctl(mib, NELEM(mib), msg, &len, NULL, 0) < in update_ifinfo()
626 if (sysctl(mib, NELEM(mib), &value, &size, NULL, 0) in getinet6sysctl()
/dragonfly/sys/ddb/
H A Ddb_variables.c54 static struct db_variable *db_evars = db_vars + NELEM(db_vars);

12345678