| /freebsd/sys/kern/ |
| H A D | kern_intr.c | 113 static void intr_event_update(struct intr_event *ie); 114 static int intr_event_schedule_thread(struct intr_event *ie, struct trapframe *frame); 118 struct intr_event *ie); 185 struct intr_event *ie; in ithread_update() local 189 ie = ithd->it_event; in ithread_update() 191 mtx_assert(&ie->ie_lock, MA_OWNED); in ithread_update() 194 if (CK_SLIST_EMPTY(&ie->ie_handlers)) in ithread_update() 197 pri = CK_SLIST_FIRST(&ie->ie_handlers)->ih_pri; in ithread_update() 200 strlcpy(td->td_name, ie->ie_fullname, sizeof(td->td_name)); in ithread_update() 213 intr_event_update(struct intr_event *ie) in intr_event_update() argument [all …]
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | wifi_display.c | 41 struct wpabuf *ie; in wifi_display_get_wfd_ie() local 54 ie = wpabuf_alloc(len); in wifi_display_get_wfd_ie() 55 if (ie == NULL) in wifi_display_get_wfd_ie() 60 wpabuf_put_buf(ie, global->wfd_subelem[i]); in wifi_display_get_wfd_ie() 63 return ie; in wifi_display_get_wfd_ie() 69 struct wpabuf *ie, *buf; in wifi_display_update_wfd_ie() local 174 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie() 175 wpa_hexdump_buf(MSG_DEBUG, "WFD: WFD IE for Beacon", ie); in wifi_display_update_wfd_ie() 176 p2p_set_wfd_ie_beacon(global->p2p, ie); in wifi_display_update_wfd_ie() 178 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie() [all …]
|
| H A D | bss.c | 27 const u8 *ie = wpa_bss_get_ie(bss, WLAN_EID_INTERWORKING); in wpa_bss_set_hessid() local 28 if (ie == NULL || (ie[1] != 7 && ie[1] != 9)) { in wpa_bss_set_hessid() 32 if (ie[1] == 7) in wpa_bss_set_hessid() 33 os_memcpy(bss->hessid, ie + 3, ETH_ALEN); in wpa_bss_set_hessid() 35 os_memcpy(bss->hessid, ie + 5, ETH_ALEN); in wpa_bss_set_hessid() 647 const struct wpa_scan_res *new_res, u32 ie) in are_ies_equal() argument 654 switch (ie) { in are_ies_equal() 656 old_ie = wpa_bss_get_vendor_ie(old, ie); in are_ies_equal() 657 new_ie = wpa_scan_get_vendor_ie(new_res, ie); in are_ies_equal() 661 old_ie_buff = wpa_bss_get_vendor_ie_multi(old, ie); in are_ies_equal() [all …]
|
| H A D | mbo.c | 107 struct wpa_ie_data ie; in wpas_mbo_check_pmf() local 119 if (!rsne || wpa_parse_wpa_ie(rsne, 2 + rsne[1], &ie) < 0) in wpas_mbo_check_pmf() 122 if (!(ie.capabilities & WPA_CAPABILITY_MFPC)) in wpas_mbo_check_pmf() 459 void wpas_mbo_scan_ie(struct wpa_supplicant *wpa_s, struct wpabuf *ie) in wpas_mbo_scan_ie() argument 467 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in wpas_mbo_scan_ie() 468 len = wpabuf_put(ie, 1); in wpas_mbo_scan_ie() 470 wpabuf_put_be24(ie, OUI_WFA); in wpas_mbo_scan_ie() 471 wpabuf_put_u8(ie, MBO_OUI_TYPE); in wpas_mbo_scan_ie() 473 wpabuf_put_u8(ie, MBO_ATTR_ID_CELL_DATA_CAPA); in wpas_mbo_scan_ie() 474 wpabuf_put_u8(ie, 1); in wpas_mbo_scan_ie() [all …]
|
| /freebsd/contrib/mandoc/ |
| H A D | dba_array.c | 64 int32_t ie; in dba_array_free() local 69 for (ie = 0; ie < array->eu; ie++) in dba_array_free() 70 free(array->ep[ie]); in dba_array_free() 77 dba_array_set(struct dba_array *array, int32_t ie, void *entry) in dba_array_set() argument 79 assert(ie >= 0); in dba_array_set() 80 assert(ie < array->ea); in dba_array_set() 81 assert(ie <= array->eu); in dba_array_set() 82 if (ie == array->eu) in dba_array_set() 86 array->ep[ie] = entry; in dba_array_set() 87 array->em[ie] = 0; in dba_array_set() [all …]
|
| H A D | dba.c | 188 dba_page_add(struct dba_array *page, int32_t ie, const char *str) in dba_page_add() argument 193 entries = dba_array_get(page, ie); in dba_page_add() 194 if (ie == DBP_ARCH) { in dba_page_add() 206 if (ie == DBP_FILE && *entry < ' ') in dba_page_add() 438 unsigned int ie, ne, slot; in dba_macro_write() 470 for (ie = 0; ie < ne; ie++) { in dba_macro_write() 471 kpos[ie] = dba_tell(); in dba_macro_write() 472 dba_str_write(entries[ie] in dba_macro_write() 437 unsigned int ie, ne, slot; dba_macro_write() local [all...] |
| /freebsd/contrib/wpa/src/wps/ |
| H A D | wps.c | 421 struct wpabuf *ie; in wps_build_assoc_req_ie() local 426 ie = wpabuf_alloc(100); in wps_build_assoc_req_ie() 427 if (ie == NULL) in wps_build_assoc_req_ie() 430 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in wps_build_assoc_req_ie() 431 len = wpabuf_put(ie, 1); in wps_build_assoc_req_ie() 432 wpabuf_put_be32(ie, WPS_DEV_OUI_WFA); in wps_build_assoc_req_ie() 434 if (wps_build_version(ie) || in wps_build_assoc_req_ie() 435 wps_build_req_type(ie, req_type) || in wps_build_assoc_req_ie() 436 wps_build_wfa_ext(ie, 0, NULL, 0, 0)) { in wps_build_assoc_req_ie() 437 wpabuf_free(ie); in wps_build_assoc_req_ie() [all …]
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | taxonomy.c | 103 const u8 *ie; in ie_to_string() local 120 ie = wpabuf_head(ies); in ie_to_string() 127 id = *ie++; in ie_to_string() 128 elen = *ie++; in ie_to_string() 136 if (WPA_GET_BE32(ie) == WPS_IE_VENDOR_TYPE) { in ie_to_string() 139 const u8 *data = &ie[4]; in ie_to_string() 152 sep, id, ie[0], ie[1], ie[2], ie[3]); in ie_to_string() 158 WPA_GET_LE16(ie)); in ie_to_string() 164 ",htagg:%02hx", (u16) ie[2]); in ie_to_string() 170 (u16) WPA_GET_LE32(ie + 3)); in ie_to_string() [all …]
|
| H A D | rrm.c | 99 const u8 *pos, *ie, *end; in hostapd_handle_radio_msmt_report() local 106 while ((ie = get_ie(pos, end - pos, WLAN_EID_MEASURE_REPORT))) { in hostapd_handle_radio_msmt_report() 107 if (ie[1] < 3) { in hostapd_handle_radio_msmt_report() 112 rep_mode = ie[3]; in hostapd_handle_radio_msmt_report() 114 rep_mode, ie[4]); in hostapd_handle_radio_msmt_report() 116 switch (ie[4]) { in hostapd_handle_radio_msmt_report() 118 hostapd_handle_lci_report(hapd, token, ie + 2, ie[1]); in hostapd_handle_radio_msmt_report() 121 hostapd_handle_range_report(hapd, token, ie + 2, ie[1]); in hostapd_handle_radio_msmt_report() 125 rep_mode, ie + 2, ie[1]); in hostapd_handle_radio_msmt_report() 130 ie[4]); in hostapd_handle_radio_msmt_report() [all …]
|
| /freebsd/sbin/ipf/libipf/ |
| H A D | interror.c | 546 ipf_error_entry_t *ie; in find_error() local 552 ie = ipf_errors + l + step; in find_error() 553 if (ie->iee_number == errnum) in find_error() 554 return (ie); in find_error() 556 if (ie->iee_number > errnum) in find_error() 570 ipf_error_entry_t *ie; in ipf_geterror() local 575 ie = find_error(errnum); in ipf_geterror() 576 if (ie != NULL) in ipf_geterror() 577 return (ie->iee_text); in ipf_geterror() 590 ipf_error_entry_t *ie; in ipf_strerror() local [all …]
|
| /freebsd/contrib/wpa/src/p2p/ |
| H A D | p2p_group.c | 127 static void p2p_client_info(struct wpabuf *ie, struct p2p_group_member *m) in p2p_client_info() argument 131 if (wpabuf_tailroom(ie) < wpabuf_len(m->client_info) + 1) in p2p_client_info() 133 wpabuf_put_buf(ie, m->client_info); in p2p_client_info() 138 struct wpabuf *ie) in p2p_group_add_common_ies() argument 160 p2p_buf_add_capability(ie, dev_capab, group_capab); in p2p_group_add_common_ies() 164 static void p2p_group_add_noa(struct wpabuf *ie, struct wpabuf *noa) in p2p_group_add_noa() argument 169 wpabuf_put_u8(ie, P2P_ATTR_NOTICE_OF_ABSENCE); in p2p_group_add_noa() 170 wpabuf_put_le16(ie, wpabuf_len(noa)); in p2p_group_add_noa() 171 wpabuf_put_buf(ie, noa); in p2p_group_add_noa() 177 struct wpabuf *ie; in p2p_group_encaps_probe_resp() local [all …]
|
| /freebsd/contrib/wpa/src/rsn_supp/ |
| H A D | wpa.c | 910 struct wpa_eapol_ie_parse ie; in wpa_supplicant_process_1_of_4_wpa() local 924 os_memset(&ie, 0, sizeof(ie)); in wpa_supplicant_process_1_of_4_wpa() 926 res = wpa_supplicant_get_pmk(sm, src_addr, ie.pmkid); in wpa_supplicant_process_1_of_4_wpa() 978 struct wpa_eapol_ie_parse ie; in wpa_supplicant_process_1_of_4() local 1009 os_memset(&ie, 0, sizeof(ie)); in wpa_supplicant_process_1_of_4() 1013 if (wpa_supplicant_parse_ies(key_data, key_data_len, &ie) < 0) { in wpa_supplicant_process_1_of_4() 1018 if (ie.pmkid) { in wpa_supplicant_process_1_of_4() 1020 ie.pmkid, PMKID_LEN); in wpa_supplicant_process_1_of_4() 1023 if (sm->mlo.valid_links && !is_valid_ap_mld_mac_kde(sm, ie.mac_addr)) { in wpa_supplicant_process_1_of_4() 1029 res = wpa_supplicant_get_pmk(sm, src_addr, ie.pmkid); in wpa_supplicant_process_1_of_4() [all …]
|
| /freebsd/sys/sys/ |
| H A D | interrupt.h | 166 void db_dump_intr_event(struct intr_event *ie, int handlers); 169 int intr_event_add_handler(struct intr_event *ie, const char *name, 172 int intr_event_bind(struct intr_event *ie, int cpu); 173 int intr_event_bind_irqonly(struct intr_event *ie, int cpu); 174 int intr_event_bind_ithread(struct intr_event *ie, int cpu); 176 int intr_event_bind_ithread_cpuset(struct intr_event *ie, 183 int intr_event_describe_handler(struct intr_event *ie, void *cookie, 185 int intr_event_destroy(struct intr_event *ie); 186 int intr_event_handle(struct intr_event *ie, struct trapframe *frame);
|
| /freebsd/contrib/unbound/ipsecmod/ |
| H A D | ipsecmod-whitelist.c | 99 ipsecmod_whitelist_apply_cfg(struct ipsecmod_env* ie, in ipsecmod_whitelist_apply_cfg() argument 102 ie->whitelist = rbtree_create(name_tree_compare); in ipsecmod_whitelist_apply_cfg() 103 if (!ie->whitelist) in ipsecmod_whitelist_apply_cfg() 105 if(!read_whitelist(ie->whitelist, cfg)) in ipsecmod_whitelist_apply_cfg() 107 name_tree_init_parents(ie->whitelist); in ipsecmod_whitelist_apply_cfg() 142 ipsecmod_domain_is_whitelisted(struct ipsecmod_env* ie, uint8_t* dname, in ipsecmod_domain_is_whitelisted() argument 145 if(!ie->whitelist) return 1; /* No whitelist, treat as whitelisted. */ in ipsecmod_domain_is_whitelisted() 146 return name_tree_lookup(ie->whitelist, dname, dname_len, in ipsecmod_domain_is_whitelisted()
|
| /freebsd/contrib/wpa/src/common/ |
| H A D | wpa_common.c | 1160 static int wpa_ft_parse_ftie(const u8 *ie, size_t ie_len, in wpa_ft_parse_ftie() argument 1167 end = ie + ie_len; in wpa_ft_parse_ftie() 1284 static int wpa_ft_parse_fte(int key_mgmt, const u8 *ie, size_t len, in wpa_ft_parse_fte() argument 1289 const u8 *pos = ie; in wpa_ft_parse_fte() 1340 return wpa_ft_parse_ftie(ie, len, parse, pos); in wpa_ft_parse_fte() 3781 struct wpa_eapol_ie_parse *ie) in wpa_parse_vendor_specific() argument 3795 ie->wmm = &pos[2]; in wpa_parse_vendor_specific() 3796 ie->wmm_len = pos[1]; in wpa_parse_vendor_specific() 3798 ie->wmm, ie->wmm_len); in wpa_parse_vendor_specific() 3800 ie->wmm = &pos[2]; in wpa_parse_vendor_specific() [all …]
|
| /freebsd/contrib/unbound/ipset/ |
| H A D | ipset.c | 183 ipset_add_rrset_data(struct ipset_env *ie, in ipset_add_rrset_data() argument 208 ret = add_to_ipset((filter_dev)ie->dev, setname, rr_data + 2, af); in ipset_add_rrset_data() 218 ipset_check_zones_for_rrset(struct module_env *env, struct ipset_env *ie, in ipset_check_zones_for_rrset() argument 258 ipset_add_rrset_data(ie, d, setname, af, dname); in ipset_check_zones_for_rrset() 266 struct query_info qinfo, struct ipset_env *ie) in ipset_update() argument 277 if (!ie->dev) { in ipset_update() 279 ie->dev = open_filter(); in ipset_update() 280 if (!ie->dev) { in ipset_update() 298 ie->v4_enabled == 1) { in ipset_update() 300 setname = ie->name_v4; in ipset_update() [all …]
|
| /freebsd/sys/net80211/ |
| H A D | ieee80211_regdomain.c | 262 struct ieee80211_country_ie *ie; in ieee80211_alloc_countryie() local 273 ie = (struct ieee80211_country_ie *) aie->ie_data; in ieee80211_alloc_countryie() 274 ie->ie = IEEE80211_ELEMID_COUNTRY; in ieee80211_alloc_countryie() 278 ie->cc[0] = ie->cc[1] = ' '; in ieee80211_alloc_countryie() 280 ie->cc[0] = rd->isocc[0]; in ieee80211_alloc_countryie() 281 ie->cc[1] = rd->isocc[1]; in ieee80211_alloc_countryie() 289 ie->cc[2] = (rd->location == 'I' ? 'I' : in ieee80211_alloc_countryie() 294 frm = (uint8_t *)&ie->band[0]; in ieee80211_alloc_countryie() 331 ie->len = frm - ie->cc; in ieee80211_alloc_countryie() 332 if (ie->len & 1) { /* Zero pad to multiple of 2 */ in ieee80211_alloc_countryie() [all …]
|
| /freebsd/sbin/ifconfig/ |
| H A D | ifieee80211.c | 2703 printie(if_ctx *ctx, const char* tag, const uint8_t *ie, size_t ielen, unsigned int maxlen) in printie() argument 2711 for (; ielen > 0; ie++, ielen--) { in printie() 2714 printf("%02x", *ie); in printie() 2740 printwmeparam(if_ctx *ctx, const char *tag, const u_int8_t *ie) in printwmeparam() argument 2744 (const struct ieee80211_wme_param *) ie; in printwmeparam() 2751 ie += offsetof(struct ieee80211_wme_param, params_acParams); in printwmeparam() 2770 printwmeinfo(if_ctx *ctx, const char *tag, const u_int8_t *ie) in printwmeinfo() argument 2775 (const struct ieee80211_wme_info *) ie; in printwmeinfo() 2782 printhecap(if_ctx *ctx, const char *tag, const uint8_t *ie) in printhecap() argument 2794 if (ie[1] < 1 + sizeof(*hecap) + 4) { in printhecap() [all …]
|
| /freebsd/contrib/unbound/cachedb/ |
| H A D | cachedb.c | 652 cachedb_extcache_lookup(struct module_qstate* qstate, struct cachedb_env* ie, in cachedb_extcache_lookup() argument 659 if( !(*ie->backend->lookup)(qstate->env, ie, key, in cachedb_extcache_lookup() 681 cachedb_extcache_store(struct module_qstate* qstate, struct cachedb_env* ie) in cachedb_extcache_store() argument 691 (*ie->backend->store)(qstate->env, ie, key, in cachedb_extcache_store() 802 struct cachedb_env* ie, int id) in cachedb_handle_query() argument 808 if(!ie->enabled) { in cachedb_handle_query() 826 if(cachedb_intcache_lookup(qstate, ie)) { in cachedb_handle_query() 843 if(cachedb_extcache_lookup(qstate, ie, &msg_expired, &msg_timestamp, in cachedb_handle_query() 846 log_dns_msg(ie->backend->name, in cachedb_handle_query() 907 struct cachedb_qstate* ATTR_UNUSED(iq), struct cachedb_env* ie, int id) in cachedb_handle_response() argument [all …]
|
| /freebsd/sys/contrib/dev/athk/ath11k/ |
| H A D | p2p.c | 80 static void ath11k_p2p_noa_ie_assign(struct ath11k_vif *arvif, void *ie, in ath11k_p2p_noa_ie_assign() argument 89 arvif->u.ap.noa_data = ie; in ath11k_p2p_noa_ie_assign() 97 void *ie; in __ath11k_p2p_noa_update() local 108 ie = kmalloc(len, GFP_ATOMIC); in __ath11k_p2p_noa_update() 109 if (!ie) in __ath11k_p2p_noa_update() 112 ath11k_p2p_noa_ie_fill(ie, len, noa); in __ath11k_p2p_noa_update() 113 ath11k_p2p_noa_ie_assign(arvif, ie, len); } in __ath11k_p2p_noa_update()
|
| /freebsd/sys/contrib/dev/athk/ath10k/ |
| H A D | p2p.c | 70 static void ath10k_p2p_noa_ie_assign(struct ath10k_vif *arvif, void *ie, in ath10k_p2p_noa_ie_assign() argument 79 arvif->u.ap.noa_data = ie; in ath10k_p2p_noa_ie_assign() 87 void *ie; in __ath10k_p2p_noa_update() local 98 ie = kmalloc(len, GFP_ATOMIC); in __ath10k_p2p_noa_update() 99 if (!ie) in __ath10k_p2p_noa_update() 102 ath10k_p2p_noa_ie_fill(ie, len, noa); in __ath10k_p2p_noa_update() 103 ath10k_p2p_noa_ie_assign(arvif, ie, len); in __ath10k_p2p_noa_update()
|
| /freebsd/sys/contrib/dev/athk/ath12k/ |
| H A D | p2p.c | 73 static void ath12k_p2p_noa_ie_assign(struct ath12k_link_vif *arvif, void *ie, in ath12k_p2p_noa_ie_assign() argument 82 arvif->ahvif->u.ap.noa_data = ie; in ath12k_p2p_noa_ie_assign() 90 void *ie; in __ath12k_p2p_noa_update() local 101 ie = kmalloc(len, GFP_ATOMIC); in __ath12k_p2p_noa_update() 102 if (!ie) in __ath12k_p2p_noa_update() 105 ath12k_p2p_noa_ie_fill(ie, len, noa); in __ath12k_p2p_noa_update() 106 ath12k_p2p_noa_ie_assign(arvif, ie, len); in __ath12k_p2p_noa_update()
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | ps.c | 390 struct rtw89_p2p_noa_ie *ie = &setter->ie; in rtw89_p2p_noa_renew() local 391 struct rtw89_p2p_ie_head *p2p_head = &ie->p2p_head; in rtw89_p2p_noa_renew() 392 struct rtw89_noa_attr_head *noa_head = &ie->noa_head; in rtw89_p2p_noa_renew() 399 memset(ie, 0, sizeof(*ie)); in rtw89_p2p_noa_renew() 418 struct rtw89_p2p_noa_ie *ie = &setter->ie; in rtw89_p2p_noa_append() local 419 struct rtw89_p2p_ie_head *p2p_head = &ie->p2p_head; in rtw89_p2p_noa_append() 420 struct rtw89_noa_attr_head *noa_head = &ie->noa_head; in rtw89_p2p_noa_append() 431 ie->noa_desc[setter->noa_count++] = *desc; in rtw89_p2p_noa_append() 437 struct rtw89_p2p_noa_ie *ie = &setter->ie; in rtw89_p2p_noa_fetch() local 447 *data = ie; in rtw89_p2p_noa_fetch() [all …]
|
| /freebsd/sys/dev/ufshci/ |
| H A D | ufshci_ctrlr.c | 268 ufshci_mmio_write_4(ctrlr, ie, 0); in ufshci_ctrlr_disable() 277 uint32_t ie, hcs; in ufshci_ctrlr_enable() local 302 ie = ufshci_mmio_read_4(ctrlr, ie); in ufshci_ctrlr_enable() 303 ie |= UFSHCIM(UFSHCI_IE_REG_UTRCE); /* UTR Completion */ in ufshci_ctrlr_enable() 304 ie |= UFSHCIM(UFSHCI_IE_REG_UEE); /* UIC Error */ in ufshci_ctrlr_enable() 305 ie |= UFSHCIM(UFSHCI_IE_REG_UTMRCE); /* UTMR Completion */ in ufshci_ctrlr_enable() 306 ie |= UFSHCIM(UFSHCI_IE_REG_DFEE); /* Device Fatal Error */ in ufshci_ctrlr_enable() 307 ie |= UFSHCIM(UFSHCI_IE_REG_UTPEE); /* UTP Error */ in ufshci_ctrlr_enable() 308 ie |= UFSHCIM(UFSHCI_IE_REG_HCFEE); /* Host Ctrlr Fatal Error */ in ufshci_ctrlr_enable() 309 ie |= UFSHCIM(UFSHCI_IE_REG_SBFEE); /* System Bus Fatal Error */ in ufshci_ctrlr_enable() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/ |
| H A D | iwl-utils.h | 42 const u8 *ie; in iwl_find_ie_offset() local 49 ie = cfg80211_find_ie(eid, mgmt->u.beacon.variable, frame_size); in iwl_find_ie_offset() 50 if (!ie) in iwl_find_ie_offset() 53 return ie - beacon; in iwl_find_ie_offset()
|