Lines Matching refs:hif_drv

123 	struct host_if_drv *hif_drv = vif->hif_drv;  in handle_scan_done()  local
140 if (!hif_drv) { in handle_scan_done()
145 scan_req = &hif_drv->usr_scan_req; in handle_scan_done()
167 struct host_if_drv *hif_drv = vif->hif_drv; in wilc_scan() local
169 if (hif_drv->hif_state >= HOST_IF_SCANNING && in wilc_scan()
170 hif_drv->hif_state < HOST_IF_CONNECTED) { in wilc_scan()
182 hif_drv->usr_scan_req.ch_cnt = 0; in wilc_scan()
251 hif_drv->usr_scan_req.scan_result = scan_result_fn; in wilc_scan()
252 hif_drv->usr_scan_req.arg = user_arg; in wilc_scan()
260 hif_drv->scan_timer_vif = vif; in wilc_scan()
261 mod_timer(&hif_drv->scan_timer, in wilc_scan()
276 struct host_if_drv *hif_drv = vif->hif_drv; in wilc_send_connect_wid() local
277 struct wilc_conn_info *conn_attr = &hif_drv->conn_info; in wilc_send_connect_wid()
317 hif_drv->hif_state = HOST_IF_EXTERNAL_AUTH; in wilc_send_connect_wid()
319 hif_drv->hif_state = HOST_IF_WAITING_CONN_RESP; in wilc_send_connect_wid()
339 struct host_if_drv *hif_drv = vif->hif_drv; in handle_connect_timeout() local
341 if (!hif_drv) { in handle_connect_timeout()
346 hif_drv->hif_state = HOST_IF_IDLE; in handle_connect_timeout()
348 if (hif_drv->conn_info.conn_result) { in handle_connect_timeout()
349 hif_drv->conn_info.conn_result(CONN_DISCONN_EVENT_CONN_RESP, in handle_connect_timeout()
351 hif_drv->conn_info.arg); in handle_connect_timeout()
366 hif_drv->conn_info.req_ies_len = 0; in handle_connect_timeout()
367 kfree(hif_drv->conn_info.req_ies); in handle_connect_timeout()
368 hif_drv->conn_info.req_ies = NULL; in handle_connect_timeout()
539 struct wilc_user_scan_req *scan_req = &msg->vif->hif_drv->usr_scan_req; in handle_rcvd_ntwrk_info()
618 struct host_if_drv *hif_drv = vif->hif_drv; in host_int_parse_assoc_resp_info() local
619 struct wilc_conn_info *conn_info = &hif_drv->conn_info; in host_int_parse_assoc_resp_info()
624 memset(hif_drv->assoc_resp, 0, WILC_MAX_ASSOC_RESP_FRAME_SIZE); in host_int_parse_assoc_resp_info()
626 host_int_get_assoc_res_info(vif, hif_drv->assoc_resp, in host_int_parse_assoc_resp_info()
633 err = wilc_parse_assoc_resp_info(hif_drv->assoc_resp, in host_int_parse_assoc_resp_info()
643 del_timer(&hif_drv->connect_timer); in host_int_parse_assoc_resp_info()
645 hif_drv->conn_info.arg); in host_int_parse_assoc_resp_info()
649 ether_addr_copy(hif_drv->assoc_bssid, conn_info->bssid); in host_int_parse_assoc_resp_info()
650 hif_drv->hif_state = HOST_IF_CONNECTED; in host_int_parse_assoc_resp_info()
652 hif_drv->hif_state = HOST_IF_IDLE; in host_int_parse_assoc_resp_info()
666 struct host_if_drv *hif_drv = vif->hif_drv; in wilc_handle_disconnect() local
668 if (hif_drv->usr_scan_req.scan_result) { in wilc_handle_disconnect()
669 del_timer(&hif_drv->scan_timer); in wilc_handle_disconnect()
673 if (hif_drv->conn_info.conn_result) in wilc_handle_disconnect()
674 hif_drv->conn_info.conn_result(CONN_DISCONN_EVENT_DISCONN_NOTIF, in wilc_handle_disconnect()
675 0, hif_drv->conn_info.arg); in wilc_handle_disconnect()
677 eth_zero_addr(hif_drv->assoc_bssid); in wilc_handle_disconnect()
679 hif_drv->conn_info.req_ies_len = 0; in wilc_handle_disconnect()
680 kfree(hif_drv->conn_info.req_ies); in wilc_handle_disconnect()
681 hif_drv->conn_info.req_ies = NULL; in wilc_handle_disconnect()
682 hif_drv->hif_state = HOST_IF_IDLE; in wilc_handle_disconnect()
690 struct host_if_drv *hif_drv = vif->hif_drv; in handle_rcvd_gnrl_async_info() local
692 if (!hif_drv) { in handle_rcvd_gnrl_async_info()
697 if (!hif_drv->conn_info.conn_result) { in handle_rcvd_gnrl_async_info()
703 if (hif_drv->hif_state == HOST_IF_EXTERNAL_AUTH) { in handle_rcvd_gnrl_async_info()
706 hif_drv->hif_state = HOST_IF_WAITING_CONN_RESP; in handle_rcvd_gnrl_async_info()
707 } else if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) { in handle_rcvd_gnrl_async_info()
710 if (hif_drv->hif_state == HOST_IF_CONNECTED) { in handle_rcvd_gnrl_async_info()
712 } else if (hif_drv->usr_scan_req.scan_result) { in handle_rcvd_gnrl_async_info()
713 del_timer(&hif_drv->scan_timer); in handle_rcvd_gnrl_async_info()
725 struct host_if_drv *hif_drv = vif->hif_drv; in wilc_disconnect() local
742 scan_req = &hif_drv->usr_scan_req; in wilc_disconnect()
743 conn_info = &hif_drv->conn_info; in wilc_disconnect()
746 del_timer(&hif_drv->scan_timer); in wilc_disconnect()
752 if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP || in wilc_disconnect()
753 hif_drv->hif_state == HOST_IF_EXTERNAL_AUTH) in wilc_disconnect()
754 del_timer(&hif_drv->connect_timer); in wilc_disconnect()
762 hif_drv->hif_state = HOST_IF_IDLE; in wilc_disconnect()
764 eth_zero_addr(hif_drv->assoc_bssid); in wilc_disconnect()
869 struct host_if_drv *hif_drv = vif->hif_drv; in handle_remain_on_chan() local
871 if (hif_drv->usr_scan_req.scan_result) in handle_remain_on_chan()
874 if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) in handle_remain_on_chan()
896 hif_drv->remain_on_ch.arg = hif_remain_ch->arg; in handle_remain_on_chan()
897 hif_drv->remain_on_ch.expired = hif_remain_ch->expired; in handle_remain_on_chan()
898 hif_drv->remain_on_ch.ch = hif_remain_ch->ch; in handle_remain_on_chan()
899 hif_drv->remain_on_ch.cookie = hif_remain_ch->cookie; in handle_remain_on_chan()
900 hif_drv->remain_on_ch_timer_vif = vif; in handle_remain_on_chan()
910 struct host_if_drv *hif_drv = vif->hif_drv; in wilc_handle_roc_expired() local
932 if (hif_drv->remain_on_ch.expired) { in wilc_handle_roc_expired()
933 hif_drv->remain_on_ch.expired(hif_drv->remain_on_ch.arg, in wilc_handle_roc_expired()
953 struct host_if_drv *hif_drv = from_timer(hif_drv, t, in listen_timer_cb() local
955 struct wilc_vif *vif = hif_drv->remain_on_ch_timer_vif; in listen_timer_cb()
959 del_timer(&vif->hif_drv->remain_on_ch_timer); in listen_timer_cb()
965 msg->body.remain_on_ch.cookie = vif->hif_drv->remain_on_ch.cookie; in listen_timer_cb()
1066 del_timer(&msg->vif->hif_drv->scan_timer); in handle_scan_complete()
1075 struct host_if_drv *hif_drv = from_timer(hif_drv, t, scan_timer); in timer_scan_cb() local
1076 struct wilc_vif *vif = hif_drv->scan_timer_vif; in timer_scan_cb()
1091 struct host_if_drv *hif_drv = from_timer(hif_drv, t, in timer_connect_cb() local
1093 struct wilc_vif *vif = hif_drv->connect_timer_vif; in timer_connect_cb()
1222 vif->hif_drv->hif_state == HOST_IF_CONNECTED) in wilc_add_rx_gtk()
1223 memcpy(gtk_key->mac_addr, vif->hif_drv->assoc_bssid, ETH_ALEN); in wilc_add_rx_gtk()
1317 struct host_if_drv *hif_drv = vif->hif_drv; in wilc_set_join_req() local
1318 struct wilc_conn_info *conn_info = &hif_drv->conn_info; in wilc_set_join_req()
1334 hif_drv->connect_timer_vif = vif; in wilc_set_join_req()
1335 mod_timer(&hif_drv->connect_timer, in wilc_set_join_req()
1499 if (!vif->hif_drv) { in get_periodic_rssi()
1504 if (vif->hif_drv->hif_state == HOST_IF_CONNECTED) in get_periodic_rssi()
1512 struct host_if_drv *hif_drv; in wilc_init() local
1515 hif_drv = kzalloc(sizeof(*hif_drv), GFP_KERNEL); in wilc_init()
1516 if (!hif_drv) in wilc_init()
1519 *hif_drv_handler = hif_drv; in wilc_init()
1521 vif->hif_drv = hif_drv; in wilc_init()
1526 timer_setup(&hif_drv->scan_timer, timer_scan_cb, 0); in wilc_init()
1527 timer_setup(&hif_drv->connect_timer, timer_connect_cb, 0); in wilc_init()
1528 timer_setup(&hif_drv->remain_on_ch_timer, listen_timer_cb, 0); in wilc_init()
1530 hif_drv->hif_state = HOST_IF_IDLE; in wilc_init()
1532 hif_drv->p2p_timeout = 0; in wilc_init()
1540 struct host_if_drv *hif_drv = vif->hif_drv; in wilc_deinit() local
1542 if (!hif_drv) { in wilc_deinit()
1549 timer_shutdown_sync(&hif_drv->scan_timer); in wilc_deinit()
1550 timer_shutdown_sync(&hif_drv->connect_timer); in wilc_deinit()
1552 timer_shutdown_sync(&hif_drv->remain_on_ch_timer); in wilc_deinit()
1554 if (hif_drv->usr_scan_req.scan_result) { in wilc_deinit()
1555 hif_drv->usr_scan_req.scan_result(SCAN_EVENT_ABORTED, NULL, in wilc_deinit()
1556 hif_drv->usr_scan_req.arg); in wilc_deinit()
1557 hif_drv->usr_scan_req.scan_result = NULL; in wilc_deinit()
1560 hif_drv->hif_state = HOST_IF_IDLE; in wilc_deinit()
1562 kfree(hif_drv); in wilc_deinit()
1563 vif->hif_drv = NULL; in wilc_deinit()
1573 struct host_if_drv *hif_drv; in wilc_network_info_received() local
1580 hif_drv = vif->hif_drv; in wilc_network_info_received()
1582 if (!hif_drv) { in wilc_network_info_received()
1583 netdev_err(vif->ndev, "driver not init[%p]\n", hif_drv); in wilc_network_info_received()
1614 struct host_if_drv *hif_drv; in wilc_gnrl_async_info_received() local
1626 hif_drv = vif->hif_drv; in wilc_gnrl_async_info_received()
1628 if (!hif_drv) { in wilc_gnrl_async_info_received()
1633 if (!hif_drv->conn_info.conn_result) { in wilc_gnrl_async_info_received()
1659 struct host_if_drv *hif_drv; in wilc_scan_complete_received() local
1666 hif_drv = vif->hif_drv; in wilc_scan_complete_received()
1668 if (!hif_drv) in wilc_scan_complete_received()
1671 if (hif_drv->usr_scan_req.scan_result) { in wilc_scan_complete_received()
1710 if (!vif->hif_drv) { in wilc_listen_state_expired()
1715 del_timer(&vif->hif_drv->remain_on_ch_timer); in wilc_listen_state_expired()