Searched refs:nitems (Results 1 - 25 of 1018) sorted by relevance

1234567891011>>

/freebsd-current/lib/libnv/tests/
H A Dnvlist_append_test.c53 size_t nitems; local
66 bool_result = nvlist_get_bool_array(nvl, "nvl/bool", &nitems);
67 CHECK(nitems == 16);
69 for (i = 0; i < nitems; i++)
75 string_result = nvlist_get_string_array(nvl, "nvl/string", &nitems);
76 CHECK(nitems == 2);
91 nvl_result = nvlist_get_nvlist_array(nvl, "nvl/nvl", &nitems);
92 CHECK(nitems == 2);
106 items = nvlist_take_nvlist_array(nvl, "nvl/nvl_array", &nitems);
112 nvlist_move_nvlist_array(nvl, "nvl/nvl_new_array", items, nitems);
[all...]
/freebsd-current/sys/net80211/
H A Dieee80211_action.c88 if (act >= nitems(ba_send_action))
93 if (act >= nitems(ht_send_action))
98 if (act >= nitems(meshpl_send_action))
103 if (act >= nitems(meshaction_send_action))
108 if (act >= nitems(vendor_send_action))
113 if (act >= nitems(vht_send_action))
134 if (act < nitems(ba_send_action))
138 if (act < nitems(ht_send_action))
142 if (act < nitems(meshpl_send_action))
146 if (act < nitems(meshaction_send_actio
[all...]
/freebsd-current/sys/dev/rtwn/rtl8821a/
H A Dr21a_calib.c77 uint32_t saved_bb_vals[nitems(r21a_iq_bb_regs)];
78 uint32_t saved_afe_vals[nitems(r21a_iq_afe_regs)];
79 uint32_t saved_rf_vals[nitems(r21a_iq_rf_regs) * R21A_MAX_NRXCHAINS];
89 nitems(r21a_iq_bb_regs));
91 nitems(r21a_iq_afe_regs));
93 nitems(r21a_iq_rf_regs));
103 nitems(r21a_iq_rf_regs));
105 nitems(r21a_iq_afe_regs));
121 nitems(r21a_iq_bb_regs));
/freebsd-current/sys/kern/
H A Dstack_protector.c22 long guard[nitems(__stack_chk_guard)];
25 for (i = 0; i < nitems(guard); i++)
/freebsd-current/sys/compat/linux/
H A Dlinux_errno.c26 for (i = 1; i < nitems(linux_errtbl); i++) {
31 for (i = 1; i < nitems(linux_to_bsd_errtbl); i++) {
/freebsd-current/lib/libsysdecode/
H A Dsyscallnames.c71 if (code < nitems(syscallnames))
76 if (code < nitems(freebsd32_syscallnames))
82 if (code < nitems(linux_syscallnames))
88 if (code < nitems(linux32_syscallnames))
/freebsd-current/tests/sys/kern/pipe/
H A Dpipe_overcommit1_test.c45 for (i = 0; i < nitems(pipes); i++)
/freebsd-current/usr.sbin/bsdinstall/partedit/
H A Ddiskmenu.h50 struct partedit_item *items, int nitems, int *selected);
H A Ddiskmenu.c38 int nitems, int *focusitem)
45 bsditems = malloc(nitems * sizeof(struct bsddialog_menuitem));
48 for (i = 0; i < nitems; i++) {
82 output = bsddialog_menu(&conf, text, 20, 0, 10, nitems, bsditems,
85 for (i = 0; i < nitems; i++)
37 diskmenu_show(const char *title, const char *text, struct partedit_item *items, int nitems, int *focusitem) argument
H A Dpartedit.c51 static struct partedit_item *read_geom_mesh(struct gmesh *mesh, int *nitems);
53 struct partedit_item **items, int *nitems);
55 static void get_mount_points(struct partedit_item *items, int nitems);
81 int i, op, nitems; local
132 items = read_geom_mesh(&mesh, &nitems);
141 get_mount_points(items, nitems);
143 if (i >= nitems)
144 i = nitems - 1;
145 op = diskmenu_show("Partition Editor", prompt, items, nitems,
344 int i, nitems, erro local
500 read_geom_mesh(struct gmesh *mesh, int *nitems) argument
527 add_geom_children(struct ggeom *gp, int recurse, struct partedit_item **items, int *nitems) argument
614 get_mount_points(struct partedit_item *items, int nitems) argument
[all...]
/freebsd-current/usr.sbin/autofs/
H A Dautomount.c87 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) argument
91 for (i = 0; i < nitems; i++) {
144 const char *prefix, const struct statfs *mntbuf, int nitems)
156 sb = find_statfs(mntbuf, nitems, mountpoint);
187 int i, nitems; local
189 nitems = getmntinfo(&mntbuf, MNT_WAIT);
190 if (nitems <= 0)
195 for (i = 0; i < nitems; i++) {
219 n->n_key, mntbuf, nitems);
225 "/", mntbuf, nitems);
143 mount_if_not_already(const struct node *n, const char *map, const char *options, const char *prefix, const struct statfs *mntbuf, int nitems) argument
265 int i, nitems; local
303 int i, nitems; local
[all...]
/freebsd-current/tests/sys/mac/bsdextended/
H A Dugidfw_test.c153 for (i = 0; i < nitems(test_users); i++, test_num++) {
161 for (i = 0; i < nitems(test_groups); i++, test_num++) {
169 for (i = 0; i < nitems(test_strings); i++) {
223 printf("1..%zu\n", nitems(test_users) + nitems(test_groups) +
224 3 * nitems(test_strings) + 2);
/freebsd-current/sys/dev/smbios/
H A Dsmbios_subr.c86 for (i = 0; i < nitems(vm_bnames); i++)
104 for (i = 0; i < nitems(vm_pnames); i++)
/freebsd-current/tools/build/cross-build/include/common/sys/
H A Dparam.h68 #ifndef nitems
70 #define nitems(x) \ macro
/freebsd-current/stand/libsa/
H A Dfeatures.c35 for (size_t i = 0; i < nitems(feature_map); i++) {
50 for (size_t i = 0; i < nitems(feature_map); i++) {
/freebsd-current/tests/sys/fifo/
H A Dfifo_kqueue.c66 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(kev),
84 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(kev),
93 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(kev),
100 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(kev),
116 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(kev),
132 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(kev), NULL) == 1);
167 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(kev),
171 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(kev),
192 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(kev), NULL) == 1);
195 ATF_REQUIRE(kevent(kq, NULL, 0, kev, nitems(ke
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libspl/os/freebsd/
H A Dgetexecname.c36 if (sysctl(name, nitems(name), execname, &len, NULL, 0) != 0)
/freebsd-current/usr.sbin/bsdconfig/share/packages/
H A Dindex.awk3 k = nitems = 0
6 for (i in src) dest[++nitems] = i
9 for (i = 1; i <= nitems; k = i++)
20 return nitems
/freebsd-current/sbin/ping/tests/
H A Din_cksum_test.c46 sum = in_cksum(data, nitems(data));
58 sum = in_cksum(data, nitems(data));
70 sum = in_cksum(data + 1, nitems(data) - 1);
82 sum = in_cksum(data + 1, nitems(data) - 1);
/freebsd-current/contrib/ncurses/menu/
H A Dm_format.c89 total_rows = (menu->nitems - 1) / cols + 1;
91 minimum(menu->nitems, cols) :
92 (menu->nitems - 1) / total_rows + 1;
/freebsd-current/tools/regression/p1003_1b/
H A Dmain.c50 for (i = 0; i < nitems(tab); i++)
57 for (i = 0; i < nitems(tab); i++) {
73 for (i = 0; i < nitems(tab); i++)
/freebsd-current/lib/libc/tests/stdio/
H A Dprint_positional_test.c95 swprintf(wbuf1, nitems(wbuf1),
118 mbsrtowcs(wbuf2, &temp, nitems(wbuf2), NULL);
140 mbsrtowcs(wbuf2, &temp, nitems(wbuf2), NULL);
/freebsd-current/sys/libkern/
H A Dbcd.c21 CTASSERT(nitems(bcd2bin_data) == LIBKERN_LEN_BCD2BIN);
35 CTASSERT(nitems(bin2bcd_data) == LIBKERN_LEN_BIN2BCD);
39 CTASSERT(nitems(hex2ascii_data) == LIBKERN_LEN_HEX2ASCII + 1);
/freebsd-current/contrib/tcpdump/
H A Dprint-vqp.c39 * | Constant | Packet type | Error Code | nitems |
49 nd_uint8_t nitems; member in struct:vqp_common_header_t
110 uint8_t nitems; local
142 nitems = GET_U_1(vqp_common_header->nitems);
149 nitems,
156 while (nitems != 0 && tlen != 0) {
209 nitems--;
/freebsd-current/usr.sbin/lpr/lpc/
H A Dmovejobs.c79 static int nitems; variable
99 matchcnt = scanq_jobspec(nitems, queue, SCQ_JSORDER, &jobs_wanted,
215 nitems = getq(pp, &queue);
216 if (nitems == 0) {
233 touch_info.newtime = queue[nitems - 1]->job_time + 1;
242 touch_info.newtime = queue[0]->job_time - nitems - 5;
266 for (i = 0; i < nitems; i++)

Completed in 466 milliseconds

1234567891011>>