/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpa_priv.c | 43 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, in wpa_priv_cmd_register() argument 46 if (iface->drv_priv) { in wpa_priv_cmd_register() 48 if (iface->driver->deinit) in wpa_priv_cmd_register() 49 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register() 50 iface->drv_priv = NULL; in wpa_priv_cmd_register() 51 iface->wpas_registered = 0; in wpa_priv_cmd_register() 54 if (iface->l2) { in wpa_priv_cmd_register() 57 l2_packet_deinit(iface->l2); in wpa_priv_cmd_register() 58 iface->l2 = NULL; in wpa_priv_cmd_register() 61 if (iface->driver->init == NULL) in wpa_priv_cmd_register() [all …]
|
/external/dhcpcd/ |
D | dhcpcd.c | 182 struct interface *iface; in cleanup() local 188 iface = ifaces; in cleanup() 189 ifaces = iface->next; in cleanup() 190 free_interface(iface); in cleanup() 237 drop_dhcp(struct interface *iface, const char *reason) in drop_dhcp() argument 239 free(iface->state->old); in drop_dhcp() 240 iface->state->old = iface->state->new; in drop_dhcp() 241 iface->state->new = NULL; in drop_dhcp() 242 iface->state->reason = reason; in drop_dhcp() 243 configure(iface); in drop_dhcp() [all …]
|
D | arp.c | 48 send_arp(const struct interface *iface, int op, in_addr_t sip, in_addr_t tip) in send_arp() argument 56 ar.ar_hrd = htons(iface->family); in send_arp() 58 ar.ar_hln = iface->hwlen; in send_arp() 63 memcpy(p, iface->hwaddr, iface->hwlen); in send_arp() 64 p += iface->hwlen; in send_arp() 68 retval = iface->hwlen; in send_arp() 74 retval = send_raw_packet(iface, ETHERTYPE_ARP, arp_buffer, len); in send_arp() 79 handle_arp_failure(struct interface *iface) in handle_arp_failure() argument 84 if ((iface->state->offer != NULL && in handle_arp_failure() 85 iface->state->offer->cookie != htonl(MAGIC_COOKIE)) || in handle_arp_failure() [all …]
|
D | ipv4ll.c | 88 struct interface *iface = arg; in start_ipv4ll() local 91 delete_timeout(NULL, iface); in start_ipv4ll() 92 iface->state->probes = 0; in start_ipv4ll() 93 iface->state->claims = 0; in start_ipv4ll() 94 if (iface->addr.s_addr) { in start_ipv4ll() 95 iface->state->conflicts = 0; in start_ipv4ll() 96 if (IN_LINKLOCAL(htonl(iface->addr.s_addr))) { in start_ipv4ll() 97 send_arp_announce(iface); in start_ipv4ll() 102 if (iface->state->offer == NULL) in start_ipv4ll() 105 addr = iface->state->offer->yiaddr; in start_ipv4ll() [all …]
|
D | bpf.c | 52 open_socket(struct interface *iface, int protocol) in open_socket() argument 89 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in open_socket() 96 if (iface->buffer_size != (size_t)buf_len) { in open_socket() 97 free(iface->buffer); in open_socket() 98 iface->buffer_size = buf_len; in open_socket() 99 iface->buffer = xmalloc(buf_len); in open_socket() 100 iface->buffer_len = iface->buffer_pos = 0; in open_socket() 113 fdp = &iface->arp_fd; in open_socket() 117 fdp = &iface->raw_fd; in open_socket() 131 free(iface->buffer); in open_socket() [all …]
|
D | configure.c | 166 make_env(const struct interface *iface, const char *reason, char ***argv) in make_env() argument 170 const struct if_options *ifo = iface->state->options; in make_env() 189 e = strlen("interface") + strlen(iface->name) + 2; in make_env() 191 snprintf(env[0], e, "interface=%s", iface->name); in make_env() 202 snprintf(env[3], e, "ifmetric=%d", iface->metric); in make_env() 204 snprintf(env[4], e, "ifwireless=%d", iface->wireless); in make_env() 206 snprintf(env[5], e, "ifflags=%u", iface->flags); in make_env() 208 snprintf(env[6], e, "ifmtu=%d", get_mtu(iface->name)); in make_env() 224 if ((dhcp && iface->state->new) || (ra && iface->ras)) { in make_env() 231 if (*iface->state->profile) { in make_env() [all …]
|
D | net.h | 86 const struct interface *iface; member 103 #define get_mtu(iface) do_mtu(iface, 0) argument 104 #define set_mtu(iface, mtu) do_mtu(iface, mtu) argument 118 #define add_address(iface, addr, net, brd) \ argument 119 if_address(iface, addr, net, brd, 1) 120 #define del_address(iface, addr, net) \ argument 121 if_address(iface, addr, net, NULL, -1) 122 #define has_address(iface, addr, net) \ argument 123 do_address(iface, addr, net, NULL, 0) 124 #define get_address(iface, addr, net, dst) \ argument [all …]
|
/external/wpa_supplicant_8/src/ap/ |
D | dfs.c | 21 static int dfs_get_used_n_chans(struct hostapd_iface *iface) in dfs_get_used_n_chans() argument 25 if (iface->conf->ieee80211n && iface->conf->secondary_channel) in dfs_get_used_n_chans() 28 if (iface->conf->ieee80211ac) { in dfs_get_used_n_chans() 29 switch (iface->conf->vht_oper_chwidth) { in dfs_get_used_n_chans() 144 static int is_in_chanlist(struct hostapd_iface *iface, in is_in_chanlist() argument 149 if (!iface->conf->chanlist) in is_in_chanlist() 152 for (entry = iface->conf->chanlist; *entry != -1; entry++) { in is_in_chanlist() 167 static int dfs_find_channel(struct hostapd_iface *iface, in dfs_find_channel() argument 175 mode = iface->current_mode; in dfs_find_channel() 176 n_chans = dfs_get_used_n_chans(iface); in dfs_find_channel() [all …]
|
D | ap_list.c | 31 static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) in ap_list_beacon_olbc() argument 35 if (iface->current_mode == NULL || in ap_list_beacon_olbc() 36 iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G || in ap_list_beacon_olbc() 37 iface->conf->channel != ap->channel) in ap_list_beacon_olbc() 53 static struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *ap) in ap_get_ap() argument 57 s = iface->ap_hash[STA_HASH(ap)]; in ap_get_ap() 64 static void ap_ap_list_add(struct hostapd_iface *iface, struct ap_info *ap) in ap_ap_list_add() argument 66 if (iface->ap_list) { in ap_ap_list_add() 67 ap->prev = iface->ap_list->prev; in ap_ap_list_add() 68 iface->ap_list->prev = ap; in ap_ap_list_add() [all …]
|
D | hw_features.c | 74 int hostapd_get_hw_features(struct hostapd_iface *iface) in hostapd_get_hw_features() argument 76 struct hostapd_data *hapd = iface->bss[0]; in hostapd_get_hw_features() 92 iface->hw_flags = flags; in hostapd_get_hw_features() 94 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); in hostapd_get_hw_features() 95 iface->hw_features = modes; in hostapd_get_hw_features() 96 iface->num_hw_features = num_modes; in hostapd_get_hw_features() 101 (iface->drv_flags & WPA_DRIVER_FLAGS_RADAR); in hostapd_get_hw_features() 118 !(iface->drv_flags & in hostapd_get_hw_features() 144 int hostapd_prepare_rates(struct hostapd_iface *iface, in hostapd_prepare_rates() argument 153 if (iface->conf->basic_rates) in hostapd_prepare_rates() [all …]
|
D | acs.c | 244 static int acs_request_scan(struct hostapd_iface *iface); 262 static void acs_cleanup(struct hostapd_iface *iface) in acs_cleanup() argument 267 for (i = 0; i < iface->current_mode->num_channels; i++) { in acs_cleanup() 268 chan = &iface->current_mode->channels[i]; in acs_cleanup() 278 iface->chans_surveyed = 0; in acs_cleanup() 279 iface->acs_num_completed_scans = 0; in acs_cleanup() 283 static void acs_fail(struct hostapd_iface *iface) in acs_fail() argument 286 acs_cleanup(iface); in acs_fail() 287 hostapd_disable_iface(iface); in acs_fail() 325 acs_survey_chan_interference_factor(struct hostapd_iface *iface, in acs_survey_chan_interference_factor() argument [all …]
|
D | ieee802_11_ht.c | 29 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || in hostapd_eid_ht_capabilities() 39 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; in hostapd_eid_ht_capabilities() 40 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, in hostapd_eid_ht_capabilities() 97 oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); in hostapd_eid_ht_operation() 122 int hostapd_ht_operation_update(struct hostapd_iface *iface) in hostapd_ht_operation_update() argument 127 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) in hostapd_ht_operation_update() 131 __func__, iface->ht_op_mode); in hostapd_ht_operation_update() 133 if (!(iface->ht_op_mode & HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT) in hostapd_ht_operation_update() 134 && iface->num_sta_ht_no_gf) { in hostapd_ht_operation_update() 135 iface->ht_op_mode |= HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT; in hostapd_ht_operation_update() [all …]
|
D | hostapd.c | 41 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 43 static int setup_interface2(struct hostapd_iface *iface); 48 int (*cb)(struct hostapd_iface *iface, in hostapd_for_each_interface() argument 55 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface() 88 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss() 90 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss() 108 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss() 121 wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface); in hostapd_reload_bss() 125 static void hostapd_clear_old(struct hostapd_iface *iface) in hostapd_clear_old() argument 133 for (j = 0; j < iface->num_bss; j++) { in hostapd_clear_old() [all …]
|
D | hw_features.h | 17 int hostapd_get_hw_features(struct hostapd_iface *iface); 18 int hostapd_acs_completed(struct hostapd_iface *iface, int err); 19 int hostapd_select_hw_mode(struct hostapd_iface *iface); 23 int hostapd_check_ht_capab(struct hostapd_iface *iface); 24 int hostapd_prepare_rates(struct hostapd_iface *iface, 26 void hostapd_stop_setup_timers(struct hostapd_iface *iface); 34 static inline int hostapd_get_hw_features(struct hostapd_iface *iface) in hostapd_get_hw_features() argument 39 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface) in hostapd_select_hw_mode() argument 54 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface) in hostapd_check_ht_capab() argument 59 static inline int hostapd_prepare_rates(struct hostapd_iface *iface, in hostapd_prepare_rates() argument [all …]
|
/external/chromium_org/ppapi/native_client/src/untrusted/pnacl_irt_shim/ |
D | pnacl_shim.c | 219 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1.real_iface; in Pnacl_M37_PPB_Compositor_IsCompositor() local 220 return iface->IsCompositor(resource); in Pnacl_M37_PPB_Compositor_IsCompositor() 224 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1.real_iface; in Pnacl_M37_PPB_Compositor_Create() local 225 return iface->Create(instance); in Pnacl_M37_PPB_Compositor_Create() 229 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1.real_iface; in Pnacl_M37_PPB_Compositor_AddLayer() local 230 return iface->AddLayer(compositor); in Pnacl_M37_PPB_Compositor_AddLayer() 234 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1.real_iface; in Pnacl_M37_PPB_Compositor_CommitLayers() local 235 return iface->CommitLayers(compositor, *cc); in Pnacl_M37_PPB_Compositor_CommitLayers() 239 const struct PPB_Compositor_0_1 *iface = Pnacl_WrapperInfo_PPB_Compositor_0_1.real_iface; in Pnacl_M37_PPB_Compositor_ResetLayers() local 240 return iface->ResetLayers(compositor); in Pnacl_M37_PPB_Compositor_ResetLayers() [all …]
|
/external/libsepol/src/ |
D | iface_record.c | 56 const sepol_iface_t * iface, in hidden_def() 60 if (sepol_iface_key_create(handle, iface->name, key_ptr) < 0) { in hidden_def() 62 "interface %s", iface->name); in hidden_def() 74 int sepol_iface_compare(const sepol_iface_t * iface, in sepol_iface_compare() argument 78 return strcmp(iface->name, key->name); in sepol_iface_compare() 81 int sepol_iface_compare2(const sepol_iface_t * iface, in sepol_iface_compare2() argument 85 return strcmp(iface->name, iface2->name); in sepol_iface_compare2() 89 int sepol_iface_create(sepol_handle_t * handle, sepol_iface_t ** iface) in sepol_iface_create() argument 104 *iface = tmp_iface; in sepol_iface_create() 112 const char *sepol_iface_get_name(const sepol_iface_t * iface) in hidden_def() [all …]
|
D | interfaces.c | 14 ocontext_t ** iface, const sepol_iface_t * record) in iface_from_record() argument 47 *iface = tmp_iface; in iface_from_record() 68 ocontext_t * iface, sepol_iface_t ** record) in iface_to_record() argument 71 char *name = iface->u.name; in iface_to_record() 72 context_struct_t *ifcon = &iface->context[0]; in iface_to_record() 73 context_struct_t *msgcon = &iface->context[1]; in iface_to_record() 172 ocontext_t *head, *prev, *c, *iface = NULL; in sepol_iface_modify() local 177 if (iface_from_record(handle, policydb, &iface, data) < 0) in sepol_iface_modify() 186 iface->next = c->next; in sepol_iface_modify() 188 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify() [all …]
|
/external/chromium_org/ppapi/generators/ |
D | idl_gen_wrapper.py | 21 def ChoosePPFunc(iface, ppb_func, ppp_func): argument 22 name = iface.node.GetName() 219 for iface in ifaces: 220 releases_for_iface = iface.GetUniqueReleases(releases) 222 version = iface.GetVersion(release) 223 struct_name = self.cgen.GetStructName(iface, release, 225 needs_wrap = self.InterfaceVersionNeedsWrapping(iface, version) 231 Interface(iface, release, version, 248 for iface in iface_releases: 249 if iface.needs_wrapping: [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_new_introspect.c | 30 struct interfaces *iface; in add_interface() local 32 dl_list_for_each(iface, list, struct interfaces, list) { in add_interface() 33 if (os_strcmp(iface->dbus_interface, dbus_interface) == 0) in add_interface() 34 return iface; /* already in the list */ in add_interface() 37 iface = os_zalloc(sizeof(struct interfaces)); in add_interface() 38 if (!iface) in add_interface() 40 iface->xml = wpabuf_alloc(6000); in add_interface() 41 if (iface->xml == NULL) { in add_interface() 42 os_free(iface); in add_interface() 45 wpabuf_printf(iface->xml, "<interface name=\"%s\">", dbus_interface); in add_interface() [all …]
|
/external/libvpx/libvpx/vpx/src/ |
D | vpx_decoder.c | 22 vpx_codec_iface_t *iface, in vpx_codec_dec_init_ver() argument 30 else if (!ctx || !iface) in vpx_codec_dec_init_ver() 32 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_dec_init_ver() 34 else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) in vpx_codec_dec_init_ver() 36 else if ((flags & VPX_CODEC_USE_POSTPROC) && !(iface->caps & VPX_CODEC_CAP_POSTPROC)) in vpx_codec_dec_init_ver() 39 !(iface->caps & VPX_CODEC_CAP_ERROR_CONCEALMENT)) in vpx_codec_dec_init_ver() 42 !(iface->caps & VPX_CODEC_CAP_INPUT_FRAGMENTS)) in vpx_codec_dec_init_ver() 44 else if (!(iface->caps & VPX_CODEC_CAP_DECODER)) in vpx_codec_dec_init_ver() 48 ctx->iface = iface; in vpx_codec_dec_init_ver() 49 ctx->name = iface->name; in vpx_codec_dec_init_ver() [all …]
|
D | vpx_encoder.c | 24 vpx_codec_iface_t *iface, in vpx_codec_enc_init_ver() argument 32 else if (!ctx || !iface || !cfg) in vpx_codec_enc_init_ver() 34 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_enc_init_ver() 36 else if (!(iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_enc_init_ver() 38 else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) in vpx_codec_enc_init_ver() 41 && !(iface->caps & VPX_CODEC_CAP_PSNR)) in vpx_codec_enc_init_ver() 44 && !(iface->caps & VPX_CODEC_CAP_OUTPUT_PARTITION)) in vpx_codec_enc_init_ver() 47 ctx->iface = iface; in vpx_codec_enc_init_ver() 48 ctx->name = iface->name; in vpx_codec_enc_init_ver() 52 res = ctx->iface->init(ctx, NULL); in vpx_codec_enc_init_ver() [all …]
|
/external/chromium_org/third_party/libvpx/source/libvpx/vpx/src/ |
D | vpx_decoder.c | 22 vpx_codec_iface_t *iface, in vpx_codec_dec_init_ver() argument 30 else if (!ctx || !iface) in vpx_codec_dec_init_ver() 32 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_dec_init_ver() 34 else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) in vpx_codec_dec_init_ver() 36 else if ((flags & VPX_CODEC_USE_POSTPROC) && !(iface->caps & VPX_CODEC_CAP_POSTPROC)) in vpx_codec_dec_init_ver() 39 !(iface->caps & VPX_CODEC_CAP_ERROR_CONCEALMENT)) in vpx_codec_dec_init_ver() 42 !(iface->caps & VPX_CODEC_CAP_INPUT_FRAGMENTS)) in vpx_codec_dec_init_ver() 44 else if (!(iface->caps & VPX_CODEC_CAP_DECODER)) in vpx_codec_dec_init_ver() 48 ctx->iface = iface; in vpx_codec_dec_init_ver() 49 ctx->name = iface->name; in vpx_codec_dec_init_ver() [all …]
|
D | vpx_encoder.c | 24 vpx_codec_iface_t *iface, in vpx_codec_enc_init_ver() argument 32 else if (!ctx || !iface || !cfg) in vpx_codec_enc_init_ver() 34 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_enc_init_ver() 36 else if (!(iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_enc_init_ver() 38 else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) in vpx_codec_enc_init_ver() 41 && !(iface->caps & VPX_CODEC_CAP_PSNR)) in vpx_codec_enc_init_ver() 44 && !(iface->caps & VPX_CODEC_CAP_OUTPUT_PARTITION)) in vpx_codec_enc_init_ver() 47 ctx->iface = iface; in vpx_codec_enc_init_ver() 48 ctx->name = iface->name; in vpx_codec_enc_init_ver() 52 res = ctx->iface->init(ctx, NULL); in vpx_codec_enc_init_ver() [all …]
|
/external/wpa_supplicant_8/hostapd/ |
D | main.c | 96 hapd->conf->iface, MAC2STR(addr), in hostapd_logger_cb() 101 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb() 149 static int hostapd_driver_init(struct hostapd_iface *iface) in hostapd_driver_init() argument 153 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init() 187 params.ifname = hapd->conf->iface; in hostapd_driver_init() 193 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init() 194 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); in hostapd_driver_init() 197 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init() 198 struct hostapd_data *bss = hapd->iface->bss[i]; in hostapd_driver_init() 218 iface->drv_flags = capa.flags; in hostapd_driver_init() [all …]
|
/external/libsepol/include/sepol/ |
D | iface_record.h | 13 extern int sepol_iface_compare(const sepol_iface_t * iface, 16 extern int sepol_iface_compare2(const sepol_iface_t * iface, 27 const sepol_iface_t * iface, 33 extern const char *sepol_iface_get_name(const sepol_iface_t * iface); 36 sepol_iface_t * iface, const char *name); 39 extern sepol_context_t *sepol_iface_get_ifcon(const sepol_iface_t * iface); 42 sepol_iface_t * iface, sepol_context_t * con); 44 extern sepol_context_t *sepol_iface_get_msgcon(const sepol_iface_t * iface); 47 sepol_iface_t * iface, sepol_context_t * con); 54 const sepol_iface_t * iface, [all …]
|