/netbsd/external/bsd/wpa/dist/src/ap/ |
H A D | mbo_ap.c | 132 char *pos2 = pos; in mbo_ap_get_info() local 134 ret = os_snprintf(pos2, end - pos2, in mbo_ap_get_info() 139 if (os_snprintf_error(end - pos2, ret)) in mbo_ap_get_info() 141 pos2 += ret; in mbo_ap_get_info() 144 ret = os_snprintf(pos2, end - pos2, "%u%s", in mbo_ap_get_info() 149 pos2 = NULL; in mbo_ap_get_info() 152 pos2 += ret; in mbo_ap_get_info() 155 if (!pos2) in mbo_ap_get_info() 157 ret = os_snprintf(pos2, end - pos2, "\n"); in mbo_ap_get_info() 160 pos2 += ret; in mbo_ap_get_info() [all …]
|
/netbsd/external/bsd/wpa/dist/src/wps/ |
H A D | wps_er_ssdp.c | 82 pos2 = os_strstr(start, "max-age="); in wps_er_ssdp_rx() 83 if (pos2 == NULL) in wps_er_ssdp_rx() 85 pos2 += 8; in wps_er_ssdp_rx() 86 max_age = atoi(pos2); in wps_er_ssdp_rx() 89 pos2 = os_strstr(start, "uuid:"); in wps_er_ssdp_rx() 90 if (pos2) { in wps_er_ssdp_rx() 91 pos2 += 5; in wps_er_ssdp_rx() 92 while (*pos2 == ' ') in wps_er_ssdp_rx() 93 pos2++; in wps_er_ssdp_rx() 94 if (uuid_str2bin(pos2, uuid) < 0) { in wps_er_ssdp_rx() [all …]
|
/netbsd/sys/dev/mca/ |
H A D | com_mca.c | 219 int pos2; in ibm_modem_getcfg() local 222 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in ibm_modem_getcfg() 231 snum = (pos2 & 0x0e) >> 1; in ibm_modem_getcfg() 245 int pos2, pos3, pos4; in neocom1_getcfg() local 248 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in neocom1_getcfg() 270 *irqp = neotech_irq[(pos2 & 0x06) >> 1]; in neocom1_getcfg() 282 int snum, pos2; in ibm_mpcom_getcfg() local 284 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in ibm_mpcom_getcfg() 295 if (pos2 & 0x10) { in ibm_mpcom_getcfg() 300 snum = (pos2 & 0x0e) >> 1; in ibm_mpcom_getcfg()
|
H A D | if_tra_mca.c | 130 int pos2; in tiara_mca_attach() local 134 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in tiara_mca_attach() 160 iobase = 0x1200 + ((pos2 & 0xf0) << 1); in tiara_mca_attach() 161 irq = tiara_irq[((pos2 & 0x0c) >> 2)]; in tiara_mca_attach() 184 iobase = smc_iobase[((pos2 & 0x0e) >> 1)]; in tiara_mca_attach() 185 if ((pos2 & 0x80) != 0) in tiara_mca_attach() 186 irq = smc_irq[((pos2 & 0x70) >> 4)]; in tiara_mca_attach()
|
H A D | if_le_mca.c | 134 int i, pos2, pos3, pos4, irq, membase; in le_mca_attach() local 178 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in le_mca_attach() 179 irq = (pos2 & (1<<4)) ? 11 : 10; in le_mca_attach() 180 membase = 0xc0000 + ((pos2 & 0x0e) >> 1) * 0x4000; in le_mca_attach() 198 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in le_mca_attach() 199 if ((pos2 & 0x01) == 0) { in le_mca_attach() 201 mca_conf_write(ma->ma_mc, ma->ma_slot, 2, pos2 | 0x01); in le_mca_attach()
|
H A D | if_ne_mca.c | 139 int pos2, iobase, irq; in ne_mca_attach() local 144 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in ne_mca_attach() 161 iobase = ne_mca_iobase[(pos2 & 0x0e) >> 1]; in ne_mca_attach() 162 irq = ne_mca_irq[(pos2 & 0x60) >> 5]; in ne_mca_attach()
|
H A D | if_we_mca.c | 159 int pos2, pos3, pos5; in we_mca_attach() local 163 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in we_mca_attach() 224 iobase = 0x200 + (((pos2 & 0x0e) >> 1) * 0x020); in we_mca_attach() 230 iobase = 0x800 + (((pos2 & 0xf0) >> 4) * 0x1000); in we_mca_attach()
|
/netbsd/external/bsd/wpa/dist/wpa_supplicant/ |
H A D | hs20_supplicant.c | 897 pos2 = pos; in hs20_osu_add_prov() 903 if (1 + pos2[0] > pos - pos2 || pos2[0] < 3) { in hs20_osu_add_prov() 909 os_memcpy(f->text, pos2 + 1 + 3, pos2[0] - 3); in hs20_osu_add_prov() 910 pos2 += 1 + pos2[0]; in hs20_osu_add_prov() 945 pos2++; in hs20_osu_add_prov() 961 pos2 = pos; in hs20_osu_add_prov() 975 pos2 += 2; in hs20_osu_add_prov() 977 pos2 += 2; in hs20_osu_add_prov() 979 pos2 += 3; in hs20_osu_add_prov() 987 pos2 += flen; in hs20_osu_add_prov() [all …]
|
/netbsd/external/bsd/wpa/dist/src/utils/ |
H A D | ext_password_test.c | 47 char *pos, *pos2; in ext_password_test_get() local 61 pos2 = pos; in ext_password_test_get() 62 while (*pos2 != '|' && *pos2 != '\0') in ext_password_test_get() 63 pos2++; in ext_password_test_get() 64 buf = ext_password_alloc(pos2 - pos); in ext_password_test_get() 67 wpabuf_put_data(buf, pos, pos2 - pos); in ext_password_test_get()
|
/netbsd/external/bsd/wpa/dist/src/eap_server/ |
H A D | eap_server_gtc.c | 108 const u8 *pos2, *end; in eap_gtc_process() local 119 pos2 = pos; in eap_gtc_process() 120 while (pos2 < end && *pos2) in eap_gtc_process() 121 pos2++; in eap_gtc_process() 122 if (pos2 == end) { in eap_gtc_process() 130 pos, pos2 - pos); in eap_gtc_process() 132 (pos2 - pos != (int) sm->identity_len || in eap_gtc_process() 143 sm->identity_len = pos2 - pos; in eap_gtc_process() 160 pos = pos2 + 1; in eap_gtc_process()
|
H A D | tncs.c | 668 char *pos, *pos2; in tncs_get_base64() local 677 if (pos2 == NULL) in tncs_get_base64() 679 *pos2 = '\0'; in tncs_get_base64() 683 *pos2 = '<'; in tncs_get_base64() 920 xmlend = pos2; in tncs_process_if_tnccs() 963 char *pos, *pos2; in tncs_parse_imv() local 988 pos2 = pos; in tncs_parse_imv() 989 while (pos2 < end && *pos2 != '"') in tncs_parse_imv() 990 pos2++; in tncs_parse_imv() 997 *pos2 = '\0'; in tncs_parse_imv() [all …]
|
/netbsd/external/bsd/wpa/dist/src/eap_peer/ |
H A D | tncc.c | 630 *pos2 = '\0'; in tncc_get_base64() 634 *pos2 = '<'; in tncc_get_base64() 661 pos2 = pos; in tncc_get_recommendation() 662 while (*pos2 != '\0' && *pos2 != '"' && *pos2 != '>') in tncc_get_recommendation() 663 pos2++; in tncc_get_recommendation() 668 saved = *pos2; in tncc_get_recommendation() 669 *pos2 = '\0'; in tncc_get_recommendation() 1038 pos2 = pos; in tncc_parse_imc() 1039 while (pos2 < end && *pos2 != '"') in tncc_parse_imc() 1040 pos2++; in tncc_parse_imc() [all …]
|
/netbsd/external/bsd/wpa/dist/wpa_supplicant/wpa_gui-qt4/ |
H A D | userdatarequest.cpp | 39 char *tmp, *pos, *pos2; in setParams() local 51 pos2 = strchr(pos, ':'); in setParams() 52 if (pos2 == NULL) { in setParams() 56 *pos2++ = '\0'; in setParams() 59 queryInfo->setText(pos2); in setParams()
|
/netbsd/external/gpl3/gcc.old/dist/gcc/ |
H A D | tree-ssa-alias.h | 185 HOST_WIDE_INT pos2, in ranges_overlap_p() argument 190 if (pos1 >= pos2 in ranges_overlap_p() 192 || pos1 < (pos2 + (HOST_WIDE_INT) size2))) in ranges_overlap_p() 194 if (pos2 >= pos1 in ranges_overlap_p() 196 || pos2 < (pos1 + (HOST_WIDE_INT) size1))) in ranges_overlap_p()
|
/netbsd/external/gpl3/gcc/dist/gcc/ |
H A D | tree-ssa-alias.h | 192 HOST_WIDE_INT pos2, in ranges_overlap_p() argument 197 if (pos1 >= pos2 in ranges_overlap_p() 199 || pos1 < (pos2 + (HOST_WIDE_INT) size2))) in ranges_overlap_p() 201 if (pos2 >= pos1 in ranges_overlap_p() 203 || pos2 < (pos1 + (HOST_WIDE_INT) size1))) in ranges_overlap_p()
|
/netbsd/external/bsd/atf/dist/tools/ |
H A D | text.cpp | 108 std::string::size_type pos2 = str.find_last_not_of(" \t"); in trim() local 110 if (pos1 == std::string::npos && pos2 == std::string::npos) in trim() 113 return str.substr(0, str.length() - pos2); in trim() 114 else if (pos2 == std::string::npos) in trim() 117 return str.substr(pos1, pos2 - pos1 + 1); in trim()
|
/netbsd/external/bsd/atf/dist/atf-c++/detail/ |
H A D | text.cpp | 113 std::string::size_type pos2 = str.find_last_not_of(" \t"); in trim() local 115 if (pos1 == std::string::npos && pos2 == std::string::npos) in trim() 118 return str.substr(0, str.length() - pos2); in trim() 119 else if (pos2 == std::string::npos) in trim() 122 return str.substr(pos1, pos2 - pos1 + 1); in trim()
|
/netbsd/external/bsd/tre/dist/tests/ |
H A D | test-str-source.c | 58 str_handler_compare(size_t pos1, size_t pos2, size_t len, void *context) in str_handler_compare() argument 63 (unsigned long)pos2, (unsigned long)pos2 + len); in str_handler_compare() 64 return strncmp(ctx->str + pos1, ctx->str + pos2, len); in str_handler_compare()
|
/netbsd/external/bsd/wpa/dist/hostapd/ |
H A D | hlr_auc_gw.c | 278 char buf[200], *pos, *pos2; in read_gsm_triplets() local 315 pos2 = NULL; in read_gsm_triplets() 316 pos = str_token(buf, ":", &pos2); in read_gsm_triplets() 325 pos = str_token(buf, ":", &pos2); in read_gsm_triplets() 333 pos = str_token(buf, ":", &pos2); in read_gsm_triplets() 342 pos = str_token(buf, ":", &pos2); in read_gsm_triplets() 390 char buf[200], *pos, *pos2; in read_milenage() local 427 pos2 = NULL; in read_milenage() 428 pos = str_token(buf, " ", &pos2); in read_milenage() 437 pos = str_token(buf, " ", &pos2); in read_milenage() [all …]
|
H A D | config_file.c | 74 pos2 = pos; in hostapd_config_read_vlan_file() 75 while (*pos2 != ' ' && *pos2 != '\t' && *pos2 != '\0') in hostapd_config_read_vlan_file() 76 pos2++; in hostapd_config_read_vlan_file() 88 while (*pos2 == ' ' || *pos2 == '\t') in hostapd_config_read_vlan_file() 89 pos2++; in hostapd_config_read_vlan_file() 247 while (*pos2 != '\0' && *pos2 != ' ' && *pos2 != '\t' && *pos2 != '#') in hostapd_config_eap_user_salted() 248 pos2++; in hostapd_config_eap_user_salted() 524 while (*pos2 != '\0' && *pos2 != ' ' && in hostapd_config_read_eap_user() 525 *pos2 != '\t' && *pos2 != '#') in hostapd_config_read_eap_user() 566 while (*pos2 != '\0' && *pos2 != ' ' && in hostapd_config_read_eap_user() [all …]
|
/netbsd/external/gpl3/gdb/dist/sim/testsuite/sim/h8300/ |
H A D | extl.s | 20 pos2: .long 0xffffff01 label 649 mov.l #pos2, er1 663 cmp.l #0x00000001, @pos2 724 mov.l #pos2, er1 738 cmp.l #0x00000001, @pos2 799 mov.l #pos2, er1 813 cmp.l #0x00000001, @pos2 874 mov.l #pos2-4, er1 888 cmp.l #0x00000001, @pos2 949 mov.l #pos2+4, er1 [all …]
|
/netbsd/external/gpl3/gdb.old/dist/sim/testsuite/sim/h8300/ |
H A D | extl.s | 20 pos2: .long 0xffffff01 label 649 mov.l #pos2, er1 663 cmp.l #0x00000001, @pos2 724 mov.l #pos2, er1 738 cmp.l #0x00000001, @pos2 799 mov.l #pos2, er1 813 cmp.l #0x00000001, @pos2 874 mov.l #pos2-4, er1 888 cmp.l #0x00000001, @pos2 949 mov.l #pos2+4, er1 [all …]
|
/netbsd/external/gpl3/gdb/dist/gas/ |
H A D | listing.c | 566 long pos2; in rebuffer_line() local 599 pos2 = pos = ftell (last_open_file); in rebuffer_line() 614 while (pos2 > 0 && ! found) in rebuffer_line() 619 pos2 = (long) size > pos2 ? 0 : pos2 - size; in rebuffer_line() 620 fseek (last_open_file, pos2, SEEK_SET); in rebuffer_line() 645 pos2 += (ptr - buffer); in rebuffer_line() 650 ++pos2; in rebuffer_line() 652 ++ pos2; in rebuffer_line() 655 pos2 += (ptr[1] == '\r' ? 2 : 1); in rebuffer_line() 658 fseek (last_open_file, pos2, SEEK_SET); in rebuffer_line()
|
/netbsd/external/gpl3/binutils/dist/gas/ |
H A D | listing.c | 561 long pos2; in rebuffer_line() local 594 pos2 = pos = ftell (last_open_file); in rebuffer_line() 609 while (pos2 > 0 && ! found) in rebuffer_line() 614 pos2 = (long) size > pos2 ? 0 : pos2 - size; in rebuffer_line() 615 fseek (last_open_file, pos2, SEEK_SET); in rebuffer_line() 640 pos2 += (ptr - buffer); in rebuffer_line() 645 ++pos2; in rebuffer_line() 647 ++ pos2; in rebuffer_line() 650 pos2 += (ptr[1] == '\r' ? 2 : 1); in rebuffer_line() 653 fseek (last_open_file, pos2, SEEK_SET); in rebuffer_line()
|
/netbsd/external/gpl3/binutils.old/dist/gas/ |
H A D | listing.c | 566 long pos2; in rebuffer_line() local 599 pos2 = pos = ftell (last_open_file); in rebuffer_line() 614 while (pos2 > 0 && ! found) in rebuffer_line() 619 pos2 = (long) size > pos2 ? 0 : pos2 - size; in rebuffer_line() 620 fseek (last_open_file, pos2, SEEK_SET); in rebuffer_line() 645 pos2 += (ptr - buffer); in rebuffer_line() 650 ++pos2; in rebuffer_line() 652 ++ pos2; in rebuffer_line() 655 pos2 += (ptr[1] == '\r' ? 2 : 1); in rebuffer_line() 658 fseek (last_open_file, pos2, SEEK_SET); in rebuffer_line()
|