/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_roboswitch.c | 86 struct wpa_driver_roboswitch_data *drv, u8 reg) in wpa_driver_roboswitch_mdio_read() argument 88 struct mii_ioctl_data *mii = if_mii(&drv->ifr); in wpa_driver_roboswitch_mdio_read() 93 if (ioctl(drv->fd, SIOCGMIIREG, &drv->ifr) < 0) { in wpa_driver_roboswitch_mdio_read() 103 struct wpa_driver_roboswitch_data *drv, u8 reg, u16 val) in wpa_driver_roboswitch_mdio_write() argument 105 struct mii_ioctl_data *mii = if_mii(&drv->ifr); in wpa_driver_roboswitch_mdio_write() 111 if (ioctl(drv->fd, SIOCSMIIREG, &drv->ifr) < 0) { in wpa_driver_roboswitch_mdio_write() 118 static int wpa_driver_roboswitch_reg(struct wpa_driver_roboswitch_data *drv, in wpa_driver_roboswitch_reg() argument 124 wpa_driver_roboswitch_mdio_write(drv, ROBO_MII_PAGE, in wpa_driver_roboswitch_reg() 127 wpa_driver_roboswitch_mdio_write(drv, ROBO_MII_ADDR, (reg << 8) | op); in wpa_driver_roboswitch_reg() 131 if ((wpa_driver_roboswitch_mdio_read(drv, ROBO_MII_ADDR) & 3) in wpa_driver_roboswitch_reg() [all …]
|
D | driver_macsec_linux.c | 36 struct macsec_drv_data *drv; member 133 static int init_genl_ctx(struct macsec_drv_data *drv) in init_genl_ctx() argument 135 struct macsec_genl_ctx *ctx = &drv->ctx; in init_genl_ctx() 156 ctx->cb_arg.drv = drv; in init_genl_ctx() 170 static int try_commit(struct macsec_drv_data *drv) in try_commit() argument 174 if (!drv->sk) in try_commit() 177 if (!drv->link) in try_commit() 180 if (drv->controlled_port_enabled_set) { in try_commit() 185 drv->ifname, drv->controlled_port_enabled); in try_commit() 189 rtnl_link_set_name(change, drv->ifname); in try_commit() [all …]
|
D | driver_wext.c | 37 static int wpa_driver_wext_finish_drv_init(struct wpa_driver_wext_data *drv); 38 static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv); 42 int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv, in wpa_driver_wext_set_auth_param() argument 49 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param() 53 if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) { in wpa_driver_wext_set_auth_param() 74 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_get_bssid() local 79 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid() 81 if (ioctl(drv->ioctl_sock, SIOCGIWAP, &iwr) < 0) { in wpa_driver_wext_get_bssid() 99 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_set_bssid() local 104 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid() [all …]
|
D | driver_macsec_qca.c | 85 static void __macsec_drv_init(struct macsec_qca_data *drv) in __macsec_drv_init() argument 91 wpa_printf(MSG_INFO, "%s: secy_id=%d", __func__, drv->secy_id); in __macsec_drv_init() 94 ret = nss_macsec_secy_en_set(drv->secy_id, TRUE); in __macsec_drv_init() 98 ret = nss_macsec_secy_sc_sa_mapping_mode_set(drv->secy_id, in __macsec_drv_init() 109 ret = nss_macsec_secy_rx_ctl_filt_set(drv->secy_id, 0, &rx_ctl_filt); in __macsec_drv_init() 118 ret = nss_macsec_secy_tx_ctl_filt_set(drv->secy_id, 0, &tx_ctl_filt); in __macsec_drv_init() 124 static void __macsec_drv_deinit(struct macsec_qca_data *drv) in __macsec_drv_deinit() argument 126 nss_macsec_secy_en_set(drv->secy_id, FALSE); in __macsec_drv_deinit() 127 nss_macsec_secy_rx_sc_del_all(drv->secy_id); in __macsec_drv_deinit() 128 nss_macsec_secy_tx_sc_del_all(drv->secy_id); in __macsec_drv_deinit() [all …]
|
D | driver_bsd.c | 84 struct bsd_driver_data *drv; in bsd_get_drvindex() local 86 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) { in bsd_get_drvindex() 87 if (drv->ifindex == ifindex) in bsd_get_drvindex() 88 return drv; in bsd_get_drvindex() 98 struct bsd_driver_data *drv; in bsd_get_drvname() local 100 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) { in bsd_get_drvname() 101 if (os_strcmp(drv->ifname, ifname) == 0) in bsd_get_drvname() 102 return drv; in bsd_get_drvname() 111 struct bsd_driver_data *drv = priv; in bsd_set80211() local 114 if (drv->ifindex == 0 || drv->if_removed) in bsd_set80211() [all …]
|
D | driver_ndis.c | 41 int wpa_driver_register_event_cb(struct wpa_driver_ndis_data *drv); 47 static void wpa_driver_ndis_poll(void *drv); 49 static int wpa_driver_ndis_adapter_init(struct wpa_driver_ndis_data *drv); 50 static int wpa_driver_ndis_adapter_open(struct wpa_driver_ndis_data *drv); 51 static void wpa_driver_ndis_adapter_close(struct wpa_driver_ndis_data *drv); 451 static int ndis_get_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_get_oid() argument 466 o->ptcDeviceName = drv->adapter_name; in ndis_get_oid() 468 if (!DeviceIoControl(drv->ndisuio, IOCTL_NDISUIO_QUERY_OID_VALUE, in ndis_get_oid() 506 if (!PacketRequest(drv->adapter, FALSE, o)) { in ndis_get_oid() 526 static int ndis_set_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_set_oid() argument [all …]
|
D | driver_nl80211.c | 204 wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv, 217 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, 219 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, 221 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, 226 static int nl80211_disable_11b_rates(struct wpa_driver_nl80211_data *drv, 229 static int nl80211_leave_ibss(struct wpa_driver_nl80211_data *drv, 284 struct i802_bss * get_bss_ifindex(struct wpa_driver_nl80211_data *drv, in get_bss_ifindex() argument 289 for (bss = drv->first_bss; bss; bss = bss->next) { in get_bss_ifindex() 304 void nl80211_mark_disconnected(struct wpa_driver_nl80211_data *drv) in nl80211_mark_disconnected() argument 306 if (drv->associated) in nl80211_mark_disconnected() [all …]
|
D | driver_hostap.c | 58 static void handle_data(struct hostap_driver_data *drv, u8 *buf, size_t len, in handle_data() argument 82 wpa_supplicant_event(drv->hapd, EVENT_RX_FROM_UNKNOWN, &event); in handle_data() 109 drv_event_eapol_rx(drv->hapd, sa, pos, left); in handle_data() 119 static void handle_tx_callback(struct hostap_driver_data *drv, u8 *buf, in handle_tx_callback() argument 136 wpa_supplicant_event(drv->hapd, EVENT_TX_STATUS, &event); in handle_tx_callback() 140 static void handle_frame(struct hostap_driver_data *drv, u8 *buf, size_t len) in handle_frame() argument 172 handle_tx_callback(drv, buf, data_len, ver == 2 ? 1 : 0); in handle_frame() 184 wpa_supplicant_event(drv->hapd, EVENT_RX_MGMT, &event); in handle_frame() 191 handle_data(drv, buf, data_len, stype); in handle_frame() 202 struct hostap_driver_data *drv = eloop_ctx; in handle_read() local [all …]
|
D | driver_wired.c | 168 static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) in wired_init_sockets() argument 176 drv->common.sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_PAE)); in wired_init_sockets() 177 if (drv->common.sock < 0) { in wired_init_sockets() 183 if (eloop_register_read_sock(drv->common.sock, handle_read, in wired_init_sockets() 184 drv->common.ctx, NULL)) { in wired_init_sockets() 190 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets() 191 if (ioctl(drv->common.sock, SIOCGIFINDEX, &ifr) != 0) { in wired_init_sockets() 203 if (bind(drv->common.sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) in wired_init_sockets() 210 if (wired_multicast_membership(drv->common.sock, ifr.ifr_ifindex, in wired_init_sockets() 218 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets() [all …]
|
D | driver_privsep.c | 30 static int wpa_priv_reg_cmd(struct wpa_driver_privsep_data *drv, int cmd) in wpa_priv_reg_cmd() argument 34 res = sendto(drv->priv_socket, &cmd, sizeof(cmd), 0, in wpa_priv_reg_cmd() 35 (struct sockaddr *) &drv->priv_addr, in wpa_priv_reg_cmd() 36 sizeof(drv->priv_addr)); in wpa_priv_reg_cmd() 43 static int wpa_priv_cmd(struct wpa_driver_privsep_data *drv, int cmd, in wpa_priv_cmd() argument 58 msg.msg_name = &drv->priv_addr; in wpa_priv_cmd() 59 msg.msg_namelen = sizeof(drv->priv_addr); in wpa_priv_cmd() 61 if (sendmsg(drv->cmd_socket, &msg, 0) < 0) { in wpa_priv_cmd() 73 FD_SET(drv->cmd_socket, &rfds); in wpa_priv_cmd() 76 res = select(drv->cmd_socket + 1, &rfds, NULL, NULL, &tv); in wpa_priv_cmd() [all …]
|
D | driver_nl80211_scan.c | 79 struct wpa_driver_nl80211_data *drv, struct nl80211_noise_info *info) in nl80211_get_noise_for_scan_results() argument 84 msg = nl80211_drv_msg(drv, NLM_F_DUMP, NL80211_CMD_GET_SURVEY); in nl80211_get_noise_for_scan_results() 85 return send_and_recv_msgs(drv, msg, get_noise_for_scan_results, info); in nl80211_get_noise_for_scan_results() 93 struct wpa_driver_nl80211_data *drv = bss->drv; in nl80211_abort_scan() local 97 ret = send_and_recv_msgs(drv, msg, NULL, NULL); in nl80211_abort_scan() 107 static int nl80211_abort_vendor_scan(struct wpa_driver_nl80211_data *drv, in nl80211_abort_vendor_scan() argument 117 msg = nl80211_drv_msg(drv, 0, NL80211_CMD_VENDOR); in nl80211_abort_vendor_scan() 128 ret = send_and_recv_msgs(drv, msg, NULL, NULL); in nl80211_abort_vendor_scan() 155 struct wpa_driver_nl80211_data *drv = eloop_ctx; in wpa_driver_nl80211_scan_timeout() local 159 if (drv->vendor_scan_cookie && in wpa_driver_nl80211_scan_timeout() [all …]
|
D | driver_atheros.c | 188 get80211param(struct atheros_driver_data *drv, int op, int *data) in get80211param() argument 193 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in get80211param() 196 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_GETPARAM, &iwr) < 0) in get80211param() 206 set80211priv(struct atheros_driver_data *drv, int op, void *data, int len) in set80211priv() argument 217 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211priv() 233 if (ioctl(drv->ioctl_sock, op, &iwr) < 0) { in set80211priv() 236 __func__, drv->iface, op, in set80211priv() 245 set80211param(struct atheros_driver_data *drv, int op, int arg) in set80211param() argument 250 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211param() 254 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_SETPARAM, &iwr) < 0) { in set80211param() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | driver_roboswitch.c | 86 struct wpa_driver_roboswitch_data *drv, u8 reg) in wpa_driver_roboswitch_mdio_read() argument 88 struct mii_ioctl_data *mii = if_mii(&drv->ifr); in wpa_driver_roboswitch_mdio_read() 93 if (ioctl(drv->fd, SIOCGMIIREG, &drv->ifr) < 0) { in wpa_driver_roboswitch_mdio_read() 103 struct wpa_driver_roboswitch_data *drv, u8 reg, u16 val) in wpa_driver_roboswitch_mdio_write() argument 105 struct mii_ioctl_data *mii = if_mii(&drv->ifr); in wpa_driver_roboswitch_mdio_write() 111 if (ioctl(drv->fd, SIOCSMIIREG, &drv->ifr) < 0) { in wpa_driver_roboswitch_mdio_write() 118 static int wpa_driver_roboswitch_reg(struct wpa_driver_roboswitch_data *drv, in wpa_driver_roboswitch_reg() argument 124 wpa_driver_roboswitch_mdio_write(drv, ROBO_MII_PAGE, in wpa_driver_roboswitch_reg() 127 wpa_driver_roboswitch_mdio_write(drv, ROBO_MII_ADDR, (reg << 8) | op); in wpa_driver_roboswitch_reg() 131 if ((wpa_driver_roboswitch_mdio_read(drv, ROBO_MII_ADDR) & 3) in wpa_driver_roboswitch_reg() [all …]
|
D | driver_macsec_linux.c | 36 struct macsec_drv_data *drv; member 133 static int init_genl_ctx(struct macsec_drv_data *drv) in init_genl_ctx() argument 135 struct macsec_genl_ctx *ctx = &drv->ctx; in init_genl_ctx() 156 ctx->cb_arg.drv = drv; in init_genl_ctx() 170 static int try_commit(struct macsec_drv_data *drv) in try_commit() argument 174 if (!drv->sk) in try_commit() 177 if (!drv->link) in try_commit() 180 if (drv->controlled_port_enabled_set) { in try_commit() 185 drv->ifname, drv->controlled_port_enabled); in try_commit() 189 rtnl_link_set_name(change, drv->ifname); in try_commit() [all …]
|
D | driver_wext.c | 37 static int wpa_driver_wext_finish_drv_init(struct wpa_driver_wext_data *drv); 38 static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv); 42 int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv, in wpa_driver_wext_set_auth_param() argument 49 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param() 53 if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) { in wpa_driver_wext_set_auth_param() 74 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_get_bssid() local 79 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid() 81 if (ioctl(drv->ioctl_sock, SIOCGIWAP, &iwr) < 0) { in wpa_driver_wext_get_bssid() 99 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_set_bssid() local 104 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid() [all …]
|
D | driver_macsec_qca.c | 85 static void __macsec_drv_init(struct macsec_qca_data *drv) in __macsec_drv_init() argument 91 wpa_printf(MSG_INFO, "%s: secy_id=%d", __func__, drv->secy_id); in __macsec_drv_init() 94 ret = nss_macsec_secy_en_set(drv->secy_id, TRUE); in __macsec_drv_init() 98 ret = nss_macsec_secy_sc_sa_mapping_mode_set(drv->secy_id, in __macsec_drv_init() 109 ret = nss_macsec_secy_rx_ctl_filt_set(drv->secy_id, 0, &rx_ctl_filt); in __macsec_drv_init() 118 ret = nss_macsec_secy_tx_ctl_filt_set(drv->secy_id, 0, &tx_ctl_filt); in __macsec_drv_init() 124 static void __macsec_drv_deinit(struct macsec_qca_data *drv) in __macsec_drv_deinit() argument 126 nss_macsec_secy_en_set(drv->secy_id, FALSE); in __macsec_drv_deinit() 127 nss_macsec_secy_rx_sc_del_all(drv->secy_id); in __macsec_drv_deinit() 128 nss_macsec_secy_tx_sc_del_all(drv->secy_id); in __macsec_drv_deinit() [all …]
|
D | driver_bsd.c | 84 struct bsd_driver_data *drv; in bsd_get_drvindex() local 86 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) { in bsd_get_drvindex() 87 if (drv->ifindex == ifindex) in bsd_get_drvindex() 88 return drv; in bsd_get_drvindex() 98 struct bsd_driver_data *drv; in bsd_get_drvname() local 100 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) { in bsd_get_drvname() 101 if (os_strcmp(drv->ifname, ifname) == 0) in bsd_get_drvname() 102 return drv; in bsd_get_drvname() 111 struct bsd_driver_data *drv = priv; in bsd_set80211() local 114 if (drv->ifindex == 0 || drv->if_removed) in bsd_set80211() [all …]
|
D | driver_ndis.c | 41 int wpa_driver_register_event_cb(struct wpa_driver_ndis_data *drv); 47 static void wpa_driver_ndis_poll(void *drv); 49 static int wpa_driver_ndis_adapter_init(struct wpa_driver_ndis_data *drv); 50 static int wpa_driver_ndis_adapter_open(struct wpa_driver_ndis_data *drv); 51 static void wpa_driver_ndis_adapter_close(struct wpa_driver_ndis_data *drv); 451 static int ndis_get_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_get_oid() argument 466 o->ptcDeviceName = drv->adapter_name; in ndis_get_oid() 468 if (!DeviceIoControl(drv->ndisuio, IOCTL_NDISUIO_QUERY_OID_VALUE, in ndis_get_oid() 506 if (!PacketRequest(drv->adapter, FALSE, o)) { in ndis_get_oid() 526 static int ndis_set_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_set_oid() argument [all …]
|
D | driver_nl80211.c | 204 wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv, 217 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, 219 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, 221 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, 226 static int nl80211_disable_11b_rates(struct wpa_driver_nl80211_data *drv, 229 static int nl80211_leave_ibss(struct wpa_driver_nl80211_data *drv, 284 struct i802_bss * get_bss_ifindex(struct wpa_driver_nl80211_data *drv, in get_bss_ifindex() argument 289 for (bss = drv->first_bss; bss; bss = bss->next) { in get_bss_ifindex() 304 void nl80211_mark_disconnected(struct wpa_driver_nl80211_data *drv) in nl80211_mark_disconnected() argument 306 if (drv->associated) in nl80211_mark_disconnected() [all …]
|
D | driver_hostap.c | 58 static void handle_data(struct hostap_driver_data *drv, u8 *buf, size_t len, in handle_data() argument 82 wpa_supplicant_event(drv->hapd, EVENT_RX_FROM_UNKNOWN, &event); in handle_data() 109 drv_event_eapol_rx(drv->hapd, sa, pos, left); in handle_data() 119 static void handle_tx_callback(struct hostap_driver_data *drv, u8 *buf, in handle_tx_callback() argument 136 wpa_supplicant_event(drv->hapd, EVENT_TX_STATUS, &event); in handle_tx_callback() 140 static void handle_frame(struct hostap_driver_data *drv, u8 *buf, size_t len) in handle_frame() argument 172 handle_tx_callback(drv, buf, data_len, ver == 2 ? 1 : 0); in handle_frame() 184 wpa_supplicant_event(drv->hapd, EVENT_RX_MGMT, &event); in handle_frame() 191 handle_data(drv, buf, data_len, stype); in handle_frame() 202 struct hostap_driver_data *drv = eloop_ctx; in handle_read() local [all …]
|
D | driver_wired.c | 168 static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) in wired_init_sockets() argument 176 drv->common.sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_PAE)); in wired_init_sockets() 177 if (drv->common.sock < 0) { in wired_init_sockets() 183 if (eloop_register_read_sock(drv->common.sock, handle_read, in wired_init_sockets() 184 drv->common.ctx, NULL)) { in wired_init_sockets() 190 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets() 191 if (ioctl(drv->common.sock, SIOCGIFINDEX, &ifr) != 0) { in wired_init_sockets() 203 if (bind(drv->common.sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) in wired_init_sockets() 210 if (wired_multicast_membership(drv->common.sock, ifr.ifr_ifindex, in wired_init_sockets() 218 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets() [all …]
|
D | driver_privsep.c | 30 static int wpa_priv_reg_cmd(struct wpa_driver_privsep_data *drv, int cmd) in wpa_priv_reg_cmd() argument 34 res = sendto(drv->priv_socket, &cmd, sizeof(cmd), 0, in wpa_priv_reg_cmd() 35 (struct sockaddr *) &drv->priv_addr, in wpa_priv_reg_cmd() 36 sizeof(drv->priv_addr)); in wpa_priv_reg_cmd() 43 static int wpa_priv_cmd(struct wpa_driver_privsep_data *drv, int cmd, in wpa_priv_cmd() argument 58 msg.msg_name = &drv->priv_addr; in wpa_priv_cmd() 59 msg.msg_namelen = sizeof(drv->priv_addr); in wpa_priv_cmd() 61 if (sendmsg(drv->cmd_socket, &msg, 0) < 0) { in wpa_priv_cmd() 73 FD_SET(drv->cmd_socket, &rfds); in wpa_priv_cmd() 76 res = select(drv->cmd_socket + 1, &rfds, NULL, NULL, &tv); in wpa_priv_cmd() [all …]
|
D | driver_nl80211_scan.c | 79 struct wpa_driver_nl80211_data *drv, struct nl80211_noise_info *info) in nl80211_get_noise_for_scan_results() argument 84 msg = nl80211_drv_msg(drv, NLM_F_DUMP, NL80211_CMD_GET_SURVEY); in nl80211_get_noise_for_scan_results() 85 return send_and_recv_msgs(drv, msg, get_noise_for_scan_results, info); in nl80211_get_noise_for_scan_results() 93 struct wpa_driver_nl80211_data *drv = bss->drv; in nl80211_abort_scan() local 97 ret = send_and_recv_msgs(drv, msg, NULL, NULL); in nl80211_abort_scan() 107 static int nl80211_abort_vendor_scan(struct wpa_driver_nl80211_data *drv, in nl80211_abort_vendor_scan() argument 117 msg = nl80211_drv_msg(drv, 0, NL80211_CMD_VENDOR); in nl80211_abort_vendor_scan() 128 ret = send_and_recv_msgs(drv, msg, NULL, NULL); in nl80211_abort_vendor_scan() 155 struct wpa_driver_nl80211_data *drv = eloop_ctx; in wpa_driver_nl80211_scan_timeout() local 159 if (drv->vendor_scan_cookie && in wpa_driver_nl80211_scan_timeout() [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/block/ |
D | blk_legacy.c | 12 struct blk_driver *drv = ll_entry_start(struct blk_driver, blk_driver); in blk_driver_lookup_type() local 16 for (entry = drv; entry != drv + n_ents; entry++) { in blk_driver_lookup_type() 27 struct blk_driver *drv = ll_entry_start(struct blk_driver, blk_driver); in blk_driver_lookup_typename() local 31 for (entry = drv; entry != drv + n_ents; entry++) { in blk_driver_lookup_typename() 42 struct blk_driver *drv = blk_driver_lookup_type(if_type); in blk_get_if_type_name() local 44 return drv ? drv->if_typename : NULL; in blk_get_if_type_name() 57 static int get_desc(struct blk_driver *drv, int devnum, struct blk_desc **descp) in get_desc() argument 59 if (drv->desc) { in get_desc() 60 if (devnum < 0 || devnum >= drv->max_devs) in get_desc() 62 *descp = &drv->desc[devnum]; in get_desc() [all …]
|
/third_party/uboot/u-boot-2020.01/env/ |
D | env.c | 16 struct env_driver *drv; in env_fix_drivers() local 20 drv = ll_entry_start(struct env_driver, env_driver); in env_fix_drivers() 21 for (entry = drv; entry != drv + n_ents; entry++) { in env_fix_drivers() 38 struct env_driver *drv; in _env_driver_lookup() local 42 drv = ll_entry_start(struct env_driver, env_driver); in _env_driver_lookup() 43 for (entry = drv; entry != drv + n_ents; entry++) { in _env_driver_lookup() 158 struct env_driver *drv; in env_driver_lookup() local 163 drv = _env_driver_lookup(loc); in env_driver_lookup() 164 if (!drv) { in env_driver_lookup() 170 return drv; in env_driver_lookup() [all …]
|