/external/wpa_supplicant/ |
D | driver_test.c | 65 static void wpa_driver_scan_dir(struct wpa_driver_test_data *drv, in wpa_driver_scan_dir() argument 86 if (sendto(drv->test_socket, "SCAN", 4, 0, in wpa_driver_scan_dir() 97 struct wpa_driver_test_data *drv = priv; in wpa_driver_test_scan() local 100 drv->num_scanres = 0; in wpa_driver_test_scan() 102 if (drv->test_socket >= 0 && drv->test_dir) in wpa_driver_test_scan() 103 wpa_driver_scan_dir(drv, drv->test_dir); in wpa_driver_test_scan() 105 if (drv->test_socket >= 0 && drv->hostapd_addr_set && in wpa_driver_test_scan() 106 sendto(drv->test_socket, "SCAN", 4, 0, in wpa_driver_test_scan() 107 (struct sockaddr *) &drv->hostapd_addr, in wpa_driver_test_scan() 108 sizeof(drv->hostapd_addr)) < 0) { in wpa_driver_test_scan() [all …]
|
D | driver_ndis.c | 44 int wpa_driver_register_event_cb(struct wpa_driver_ndis_data *drv); 50 static void wpa_driver_ndis_poll(void *drv); 52 static int wpa_driver_ndis_adapter_init(struct wpa_driver_ndis_data *drv); 53 static int wpa_driver_ndis_adapter_open(struct wpa_driver_ndis_data *drv); 54 static void wpa_driver_ndis_adapter_close(struct wpa_driver_ndis_data *drv); 409 static int ndis_get_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_get_oid() argument 424 o->ptcDeviceName = drv->adapter_name; in ndis_get_oid() 426 if (!DeviceIoControl(drv->ndisuio, IOCTL_NDISUIO_QUERY_OID_VALUE, in ndis_get_oid() 464 if (!PacketRequest(drv->adapter, FALSE, o)) { in ndis_get_oid() 484 static int ndis_set_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_set_oid() argument [all …]
|
D | driver_hostap.c | 37 static int hostapd_ioctl(struct wpa_driver_hostap_data *drv, in hostapd_ioctl() argument 44 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in hostapd_ioctl() 48 if (ioctl(drv->sock, PRISM2_IOCTL_HOSTAPD, &iwr) < 0) { in hostapd_ioctl() 59 static int wpa_driver_hostap_set_wpa_ie(struct wpa_driver_hostap_data *drv, in wpa_driver_hostap_set_wpa_ie() argument 75 res = hostapd_ioctl(drv, param, blen, 1); in wpa_driver_hostap_set_wpa_ie() 83 static int prism2param(struct wpa_driver_hostap_data *drv, int param, in prism2param() argument 90 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in prism2param() 95 if (ioctl(drv->sock, PRISM2_IOCTL_PRISM2_PARAM, &iwr) < 0) { in prism2param() 105 struct wpa_driver_hostap_data *drv = priv; in wpa_driver_hostap_set_wpa() local 110 if (!enabled && wpa_driver_hostap_set_wpa_ie(drv, NULL, 0) < 0) in wpa_driver_hostap_set_wpa() [all …]
|
D | driver_madwifi.c | 50 set80211priv(struct wpa_driver_madwifi_data *drv, int op, void *data, int len, in set80211priv() argument 56 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in set80211priv() 72 if (ioctl(drv->sock, op, &iwr) < 0) { in set80211priv() 145 set80211param(struct wpa_driver_madwifi_data *drv, int op, int arg, in set80211param() argument 151 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in set80211param() 155 if (ioctl(drv->sock, IEEE80211_IOCTL_SETPARAM, &iwr) < 0) { in set80211param() 164 wpa_driver_madwifi_set_wpa_ie(struct wpa_driver_madwifi_data *drv, in wpa_driver_madwifi_set_wpa_ie() argument 170 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_madwifi_set_wpa_ie() 175 if (ioctl(drv->sock, IEEE80211_IOCTL_SETOPTIE, &iwr) < 0) { in wpa_driver_madwifi_set_wpa_ie() 183 wpa_driver_madwifi_del_key(struct wpa_driver_madwifi_data *drv, int key_idx, in wpa_driver_madwifi_del_key() argument [all …]
|
D | driver_wext.c | 88 static void wpa_driver_wext_finish_drv_init(struct wpa_driver_wext_data *drv); 91 static int wpa_driver_wext_send_oper_ifla(struct wpa_driver_wext_data *drv, in wpa_driver_wext_send_oper_ifla() argument 111 req.ifinfo.ifi_index = drv->ifindex; in wpa_driver_wext_send_oper_ifla() 137 ret = send(drv->event_sock, &req, req.hdr.nlmsg_len, 0); in wpa_driver_wext_send_oper_ifla() 148 static int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv, in wpa_driver_wext_set_auth_param() argument 155 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param() 159 if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) { in wpa_driver_wext_set_auth_param() 180 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_get_bssid() local 185 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid() 187 if (ioctl(drv->ioctl_sock, SIOCGIWAP, &iwr) < 0) { in wpa_driver_wext_get_bssid() [all …]
|
D | driver_bsd.c | 44 set80211var(struct wpa_driver_bsd_data *drv, int op, const void *arg, int arg_len) in set80211var() argument 49 os_strncpy(ireq.i_name, drv->ifname, IFNAMSIZ); in set80211var() 54 if (ioctl(drv->sock, SIOCS80211, &ireq) < 0) { in set80211var() 63 get80211var(struct wpa_driver_bsd_data *drv, int op, void *arg, int arg_len) in get80211var() argument 68 os_strncpy(ireq.i_name, drv->ifname, IFNAMSIZ); in get80211var() 73 if (ioctl(drv->sock, SIOCG80211, &ireq) < 0) { in get80211var() 82 set80211param(struct wpa_driver_bsd_data *drv, int op, int arg) in set80211param() argument 87 os_strncpy(ireq.i_name, drv->ifname, IFNAMSIZ); in set80211param() 91 if (ioctl(drv->sock, SIOCS80211, &ireq) < 0) { in set80211param() 100 get80211param(struct wpa_driver_bsd_data *drv, int op) in get80211param() argument [all …]
|
D | driver_atmel.c | 102 static int atmel_ioctl(struct wpa_driver_atmel_data *drv, in atmel_ioctl() argument 109 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in atmel_ioctl() 113 if (ioctl(drv->sock, ATMEL_WPA_IOCTL, &iwr) < 0) { in atmel_ioctl() 125 static int atmel2param(struct wpa_driver_atmel_data *drv, int param, int value) in atmel2param() argument 131 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in atmel2param() 136 if (ioctl(drv->sock, ATMEL_WPA_IOCTL_PARAM, &iwr) < 0) { in atmel2param() 145 static int wpa_driver_atmel_set_wpa_ie(struct wpa_driver_atmel_data *drv, 161 res = atmel_ioctl(drv, param, blen, 1); 172 struct wpa_driver_atmel_data *drv = priv; in wpa_driver_atmel_set_wpa() local 175 printf("wpa_driver_atmel_set_wpa %s\n", drv->ifname); in wpa_driver_atmel_set_wpa() [all …]
|
D | driver_ndiswrapper.c | 93 static int iw_set_ext(struct wpa_driver_ndiswrapper_data *drv, int request, in iw_set_ext() argument 96 os_strncpy(pwrq->ifr_name, drv->ifname, IFNAMSIZ); in iw_set_ext() 97 return ioctl(drv->sock, request, pwrq); in iw_set_ext() 102 struct wpa_driver_ndiswrapper_data *drv = priv; in wpa_ndiswrapper_set_wpa() local 109 if (iw_set_ext(drv, WPA_SET_WPA, &priv_req) < 0) in wpa_ndiswrapper_set_wpa() 119 struct wpa_driver_ndiswrapper_data *drv = priv; in wpa_ndiswrapper_set_key() local 138 if (iw_set_ext(drv, WPA_SET_KEY, &priv_req) < 0) in wpa_ndiswrapper_set_key() 149 wpa_driver_wext_set_key(drv->wext, alg, addr, key_idx, set_tx, in wpa_ndiswrapper_set_key() 158 struct wpa_driver_ndiswrapper_data *drv = priv; in wpa_ndiswrapper_set_countermeasures() local 165 if (iw_set_ext(drv, WPA_SET_COUNTERMEASURES, &priv_req) < 0) in wpa_ndiswrapper_set_countermeasures() [all …]
|
D | driver_ipw.c | 98 static int ipw_ioctl(struct wpa_driver_ipw_data *drv, in ipw_ioctl() argument 104 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in ipw_ioctl() 108 if (ioctl(drv->sock, IPW_IOCTL_WPA_SUPPLICANT, &iwr) < 0) { in ipw_ioctl() 150 static int ipw_set_wpa_ie(struct wpa_driver_ipw_data *drv, in ipw_set_wpa_ie() argument 165 ret = ipw_ioctl(drv, param, blen, 1); in ipw_set_wpa_ie() 172 static int ipw_set_wpa_param(struct wpa_driver_ipw_data *drv, u8 name, in ipw_set_wpa_param() argument 182 return ipw_ioctl(drv, ¶m, sizeof(param), 1); in ipw_set_wpa_param() 186 static int ipw_mlme(struct wpa_driver_ipw_data *drv, const u8 *addr, in ipw_mlme() argument 197 return ipw_ioctl(drv, ¶m, sizeof(param), 1); in ipw_mlme() 203 struct wpa_driver_ipw_data *drv = priv; in wpa_driver_ipw_set_wpa() local [all …]
|
D | driver_wired.c | 146 static int wpa_driver_wired_membership(struct wpa_driver_wired_data *drv, in wpa_driver_wired_membership() argument 152 if (drv->pf_sock == -1) in wpa_driver_wired_membership() 156 mreq.mr_ifindex = if_nametoindex(drv->ifname); in wpa_driver_wired_membership() 161 if (setsockopt(drv->pf_sock, SOL_PACKET, in wpa_driver_wired_membership() 176 struct wpa_driver_wired_data *drv; in wpa_driver_wired_init() local 179 drv = os_zalloc(sizeof(*drv)); in wpa_driver_wired_init() 180 if (drv == NULL) in wpa_driver_wired_init() 182 os_strncpy(drv->ifname, ifname, sizeof(drv->ifname)); in wpa_driver_wired_init() 183 drv->ctx = ctx; in wpa_driver_wired_init() 186 drv->pf_sock = socket(PF_PACKET, SOCK_DGRAM, 0); in wpa_driver_wired_init() [all …]
|
D | driver_prism54.c | 40 static int hostapd_ioctl_prism54(struct wpa_driver_prism54_data *drv, in hostapd_ioctl_prism54() argument 47 os_strncpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in hostapd_ioctl_prism54() 51 if (ioctl(drv->sock, PRISM54_HOSTAPD, &iwr) < 0) { in hostapd_ioctl_prism54() 62 static int wpa_driver_prism54_set_wpa_ie(struct wpa_driver_prism54_data *drv, in wpa_driver_prism54_set_wpa_ie() argument 79 res = hostapd_ioctl_prism54(drv, param, blen, 1); in wpa_driver_prism54_set_wpa_ie() 90 struct wpa_driver_prism54_data *drv = priv; in wpa_driver_prism54_set_wpa() local 103 res = hostapd_ioctl_prism54(drv, param, blen, 1); in wpa_driver_prism54_set_wpa() 116 struct wpa_driver_prism54_data *drv = priv; in wpa_driver_prism54_set_key() local 180 if (hostapd_ioctl_prism54(drv, param, blen, 1)) { in wpa_driver_prism54_set_key() 204 struct wpa_driver_prism54_data *drv = priv; in wpa_driver_prism54_set_drop_unencrypted() local [all …]
|
D | driver_broadcom.c | 81 static int broadcom_ioctl(struct wpa_driver_broadcom_data *drv, int cmd, in broadcom_ioctl() argument 89 drv->ifname, cmd, len, buf); in broadcom_ioctl() 95 os_strncpy(ifr.ifr_name, drv->ifname, IFNAMSIZ); in broadcom_ioctl() 97 if ((ret = ioctl(drv->ioctl_sock, SIOCDEVPRIVATE, &ifr)) < 0) { in broadcom_ioctl() 109 struct wpa_driver_broadcom_data *drv = priv; in wpa_driver_broadcom_get_bssid() local 110 if (broadcom_ioctl(drv, WLC_GET_BSSID, bssid, ETH_ALEN) == 0) in wpa_driver_broadcom_get_bssid() 119 struct wpa_driver_broadcom_data *drv = priv; in wpa_driver_broadcom_get_ssid() local 122 if (broadcom_ioctl(drv, WLC_GET_SSID, &s, sizeof(s)) == -1) in wpa_driver_broadcom_get_ssid() 131 struct wpa_driver_broadcom_data *drv = priv; in wpa_driver_broadcom_set_wpa() local 136 if (broadcom_ioctl(drv, WLC_GET_WPA_AUTH, &wauth, sizeof(wauth)) == in wpa_driver_broadcom_set_wpa() [all …]
|
D | driver_ndis_.c | 31 void wpa_driver_ndis_event_connect(struct wpa_driver_ndis_data *drv); 32 void wpa_driver_ndis_event_disconnect(struct wpa_driver_ndis_data *drv); 33 void wpa_driver_ndis_event_media_specific(struct wpa_driver_ndis_data *drv, 35 void wpa_driver_ndis_event_adapter_arrival(struct wpa_driver_ndis_data *drv); 36 void wpa_driver_ndis_event_adapter_removal(struct wpa_driver_ndis_data *drv); 50 static void wpa_driver_ndis_event_process(struct wpa_driver_ndis_data *drv, in wpa_driver_ndis_event_process() argument 77 wpa_driver_ndis_event_connect(drv); in wpa_driver_ndis_event_process() 80 wpa_driver_ndis_event_disconnect(drv); in wpa_driver_ndis_event_process() 83 wpa_driver_ndis_event_media_specific(drv, data, data_len); in wpa_driver_ndis_event_process() 86 wpa_driver_ndis_event_adapter_arrival(drv); in wpa_driver_ndis_event_process() [all …]
|
D | driver_wext.h | 20 int wpa_driver_wext_get_ifflags(struct wpa_driver_wext_data *drv, int *flags); 21 int wpa_driver_wext_set_ifflags(struct wpa_driver_wext_data *drv, int flags); 39 int wpa_driver_wext_alternative_ifindex(struct wpa_driver_wext_data *drv, 46 int wpa_driver_wext_get_version(struct wpa_driver_wext_data *drv);
|
/external/qemu/ |
D | block.c | 170 int bdrv_create(BlockDriver *drv, in bdrv_create() argument 174 if (!drv->bdrv_create) in bdrv_create() 176 return drv->bdrv_create(filename, size_in_sectors, backing_file, flags); in bdrv_create() 255 BlockDriver *drv1, *drv; in find_image_format() local 276 drv = find_protocol(filename); in find_image_format() 278 if (drv == &bdrv_vvfat) in find_image_format() 279 return drv; in find_image_format() 296 drv = drv1; in find_image_format() 300 return drv; in find_image_format() 326 BlockDriver *drv) in bdrv_open2() argument [all …]
|
D | block.h | 55 int bdrv_create(BlockDriver *drv, 63 BlockDriver *drv);
|
D | vl.c | 1998 CharDriverState *drv; member 2013 ret = d->drv->chr_write(d->drv, buf, len); in mux_chr_write() 2019 ret += d->drv->chr_write(d->drv, buf+i, 1); in mux_chr_write() 2036 d->drv->chr_write(d->drv, (uint8_t *)buf1, strlen(buf1)); in mux_chr_write() 2200 qemu_chr_add_handlers(d->drv, mux_chr_can_read, mux_chr_read, in mux_chr_update_read_handler() 2207 static CharDriverState *qemu_chr_open_mux(CharDriverState *drv) in qemu_chr_open_mux() argument 2222 d->drv = drv; in qemu_chr_open_mux() 2940 ParallelCharDriver *drv = chr->opaque; in pp_ioctl() local 2941 int fd = drv->fd; in pp_ioctl() 2978 if (pp_hw_mode(drv, IEEE1284_MODE_EPP|IEEE1284_ADDR)) { in pp_ioctl() [all …]
|
D | block-dmg.c | 95 bs->drv=&bdrv_raw; in dmg_open() 96 return bs->drv->bdrv_open(bs, filename, flags); in dmg_open()
|
D | block_int.h | 104 BlockDriver *drv; /* NULL means no media */ member
|
/external/qemu/audio/ |
D | audio_template.h | 41 struct audio_driver *drv in glue() 44 int max_voices = glue (drv->max_voices_, TYPE); in glue() 45 int voice_size = glue (drv->voice_size_, TYPE); in glue() 50 dolog ("Driver `%s' does not support " NAME "\n", drv->name); in glue() 55 drv->name, in glue() 64 drv->name, max_voices); in glue() 70 drv->name, voice_size); in glue() 248 struct audio_driver *drv = glue(s->drv_, TYPE); in glue() local 255 if (audio_bug (AUDIO_FUNC, !drv)) { in glue() 260 if (audio_bug (AUDIO_FUNC, !drv->pcm_ops)) { in glue() [all …]
|
D | audio_pt_int.c | 13 AUD_vlog (pt->drv, fmt, ap); in logerr() 17 AUD_log (pt->drv, "Reason: %s\n", strerror (err)); in logerr() 21 void *opaque, const char *drv, const char *cap) in audio_pt_init() argument 26 p->drv = drv; in audio_pt_init()
|
D | audio.c | 1748 static int audio_driver_init (AudioState *s, struct audio_driver *drv, int out) in audio_driver_init() argument 1752 if (drv->options) { in audio_driver_init() 1753 audio_process_options (drv->name, drv->options); in audio_driver_init() 1758 if (drv == s->drv_in) { in audio_driver_init() 1759 s->drv_out = drv; in audio_driver_init() 1764 if (drv == s->drv_out) { in audio_driver_init() 1765 s->drv_in = drv; in audio_driver_init() 1772 opaque = drv->init(); in audio_driver_init() 1776 audio_init_nb_voices_out (s, drv); in audio_driver_init() 1777 audio_init_nb_voices_in (s, drv); in audio_driver_init() [all …]
|
D | audio_pt_int.h | 7 const char *drv; member
|
D | fmodaudio.c | 548 const char *drv = conf.drvname; in fmod_audio_init() local 564 if (drv) { in fmod_audio_init() 567 if (!strcmp (drv, drvtab[i].name)) { in fmod_audio_init() 574 dolog ("Unknown FMOD driver `%s'\n", drv); in fmod_audio_init()
|
/external/qemu/hw/ |
D | usb-msd.c | 520 BlockDriver *drv = NULL; in usb_msd_init() local 532 drv = bdrv_find_format(fmt); in usb_msd_init() 533 if (!drv) { in usb_msd_init() 555 if (bdrv_open2(bdrv, filename, 0, drv) < 0) in usb_msd_init()
|