/freebsd-current/lib/libnv/tests/ |
H A D | nvlist_append_test.c | 53 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 D | ieee80211_action.c | 88 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 D | r21a_calib.c | 77 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 D | stack_protector.c | 22 long guard[nitems(__stack_chk_guard)]; 25 for (i = 0; i < nitems(guard); i++)
|
/freebsd-current/sys/compat/linux/ |
H A D | linux_errno.c | 26 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 D | syscallnames.c | 71 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 D | pipe_overcommit1_test.c | 45 for (i = 0; i < nitems(pipes); i++)
|
/freebsd-current/usr.sbin/bsdinstall/partedit/ |
H A D | diskmenu.h | 50 struct partedit_item *items, int nitems, int *selected);
|
H A D | diskmenu.c | 38 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 D | partedit.c | 51 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 D | automount.c | 87 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 D | ugidfw_test.c | 153 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 D | smbios_subr.c | 86 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 D | param.h | 68 #ifndef nitems 70 #define nitems(x) \ macro
|
/freebsd-current/stand/libsa/ |
H A D | features.c | 35 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 D | fifo_kqueue.c | 66 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 D | getexecname.c | 36 if (sysctl(name, nitems(name), execname, &len, NULL, 0) != 0)
|
/freebsd-current/usr.sbin/bsdconfig/share/packages/ |
H A D | index.awk | 3 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 D | in_cksum_test.c | 46 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 D | m_format.c | 89 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 D | main.c | 50 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 D | print_positional_test.c | 95 swprintf(wbuf1, nitems(wbuf1), 118 mbsrtowcs(wbuf2, &temp, nitems(wbuf2), NULL); 140 mbsrtowcs(wbuf2, &temp, nitems(wbuf2), NULL);
|
/freebsd-current/sys/libkern/ |
H A D | bcd.c | 21 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 D | print-vqp.c | 39 * | 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 D | movejobs.c | 79 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++)
|