Home
last modified time | relevance | path

Searched full:pos (Results 1 – 25 of 1693) sorted by relevance

12345678910>>...68

/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/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 …]
/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/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/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_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 …]
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 Dtlsv1_server_read.c52 const u8 *pos, *end; in tls_process_status_request_item() local
55 pos = req; in tls_process_status_request_item()
72 if (end - pos < 1) in tls_process_status_request_item()
75 status_type = *pos++; in tls_process_status_request_item()
83 wpa_hexdump(MSG_DEBUG, "TLSv1: OCSPStatusRequest", pos, end - pos); in tls_process_status_request_item()
93 const u8 *pos, *end; in tls_process_status_request_v2() local
97 pos = ext; in tls_process_status_request_v2()
108 while (end - pos >= 2) { in tls_process_status_request_v2()
111 len = WPA_GET_BE16(pos); in tls_process_status_request_v2()
112 pos += 2; in tls_process_status_request_v2()
[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 …]
/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 …]
H A Dmbo_ap.c37 char channels[200], *pos, *end; in mbo_ap_parse_non_pref_chan() local
63 pos = channels; in mbo_ap_parse_non_pref_chan()
64 end = pos + sizeof(channels); in mbo_ap_parse_non_pref_chan()
65 *pos = '\0'; in mbo_ap_parse_non_pref_chan()
67 ret = os_snprintf(pos, end - pos, "%s%u", in mbo_ap_parse_non_pref_chan()
69 if (os_snprintf_error(end - pos, ret)) { in mbo_ap_parse_non_pref_chan()
70 *pos = '\0'; in mbo_ap_parse_non_pref_chan()
73 pos += ret; in mbo_ap_parse_non_pref_chan()
86 const u8 *pos, *attr, *end; in mbo_ap_check_sta_assoc() local
92 pos = elems->mbo + 4; in mbo_ap_check_sta_assoc()
[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/wpa/src/eap_peer/
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 …]
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_gpsk.c109 const char *pos; in eap_gpsk_init() local
111 pos = os_strstr(phase1, "cipher="); in eap_gpsk_init()
112 if (pos) { in eap_gpsk_init()
113 data->forced_cipher = atoi(pos + 7); in eap_gpsk_init()
144 const u8 *pos, const u8 *end) in eap_gpsk_process_id_server() argument
148 if (end - pos < 2) { in eap_gpsk_process_id_server()
152 alen = WPA_GET_BE16(pos); in eap_gpsk_process_id_server()
153 pos += 2; in eap_gpsk_process_id_server()
154 if (end - pos < alen) { in eap_gpsk_process_id_server()
159 data->id_server = os_memdup(pos, alen); in eap_gpsk_process_id_server()
[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/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/llvm-project/lldb/source/Breakpoint/
H A DWatchpointList.cpp48 wp_collection::const_iterator pos, end = m_watchpoints.end(); in DumpWithLevel()
49 for (pos = m_watchpoints.begin(); pos != end; ++pos) in DumpWithLevel()
50 (*pos)->DumpWithLevel(s, description_level); in DumpWithLevel()
58 wp_collection::const_iterator pos, end = m_watchpoints.end(); in FindByAddress()
59 for (pos = m_watchpoints.begin(); pos != end; ++pos) { in FindByAddress()
60 lldb::addr_t wp_addr = (*pos) in FindByAddress()
46 wp_collection::const_iterator pos, end = m_watchpoints.end(); DumpWithLevel() local
56 wp_collection::const_iterator pos, end = m_watchpoints.end(); FindByAddress() local
74 wp_collection::const_iterator pos, end = m_watchpoints.end(); FindBySpec() local
114 wp_collection::const_iterator pos = GetIDConstIterator(watch_id); FindByID() local
141 wp_collection::const_iterator pos = m_watchpoints.begin(); GetByIndex() local
152 wp_collection::const_iterator pos = m_watchpoints.begin(); GetByIndex() local
161 wp_collection::const_iterator pos, end = m_watchpoints.end(); GetWatchpointIDs() local
169 wp_collection::iterator pos = GetIDIterator(watch_id); Remove() local
189 wp_collection::const_iterator pos, end = m_watchpoints.end(); GetHitCount() local
212 wp_collection::iterator pos, end = m_watchpoints.end(); GetDescription() local
223 wp_collection::iterator pos, end = m_watchpoints.end(); SetEnabledAll() local
233 wp_collection::iterator pos, end = m_watchpoints.end(); RemoveAll() local
[all...]
/freebsd/contrib/wpa/src/p2p/
H A Dp2p_sd.c21 const u8 *pos, *end; in wfd_wsd_supported() local
28 pos = wpabuf_head(wfd); in wfd_wsd_supported()
29 end = pos + wpabuf_len(wfd); in wfd_wsd_supported()
31 while (end - pos >= 3) { in wfd_wsd_supported()
32 subelem = *pos++; in wfd_wsd_supported()
33 len = WPA_GET_BE16(pos); in wfd_wsd_supported()
34 pos += 2; in wfd_wsd_supported()
35 if (len > end - pos) in wfd_wsd_supported()
39 u16 info = WPA_GET_BE16(pos); in wfd_wsd_supported()
43 pos += len; in wfd_wsd_supported()
[all …]
/freebsd/tools/tools/drm/radeon/mkregtable/
H A Dmkregtable.c368 * @pos: the &struct list_head to use as a loop cursor.
371 #define list_for_each(pos, head) \ argument
372 for (pos = (head)->next; prefetch(pos->next), pos != (head); \
373 pos = pos->next)
377 * @pos: the &struct list_head to use as a loop cursor.
385 #define __list_for_each(pos, head) \ argument
386 for (pos = (head)->next; pos != (head); pos = pos->next)
390 * @pos: the &struct list_head to use as a loop cursor.
393 #define list_for_each_prev(pos, head) \ argument
394 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dfs_core.h302 #define fs_list_for_each_entry(pos, root) \
303 list_for_each_entry(pos, root, node.list)
305 #define fs_list_for_each_entry_safe(pos, tmp, root) \
306 list_for_each_entry_safe(pos, tmp, root, node.list)
308 #define fs_for_each_ns_or_ft_reverse(pos, prio) \
309 list_for_each_entry_reverse(pos, &(prio)->node.children, list)
311 #define fs_for_each_ns_or_ft(pos, prio) \
312 list_for_each_entry(pos, (&(prio)->node.children), list)
314 #define fs_for_each_prio(pos, ns) \
315 fs_list_for_each_entry(pos,
190 fs_list_for_each_entry(pos,cond,root) global() argument
194 fs_list_for_each_entry_continue(pos,cond,root) global() argument
198 fs_list_for_each_entry_reverse(pos,cond,root) global() argument
202 fs_list_for_each_entry_continue_reverse(pos,cond,root) global() argument
206 fs_for_each_ft(pos,prio) global() argument
210 fs_for_each_ft_reverse(pos,prio) global() argument
215 fs_for_each_ns(pos,prio) global() argument
220 fs_for_each_ns_or_ft_reverse(pos,prio) global() argument
225 fs_for_each_ns_or_ft(pos,prio) global() argument
230 fs_for_each_ns_or_ft_continue_reverse(pos,prio) global() argument
235 fs_for_each_ns_or_ft_continue(pos,prio) global() argument
240 fs_for_each_prio(pos,ns) global() argument
244 fs_for_each_prio_reverse(pos,ns) global() argument
248 fs_for_each_prio_continue(pos,ns) global() argument
252 fs_for_each_prio_continue_reverse(pos,ns) global() argument
257 fs_for_each_fg(pos,ft) global() argument
261 fs_for_each_fte(pos,fg) global() argument
264 fs_for_each_dst(pos,fte) global() argument
[all...]

12345678910>>...68