| /freebsd-14-stable/lib/libnetmap/ |
| HD | nmreq.c | 106 const char *scan = NULL; in nmreq_header_decode() local 113 scan = ifname; in nmreq_header_decode() 115 if (!strncmp(scan, p->prefix, p->len)) in nmreq_header_decode() 122 scan += p->len; in nmreq_header_decode() 124 vpname = index(scan, ':'); in nmreq_header_decode() 129 if (vpname != scan) { in nmreq_header_decode() 136 if (!nm_is_identifier(scan, vpname)) { in nmreq_header_decode() 137 nmctx_ferror(ctx, "%s: invalid identifier '%.*s'", *pifname, vpname - scan, scan); in nmreq_header_decode() 149 scan = vpname; in nmreq_header_decode() 152 for (; *scan && !index("-*^/@", *scan); scan++) in nmreq_header_decode() [all …]
|
| /freebsd-14-stable/sys/net80211/ |
| HD | ieee80211_input.c | 519 struct ieee80211_channel *rxchan, struct ieee80211_scanparams *scan) in ieee80211_parse_beacon() argument 529 scan->status = 0; in ieee80211_parse_beacon() 555 return (scan->status = IEEE80211_BPARSE_BADIELEN)); in ieee80211_parse_beacon() 556 memset(scan, 0, sizeof(*scan)); in ieee80211_parse_beacon() 557 scan->tstamp = frm; frm += 8; in ieee80211_parse_beacon() 558 scan->bintval = le16toh(*(uint16_t *)frm); frm += 2; in ieee80211_parse_beacon() 559 scan->capinfo = le16toh(*(uint16_t *)frm); frm += 2; in ieee80211_parse_beacon() 560 scan->bchan = ieee80211_chan2ieee(ic, rxchan); in ieee80211_parse_beacon() 561 scan->chan = scan->bchan; in ieee80211_parse_beacon() 562 scan->ies = frm; in ieee80211_parse_beacon() [all …]
|
| HD | ieee80211_scan.c | 198 const struct ieee80211_scanner *scan) in ieee80211_scanner_register() argument 202 scanners[mode] = scan; in ieee80211_scanner_register() 207 const struct ieee80211_scanner *scan) in ieee80211_scanner_unregister() argument 211 if (scanners[mode] == scan) in ieee80211_scanner_unregister() 216 ieee80211_scanner_unregister_all(const struct ieee80211_scanner *scan) in ieee80211_scanner_unregister_all() argument 221 if (scanners[m] == scan) in ieee80211_scanner_unregister_all() 235 const struct ieee80211_scanner *scan) in ieee80211_scan_update_locked() argument 243 if (ss->ss_vap != vap || ss->ss_ops != scan) { in ieee80211_scan_update_locked() 256 if (ss->ss_ops != scan) { in ieee80211_scan_update_locked() 265 if (scan == NULL || ss->ss_ops == NULL || in ieee80211_scan_update_locked() [all …]
|
| HD | ieee80211_sta.c | 1421 struct ieee80211_scanparams scan; in sta_recv_mgmt() local 1443 if (ieee80211_parse_beacon(ni, m0, rxchan, &scan) != 0) { in sta_recv_mgmt() 1466 memcpy(ni->ni_tstamp.data, scan.tstamp, in sta_recv_mgmt() 1471 if (ni->ni_erp != scan.erp) { in sta_recv_mgmt() 1475 ni->ni_erp, scan.erp); in sta_recv_mgmt() 1481 ni->ni_erp = scan.erp; in sta_recv_mgmt() 1486 if ((ni->ni_capinfo ^ scan.capinfo) & IEEE80211_CAPINFO_SHORT_SLOTTIME) { in sta_recv_mgmt() 1490 ni->ni_capinfo, scan.capinfo); in sta_recv_mgmt() 1497 (scan.capinfo & IEEE80211_CAPINFO_SHORT_SLOTTIME)); in sta_recv_mgmt() 1499 | (scan.capinfo & IEEE80211_CAPINFO_SHORT_SLOTTIME); in sta_recv_mgmt() [all …]
|
| HD | ieee80211_adhoc.c | 736 struct ieee80211_scanparams scan; in adhoc_recv_mgmt() local 747 if (ieee80211_parse_beacon(ni, m0, rxchan, &scan) != 0) in adhoc_recv_mgmt() 773 ieee80211_add_scan(vap, rxchan, &scan, wh, in adhoc_recv_mgmt() 777 if (scan.capinfo & IEEE80211_CAPINFO_IBSS) { in adhoc_recv_mgmt() 791 if (ieee80211_ibss_node_check_new(ni, &scan)) { in adhoc_recv_mgmt() 792 ni = ieee80211_add_neighbor(vap, wh, &scan); in adhoc_recv_mgmt() 825 ieee80211_init_neighbor(ni, wh, &scan); in adhoc_recv_mgmt() 841 memcpy(ni->ni_tstamp.data, scan.tstamp, in adhoc_recv_mgmt() 852 if (scan.htcap != NULL && scan.htinfo != NULL && in adhoc_recv_mgmt() 855 scan.htcap, scan.htinfo)); in adhoc_recv_mgmt() [all …]
|
| /freebsd-14-stable/contrib/less/ |
| HD | regexp.c | 213 register char *scan; in regcomp() local 255 scan = r->program+1; /* First BRANCH. */ in regcomp() 256 if (OP(regnext(scan)) == END) { /* Only one top-level choice. */ in regcomp() 257 scan = OPERAND(scan); in regcomp() 260 if (OP(scan) == EXACTLY) in regcomp() 261 r->regstart = *OPERAND(scan); in regcomp() 262 else if (OP(scan) == BOL) in regcomp() 276 for (; scan != NULL; scan = regnext(scan)) in regcomp() 277 if (OP(scan) == EXACTLY && ((int) strlen(OPERAND(scan))) >= len) { in regcomp() 278 longest = OPERAND(scan); in regcomp() [all …]
|
| /freebsd-14-stable/sys/kern/ |
| HD | subr_blist.c | 130 static daddr_t blst_leaf_alloc(blmeta_t *scan, daddr_t blk, 132 static daddr_t blst_meta_alloc(blmeta_t *scan, daddr_t cursor, int *count, 134 static void blst_leaf_free(blmeta_t *scan, daddr_t relblk, int count); 135 static void blst_meta_free(blmeta_t *scan, daddr_t freeBlk, daddr_t count, 137 static void blst_copy(blmeta_t *scan, daddr_t blk, daddr_t radix, 139 static daddr_t blst_leaf_fill(blmeta_t *scan, daddr_t blk, int count); 140 static daddr_t blst_meta_fill(blmeta_t *scan, daddr_t allocBlk, daddr_t count, 143 static void blst_radix_print(blmeta_t *scan, daddr_t blk, daddr_t radix, 587 blst_next_leaf_alloc(blmeta_t *scan, daddr_t start, int count, int maxcount) in blst_next_leaf_alloc() argument 597 while (((++scan)->bm_bitmap & 1) == 1 && in blst_next_leaf_alloc() [all …]
|
| /freebsd-14-stable/usr.bin/rpcgen/ |
| HD | rpc_parse.c | 99 scan(TOK_SEMICOLON, &tok); in get_definition() 120 scan(TOK_IDENT, &tok); in def_struct() 122 scan(TOK_LBRACE, &tok); in def_struct() 130 scan(TOK_SEMICOLON, &tok); in def_struct() 151 scan(TOK_IDENT, &tok); in def_program() 153 scan(TOK_LBRACE, &tok); in def_program() 156 scan(TOK_VERSION, &tok); in def_program() 158 scan(TOK_IDENT, &tok); in def_program() 161 scan(TOK_LBRACE, &tok); in def_program() 171 scan(TOK_IDENT, &tok); in def_program() [all …]
|
| /freebsd-14-stable/usr.bin/bsdiff/bsdiff/ |
| HD | bsdiff.c | 121 off_t scan,pos,len; in main() local 206 scan=0;len=0;pos=0; in main() 208 while(scan<newsize) { in main() 211 for(scsc=scan+=len;scan<newsize;scan++) { in main() 212 len=search(I,old,oldsize,new+scan,newsize-scan, in main() 215 for(;scsc<scan+len;scsc++) in main() 223 if((scan+lastoffset<oldsize) && in main() 224 (old[scan+lastoffset] == new[scan])) in main() 228 if((len!=oldscore) || (scan==newsize)) { in main() 230 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in main() [all …]
|
| /freebsd-14-stable/contrib/ntp/libntp/ |
| HD | getopt.c | 31 static char *scan = NULL; /* Private scan pointer. */ variable 66 scan = NULL; in ntp_getopt() 70 if (scan == NULL || *scan == '\0') { in ntp_getopt() 82 scan = argv[ntp_optind++]+1; in ntp_getopt() 85 c = *scan++; in ntp_getopt() 97 if (*scan != '\0') { in ntp_getopt() 98 ntp_optarg = scan; in ntp_getopt() 99 scan = NULL; in ntp_getopt()
|
| /freebsd-14-stable/contrib/llvm-project/openmp/runtime/src/ |
| HD | kmp_settings.cpp | 1119 const char *scan = next; in __kmp_parse_nested_num_threads() local 1196 SKIP_WS(scan); in __kmp_parse_nested_num_threads() 1197 if (*scan == '\0') { in __kmp_parse_nested_num_threads() 1201 if (*scan == ',') { in __kmp_parse_nested_num_threads() 1216 scan++; // skip ',' in __kmp_parse_nested_num_threads() 1217 SKIP_WS(scan); in __kmp_parse_nested_num_threads() 1220 if (*scan >= '0' && *scan <= '9') { in __kmp_parse_nested_num_threads() 1222 const char *buf = scan; in __kmp_parse_nested_num_threads() 1225 SKIP_DIGITS(scan); in __kmp_parse_nested_num_threads() 1228 num = __kmp_str_to_int(buf, *scan); in __kmp_parse_nested_num_threads() [all …]
|
| HD | kmp_affinity.cpp | 1439 #define KMP_ADVANCE_SCAN(scan) \ argument 1440 while (*scan != '\0') { \ 1441 scan++; \ 1455 char *scan = buf; in __kmp_affinity_print_mask() local 1460 KMP_SNPRINTF(scan, end - scan + 1, "{<empty>}"); in __kmp_affinity_print_mask() 1461 KMP_ADVANCE_SCAN(scan); in __kmp_affinity_print_mask() 1462 KMP_ASSERT(scan <= end); in __kmp_affinity_print_mask() 1480 KMP_SNPRINTF(scan, end - scan + 1, "%s", ","); in __kmp_affinity_print_mask() 1481 KMP_ADVANCE_SCAN(scan); in __kmp_affinity_print_mask() 1487 KMP_SNPRINTF(scan, end - scan + 1, "%u-%u", start, previous); in __kmp_affinity_print_mask() [all …]
|
| /freebsd-14-stable/contrib/ntp/ntpd/ |
| HD | rc_cmdlength.c | 21 const char *scan; in remoteconfig_cmdlength() local 32 for (scan = src_buf; scan != src_end; ++scan) { in remoteconfig_cmdlength() 33 ch = scan[0]; in remoteconfig_cmdlength() 37 return (size_t)(scan - src_buf); in remoteconfig_cmdlength()
|
| /freebsd-14-stable/contrib/llvm-project/libcxx/modules/std/ |
| HD | numeric.inc | 26 // [exclusive.scan], exclusive scan 29 // [inclusive.scan], inclusive scan 32 // [transform.exclusive.scan], transform exclusive scan 35 // [transform.inclusive.scan], transform inclusive scan
|
| /freebsd-14-stable/sys/contrib/zlib/ |
| HD | deflate.c | 1350 register Bytef *scan = s->window + s->strstart; /* current string */ in longest_match() local 1368 register ush scan_start = *(ushf*)scan; in longest_match() 1369 register ush scan_end = *(ushf*)(scan + best_len - 1); in longest_match() 1372 register Byte scan_end1 = scan[best_len - 1]; in longest_match() 1373 register Byte scan_end = scan[best_len]; in longest_match() 1421 Assert(scan[2] == match[2], "scan[2]?"); in longest_match() 1422 scan++, match++; in longest_match() 1424 } while (*(ushf*)(scan += 2) == *(ushf*)(match += 2) && in longest_match() 1425 *(ushf*)(scan += 2) == *(ushf*)(match += 2) && in longest_match() 1426 *(ushf*)(scan += 2) == *(ushf*)(match += 2) && in longest_match() [all …]
|
| /freebsd-14-stable/contrib/ntp/sntp/libopts/ |
| HD | nested.c | 433 char const * scan = SPN_VALUE_NAME_CHARS(name + 1); in scan_xml_name() local 434 *nm_len = (size_t)(scan - name); in scan_xml_name() 439 if (IS_WHITESPACE_CHAR(*scan)) { in scan_xml_name() 443 scan = SPN_WHITESPACE_CHARS(scan); in scan_xml_name() 444 scan = parse_attrs(NULL, scan, &option_load_mode, val); in scan_xml_name() 445 if (scan == NULL) in scan_xml_name() 449 if (! IS_END_XML_TOKEN_CHAR(*scan)) in scan_xml_name() 452 if (*scan == '/') { in scan_xml_name() 456 if (*++scan != '>') in scan_xml_name() 460 return scan+1; in scan_xml_name() [all …]
|
| HD | save.c | 519 char * scan = text; in remove_settings() local 522 char * next = scan = strstr(scan, zCfgProg); in remove_settings() 523 if (scan == NULL) in remove_settings() 526 scan = SPN_WHITESPACE_CHARS(scan + zCfgProg_LEN); in remove_settings() 527 if ( (strneqvcmp(scan, opts->pzProgName, (int)name_len) == 0) in remove_settings() 528 && (IS_END_XML_TOKEN_CHAR(scan[name_len])) ) { in remove_settings() 530 scan = next; in remove_settings() 541 char * next = strstr(scan + zCfgProg_LEN, zCfgProg); in remove_settings() 545 new_sz = map_info.txt_size - strlen(scan); in remove_settings() 549 if (lseek(fd, (scan - text), SEEK_SET) < 0) in remove_settings() [all …]
|
| HD | usage.c | 434 char * scan; in optionPrintParagraphs() local 441 scan = buf; in optionPrintParagraphs() 444 scan = strchr(scan, NL); in optionPrintParagraphs() 445 if (scan == NULL) in optionPrintParagraphs() 448 if ((scan - buf) < 40) { in optionPrintParagraphs() 449 scan++; in optionPrintParagraphs() 453 scan++; in optionPrintParagraphs() 454 if ((! isspace((int)*scan)) || (*scan == HT)) in optionPrintParagraphs() 460 if (*scan == NL) { in optionPrintParagraphs() 465 while (*++scan == NL) /*continue*/; in optionPrintParagraphs() [all …]
|
| /freebsd-14-stable/contrib/ofed/libibnetdisc/ |
| HD | ibnetdisc.c | 100 ibnd_scan_t *scan = engine->user_data; in retract_dpath() local 101 f_internal_t *f_int = scan->f_int; in retract_dpath() 103 if (scan->cfg->max_hops && in retract_dpath() 104 f_int->fabric.maxhops_discovered > scan->cfg->max_hops) in retract_dpath() 121 ibnd_scan_t *scan = engine->user_data; in extend_dpath() local 122 f_internal_t *f_int = scan->f_int; in extend_dpath() 124 if (scan->cfg->max_hops && in extend_dpath() 125 f_int->fabric.maxhops_discovered > scan->cfg->max_hops) in extend_dpath() 130 portid->drpath.drslid = (uint16_t) scan->selfportid.lid; in extend_dpath() 140 if (((unsigned) portid->drpath.cnt - scan->initial_hops) > in extend_dpath() [all …]
|
| /freebsd-14-stable/sys/dev/ath/ |
| HD | if_ath_lna_div.c | 325 antcomb->scan = AH_FALSE; in ath_select_ant_div_from_quick_scan() 497 if ((antcomb->scan == 0) in ath_ant_adjust_fast_divbias() 512 if ((antcomb->scan == 0) in ath_ant_adjust_fast_divbias() 522 if ((antcomb->scan == 0) in ath_ant_adjust_fast_divbias() 537 if ((antcomb->scan == 0) in ath_ant_adjust_fast_divbias() 583 if ((antcomb->scan == 0) in ath_ant_adjust_fast_divbias() 598 if ((antcomb->scan == 0) in ath_ant_adjust_fast_divbias() 608 if ((antcomb->scan == 0) in ath_ant_adjust_fast_divbias() 623 if ((antcomb->scan == 0) in ath_ant_adjust_fast_divbias() 761 if (antcomb->scan && antcomb->alt_good) { in ath_lna_rx_comb_scan() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/mediatek/mt76/mt76x2/ |
| HD | mcu.c | 16 u8 bw_index, bool scan) in mt76x2_mcu_set_channel() argument 20 u8 scan; in mt76x2_mcu_set_channel() member 30 .scan = scan, in mt76x2_mcu_set_channel()
|
| /freebsd-14-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| HD | ProgramState.cpp | 576 bool ScanReachableSymbols::scan(nonloc::LazyCompoundVal val) { in scan() function in ScanReachableSymbols 589 bool ScanReachableSymbols::scan(nonloc::CompoundVal val) { in scan() function in ScanReachableSymbols 591 if (!scan(V)) in scan() 597 bool ScanReachableSymbols::scan(const SymExpr *sym) { in scan() function in ScanReachableSymbols 610 bool ScanReachableSymbols::scan(SVal val) { in scan() function in ScanReachableSymbols 612 return scan(X->getRegion()); in scan() 616 return scan(*X); in scan() 619 return scan(X->getLoc()); in scan() 622 return scan(Sym); in scan() 625 return scan(*X); in scan() [all …]
|
| /freebsd-14-stable/usr.bin/lex/ |
| HD | Makefile | 21 nfa.c options.c parse.y regex.c scan.c scanflags.c \ 36 CLEANFILES= scan.c skel.c 37 GENFILES= parse.c parse.h scan.c skel.c 57 ./${PROG} ${LFLAGS} -t ${COMPRESSION} ${FLEXDIR}/scan.l | \
|
| /freebsd-14-stable/contrib/ncurses/ncurses/tty/ |
| HD | lib_tstp.c | 270 SCREEN *scan; in handle_SIGINT() local 271 for (each_screen(scan)) { in handle_SIGINT() 272 if (scan->_ofp != 0 in handle_SIGINT() 273 && NC_ISATTY(fileno(scan->_ofp))) { in handle_SIGINT() 274 scan->_outch = NCURSES_SP_NAME(_nc_outch); in handle_SIGINT() 276 set_term(scan); in handle_SIGINT()
|
| /freebsd-14-stable/sbin/camcontrol/ |
| HD | modeedit.c | 271 struct editentry *scan; in editentry_lookup() local 275 STAILQ_FOREACH(scan, &editlist, link) { in editentry_lookup() 276 if (strcasecmp(scan->name, name) == 0) in editentry_lookup() 277 return (scan); in editentry_lookup() 389 struct pagename *scan; in nameentry_lookup() local 391 SLIST_FOREACH(scan, &namelist, link) { in nameentry_lookup() 392 if (page == scan->page && subpage == scan->subpage) in nameentry_lookup() 393 return (scan); in nameentry_lookup() 838 struct editentry *scan; in modepage_write() local 841 STAILQ_FOREACH(scan, &editlist, link) { in modepage_write() [all …]
|