Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/ntp/ntpd/
H A Dkeyword-gen.c364 qsort(ntp_keywords, COUNTOF(ntp_keywords), in generate_fsm()
377 if (1 > token || token >= COUNTOF(sst)) { in generate_fsm()
381 (int)COUNTOF(sst), in generate_fsm()
393 (int)COUNTOF(ntp_keywords), in generate_fsm()
395 (int)COUNTOF(sst) - 1); in generate_fsm()
557 while (my_state < COUNTOF(sst) in create_scan_states()
559 if (my_state >= COUNTOF(sst)) { in create_scan_states()
564 (int)COUNTOF(sst)); in create_scan_states()
655 qsort(ntp_keywords, COUNTOF(ntp_keywords), in generate_token_text()
668 while (i < COUNTOF(ntp_keywords)) { in generate_token_text()
[all …]
H A Dntp_control.c2521 COUNTOF(str)); in ctl_putsys()
2533 COUNTOF(str)); in ctl_putsys()
3275 if (n + 1 >= COUNTOF(a_st)) { in read_status()
3320 INSIST(v->code < COUNTOF(wants)); in read_peervars()
3325 for (i = 1; i < COUNTOF(wants); i++) in read_peervars()
3802 remaining = COUNTOF(sent); in send_mru_entry()
3993 sockaddr_u addr[COUNTOF(last)]; in read_mru_list()
4087 (size_t)si < COUNTOF(last)) { in read_mru_list()
4095 (size_t)si < COUNTOF(addr)) { in read_mru_list()
4261 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_restrict.c49 for (idx = 0; idx < (int)COUNTOF((dst)->s6_addr); idx++) { \
H A Dntp_config.c3538 if (i < COUNTOF(sys_phone) - 1) { in config_phone()
3544 (COUNTOF(sys_phone) - 1), sn->s); in config_phone()
3627 if (i < COUNTOF(sys_ttl)) in config_ttl()
3632 COUNTOF(sys_ttl), curr_ttl->i); in config_ttl()
5307 for (; prop_index < COUNTOF(keywords); prop_index++) in gettokens_netinfo()
H A Dntpd.c1406 for (i = 0; i < COUNTOF(scmp_sc); i++) {
H A Dntp_request.c2180 for (i = 0, tr = ctl_traps; it && i < COUNTOF(ctl_traps); i++, tr++) { in req_get_traps()
H A Drefclock_jjy.c4504 COUNTOF(printableControlChar) ) { in printableString()
H A Drefclock_ripencc.c3469 text = (status1 < COUNTOF(sc_text)) in rpt_rcvr_health()
/freebsd-13.1/contrib/ntp/libntp/
H A Dstatestr.c412 COUNTOF(peer_st_bits)); in peer_st_flags()
422 COUNTOF(res_match_bits)); in res_match_flags()
432 COUNTOF(res_access_bits)); in res_access_flags()
442 return decode_bitflags(st, " ", k_st_bits, COUNTOF(k_st_bits)); in k_st_flags()
H A Dmodetoa.c28 if (mode >= COUNTOF(modestrings)) { in modetoa()
H A Dnetof.c25 next_netofbuf = (next_netofbuf + 1) % COUNTOF(netofbuf); in netof()
/freebsd-13.1/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.c360 hostbuf[COUNTOF(hostbuf) - 1] = '\0'; in main()
/freebsd-13.1/contrib/ntp/include/
H A Dlib_strbuf.h29 lib_nextbuf %= COUNTOF(lib_stringbuf); \
H A Dntp_types.h70 #define COUNTOF(arr) (sizeof(arr) / sizeof((arr)[0])) macro
/freebsd-13.1/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()
3206 n < COUNTOF(mru_sort_keywords); in mrulist()
3211 if (n < COUNTOF(mru_sort_keywords)) in mrulist()
3637 const int qdata_chars = COUNTOF(qdata) - 1; in reslist()
3757 for (n = 0; n < COUNTOF(suf); n++) { in collect_display_vdc()
3787 for (n = 0; n < COUNTOF(suf); n++) { in collect_display_vdc()
H A Dntpq.c2194 b < COUNTOF(buf) - 1) in decodets()
2332 words < COUNTOF(list)) in help()
2336 if (words < COUNTOF(list)) in help()
2894 for (i = 0, ilim = COUNTOF(pbuf) - 1; in getkeyid()
3356 for (n = 0; n < COUNTOF(cookedvars); n++) in varfmt()
3571 for (i = 0; i < COUNTOF(tstflagnames); i++) { in tstflags()
/freebsd-13.1/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.c1957 for (i = 0, ilim = COUNTOF(pbuf) - 1; in getkeyid()
/freebsd-13.1/contrib/ntp/sntp/
H A Dmain.c713 (unsigned)COUNTOF(fam_listheads))); in timeout_queries()
716 for (idx = 0; idx < COUNTOF(fam_listheads); idx++) { in timeout_queries()
/freebsd-13.1/contrib/ntp/
H A DCommitLog129095 fixes off-by-one bug introduced by [email protected] (COUNTOF(limit) should have
129096 been COUNTOF(limit) - 1).
174710 add COUNTOF(array) macro
174777 COUNTOF() macro moved to ntp_types.h