Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/ntp/ntpd/
H A Dkeyword-gen.c368 qsort(ntp_keywords, COUNTOF(ntp_keywords), in generate_fsm()
381 if (1 > token || token >= COUNTOF(sst)) { in generate_fsm()
385 (int)COUNTOF(sst), in generate_fsm()
397 (int)COUNTOF(ntp_keywords), in generate_fsm()
399 (int)COUNTOF(sst) - 1); in generate_fsm()
561 while (my_state < COUNTOF(sst) in create_scan_states()
563 if (my_state >= COUNTOF(sst)) { in create_scan_states()
568 (int)COUNTOF(sst)); in create_scan_states()
659 qsort(ntp_keywords, COUNTOF(ntp_keywords), in generate_token_text()
672 while (i < COUNTOF(ntp_keywords)) { in generate_token_text()
[all …]
H A Dntp_control.c2515 COUNTOF(str)); in ctl_putsys()
2527 COUNTOF(str)); in ctl_putsys()
3269 if (n + 1 >= COUNTOF(a_st)) { in read_status()
3314 INSIST(v->code < COUNTOF(wants)); in read_peervars()
3319 for (i = 1; i < COUNTOF(wants); i++) in read_peervars()
3791 remaining = COUNTOF(sent); in send_mru_entry()
3982 sockaddr_u addr[COUNTOF(last)]; in read_mru_list()
4076 (size_t)si < COUNTOF(last)) { in read_mru_list()
4084 (size_t)si < COUNTOF(addr)) { in read_mru_list()
4250 remaining = COUNTOF(sent); in send_ifstats_entry()
[all …]
H A Dntp_scanner.c86 if (i < COUNTOF(keyword_text)) { in keyword()
756 if (i >= COUNTOF(yytext)) in yylex()
770 if (i >= COUNTOF(yytext)) in yylex()
H A Dntp_peer.c140 for (i = COUNTOF(init_peer_alloc) - 1; i >= 0; i--) in init_peer()
142 total_peer_structs = COUNTOF(init_peer_alloc); in init_peer()
143 peer_free_count = COUNTOF(init_peer_alloc); in init_peer()
H A Drefclock_msfees.c993 ees->second < COUNTOF(deltas)) in ees_receive()
997 char text[16 * COUNTOF(deltas)]; in ees_receive()
1000 for (i = 0; i < COUNTOF(deltas); i++) { in ees_receive()
1001 snprintf(cptr, sizeof(text) / COUNTOF(deltas), in ees_receive()
H A Dntp_config.c3107 DEBUG_INSIST(pao >= 0 && pao < COUNTOF(psl)); in attrtopsl()
3637 if (i < COUNTOF(sys_phone) - 1) { in config_phone()
3643 (COUNTOF(sys_phone) - 1), sn->s); in config_phone()
3726 if (i < COUNTOF(sys_ttl)) in config_ttl()
3731 COUNTOF(sys_ttl), curr_ttl->i); in config_ttl()
5496 for (; prop_index < COUNTOF(keywords); prop_index++) in gettokens_netinfo()
H A Dntp_restrict.c35 for (x = 0; x < (int)COUNTOF((dst)->s6_addr); x++) { \
H A Dntpd.c1424 for (i = 0; i < COUNTOF(scmp_sc); i++) {
H A Dntp_request.c2189 for (i = 0, tr = ctl_traps; it && i < COUNTOF(ctl_traps); i++, tr++) { in req_get_traps()
H A Drefclock_ripencc.c3469 text = (status1 < COUNTOF(sc_text)) in rpt_rcvr_health()
H A Drefclock_jjy.c4504 COUNTOF(printableControlChar) ) { in printableString()
/freebsd-14.2/contrib/ntp/libntp/
H A Dlib_strbuf.c48 for (u = 0; u < COUNTOF(lib_stringbuf); u++) { in init_lib()
67 lib_nextbuf = (1 + mybuf) % COUNTOF(lib_stringbuf); in lib_getbuf()
H A Dstatestr.c411 COUNTOF(peer_st_bits)); in peer_st_flags()
421 COUNTOF(res_match_bits)); in res_match_flags()
431 COUNTOF(res_access_bits)); in res_access_flags()
441 return decode_bitflags(st, " ", k_st_bits, COUNTOF(k_st_bits)); in k_st_flags()
H A Dmodetoa.c27 if (mode >= COUNTOF(modestrings)) { in modetoa()
H A Dnetof.c32 next_netofbuf = (next_netofbuf + 1) % COUNTOF(netofbuf); in netof()
/freebsd-14.2/contrib/ntp/util/
H A Dntptime.c249 for (c = 0; c < COUNTOF(times); c++) { in main()
260 for (c = 1; c < COUNTOF(times); c++) in main()
462 if ((size_t)s < COUNTOF(timex_states)) in timex_state()
H A Dntp-keygen.c364 hostbuf[COUNTOF(hostbuf) - 1] = '\0'; in main()
/freebsd-14.2/contrib/ntp/sntp/tests/
H A Dsntptest.c29 optionProcess(&sntpOptions, COUNTOF(opts), opts); in ActivateOption()
/freebsd-14.2/contrib/ntp/include/
H A Dntp_types.h70 #define COUNTOF(arr) (sizeof(arr) / sizeof((arr)[0])) macro
/freebsd-14.2/contrib/ntp/ntpq/
H A Dntpq-subs.c997 int ind[COUNTOF(assids)]; in findassidrange()
1012 for (a = 0; a < COUNTOF(assids); a++) { in findassidrange()
1018 for (a = 0; a < COUNTOF(assids); a++) in findassidrange()
3236 n < COUNTOF(mru_sort_keywords); in mrulist()
3241 if (n < COUNTOF(mru_sort_keywords)) in mrulist()
3667 const int qdata_chars = COUNTOF(qdata) - 1; in reslist()
3787 for (n = 0; n < COUNTOF(suf); n++) { in collect_display_vdc()
3817 for (n = 0; n < COUNTOF(suf); n++) { in collect_display_vdc()
H A Dntpq.c2241 b < COUNTOF(buf) - 1) in decodets()
2379 words < COUNTOF(list)) in help()
2383 if (words < COUNTOF(list)) in help()
2941 for (i = 0, ilim = COUNTOF(pbuf) - 1; in getkeyid()
3403 for (n = 0; n < COUNTOF(cookedvars); n++) in varfmt()
3618 for (i = 0; i < COUNTOF(tstflagnames); i++) { in tstflags()
/freebsd-14.2/contrib/ntp/ntpdc/
H A Dntpdc_ops.c704 qitemlim = min(pcmd->nargs, COUNTOF(plist)); in showpeer()
780 qitemlim = min(pcmd->nargs, COUNTOF(plist)); in peerstats()
1506 qitemlim = min(pcmd->nargs, COUNTOF(plist)); in unconfig()
2174 qitemlim = min(pcmd->nargs, COUNTOF(plist)); in preset()
2668 qitemlim = min(pcmd->nargs, COUNTOF(clist)); in clockstat()
2851 qitemlim = min(pcmd->nargs, COUNTOF(clist)); in clkbug()
H A Dntpdc.c1975 for (i = 0, ilim = COUNTOF(pbuf) - 1; in getkeyid()
/freebsd-14.2/contrib/ntp/sntp/
H A Dmain.c714 (unsigned)COUNTOF(fam_listheads))); in timeout_queries()
717 for (idx = 0; idx < COUNTOF(fam_listheads); idx++) { in timeout_queries()
/freebsd-14.2/contrib/ntp/
H A DCommitLog4789 Remove redundant includes, use COUNTOF()
4792 ntp_types.h for COUNTOF()
138451 fixes off-by-one bug introduced by [email protected] (COUNTOF(limit) should have
138452 been COUNTOF(limit) - 1).
184066 add COUNTOF(array) macro
184133 COUNTOF() macro moved to ntp_types.h