Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 1266) sorted by relevance

12345678910>>...51

/freebsd/contrib/wpa/hostapd/
H A Dconfig_file.c34 char buf[128], *pos, *pos2, *pos3; in hostapd_config_read_vlan_file() local
49 pos = buf; in hostapd_config_read_vlan_file()
50 while (*pos != '\0') { in hostapd_config_read_vlan_file()
51 if (*pos == '\n') { in hostapd_config_read_vlan_file()
52 *pos = '\0'; in hostapd_config_read_vlan_file()
55 pos++; in hostapd_config_read_vlan_file()
62 pos = buf + 1; in hostapd_config_read_vlan_file()
64 vlan_id = strtol(buf, &pos, 10); in hostapd_config_read_vlan_file()
65 if (buf == pos || vlan_id < 1 || in hostapd_config_read_vlan_file()
74 while (*pos == ' ' || *pos == '\t') in hostapd_config_read_vlan_file()
[all …]
H A Dhlr_auc_gw.c229 char cmd[128], val[13], *pos; in db_update_milenage_sqn() local
234 pos = val; in db_update_milenage_sqn()
235 pos += wpa_snprintf_hex(pos, sizeof(val), m->sqn, 6); in db_update_milenage_sqn()
236 *pos = '\0'; in db_update_milenage_sqn()
278 char buf[200], *pos, *pos2; in read_gsm_triplets() local
299 pos = buf; in read_gsm_triplets()
300 while (*pos != '\0' && *pos != '\n') in read_gsm_triplets()
301 pos++; in read_gsm_triplets()
302 if (*pos == '\n') in read_gsm_triplets()
303 *pos = '\0'; in read_gsm_triplets()
[all …]
/freebsd/contrib/wpa/src/tls/
H A Dtlsv1_server_write.c45 u8 *pos, *rhdr, *hs_start, *hs_length, *ext_start; in tls_write_server_hello() local
49 pos = *msgpos; in tls_write_server_hello()
52 rhdr = pos; in tls_write_server_hello()
53 pos += TLS_RECORD_HEADER_LEN; in tls_write_server_hello()
80 hs_start = pos; in tls_write_server_hello()
82 *pos++ = TLS_HANDSHAKE_TYPE_SERVER_HELLO; in tls_write_server_hello()
84 hs_length = pos; in tls_write_server_hello()
85 pos += 3; in tls_write_server_hello()
88 WPA_PUT_BE16(pos, conn->rl.tls_version); in tls_write_server_hello()
89 pos += 2; in tls_write_server_hello()
[all …]
H A Dtlsv1_client_write.c47 u8 *hello, *end, *pos, *hs_length, *hs_start, *rhdr; in tls_send_client_hello() local
82 pos = rhdr + TLS_RECORD_HEADER_LEN; in tls_send_client_hello()
87 hs_start = pos; in tls_send_client_hello()
89 *pos++ = TLS_HANDSHAKE_TYPE_CLIENT_HELLO; in tls_send_client_hello()
91 hs_length = pos; in tls_send_client_hello()
92 pos += 3; in tls_send_client_hello()
95 WPA_PUT_BE16(pos, tls_version); in tls_send_client_hello()
96 pos += 2; in tls_send_client_hello()
98 os_memcpy(pos, conn->client_random, TLS_RANDOM_LEN); in tls_send_client_hello()
99 pos += TLS_RANDOM_LEN; in tls_send_client_hello()
[all …]
H A Dtlsv1_cred.c110 const u8 *pos, *end; in tlsv1_add_cert() local
114 pos = search_tag(pem_cert_begin, buf, len); in tlsv1_add_cert()
115 if (!pos) { in tlsv1_add_cert()
124 while (pos) { in tlsv1_add_cert()
125 pos += os_strlen(pem_cert_begin); in tlsv1_add_cert()
126 end = search_tag(pem_cert_end, pos, buf + len - pos); in tlsv1_add_cert()
133 der = base64_decode((const char *) pos, end - pos, &der_len); in tlsv1_add_cert()
150 pos = search_tag(pem_cert_begin, end, buf + len - end); in tlsv1_add_cert()
199 const char *pos = cert + 7; in tlsv1_set_ca_cert() local
200 if (os_strncmp(pos, "server/sha256/", 14) != 0) { in tlsv1_set_ca_cert()
[all …]
H A Dx509v3.c186 const u8 *pos, *end; in x509_parse_algorithm_identifier() local
202 pos = hdr.payload; in x509_parse_algorithm_identifier()
203 end = pos + hdr.length; in x509_parse_algorithm_identifier()
207 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) in x509_parse_algorithm_identifier()
221 const u8 *pos, *end; in x509_parse_public_key() local
230 pos = buf; in x509_parse_public_key()
233 if (asn1_get_next(pos, end - pos, &hdr) < 0 || in x509_parse_public_key()
239 pos = hdr.payload; in x509_parse_public_key()
241 if (hdr.length > end - pos) in x509_parse_public_key()
243 end = pos + hdr.length; in x509_parse_public_key()
[all …]
H A Dtlsv1_client_read.c42 const u8 *pos, size_t len) in tls_process_server_hello_extensions() argument
44 const u8 *end = pos + len; in tls_process_server_hello_extensions()
47 pos, len); in tls_process_server_hello_extensions()
48 while (pos < end) { in tls_process_server_hello_extensions()
51 if (end - pos < 4) { in tls_process_server_hello_extensions()
56 ext = WPA_GET_BE16(pos); in tls_process_server_hello_extensions()
57 pos += 2; in tls_process_server_hello_extensions()
58 elen = WPA_GET_BE16(pos); in tls_process_server_hello_extensions()
59 pos += 2; in tls_process_server_hello_extensions()
61 if (elen > end - pos) { in tls_process_server_hello_extensions()
[all …]
/freebsd/contrib/mandoc/
H A Dtbl_layout.c66 int ln, const char *p, int *pos) in mods() argument
75 while (p[*pos] == ' ' || p[*pos] == '\t') in mods()
76 (*pos)++; in mods()
80 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) in mods()
85 if ('(' == p[*pos]) { in mods()
86 (*pos)++; in mods()
87 while (p[*pos] && ')' != p[*pos]) in mods()
88 (*pos)++; in mods()
89 if (')' == p[*pos]) { in mods()
90 (*pos)++; in mods()
[all …]
H A Dtbl_opts.c66 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) in arg() argument
70 while (p[*pos] == ' ' || p[*pos] == '\t') in arg()
71 (*pos)++; in arg()
76 if (p[*pos] == '(') { in arg()
77 (*pos)++; in arg()
78 while (p[*pos + len] != ')') in arg()
85 ln, *pos, "%.*s", len, p + *pos); in arg()
91 tbl->opts.tab = p[*pos]; in arg()
99 tbl->opts.decimal = p[*pos]; in arg()
106 mandoc_msg(MANDOCERR_TBLOPT_NOARG, ln, *pos, in arg()
[all …]
/freebsd/contrib/wpa/src/rsn_supp/
H A Dwpa_ie.c45 u8 *pos; in wpa_gen_wpa_ie_wpa() local
57 pos = (u8 *) (hdr + 1); in wpa_gen_wpa_ie_wpa()
65 RSN_SELECTOR_PUT(pos, suite); in wpa_gen_wpa_ie_wpa()
66 pos += WPA_SELECTOR_LEN; in wpa_gen_wpa_ie_wpa()
68 *pos++ = 1; in wpa_gen_wpa_ie_wpa()
69 *pos++ = 0; in wpa_gen_wpa_ie_wpa()
78 RSN_SELECTOR_PUT(pos, suite); in wpa_gen_wpa_ie_wpa()
79 pos += WPA_SELECTOR_LEN; in wpa_gen_wpa_ie_wpa()
81 *pos++ = 1; in wpa_gen_wpa_ie_wpa()
82 *pos++ = 0; in wpa_gen_wpa_ie_wpa()
[all …]
/freebsd/contrib/wpa/wpa_supplicant/
H A Dctrl_iface.c81 char *pos; in set_bssid_filter() local
85 pos = val; in set_bssid_filter()
86 while (pos) { in set_bssid_filter()
87 if (*pos == '\0') in set_bssid_filter()
89 if (hwaddr_aton(pos, addr)) { in set_bssid_filter()
102 pos = os_strchr(pos, ' '); in set_bssid_filter()
103 if (pos) in set_bssid_filter()
104 pos++; in set_bssid_filter()
118 char *pos; in set_disallow_aps() local
130 pos = val; in set_disallow_aps()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DVariableList.cpp64 iterator pos, end = m_variables.end(); in FindVariableIndex() local
65 for (pos = m_variables.begin(); pos != end; ++pos) { in FindVariableIndex()
66 if (pos->get() == var_sp.get()) in FindVariableIndex()
67 return std::distance(m_variables.begin(), pos); in FindVariableIndex()
75 iterator pos, end = m_variables.end(); in FindVariable() local
76 for (pos = m_variables.begin(); pos != end; ++pos) { in FindVariable()
77 if ((*pos)->NameMatches(name)) { in FindVariable()
78 if (include_static_members || !(*pos)->IsStaticMember()) { in FindVariable()
79 var_sp = (*pos); in FindVariable()
91 iterator pos, end = m_variables.end(); in FindVariable() local
[all …]
/freebsd/contrib/less/
H A Dforwback.c74 POSITION pos; in eof_displayed() local
91 pos = position(BOTTOM_PLUS_ONE); in eof_displayed()
92 return (pos == NULL_POSITION || pos == ch_length()); in eof_displayed()
100 POSITION pos; in entire_file_displayed() local
107 pos = position(0); in entire_file_displayed()
108 return (pos == NULL_POSITION || pos == 0); in entire_file_displayed()
129 static POSITION forw_line_pfx(POSITION pos, int pfx, int skipeol) in forw_line_pfx() argument
138 pos = forw_line_seg(pos, skipeol, FALSE, FALSE); in forw_line_pfx()
142 return pos; in forw_line_pfx()
163 POSITION pos = ch_zero(); /* header lines are at beginning of file */ in overlay_header() local
[all …]
H A Djump.c30 POSITION pos; in jump_forw() local
56 pos = back_line(end_pos); in jump_forw()
57 if (pos == NULL_POSITION) in jump_forw()
61 jump_loc(pos, sc_height-1); in jump_forw()
89 POSITION pos; in jump_back() local
98 pos = find_pos(linenum); in jump_back()
99 if (pos != NULL_POSITION && ch_seek(pos) == 0) in jump_back()
102 set_attnpos(pos); in jump_back()
103 jump_loc(pos, jump_sline); in jump_back()
127 if (scrpos.pos == NULL_POSITION) in repaint()
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dwps_attr_parse.c21 u8 id, u8 len, const u8 *pos) in wps_set_vendor_ext_wfa_subelem() argument
32 attr->version2 = pos; in wps_set_vendor_ext_wfa_subelem()
35 attr->authorized_macs = pos; in wps_set_vendor_ext_wfa_subelem()
44 attr->network_key_shareable = pos; in wps_set_vendor_ext_wfa_subelem()
52 attr->request_to_enroll = pos; in wps_set_vendor_ext_wfa_subelem()
60 attr->settings_delay_time = pos; in wps_set_vendor_ext_wfa_subelem()
68 attr->registrar_configuration_methods = pos; in wps_set_vendor_ext_wfa_subelem()
77 attr->multi_ap_ext = *pos; in wps_set_vendor_ext_wfa_subelem()
91 static int wps_parse_vendor_ext_wfa(struct wps_parse_attr *attr, const u8 *pos, in wps_parse_vendor_ext_wfa() argument
94 const u8 *end = pos + len; in wps_parse_vendor_ext_wfa()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dfils_hlp.c23 const u16 *pos; in ip_checksum() local
25 for (pos = buf; len >= 2; len -= 2) in ip_checksum()
26 sum += ntohs(*pos++); in ip_checksum()
28 sum += ntohs(*pos << 8); in ip_checksum()
39 u8 *pos, *end; in fils_dhcp_request() local
53 pos = wpabuf_mhead(sta->hlp_dhcp_discover); in fils_dhcp_request()
54 end = pos + wpabuf_len(sta->hlp_dhcp_discover); in fils_dhcp_request()
55 dhcp = (struct dhcp_data *) pos; in fils_dhcp_request()
56 pos = (u8 *) (dhcp + 1); in fils_dhcp_request()
57 pos += 4; /* skip magic */ in fils_dhcp_request()
[all …]
H A Dieee802_11_shared.c24 static u8 * hostapd_eid_timeout_interval(u8 *pos, u8 type, u32 value) in hostapd_eid_timeout_interval() argument
26 *pos++ = WLAN_EID_TIMEOUT_INTERVAL; in hostapd_eid_timeout_interval()
27 *pos++ = 5; in hostapd_eid_timeout_interval()
28 *pos++ = type; in hostapd_eid_timeout_interval()
29 WPA_PUT_LE32(pos, value); in hostapd_eid_timeout_interval()
30 pos += 4; in hostapd_eid_timeout_interval()
32 return pos; in hostapd_eid_timeout_interval()
365 static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx, in hostapd_ext_capab_byte() argument
368 *pos = 0x00; in hostapd_ext_capab_byte()
373 *pos |= 0x01; /* Bit 0 - Coexistence management */ in hostapd_ext_capab_byte()
[all …]
/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_encoder.c50 encoder->pos = encoder->config.begin; in pt_encoder_init()
88 uint8_t *begin, *end, *pos; in pt_enc_sync_set() local
95 pos = begin + offset; in pt_enc_sync_set()
97 if (end < pos || pos < begin) in pt_enc_sync_set()
100 encoder->pos = pos; in pt_enc_sync_set()
112 raw = encoder->pos; in pt_enc_get_offset()
143 const uint8_t *begin, *end, *pos; in pt_reserve() local
149 pos = encoder->pos; in pt_reserve()
150 if (!pos) in pt_reserve()
156 pos += size; in pt_reserve()
[all …]
H A Dpt_packet.c37 static uint64_t pt_pkt_read_value(const uint8_t *pos, int size) in pt_pkt_read_value() argument
43 uint64_t byte = *pos++; in pt_pkt_read_value()
52 int pt_pkt_read_unknown(struct pt_packet *packet, const uint8_t *pos, in pt_pkt_read_unknown() argument
59 if (!packet || !pos || !config) in pt_pkt_read_unknown()
67 packet->payload.unknown.packet = pos; in pt_pkt_read_unknown()
73 size = (*decode)(&packet->payload.unknown, config, pos, in pt_pkt_read_unknown()
84 if (config->end < pos + size) in pt_pkt_read_unknown()
90 int pt_pkt_read_psb(const uint8_t *pos, const struct pt_config *config) in pt_pkt_read_psb() argument
94 if (!pos || !config) in pt_pkt_read_psb()
97 if (config->end < pos + ptps_psb) in pt_pkt_read_psb()
[all …]
H A Dpt_sync.c67 static const uint8_t *pt_find_psb(const uint8_t *pos, in pt_find_psb() argument
73 if (!pos || !config) in pt_find_psb()
84 if (*pos != pt_psb_hi) in pt_find_psb()
85 pos++; in pt_find_psb()
87 for (; (pos + 1) < end; pos += 2) { in pt_find_psb()
90 hi = pos[0]; in pt_find_psb()
91 lo = pos[1]; in pt_find_psb()
103 pos -= ptps_psb; in pt_find_psb()
106 if (pos < begin) in pt_find_psb()
110 if (pos[0] != pt_opc_psb || pos[1] != pt_ext_psb) in pt_find_psb()
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_fast_pac.c181 const char *pos; member
190 char *pos; in eap_fast_read_line() local
199 if (rc->pos >= rc->end) in eap_fast_read_line()
201 l_end = rc->pos; in eap_fast_read_line()
204 len = l_end - rc->pos; in eap_fast_read_line()
207 os_memcpy(rc->buf, rc->pos, len); in eap_fast_read_line()
209 rc->pos = l_end + 1; in eap_fast_read_line()
213 pos = rc->buf; in eap_fast_read_line()
214 while (*pos != '\0') { in eap_fast_read_line()
215 if (*pos == '\n' || *pos == '\r') { in eap_fast_read_line()
[all …]
H A Deap_teap_pac.c181 const char *pos; member
190 char *pos; in eap_teap_read_line() local
200 if (rc->pos >= rc->end) in eap_teap_read_line()
202 l_end = rc->pos; in eap_teap_read_line()
205 len = l_end - rc->pos; in eap_teap_read_line()
208 os_memcpy(rc->buf, rc->pos, len); in eap_teap_read_line()
210 rc->pos = l_end + 1; in eap_teap_read_line()
214 pos = rc->buf; in eap_teap_read_line()
215 while (*pos != '\0') { in eap_teap_read_line()
216 if (*pos == '\n' || *pos == '\r') { in eap_teap_read_line()
[all …]
/freebsd/tools/tools/drm/radeon/mkregtable/
H A Dmkregtable.c371 #define list_for_each(pos, head) \ argument
372 for (pos = (head)->next; prefetch(pos->next), pos != (head); \
373 pos = pos->next)
385 #define __list_for_each(pos, head) \ argument
386 for (pos = (head)->next; pos != (head); pos = pos->next)
393 #define list_for_each_prev(pos, head) \ argument
394 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \
395 pos = pos->prev)
403 #define list_for_each_safe(pos, n, head) \ argument
404 for (pos = (head)->next, n = pos->next; pos != (head); \
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Ddebugfs.c28 int pos, budget; in iwl_dbgfs_ctdp_budget_read() local
44 pos = scnprintf(buf, sizeof(buf), "%d\n", budget); in iwl_dbgfs_ctdp_budget_read()
46 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read()
226 int pos;
229 pos = scnprintf(buf, sizeof(buf), "disabled\n");
231 pos = scnprintf(buf, sizeof(buf), "%d\n", mvm->temperature);
233 return simple_read_from_buffer(user_buf, count, ppos, buf, pos);
293 int pos, ret; in iwl_dbgfs_nic_temp_read()
306 pos = scnprintf(buf, sizeof(buf), "%d\n", temp); in iwl_dbgfs_sar_geo_profile_read()
308 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sar_geo_profile_read()
217 int pos; iwl_dbgfs_set_nic_temperature_read() local
284 int pos, ret; iwl_dbgfs_nic_temp_read() local
309 int pos = 0; iwl_dbgfs_sar_geo_profile_read() local
350 int err, pos; iwl_dbgfs_wifi_6e_enable_read() local
372 int i, pos = 0, bufsz = sizeof(buf); iwl_dbgfs_stations_read() local
479 int pos; iwl_dbgfs_amsdu_len_read() local
496 int pos = 0; iwl_dbgfs_disable_power_off_read() local
535 iwl_mvm_coex_dump_mbox(struct iwl_bt_coex_profile_notif * notif,char * buf,int pos,int bufsz) iwl_mvm_coex_dump_mbox() argument
599 int ret, pos = 0, bufsz = sizeof(char) * 1024; iwl_dbgfs_bt_notif_read() local
644 int pos = 0; iwl_dbgfs_bt_cmd_read() local
717 char *buff, *pos, *endpos; iwl_dbgfs_fw_ver_read() local
756 char *buff, *pos, *endpos; iwl_dbgfs_tas_get_status_read() local
939 int pos; iwl_dbgfs_phy_integration_ver_read() local
968 int pos = 0; iwl_dbgfs_fw_rx_stats_read() local
1156 char *buff, *pos, *endpos; iwl_dbgfs_frame_stats_read() local
1277 int pos = 0; iwl_dbgfs_scan_ant_rxchain_read() local
1528 int pos = 0; iwl_dbgfs_fw_dbg_conf_read() local
1736 int pos = 0; iwl_dbgfs_prph_reg_read() local
1887 unsigned int pos = 0; iwl_dbgfs_uapsd_noagg_bssids_read() local
1971 int i, j, pos = 0; iwl_dbgfs_rfi_freq_table_read() local
[all...]
/freebsd/contrib/wpa/src/eapol_auth/
H A Deapol_auth_dump.c124 char *pos, *end; in eapol_auth_dump_state() local
127 pos = buf; in eapol_auth_dump_state()
128 end = pos + buflen; in eapol_auth_dump_state()
130 ret = os_snprintf(pos, end - pos, "aWhile=%d\nquietWhile=%d\n" in eapol_auth_dump_state()
133 if (os_snprintf_error(end - pos, ret)) in eapol_auth_dump_state()
134 return pos - buf; in eapol_auth_dump_state()
135 pos += ret; in eapol_auth_dump_state()
138 ret = os_snprintf(pos, end - pos, in eapol_auth_dump_state()
176 if (os_snprintf_error(end - pos, ret)) in eapol_auth_dump_state()
177 return pos - buf; in eapol_auth_dump_state()
[all …]

12345678910>>...51