Home
last modified time | relevance | path

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

123

/netbsd/src/external/bsd/wpa/dist/src/ap/
Dmbo_ap.c132 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()
148 if (os_snprintf_error(end - pos2, ret)) { 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()
[all …]
/netbsd/src/external/bsd/wpa/dist/src/wps/
Dwps_er_ssdp.c26 char buf[MULTICAST_MAX_READ], *pos, *pos2, *start; in wps_er_ssdp_rx() local
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()
[all …]
/netbsd/src/sys/dev/mca/
Dcom_mca.c219 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()
Dif_tra_mca.c130 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()
Dif_le_mca.c134 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()
Dif_ne_mca.c139 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()
Dif_we_mca.c159 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()
Dif_elmc_mca.c107 int pos2, pos3, i, revision; in elmc_mca_attach() local
112 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in elmc_mca_attach()
134 iobase = ELMC_IOADDR_BASE + (0x1000 * ((pos2 & 0x6) >> 1)); in elmc_mca_attach()
148 pbram_addr = ELMC_MADDR_BASE + (((pos2 & 0x18) >> 3) * 0x8000); in elmc_mca_attach()
255 (pos2 & 0x20) ? "ex" : "in"); in elmc_mca_attach()
Desp_mca.c143 int pos2, pos3, pos5; in esp_mca_attach() local
177 pos2 = mca_conf_read(ma->ma_mc, ma->ma_slot, 2); in esp_mca_attach()
181 iobase = ncrmca_iobase[(pos2 & 0x0e) >> 1]; in esp_mca_attach()
182 irq = 3 + 2 * ((pos2 & 0x30) >> 4); in esp_mca_attach()
/netbsd/src/external/bsd/wpa/dist/src/utils/
Dext_password_test.c47 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/src/external/bsd/wpa/dist/wpa_supplicant/
Dhs20_supplicant.c864 const u8 *pos2; in hs20_osu_add_prov() local
897 pos2 = pos; in hs20_osu_add_prov()
901 while (pos - pos2 >= 4 && prov->friendly_name_count < OSU_MAX_ITEMS) { in hs20_osu_add_prov()
905 slen = pos2[0]; in hs20_osu_add_prov()
906 if (1 + slen > pos - pos2) { in hs20_osu_add_prov()
916 pos2++; in hs20_osu_add_prov()
917 os_memcpy(f->lang, pos2, 3); in hs20_osu_add_prov()
918 pos2 += 3; in hs20_osu_add_prov()
920 os_memcpy(f->text, pos2, slen); in hs20_osu_add_prov()
921 pos2 += slen; in hs20_osu_add_prov()
[all …]
Dctrl_iface.c1201 const char *pos2 = os_strstr(pos, " " #str "="); \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1202 if (pos2) { \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1203 pos2 += sizeof(" " #str "=") - 1; \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1204 freq_params.str = atoi(pos2); \ in wpa_supplicant_ctrl_iface_tdls_chan_switch()
1787 char *pos, *pos2; in wpas_ctrl_nfc_get_handover_sel() local
1802 pos2 = os_strchr(pos, ' '); in wpas_ctrl_nfc_get_handover_sel()
1803 if (pos2) in wpas_ctrl_nfc_get_handover_sel()
1804 *pos2++ = '\0'; in wpas_ctrl_nfc_get_handover_sel()
1810 os_strcmp(pos, "WPS-CR") == 0, pos2); in wpas_ctrl_nfc_get_handover_sel()
1835 char *pos, *role, *type, *pos2; in wpas_ctrl_nfc_report_handover() local
[all …]
/netbsd/src/external/bsd/wpa/dist/src/eap_server/
Deap_server_gtc.c108 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()
Dtncs.c668 char *pos, *pos2; in tncs_get_base64() local
676 pos2 = os_strstr(pos, "</Base64>"); in tncs_get_base64()
677 if (pos2 == NULL) in tncs_get_base64()
679 *pos2 = '\0'; in tncs_get_base64()
682 *pos2 = '<'; in tncs_get_base64()
780 char *buf, *start, *end, *pos, *pos2, *payload; in tncs_process_if_tnccs() local
913 pos2 = os_strstr(pos, "</XML>"); in tncs_process_if_tnccs()
914 if (pos2 == NULL) { in tncs_process_if_tnccs()
919 xmlend = pos2; in tncs_process_if_tnccs()
962 char *pos, *pos2; in tncs_parse_imv() local
[all …]
/netbsd/src/external/bsd/wpa/dist/src/eap_peer/
Dtncc.c619 char *pos, *pos2; in tncc_get_base64() local
627 pos2 = os_strstr(pos, "</Base64>"); in tncc_get_base64()
628 if (pos2 == NULL) in tncc_get_base64()
630 *pos2 = '\0'; in tncc_get_base64()
633 *pos2 = '<'; in tncc_get_base64()
644 char *pos, *pos2, saved; in tncc_get_recommendation() local
660 pos2 = pos; in tncc_get_recommendation()
661 while (*pos2 != '\0' && *pos2 != '"' && *pos2 != '>') in tncc_get_recommendation()
662 pos2++; in tncc_get_recommendation()
664 if (*pos2 == '\0') in tncc_get_recommendation()
[all …]
/netbsd/src/external/bsd/wpa/dist/wpa_supplicant/wpa_gui-qt4/
Duserdatarequest.cpp39 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/src/external/gpl3/gcc/dist/gcc/
Dtree-ssa-alias.h192 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/src/external/bsd/atf/dist/atf-c++/detail/
Dtext.cpp113 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/src/external/bsd/atf/dist/tools/
Dtext.cpp108 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/src/external/bsd/tre/dist/tests/
Dtest-str-source.c58 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/src/external/bsd/wpa/dist/hostapd/
Dhlr_auc_gw.c278 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 …]
Dconfig_file.c34 char buf[128], *pos, *pos2, *pos3; in hostapd_config_read_vlan_file() local
76 pos2 = pos; in hostapd_config_read_vlan_file()
77 while (*pos2 != ' ' && *pos2 != '\t' && *pos2 != '\0') in hostapd_config_read_vlan_file()
78 pos2++; in hostapd_config_read_vlan_file()
80 if (*pos2 != '\0') in hostapd_config_read_vlan_file()
81 *(pos2++) = '\0'; in hostapd_config_read_vlan_file()
90 while (*pos2 == ' ' || *pos2 == '\t') in hostapd_config_read_vlan_file()
91 pos2++; in hostapd_config_read_vlan_file()
92 pos3 = pos2; in hostapd_config_read_vlan_file()
109 os_strlcpy(vlan->bridge, pos2, sizeof(vlan->bridge)); in hostapd_config_read_vlan_file()
[all …]
/netbsd/src/external/gpl3/binutils/dist/gas/
Dlisting.c561 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/src/external/bsd/wpa/dist/src/common/
Dsae_pk.c455 const char *pos2; in sae_parse_pk() local
485 pos2 = os_strchr(pos, ':'); in sae_parse_pk()
486 if (pos2) { in sae_parse_pk()
487 b_len = pos2 - pos; in sae_parse_pk()
488 pos2++; in sae_parse_pk()
507 if (pos2) { in sae_parse_pk()
508 der = base64_decode(pos2, os_strlen(pos2), &der_len); in sae_parse_pk()
Dcli.c256 char *pos2 = os_strrchr(pos, '"'); in tokenize_cmd() local
257 if (pos2) in tokenize_cmd()
258 pos = pos2 + 1; in tokenize_cmd()

123