Home
last modified time | relevance | path

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

12345678910>>...22

/src/lib/libnetmap/
H A Dnmreq.c106 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 …]
/src/sys/net80211/
H A Dieee80211_input.c517 struct ieee80211_channel *rxchan, struct ieee80211_scanparams *scan) in ieee80211_parse_beacon() argument
527 scan->status = 0; in ieee80211_parse_beacon()
553 return (scan->status = IEEE80211_BPARSE_BADIELEN)); in ieee80211_parse_beacon()
554 memset(scan, 0, sizeof(*scan)); in ieee80211_parse_beacon()
555 scan->tstamp = frm; frm += 8; in ieee80211_parse_beacon()
556 scan->bintval = le16toh(*(uint16_t *)frm); frm += 2; in ieee80211_parse_beacon()
557 scan->capinfo = le16toh(*(uint16_t *)frm); frm += 2; in ieee80211_parse_beacon()
558 scan->bchan = ieee80211_chan2ieee(ic, rxchan); in ieee80211_parse_beacon()
559 scan->chan = scan->bchan; in ieee80211_parse_beacon()
560 scan->ies = frm; in ieee80211_parse_beacon()
[all …]
H A Dieee80211_scan.c197 const struct ieee80211_scanner *scan) in ieee80211_scanner_register() argument
201 scanners[mode] = scan; in ieee80211_scanner_register()
206 const struct ieee80211_scanner *scan) in ieee80211_scanner_unregister() argument
210 if (scanners[mode] == scan) in ieee80211_scanner_unregister()
215 ieee80211_scanner_unregister_all(const struct ieee80211_scanner *scan) in ieee80211_scanner_unregister_all() argument
220 if (scanners[m] == scan) in ieee80211_scanner_unregister_all()
234 const struct ieee80211_scanner *scan) in ieee80211_scan_update_locked() argument
242 if (ss->ss_vap != vap || ss->ss_ops != scan) { in ieee80211_scan_update_locked()
255 if (ss->ss_ops != scan) { in ieee80211_scan_update_locked()
264 if (scan == NULL || ss->ss_ops == NULL || in ieee80211_scan_update_locked()
[all …]
H A Dieee80211_sta.c1414 struct ieee80211_scanparams scan; in sta_recv_mgmt() local
1436 if (ieee80211_parse_beacon(ni, m0, rxchan, &scan) != 0) { in sta_recv_mgmt()
1459 memcpy(ni->ni_tstamp.data, scan.tstamp, in sta_recv_mgmt()
1464 if (ni->ni_erp != scan.erp) { in sta_recv_mgmt()
1468 ni->ni_erp, scan.erp); in sta_recv_mgmt()
1474 ni->ni_erp = scan.erp; in sta_recv_mgmt()
1479 if ((ni->ni_capinfo ^ scan.capinfo) & IEEE80211_CAPINFO_SHORT_SLOTTIME) { in sta_recv_mgmt()
1483 ni->ni_capinfo, scan.capinfo); in sta_recv_mgmt()
1490 (scan.capinfo & IEEE80211_CAPINFO_SHORT_SLOTTIME)); in sta_recv_mgmt()
1492 | (scan.capinfo & IEEE80211_CAPINFO_SHORT_SLOTTIME); in sta_recv_mgmt()
[all …]
/src/sys/contrib/dev/mediatek/mt76/
H A Dscan.c9 struct mt76_phy *phy = dev->scan.phy; in mt76_scan_complete()
19 if (dev->scan.chan && phy->main_chandef.chan && in mt76_scan_complete()
22 mt76_put_vif_phy_link(phy, dev->scan.vif, dev->scan.mlink); in mt76_scan_complete()
23 memset(&dev->scan, 0, sizeof(dev->scan)); in mt76_scan_complete()
38 struct cfg80211_scan_request *req = dev->scan.req; in mt76_scan_send_probe()
39 struct ieee80211_vif *vif = dev->scan.vif; in mt76_scan_send_probe()
40 struct mt76_vif_link *mvif = dev->scan.mlink; in mt76_scan_send_probe()
41 enum nl80211_band band = dev->scan.chan->band; in mt76_scan_send_probe()
42 struct mt76_phy *phy = dev->scan.phy; in mt76_scan_send_probe()
86 struct cfg80211_scan_request *req = dev->scan.req; in mt76_scan_work()
[all …]
/src/contrib/less/
H A Dregexp.c213 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 …]
/src/sys/kern/
H A Dsubr_blist.c130 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 …]
/src/usr.bin/rpcgen/
H A Drpc_parse.c91 scan(TOK_SEMICOLON, &tok); in get_definition()
112 scan(TOK_IDENT, &tok); in def_struct()
114 scan(TOK_LBRACE, &tok); in def_struct()
122 scan(TOK_SEMICOLON, &tok); in def_struct()
143 scan(TOK_IDENT, &tok); in def_program()
145 scan(TOK_LBRACE, &tok); in def_program()
148 scan(TOK_VERSION, &tok); in def_program()
150 scan(TOK_IDENT, &tok); in def_program()
153 scan(TOK_LBRACE, &tok); in def_program()
163 scan(TOK_IDENT, &tok); in def_program()
[all …]
/src/usr.bin/bsdiff/bsdiff/
H A Dbsdiff.c121 off_t scan,pos,len; in main() local
204 scan=0;len=0;pos=0; in main()
206 while(scan<newsize) { in main()
209 for(scsc=scan+=len;scan<newsize;scan++) { in main()
210 len=search(I,old,oldsize,new+scan,newsize-scan, in main()
213 for(;scsc<scan+len;scsc++) in main()
221 if((scan+lastoffset<oldsize) && in main()
222 (old[scan+lastoffset] == new[scan])) in main()
226 if((len!=oldscore) || (scan==newsize)) { in main()
228 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in main()
[all …]
/src/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_settings.cpp1119 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 …]
H A Dkmp_affinity.cpp1439 #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 …]
/src/contrib/ntp/libntp/
H A Dgetopt.c31 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()
/src/contrib/ntp/ntpd/
H A Drc_cmdlength.c21 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()
/src/contrib/llvm-project/libcxx/modules/std/
H A Dnumeric.inc26 // [exclusive.scan], exclusive scan
29 // [inclusive.scan], inclusive scan
32 // [transform.exclusive.scan], transform exclusive scan
35 // [transform.inclusive.scan], transform inclusive scan
/src/sys/contrib/dev/iwlwifi/mld/
H A Dscan.c219 enum iwl_mld_traffic_load load = mld->scan.traffic_load.status; in iwl_mld_get_scan_type()
323 for (int i = 0; i < ARRAY_SIZE(mld->scan.uid_status); i++) in iwl_mld_scan_uid_by_status()
324 if (mld->scan.uid_status[i] == status) in iwl_mld_scan_uid_by_status()
459 mld->scan.pass_all_sched_res == SCHED_SCAN_PASS_ALL_STATE_ENABLED) in iwl_mld_scan_get_cmd_gen_flags()
757 !mld->scan.last_ebs_failed && in iwl_mld_scan_use_ebs()
1153 struct iwl_scan_req_umac_v17 *cmd = mld->scan.cmd; in iwl_mld_scan_build_cmd()
1158 memset(mld->scan.cmd, 0, mld->scan.cmd_size); in iwl_mld_scan_build_cmd()
1198 mld->scan.pass_all_sched_res = SCHED_SCAN_PASS_ALL_STATE_DISABLED; in iwl_mld_scan_pass_all()
1203 mld->scan.pass_all_sched_res = SCHED_SCAN_PASS_ALL_STATE_ENABLED; in iwl_mld_scan_pass_all()
1344 time_after(mld->scan.last_6ghz_passive_jiffies + in iwl_mld_scan_6ghz_passive_scan()
[all …]
/src/sys/contrib/zlib/
H A Ddeflate.c1391 Bytef *scan = s->window + s->strstart; /* current string */ in longest_match() local
1409 ush scan_start = *(ushf*)scan; in longest_match()
1410 ush scan_end = *(ushf*)(scan + best_len - 1); in longest_match()
1413 Byte scan_end1 = scan[best_len - 1]; in longest_match()
1414 Byte scan_end = scan[best_len]; in longest_match()
1462 Assert(scan[2] == match[2], "scan[2]?"); in longest_match()
1463 scan++, match++; in longest_match()
1465 } while (*(ushf*)(scan += 2) == *(ushf*)(match += 2) && in longest_match()
1466 *(ushf*)(scan += 2) == *(ushf*)(match += 2) && in longest_match()
1467 *(ushf*)(scan += 2) == *(ushf*)(match += 2) && in longest_match()
[all …]
/src/contrib/ntp/sntp/libopts/
H A Dnested.c433 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 …]
H A Dsave.c519 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 …]
H A Dusage.c434 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 …]
/src/contrib/ofed/libibnetdisc/
H A Dibnetdisc.c100 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 …]
/src/sys/dev/ath/
H A Dif_ath_lna_div.c325 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 …]
/src/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dmcu.c16 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()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DProgramState.cpp576 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 …]
/src/contrib/ncurses/ncurses/tty/
H A Dlib_tstp.c270 SCREEN *scan; in handle_SIGINT() local
271 for (each_screen(scan)) { in handle_SIGINT()
272 if (scan->_ofp != NULL 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()
/src/usr.bin/lex/
H A DMakefile22 nfa.c options.c parse.y regex.c scan.c scanflags.c \
37 CLEANFILES= scan.c skel.c
38 GENFILES= parse.c parse.h scan.c skel.c
58 ./${PROG} ${LFLAGS} -t ${COMPRESSION} ${FLEXDIR}/scan.l | \

12345678910>>...22