/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpa_priv.c | 49 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, in wpa_priv_cmd_register() argument 52 if (iface->drv_priv) { in wpa_priv_cmd_register() 54 if (iface->driver->deinit) in wpa_priv_cmd_register() 55 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register() 56 iface->drv_priv = NULL; in wpa_priv_cmd_register() 57 iface->wpas_registered = 0; in wpa_priv_cmd_register() 60 if (iface->l2) { in wpa_priv_cmd_register() 63 l2_packet_deinit(iface->l2); in wpa_priv_cmd_register() 64 iface->l2 = NULL; in wpa_priv_cmd_register() 67 if (iface->driver->init == NULL) in wpa_priv_cmd_register() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/ |
D | wpa_priv.c | 57 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, in wpa_priv_cmd_register() argument 60 if (iface->drv_priv) { in wpa_priv_cmd_register() 62 if (iface->driver->set_wpa) in wpa_priv_cmd_register() 63 iface->driver->set_wpa(iface->drv_priv, 0); in wpa_priv_cmd_register() 64 if (iface->driver->deinit) in wpa_priv_cmd_register() 65 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register() 66 iface->drv_priv = NULL; in wpa_priv_cmd_register() 67 iface->wpas_registered = 0; in wpa_priv_cmd_register() 70 if (iface->l2) { in wpa_priv_cmd_register() 73 l2_packet_deinit(iface->l2); in wpa_priv_cmd_register() [all …]
|
D | ctrl_iface_dbus.c | 42 static void process_watch(struct ctrl_iface_dbus_priv *iface, in process_watch() argument 45 dbus_connection_ref(iface->con); in process_watch() 47 iface->should_dispatch = 0; in process_watch() 56 if (iface->should_dispatch) { in process_watch() 57 while (dbus_connection_get_dispatch_status(iface->con) == in process_watch() 59 dbus_connection_dispatch(iface->con); in process_watch() 60 iface->should_dispatch = 0; in process_watch() 63 dbus_connection_unref(iface->con); in process_watch() 85 static void connection_setup_add_watch(struct ctrl_iface_dbus_priv *iface, in connection_setup_add_watch() argument 98 iface, watch); in connection_setup_add_watch() [all …]
|
/external/dhcpcd/ |
D | dhcpcd.c | 171 struct interface *iface; in cleanup() local 177 iface = ifaces; in cleanup() 178 ifaces = iface->next; in cleanup() 179 free_interface(iface); in cleanup() 226 drop_config(struct interface *iface, const char *reason) in drop_config() argument 228 free(iface->state->old); in drop_config() 229 iface->state->old = iface->state->new; in drop_config() 230 iface->state->new = NULL; in drop_config() 231 iface->state->reason = reason; in drop_config() 232 configure(iface); in drop_config() [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, char ***argv) in make_env() argument 170 const struct if_options *ifo = iface->state->options; in make_env() 176 e = strlen("interface") + strlen(iface->name) + 2; in make_env() 178 snprintf(env[0], e, "interface=%s", iface->name); in make_env() 179 e = strlen("reason") + strlen(iface->state->reason) + 2; in make_env() 181 snprintf(env[1], e, "reason=%s", iface->state->reason); in make_env() 186 snprintf(env[3], e, "ifmetric=%d", iface->metric); in make_env() 188 snprintf(env[4], e, "ifwireless=%d", iface->wireless); in make_env() 190 snprintf(env[5], e, "ifflags=%u", iface->flags); in make_env() 192 snprintf(env[6], e, "ifmtu=%d", get_mtu(iface->name)); in make_env() [all …]
|
D | net.h | 86 const struct interface *iface; member 101 #define get_mtu(iface) do_mtu(iface, 0) argument 102 #define set_mtu(iface, mtu) do_mtu(iface, mtu) argument 116 #define add_address(iface, addr, net, brd) \ argument 117 if_address(iface, addr, net, brd, 1) 118 #define del_address(iface, addr, net) \ argument 119 if_address(iface, addr, net, NULL, -1) 120 #define has_address(iface, addr, net) \ argument 121 do_address(iface, addr, net, NULL, 0) 122 #define get_address(iface, addr, net, dst) \ argument [all …]
|
/external/wpa_supplicant_8/src/ap/ |
D | ap_list.c | 38 static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) in ap_list_beacon_olbc() argument 42 if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G || in ap_list_beacon_olbc() 43 iface->conf->channel != ap->channel) in ap_list_beacon_olbc() 59 struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *ap) in ap_get_ap() argument 63 s = iface->ap_hash[STA_HASH(ap)]; in ap_get_ap() 70 static void ap_ap_list_add(struct hostapd_iface *iface, struct ap_info *ap) in ap_ap_list_add() argument 72 if (iface->ap_list) { in ap_ap_list_add() 73 ap->prev = iface->ap_list->prev; in ap_ap_list_add() 74 iface->ap_list->prev = ap; in ap_ap_list_add() 77 ap->next = iface->ap_list; in ap_ap_list_add() [all …]
|
D | hw_features.c | 47 int hostapd_get_hw_features(struct hostapd_iface *iface) in hostapd_get_hw_features() argument 49 struct hostapd_data *hapd = iface->bss[0]; in hostapd_get_hw_features() 65 iface->hw_flags = flags; in hostapd_get_hw_features() 67 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); in hostapd_get_hw_features() 68 iface->hw_features = modes; in hostapd_get_hw_features() 69 iface->num_hw_features = num_modes; in hostapd_get_hw_features() 135 os_free(hapd->iface->current_rates); in hostapd_prepare_rates() 136 hapd->iface->num_rates = 0; in hostapd_prepare_rates() 138 hapd->iface->current_rates = in hostapd_prepare_rates() 140 if (!hapd->iface->current_rates) { in hostapd_prepare_rates() [all …]
|
D | ieee802_11_ht.c | 33 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || in hostapd_eid_ht_capabilities() 43 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; in hostapd_eid_ht_capabilities() 44 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, in hostapd_eid_ht_capabilities() 72 oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); in hostapd_eid_ht_operation() 97 int hostapd_ht_operation_update(struct hostapd_iface *iface) in hostapd_ht_operation_update() argument 102 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) in hostapd_ht_operation_update() 106 __func__, iface->ht_op_mode); in hostapd_ht_operation_update() 108 if (!(iface->ht_op_mode & HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT) in hostapd_ht_operation_update() 109 && iface->num_sta_ht_no_gf) { in hostapd_ht_operation_update() 110 iface->ht_op_mode |= in hostapd_ht_operation_update() [all …]
|
D | hostapd.c | 42 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 60 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss() 62 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss() 78 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss() 91 wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface); in hostapd_reload_bss() 95 int hostapd_reload_config(struct hostapd_iface *iface) in hostapd_reload_config() argument 97 struct hostapd_data *hapd = iface->bss[0]; in hostapd_reload_config() 101 if (iface->config_read_cb == NULL) in hostapd_reload_config() 103 newconf = iface->config_read_cb(iface->config_fname); in hostapd_reload_config() 111 for (j = 0; j < iface->num_bss; j++) { in hostapd_reload_config() [all …]
|
/external/mesa3d/src/pixelflinger2/ |
D | pixelflinger2.cpp | 32 static void DepthRangef(GGLInterface * iface, GLclampf zNear, GLclampf zFar) in DepthRangef() argument 34 GGL_GET_CONTEXT(ctx, iface); in DepthRangef() 39 static void Viewport(GGLInterface * iface, GLint x, GLint y, GLsizei width, GLsizei height) in Viewport() argument 41 GGL_GET_CONTEXT(ctx, iface); in Viewport() 48 static void CullFace(GGLInterface * iface, GLenum mode) in CullFace() argument 50 GGL_GET_CONTEXT(ctx, iface); in CullFace() 57 static void FrontFace(GGLInterface * iface, GLenum mode) in FrontFace() argument 59 GGL_GET_CONTEXT(ctx, iface); in FrontFace() 66 static void BlendColor(GGLInterface * iface, GLclampf red, GLclampf green, GLclampf blue, GLclampf … in BlendColor() argument 68 GGL_GET_CONTEXT(ctx, iface); in BlendColor() [all …]
|
/external/bluetooth/glib/tests/gobject/ |
D | ifaceinit.c | 63 static void test_iface1_base_init (TestIface1Class *iface); 64 static void test_iface1_default_init (TestIface1Class *iface, gpointer class_data); 73 static void test_iface2_base_init (TestIface2Class *iface); 82 static void test_iface3_base_init (TestIface3Class *iface); 91 static void test_iface4_base_init (TestIface4Class *iface); 100 static void test_iface5_base_init (TestIface5Class *iface); 109 static void test_iface6_base_init (TestIface6Class *iface); 151 #define CHECK_IFACE_TWICE(iface) G_STMT_START { \ argument 155 g_assert (G_TYPE_IS_INTERFACE (((GTypeInterface*) iface)->g_type)); \ 157 g_assert (((GTypeInterface*) iface)->g_instance_type == 0); \ [all …]
|
/external/bluetooth/glib/gio/ |
D | gappinfo.c | 148 GAppInfoIface *iface; in g_app_info_dup() local 152 iface = G_APP_INFO_GET_IFACE (appinfo); in g_app_info_dup() 154 return (* iface->dup) (appinfo); in g_app_info_dup() 170 GAppInfoIface *iface; in g_app_info_equal() local 178 iface = G_APP_INFO_GET_IFACE (appinfo1); in g_app_info_equal() 180 return (* iface->equal) (appinfo1, appinfo2); in g_app_info_equal() 200 GAppInfoIface *iface; in g_app_info_get_id() local 204 iface = G_APP_INFO_GET_IFACE (appinfo); in g_app_info_get_id() 206 return (* iface->get_id) (appinfo); in g_app_info_get_id() 220 GAppInfoIface *iface; in g_app_info_get_name() local [all …]
|
D | gvolume.c | 174 GVolumeIface *iface; in g_volume_get_name() local 178 iface = G_VOLUME_GET_IFACE (volume); in g_volume_get_name() 180 return (* iface->get_name) (volume); in g_volume_get_name() 196 GVolumeIface *iface; in g_volume_get_icon() local 200 iface = G_VOLUME_GET_IFACE (volume); in g_volume_get_icon() 202 return (* iface->get_icon) (volume); in g_volume_get_icon() 221 GVolumeIface *iface; in g_volume_get_uuid() local 225 iface = G_VOLUME_GET_IFACE (volume); in g_volume_get_uuid() 227 return (* iface->get_uuid) (volume); in g_volume_get_uuid() 243 GVolumeIface *iface; in g_volume_get_drive() local [all …]
|
D | gdrive.c | 167 GDriveIface *iface; in g_drive_get_name() local 171 iface = G_DRIVE_GET_IFACE (drive); in g_drive_get_name() 173 return (* iface->get_name) (drive); in g_drive_get_name() 188 GDriveIface *iface; in g_drive_get_icon() local 192 iface = G_DRIVE_GET_IFACE (drive); in g_drive_get_icon() 194 return (* iface->get_icon) (drive); in g_drive_get_icon() 208 GDriveIface *iface; in g_drive_has_volumes() local 212 iface = G_DRIVE_GET_IFACE (drive); in g_drive_has_volumes() 214 return (* iface->has_volumes) (drive); in g_drive_has_volumes() 231 GDriveIface *iface; in g_drive_get_volumes() local [all …]
|
D | gmount.c | 162 GMountIface *iface; in g_mount_get_root() local 166 iface = G_MOUNT_GET_IFACE (mount); in g_mount_get_root() 168 return (* iface->get_root) (mount); in g_mount_get_root() 184 GMountIface *iface; in g_mount_get_name() local 188 iface = G_MOUNT_GET_IFACE (mount); in g_mount_get_name() 190 return (* iface->get_name) (mount); in g_mount_get_name() 206 GMountIface *iface; in g_mount_get_icon() local 210 iface = G_MOUNT_GET_IFACE (mount); in g_mount_get_icon() 212 return (* iface->get_icon) (mount); in g_mount_get_icon() 231 GMountIface *iface; in g_mount_get_uuid() local [all …]
|
D | gfile.c | 276 GFileIface *iface = g_class; in g_file_class_init() local 278 iface->enumerate_children_async = g_file_real_enumerate_children_async; in g_file_class_init() 279 iface->enumerate_children_finish = g_file_real_enumerate_children_finish; in g_file_class_init() 280 iface->set_display_name_async = g_file_real_set_display_name_async; in g_file_class_init() 281 iface->set_display_name_finish = g_file_real_set_display_name_finish; in g_file_class_init() 282 iface->query_info_async = g_file_real_query_info_async; in g_file_class_init() 283 iface->query_info_finish = g_file_real_query_info_finish; in g_file_class_init() 284 iface->query_filesystem_info_async = g_file_real_query_filesystem_info_async; in g_file_class_init() 285 iface->query_filesystem_info_finish = g_file_real_query_filesystem_info_finish; in g_file_class_init() 286 iface->set_attributes_async = g_file_real_set_attributes_async; in g_file_class_init() [all …]
|
D | gseekable.c | 91 GSeekableIface *iface; in g_seekable_tell() local 95 iface = G_SEEKABLE_GET_IFACE (seekable); in g_seekable_tell() 97 return (* iface->tell) (seekable); in g_seekable_tell() 111 GSeekableIface *iface; in g_seekable_can_seek() local 115 iface = G_SEEKABLE_GET_IFACE (seekable); in g_seekable_can_seek() 117 return (* iface->can_seek) (seekable); in g_seekable_can_seek() 146 GSeekableIface *iface; in g_seekable_seek() local 150 iface = G_SEEKABLE_GET_IFACE (seekable); in g_seekable_seek() 152 return (* iface->seek) (seekable, offset, type, cancellable, error); in g_seekable_seek() 166 GSeekableIface *iface; in g_seekable_can_truncate() local [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_new_introspect.c | 36 struct interfaces *iface; in add_interface() local 38 dl_list_for_each(iface, list, struct interfaces, list) { in add_interface() 39 if (os_strcmp(iface->dbus_interface, dbus_interface) == 0) in add_interface() 40 return iface; /* already in the list */ in add_interface() 43 iface = os_zalloc(sizeof(struct interfaces)); in add_interface() 44 if (!iface) in add_interface() 46 iface->xml = wpabuf_alloc(6000); in add_interface() 47 if (iface->xml == NULL) { in add_interface() 48 os_free(iface); in add_interface() 51 wpabuf_printf(iface->xml, "<interface name=\"%s\">", dbus_interface); in add_interface() [all …]
|
/external/wpa_supplicant/ |
D | ctrl_iface_dbus.c | 50 static void process_watch(struct ctrl_iface_dbus_priv *iface, in process_watch() argument 53 dbus_connection_ref(iface->con); in process_watch() 55 iface->should_dispatch = 0; in process_watch() 64 if (iface->should_dispatch) { in process_watch() 65 while (dbus_connection_get_dispatch_status(iface->con) == in process_watch() 67 dbus_connection_dispatch(iface->con); in process_watch() 68 iface->should_dispatch = 0; in process_watch() 71 dbus_connection_unref(iface->con); in process_watch() 93 static void connection_setup_add_watch(struct ctrl_iface_dbus_priv *iface, in connection_setup_add_watch() argument 106 iface, watch); in connection_setup_add_watch() [all …]
|
/external/libvpx/vpx/src/ |
D | vpx_decoder.c | 22 vpx_codec_iface_t *iface, in vpx_codec_dec_init_ver() argument 31 else if (!ctx || !iface) in vpx_codec_dec_init_ver() 33 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_dec_init_ver() 35 else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) in vpx_codec_dec_init_ver() 37 else if ((flags & VPX_CODEC_USE_POSTPROC) && !(iface->caps & VPX_CODEC_CAP_POSTPROC)) in vpx_codec_dec_init_ver() 39 else if (!(iface->caps & VPX_CODEC_CAP_DECODER)) in vpx_codec_dec_init_ver() 44 ctx->iface = iface; in vpx_codec_dec_init_ver() 45 ctx->name = iface->name; in vpx_codec_dec_init_ver() 53 res = ctx->iface->init(ctx); in vpx_codec_dec_init_ver() 62 ctx->priv->iface = ctx->iface; in vpx_codec_dec_init_ver() [all …]
|
D | vpx_encoder.c | 23 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() 45 ctx->iface = iface; in vpx_codec_enc_init_ver() 46 ctx->name = iface->name; in vpx_codec_enc_init_ver() 50 res = ctx->iface->init(ctx); in vpx_codec_enc_init_ver() 59 ctx->priv->iface = ctx->iface; in vpx_codec_enc_init_ver() [all …]
|