| /freebsd-12.1/contrib/wpa/src/common/ |
| H A D | ieee802_11_common.c | 68 elems->wmm = pos; in ieee802_11_parse_vendor_specific() 101 elems->p2p = pos; in ieee802_11_parse_vendor_specific() 106 elems->wfd = pos; in ieee802_11_parse_vendor_specific() 111 elems->hs20 = pos; in ieee802_11_parse_vendor_specific() 121 elems->mbo = pos; in ieee802_11_parse_vendor_specific() 282 elems->oci = pos; in ieee802_11_parse_extension() 313 os_memset(elems, 0, sizeof(*elems)); in ieee802_11_parse_elems() 360 elems, in ieee802_11_parse_elems() 477 elems->mb_ies.ies[elems->mb_ies.nof_ies].ie = pos; in ieee802_11_parse_elems() 478 elems->mb_ies.ies[elems->mb_ies.nof_ies].ie_len = elen; in ieee802_11_parse_elems() [all …]
|
| H A D | hw_features_common.c | 159 struct ieee802_11_elems elems; in get_pri_sec_chan() local 164 if (elems.ht_operation) { in get_pri_sec_chan() 165 oper = (struct ieee80211_ht_operation *) elems.ht_operation; in get_pri_sec_chan() 250 struct ieee802_11_elems elems; in check_20mhz_bss() local 257 if (!elems.ht_capabilities) { in check_20mhz_bss() 263 if (elems.ht_operation) { in check_20mhz_bss() 264 oper = (struct ieee80211_ht_operation *) elems.ht_operation; in check_20mhz_bss() 299 struct ieee802_11_elems elems; in check_40mhz_2g4() local 340 ieee802_11_parse_elems((u8 *) (bss + 1), bss->ie_len, &elems, in check_40mhz_2g4() 342 if (elems.ht_capabilities) { in check_40mhz_2g4() [all …]
|
| /freebsd-12.1/contrib/libgnuregex/ |
| H A D | regex_internal.c | 1084 dest->elems[--sbase] = src1->elems[i1]; in re_node_set_add_intersect() 1114 if (dest->elems[is] > dest->elems[id]) in re_node_set_add_intersect() 1164 if (src1->elems[i1] > src2->elems[i2]) in re_node_set_init_union() 1166 dest->elems[id++] = src2->elems[i2++]; in re_node_set_init_union() 1171 dest->elems[id++] = src1->elems[i1++]; in re_node_set_init_union() 1221 if (dest->elems[id] == src->elems[is]) in re_node_set_merge() 1224 dest->elems[--sbase] = src->elems[is--]; in re_node_set_merge() 1314 set->elems[idx] = set->elems[idx - 1]; in re_node_set_insert() 1319 set->elems[idx] = set->elems[idx - 1]; in re_node_set_insert() 1363 if (set1->elems[i] != set2->elems[i]) in internal_function() [all …]
|
| H A D | regexec.c | 1257 return state->nodes.elems[i]; in check_halt_state_context() 1285 int candidate = edests->elems[i]; in proceed_next_node() 1685 int prev_node = cur_src->elems[i]; in build_sifted_states() 1878 ? dfa->edests[cur_node].elems[1] : -1); in sub_epsilon_src_nodes() 1982 dst = dfa->edests[node].elems[0]; in check_dst_limits_calc_pos_1() 2104 int node = dest_nodes->elems[node_idx]; in check_subexp_limits() 2164 node = candidates->elems[node_idx]; in sift_states_bkref() 2187 : dfa->edests[node].elems[0]); in sift_states_bkref() 2596 int node_idx = nodes->elems[i]; in transit_state_bkref() 2884 int cls_node = nodes->elems[cls_idx]; in find_subexp_node() [all …]
|
| /freebsd-12.1/contrib/wpa/wpa_supplicant/ |
| H A D | mesh_mpm.c | 125 if (!elems->supp_rates) { in copy_supp_rates() 131 if (elems->supp_rates_len + elems->ext_supp_rates_len > in copy_supp_rates() 136 elems->ext_supp_rates_len); in copy_supp_rates() 142 elems->supp_rates, elems->supp_rates_len, in copy_supp_rates() 143 elems->ext_supp_rates, elems->ext_supp_rates_len); in copy_supp_rates() 755 elems->he_capabilities, elems->he_capabilities_len); in mesh_mpm_add_peer() 1171 if (!elems.peer_mgmt) { in mesh_mpm_action_rx() 1177 if (!elems.mesh_id || !elems.mesh_config) { in mesh_mpm_action_rx() 1191 elems.peer_mgmt, in mesh_mpm_action_rx() 1268 elems.rsn_ie_len); in mesh_mpm_action_rx() [all …]
|
| H A D | mesh.c | 408 struct ieee802_11_elems elems; in wpa_mesh_notify_peer() local 551 struct ieee802_11_elems elems; in mesh_attr_text() local 559 if (elems.mesh_id_len < 1) in mesh_attr_text() 566 os_memcpy(mesh_id, elems.mesh_id, elems.mesh_id_len); in mesh_attr_text() 567 mesh_id[elems.mesh_id_len] = '\0'; in mesh_attr_text() 574 if (elems.mesh_config_len > 6) { in mesh_attr_text() 583 elems.mesh_config[0], elems.mesh_config[1], in mesh_attr_text() 584 elems.mesh_config[2], elems.mesh_config[3], in mesh_attr_text() 585 elems.mesh_config[4], elems.mesh_config[5], in mesh_attr_text() 586 elems.mesh_config[6]); in mesh_attr_text() [all …]
|
| H A D | mesh_rsn.c | 633 struct ieee802_11_elems *elems, const u8 *cat, in mesh_rsn_process_ampe() argument 646 elems->mic ? (elems->mic - 2) - cat : 0 }; in mesh_rsn_process_ampe() 668 if (!elems->mic || elems->mic_len < AES_BLOCK_SIZE) { in mesh_rsn_process_ampe() 673 ampe_buf = (u8 *) elems->mic + elems->mic_len; in mesh_rsn_process_ampe() 677 crypt_len = elems_len - (elems->mic - start); in mesh_rsn_process_ampe() 691 os_memcpy(crypt, elems->mic, crypt_len); in mesh_rsn_process_ampe()
|
| H A D | wmm_ac.c | 421 struct ieee802_11_elems elems; in wmm_ac_process_param_elem() local 427 if (ieee802_11_parse_elems(ies, ies_len, &elems, 1) == ParseFailed) { in wmm_ac_process_param_elem() 432 if (!elems.wmm) { in wmm_ac_process_param_elem() 437 if (elems.wmm_len != sizeof(*wmm_params)) { in wmm_ac_process_param_elem() 442 wmm_params = (struct wmm_parameter_element *)(elems.wmm); in wmm_ac_process_param_elem() 738 struct ieee802_11_elems elems; in wmm_ac_rx_action() local 782 if (ieee802_11_parse_elems(data + 2, len - 2, &elems, 1) != ParseOK) { in wmm_ac_rx_action() 790 if (elems.wmm_tspec_len != sizeof(struct wmm_tspec_element) - 2) { in wmm_ac_rx_action() 795 tspec = (struct wmm_tspec_element *)(elems.wmm_tspec - 2); in wmm_ac_rx_action()
|
| H A D | wnm_sta.h | 69 const struct wpabuf *elems); 71 struct wpabuf *elems);
|
| /freebsd-12.1/gnu/usr.bin/grep/ |
| H A D | dfa.c | 1407 dst->elems[i] = src->elems[i]; in copy() 1448 m->elems[m->nelem++] = s1->elems[i++]; in merge() 1450 m->elems[m->nelem++] = s2->elems[j++]; in merge() 1453 m->elems[m->nelem] = s1->elems[i++]; in merge() 1457 m->elems[m->nelem++] = s1->elems[i++]; in merge() 1459 m->elems[m->nelem++] = s2->elems[j++]; in merge() 1473 s->elems[i] = s->elems[i + 1]; in delete() 1501 != d->states[i].elems.elems[j].constraint in state_index() 1502 || s->elems[j].index != d->states[i].elems.elems[j].index) in state_index() 1973 pos = d->states[s].elems.elems[i]; in dfastate() [all …]
|
| H A D | dfa.h | 233 position *elems; /* Elements of this position set. */ member 243 position_set elems; /* Positions this state could match. */ member
|
| /freebsd-12.1/contrib/wpa/src/ap/ |
| H A D | drv_callbacks.c | 140 if (elems.wps_ie) { in hostapd_notif_assoc() 201 if (elems.p2p) { in hostapd_notif_assoc() 227 if (elems.ext_capab && elems.ext_capab_len > 4) { in hostapd_notif_assoc() 235 if (elems.hs20 && elems.hs20_len > 4) { in hostapd_notif_assoc() 311 elems.mdie, elems.mdie_len, in hostapd_notif_assoc() 312 elems.owe_dh, elems.owe_dh_len); in hostapd_notif_assoc() 441 elems.osen - 2, elems.osen_len + 2) < 0) in hostapd_notif_assoc() 547 elems.owe_dh) { in hostapd_notif_assoc() 551 elems.owe_dh, elems.owe_dh_len, in hostapd_notif_assoc() 1622 elems.owe_dh, elems.owe_dh_len); in hostapd_notif_update_dh_ie() [all …]
|
| H A D | ap_list.c | 171 struct ieee802_11_elems *elems, in ap_list_process_beacon() argument 193 elems->supp_rates, elems->supp_rates_len, in ap_list_process_beacon() 194 elems->ext_supp_rates, elems->ext_supp_rates_len); in ap_list_process_beacon() 196 if (elems->erp_info) in ap_list_process_beacon() 197 ap->erp = elems->erp_info[0]; in ap_list_process_beacon() 201 if (elems->ds_params) in ap_list_process_beacon() 202 ap->channel = elems->ds_params[0]; in ap_list_process_beacon() 203 else if (elems->ht_operation) in ap_list_process_beacon() 204 ap->channel = elems->ht_operation[0]; in ap_list_process_beacon() 208 if (elems->ht_capabilities) in ap_list_process_beacon()
|
| H A D | beacon.c | 735 struct ieee802_11_elems elems; in handle_probe_req() local 783 if ((!elems.ssid || !elems.supp_rates)) { in handle_probe_req() 800 if (elems.ds_params && in handle_probe_req() 839 elems.ssid_list_len == 0) { in handle_probe_req() 851 elems.ssid_len = 0; in handle_probe_req() 870 res = ssid_match(hapd, elems.ssid, elems.ssid_len, in handle_probe_req() 871 elems.ssid_list, elems.ssid_list_len); in handle_probe_req() 877 wpa_ssid_txt(elems.ssid, elems.ssid_len), in handle_probe_req() 886 elems.interworking && elems.interworking_len >= 1) { in handle_probe_req() 898 (elems.interworking_len == 7 || elems.interworking_len == 9)) { in handle_probe_req() [all …]
|
| H A D | ieee802_11.c | 1535 elems.rsn_ie, elems.rsn_ie_len); in handle_auth_fils() 1556 elems.rsn_ie - 2, elems.rsn_ie_len + 2, in handle_auth_fils() 1557 elems.mdie, elems.mdie_len, NULL, 0); in handle_auth_fils() 2590 if (elems->supp_rates_len + elems->ext_supp_rates_len > in copy_supp_rates() 2602 elems->supp_rates, elems->supp_rates_len, in copy_supp_rates() 2603 elems->ext_supp_rates, elems->ext_supp_rates_len); in copy_supp_rates() 2938 resp = check_wmm(hapd, sta, elems.wmm, elems.wmm_len); in check_assoc_ies() 3076 elems.mdie, elems.mdie_len, in check_assoc_ies() 3077 elems.owe_dh, elems.owe_dh_len); in check_assoc_ies() 3228 elems.osen - 2, elems.osen_len + 2) < 0) in check_assoc_ies() [all …]
|
| H A D | mbo_ap.c | 84 struct ieee802_11_elems *elems) in mbo_ap_check_sta_assoc() argument 89 if (!hapd->conf->mbo_enabled || !elems->mbo) in mbo_ap_check_sta_assoc() 92 pos = elems->mbo + 4; in mbo_ap_check_sta_assoc() 93 len = elems->mbo_len - 4; in mbo_ap_check_sta_assoc()
|
| H A D | mbo_ap.h | 19 struct ieee802_11_elems *elems); 29 struct ieee802_11_elems *elems) in mbo_ap_check_sta_assoc() argument
|
| H A D | wmm.c | 323 struct ieee802_11_elems elems; in hostapd_wmm_action() local 342 if (ieee802_11_parse_elems(pos, left, &elems, 1) == ParseFailed) { in hostapd_wmm_action() 352 if (!elems.wmm_tspec || in hostapd_wmm_action() 353 elems.wmm_tspec_len != (sizeof(struct wmm_tspec_element) - 2)) { in hostapd_wmm_action() 370 (elems.wmm_tspec - 2), len); in hostapd_wmm_action()
|
| /freebsd-12.1/sys/dev/ofw/ |
| H A D | ofw_bus_subr.c | 825 phandle_t *elems; in ofw_bus_parse_xref_list_internal() local 829 elems = NULL; in ofw_bus_parse_xref_list_internal() 831 (void **)&elems); in ofw_bus_parse_xref_list_internal() 836 pnode = elems[i++]; in ofw_bus_parse_xref_list_internal() 861 if (elems != NULL) in ofw_bus_parse_xref_list_internal() 921 char *elems; in ofw_bus_find_string_index() local 924 elems = NULL; in ofw_bus_find_string_index() 939 if (elems != NULL) in ofw_bus_find_string_index() 951 char *elems, *tptr; in ofw_bus_string_list_to_array() local 955 elems = NULL; in ofw_bus_string_list_to_array() [all …]
|
| /freebsd-12.1/contrib/wpa/src/rsn_supp/ |
| H A D | wpa.c | 3750 if (!elems.rsn_ie || in fils_process_auth() 3751 wpa_parse_wpa_ie_rsn(elems.rsn_ie - 2, elems.rsn_ie_len + 2, in fils_process_auth() 3768 if (!elems.mdie || !elems.ftie) { in fils_process_auth() 4323 if (!elems.rsn_ie) { in fils_process_assoc_resp() 4333 elems.rsn_ie - 2, elems.rsn_ie_len + 2)) { in fils_process_assoc_resp() 4339 elems.rsn_ie, elems.rsn_ie_len); in fils_process_assoc_resp() 4377 if (ocv_verify_tx_params(elems.oci, elems.oci_len, &ci, in fils_process_assoc_resp() 4392 wpa_parse_wpa_ie_rsn(elems.rsn_ie - 2, elems.rsn_ie_len + 2, in fils_process_assoc_resp() 4581 wpa_parse_wpa_ie_rsn(elems.rsn_ie - 2, 2 + elems.rsn_ie_len, in owe_process_assoc_resp() 4590 if (!elems.owe_dh) { in owe_process_assoc_resp() [all …]
|
| H A D | tdls.c | 2918 static int wpa_tdls_prohibited(struct ieee802_11_elems *elems) in wpa_tdls_prohibited() argument 2921 return !!(elems->ext_capab[4] & 0x40); in wpa_tdls_prohibited() 2928 return !!(elems->ext_capab[4] & 0x80); in wpa_tdls_chan_switch_prohibited() 2934 struct ieee802_11_elems elems; in wpa_tdls_ap_ies() local 2941 elems.ext_capab == NULL || elems.ext_capab_len < 5) in wpa_tdls_ap_ies() 2944 sm->tdls_prohibited = wpa_tdls_prohibited(&elems); in wpa_tdls_ap_ies() 2948 wpa_tdls_chan_switch_prohibited(&elems); in wpa_tdls_ap_ies() 2956 struct ieee802_11_elems elems; in wpa_tdls_assoc_resp_ies() local 2960 elems.ext_capab == NULL || elems.ext_capab_len < 5) in wpa_tdls_assoc_resp_ies() 2963 if (!sm->tdls_prohibited && wpa_tdls_prohibited(&elems)) { in wpa_tdls_assoc_resp_ies() [all …]
|
| /freebsd-12.1/contrib/binutils/binutils/ |
| H A D | windmc.c | 549 mc_get_block_count (mc_node_lang **nl, int elems) in mc_get_block_count() argument 558 while (i < elems) in mc_get_block_count() 562 while (i < elems && nl[i]->vid == exid + 1) in mc_get_block_count() 667 while (i < elems) in mc_write_blocks() 673 while (i < elems && nl[i]->vid == exid + 1) in mc_write_blocks() 698 if (elems <= 0) in windmc_write_bin() 711 block_count = mc_get_block_count (nl, elems); in windmc_write_bin() 715 mi = xmalloc (sizeof (mc_msg_item) * elems); in windmc_write_bin() 722 for (i = 0; i < elems; i++) in windmc_write_bin() 735 mc_write_blocks (mtbl, nl, mi, elems); in windmc_write_bin() [all …]
|
| /freebsd-12.1/contrib/wpa/src/p2p/ |
| H A D | p2p_parse.c | 527 struct ieee802_11_elems elems; in p2p_parse_ies() local 529 ieee802_11_parse_elems(data, len, &elems, 0); in p2p_parse_ies() 530 if (elems.ds_params) in p2p_parse_ies() 531 msg->ds_params = elems.ds_params; in p2p_parse_ies() 532 if (elems.ssid) in p2p_parse_ies() 533 msg->ssid = elems.ssid - 2; in p2p_parse_ies() 556 if (elems.wfd) { in p2p_parse_ies() 562 msg->pref_freq_list = elems.pref_freq_list; in p2p_parse_ies() 563 msg->pref_freq_list_len = elems.pref_freq_list_len; in p2p_parse_ies()
|
| /freebsd-12.1/contrib/apr/poll/unix/ |
| H A D | z_asio.c | 67 apr_hash_t *elems; member 289 priv->elems = apr_hash_make(p); in asio_pollset_create() 427 apr_hash_set(priv->elems, &(elem->os_pfd.fd), sizeof(int), elem); in asio_pollset_add() 502 elem = apr_hash_get(priv->elems, &(fd), sizeof(int)); in asio_pollset_remove() 509 apr_hash_set(priv->elems, &(fd), sizeof(int), NULL); in asio_pollset_remove()
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| H A D | vdev_geom.c | 53 SLIST_ENTRY(consumer_vdev_elem) elems; 147 SLIST_FOREACH(elem, priv, elems) { in vdev_geom_attrchanged() 172 SLIST_FOREACH(elem, priv, elems) { in vdev_geom_resize() 210 SLIST_FOREACH(elem, priv, elems) { in vdev_geom_orphan() 364 SLIST_FOREACH_SAFE(elem, priv, elems, elem_temp) { in vdev_geom_close_locked() 366 SLIST_REMOVE(priv, elem, consumer_vdev_elem, elems); in vdev_geom_close_locked() 897 SLIST_INSERT_HEAD(priv, elem, elems); in vdev_geom_open()
|