Lines Matching refs:pub
159 #define DBUS_RX_BUFFER_SIZE_DHD(net) (net->mtu + net->hard_header_len + dhd->pub.hdrlen)
161 #define DBUS_RX_BUFFER_SIZE_DHD(net) (net->mtu + net->hard_header_len + dhd->pub.hdrlen + 128)
268 dhd_pub_t pub; member
603 static void dhd_os_rxflock(dhd_pub_t *pub);
604 static void dhd_os_rxfunlock(dhd_pub_t *pub);
675 dhd_write_macaddr(&dhd->pub.mac); in dhd_process_cid_mac()
851 dhd_pub_t *dhdp = &dhd->pub; in dhd_suspend_resume_helper()
957 struct net_device * dhd_idx2net(void *pub, int ifidx) in dhd_idx2net() argument
959 struct dhd_pub *dhd_pub = (struct dhd_pub *)pub; in dhd_idx2net()
1067 if (!(bufp = buf = MALLOC(dhd->pub.osh, buflen))) { in _dhd_set_multicast_list()
1069 dhd_ifname(&dhd->pub, ifidx), cnt)); in _dhd_set_multicast_list()
1111 ret = dhd_wl_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list()
1114 dhd_ifname(&dhd->pub, ifidx), cnt)); in _dhd_set_multicast_list()
1118 MFREE(dhd->pub.osh, buf, buflen); in _dhd_set_multicast_list()
1126 if (!(buf = MALLOC(dhd->pub.osh, buflen))) { in _dhd_set_multicast_list()
1127 DHD_ERROR(("%s: out of memory for allmulti\n", dhd_ifname(&dhd->pub, ifidx))); in _dhd_set_multicast_list()
1134 dhd_ifname(&dhd->pub, ifidx), (int)sizeof(allmulti), buflen)); in _dhd_set_multicast_list()
1135 MFREE(dhd->pub.osh, buf, buflen); in _dhd_set_multicast_list()
1146 ret = dhd_wl_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list()
1149 dhd_ifname(&dhd->pub, ifidx), ltoh32(allmulti))); in _dhd_set_multicast_list()
1152 MFREE(dhd->pub.osh, buf, buflen); in _dhd_set_multicast_list()
1166 ret = dhd_wl_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_multicast_list()
1169 dhd_ifname(&dhd->pub, ifidx), ltoh32(allmulti))); in _dhd_set_multicast_list()
1181 DHD_ERROR(("%s: mkiovar failed for cur_etheraddr\n", dhd_ifname(&dhd->pub, ifidx))); in _dhd_set_mac_address()
1190 ret = dhd_wl_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len); in _dhd_set_mac_address()
1192 DHD_ERROR(("%s: set cur_etheraddr failed\n", dhd_ifname(&dhd->pub, ifidx))); in _dhd_set_mac_address()
1195 memcpy(dhd->pub.mac.octet, addr, ETHER_ADDR_LEN); in _dhd_set_mac_address()
1258 if ((err = dhd_net_attach(&dhd->pub, ifp->idx)) != 0) { in dhd_op_if()
1266 flags = dhd_os_spin_lock(&dhd->pub); in dhd_op_if()
1272 dhd_os_spin_unlock(&dhd->pub, flags); in dhd_op_if()
1318 flags = dhd_os_spin_lock(&dhd->pub); in dhd_op_if()
1321 dhd_os_spin_unlock(&dhd->pub, flags); in dhd_op_if()
1323 MFREE(dhd->pub.osh, ifp, sizeof(*ifp)); in dhd_op_if()
1353 DHD_OS_WAKE_LOCK(&dhd->pub); in _dhd_sysioc_thread()
1359 flags = dhd_os_spin_lock(&dhd->pub); in _dhd_sysioc_thread()
1361 dhd_os_spin_unlock(&dhd->pub, flags); in _dhd_sysioc_thread()
1386 if (dhd->pub.up == 0) in _dhd_sysioc_thread()
1399 ret = dhd_ndo_enable(&dhd->pub, TRUE); in _dhd_sysioc_thread()
1405 ret = dhd_ndo_add_ip(&dhd->pub, in _dhd_sysioc_thread()
1413 ret = dhd_ndo_remove_ip(&dhd->pub, i); in _dhd_sysioc_thread()
1420 NATIVE_MFREE(dhd->pub.osh, iter, sizeof(struct ipv6_addr)); in _dhd_sysioc_thread()
1437 DHD_OS_WAKE_UNLOCK(&dhd->pub); in _dhd_sysioc_thread()
1482 dhd_os_wlfc_block(dhd_pub_t *pub) in dhd_os_wlfc_block() argument
1484 dhd_info_t *di = (dhd_info_t *)(pub->info); in dhd_os_wlfc_block()
1491 dhd_os_wlfc_unblock(dhd_pub_t *pub) in dhd_os_wlfc_unblock() argument
1493 dhd_info_t *di = (dhd_info_t *)(pub->info); in dhd_os_wlfc_unblock()
1529 PKTFREE(dhd->pub.osh, pktbuf, TRUE); in dhd_sendpkt()
1600 uint8 htsfdlystat_sz = dhd->pub.htsfdlystat_sz; in dhd_start_xmit()
1607 DHD_OS_WAKE_LOCK(&dhd->pub); in dhd_start_xmit()
1610 if (dhd->pub.busstate == DHD_BUS_DOWN || dhd->pub.hang_was_sent) { in dhd_start_xmit()
1612 __FUNCTION__, dhd->pub.up, dhd->pub.busstate)); in dhd_start_xmit()
1615 if (dhd->pub.up) { in dhd_start_xmit()
1619 DHD_OS_WAKE_UNLOCK(&dhd->pub); in dhd_start_xmit()
1631 DHD_OS_WAKE_UNLOCK(&dhd->pub); in dhd_start_xmit()
1644 if (skb_headroom(skb) < dhd->pub.hdrlen + htsfdlystat_sz) { in dhd_start_xmit()
1648 dhd_ifname(&dhd->pub, ifidx))); in dhd_start_xmit()
1649 dhd->pub.tx_realloc++; in dhd_start_xmit()
1651 skb2 = skb_realloc_headroom(skb, dhd->pub.hdrlen + htsfdlystat_sz); in dhd_start_xmit()
1656 dhd_ifname(&dhd->pub, ifidx))); in dhd_start_xmit()
1663 if (!(pktbuf = PKTFRMNATIVE(dhd->pub.osh, skb))) { in dhd_start_xmit()
1665 dhd_ifname(&dhd->pub, ifidx))); in dhd_start_xmit()
1671 if (htsfdlystat_sz && PKTLEN(dhd->pub.osh, pktbuf) >= ETHER_ADDR_LEN) { in dhd_start_xmit()
1672 uint8 *pktdata = (uint8 *)PKTDATA(dhd->pub.osh, pktbuf); in dhd_start_xmit()
1682 ret = dhd_sendpkt(&dhd->pub, ifidx, pktbuf); in dhd_start_xmit()
1689 dhd->pub.tx_packets++; in dhd_start_xmit()
1694 DHD_OS_WAKE_UNLOCK(&dhd->pub); in dhd_start_xmit()
1813 if (!ifp->net || ifp->net->reg_state != NETREG_REGISTERED || !dhd->pub.up) {
1898 dhd->pub.rx_multicast++;
2031 if (dhd->pub.up) {
2033 dhd_prot_dstats(&dhd->pub);
2037 ifp->stats.rx_packets = dhd->pub.dstats.rx_packets;
2038 ifp->stats.tx_packets = dhd->pub.dstats.tx_packets;
2039 ifp->stats.rx_bytes = dhd->pub.dstats.rx_bytes;
2040 ifp->stats.tx_bytes = dhd->pub.dstats.tx_bytes;
2041 ifp->stats.rx_errors = dhd->pub.dstats.rx_errors;
2042 ifp->stats.tx_errors = dhd->pub.dstats.tx_errors;
2043 ifp->stats.rx_dropped = dhd->pub.dstats.rx_dropped;
2044 ifp->stats.tx_dropped = dhd->pub.dstats.tx_dropped;
2045 ifp->stats.multicast = dhd->pub.dstats.multicast;
2077 dhd_os_sdlock(&dhd->pub);
2078 if (dhd->pub.dongle_reset == FALSE) {
2082 dhd_bus_watchdog(&dhd->pub);
2084 flags = dhd_os_spin_lock(&dhd->pub);
2086 dhd->pub.tickcnt++;
2095 dhd_os_spin_unlock(&dhd->pub, flags);
2097 dhd_os_sdunlock(&dhd->pub);
2111 if (dhd->pub.dongle_reset) {
2122 dhd_os_sdlock(&dhd->pub);
2124 dhd_bus_watchdog(&dhd->pub);
2126 flags = dhd_os_spin_lock(&dhd->pub);
2128 dhd->pub.tickcnt++;
2133 dhd_os_spin_unlock(&dhd->pub, flags);
2134 dhd_os_sdunlock(&dhd->pub);
2168 if (dhd->pub.busstate != DHD_BUS_DOWN) {
2169 dhd_os_wd_timer_extend(&dhd->pub, TRUE);
2170 while (dhd_bus_dpc(dhd->pub.bus)) {
2173 dhd_os_wd_timer_extend(&dhd->pub, FALSE);
2174 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2176 if (dhd->pub.up)
2177 dhd_bus_stop(dhd->pub.bus, TRUE);
2178 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2194 dhd_pub_t *pub = &dhd->pub; local
2225 skb = dhd_rxf_dequeue(pub);
2231 void *skbnext = PKTNEXT(pub->osh, skb);
2232 PKTSETNEXT(pub->osh, skb, NULL);
2246 DHD_OS_WAKE_UNLOCK(pub);
2269 if (dhd->pub.busstate != DHD_BUS_DOWN) {
2270 if (dhd_bus_dpc(dhd->pub.bus))
2273 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2275 dhd_bus_stop(dhd->pub.bus, TRUE);
2276 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2337 if ((ret = dhd_wl_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len)) < 0) {
2341 dhd_ifname(&dhd->pub, ifidx)));
2345 DHD_INFO(("%s: could not get toe_ol: ret=%d\n", dhd_ifname(&dhd->pub, ifidx), ret));
2374 if ((ret = dhd_wl_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len)) < 0) {
2376 dhd_ifname(&dhd->pub, ifidx), ret));
2387 if ((ret = dhd_wl_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len)) < 0) {
2388 DHD_ERROR(("%s: could not set toe: ret=%d\n", dhd_ifname(&dhd->pub, ifidx), ret));
2403 snprintf(info->version, sizeof(info->version), "%lu", dhd->pub.drv_version);
2451 else if (!dhd->pub.up) {
2457 else if (dhd->pub.iswl)
2462 snprintf(info.version, sizeof(info.version), "%lu", dhd->pub.drv_version);
2552 int dhd_ioctl_process(dhd_pub_t *pub, int ifidx, dhd_ioctl_t *ioc) argument
2559 net = dhd_idx2net(pub, ifidx);
2580 if (!(buf = MALLOC(pub->osh, buflen + 1))) {
2594 bcmerror = dhd_ioctl((void *)pub, ioc, buf, buflen);
2596 pub->bcmerror = bcmerror;
2601 if (pub->busstate != DHD_BUS_DATA) {
2606 if (!pub->iswl) {
2679 bcmerror = dhd_fdaggr_ioctl(pub, ifidx, (wl_ioctl_t *)ioc, buf, buflen);
2685 bcmerror = dhd_wl_ioctl(pub, ifidx, (wl_ioctl_t *)ioc, buf, buflen);
2688 dhd_check_hang(net, pub, bcmerror);
2696 MFREE(pub->osh, buf, buflen + 1);
2710 DHD_OS_WAKE_LOCK(&dhd->pub);
2713 if (dhd->pub.hang_was_sent) {
2715 DHD_OS_WAKE_LOCK_CTRL_TIMEOUT_ENABLE(&dhd->pub, DHD_EVENT_TIMEOUT_MS);
2716 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2725 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2734 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2742 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2749 dhd_check_hang(net, &dhd->pub, ret);
2750 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2755 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2779 bcmerror = dhd_ioctl_process(&dhd->pub, ifidx, &ioc);
2782 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2835 DHD_OS_WAKE_LOCK(&dhd->pub);
2838 if (dhd->pub.up == 0) {
2846 dhd->pub.up = 0;
2866 dhd_os_wlfc_block(&dhd->pub);
2867 dhd_wlfc_cleanup(&dhd->pub, NULL, 0);
2868 dhd_os_wlfc_unblock(&dhd->pub);
2871 dhd_prot_stop(&dhd->pub);
2879 dhd->pub.rxcnt_timeout = 0;
2880 dhd->pub.txcnt_timeout = 0;
2882 DHD_OS_WAKE_UNLOCK(&dhd->pub);
2896 DHD_OS_WAKE_LOCK(&dhd->pub);
2908 dhd->pub.dongle_trap_occured = 0;
2909 dhd->pub.hang_was_sent = 0;
2955 if (dhd->pub.busstate != DHD_BUS_DATA) {
2958 if ((ret = dhd_bus_start(&dhd->pub)) != 0) {
2967 memcpy(net->dev_addr, dhd->pub.mac.octet, ETHER_ADDR_LEN);
2988 dhd->pub.up = 1;
2991 dhd_dbg_init(&dhd->pub);
2999 DHD_OS_WAKE_UNLOCK(&dhd->pub);
3016 if (dhd->pub.busstate == DHD_BUS_DATA) {
3069 if ((ifp = MALLOC(dhd->pub.osh, sizeof(dhd_if_t))) == NULL) {
3202 dhd->pub.osh = osh;
3205 dhd->pub.info = dhd;
3207 dhd->pub.bus = bus;
3208 dhd->pub.hdrlen = bus_hdrlen;
3237 dhd->pub.wlfc_enabled = FALSE;
3240 dhd->pub.wlfc_enabled = TRUE;
3242 dhd->pub.wlfc_enabled = FALSE;
3244 dhd->pub.ptx_opt_enabled = FALSE;
3245 dhd->pub.skip_fc = dhd_wlfc_skip_fc;
3246 dhd->pub.plat_enable = dhd_wlfc_plat_enable;
3247 dhd->pub.plat_deinit = dhd_wlfc_plat_deinit;
3284 if (dhd_prot_attach(&dhd->pub) != 0) {
3292 if (unlikely(wl_cfg80211_attach(net, &dhd->pub))) {
3297 dhd_monitor_init(&dhd->pub);
3303 if (wl_iw_attach(net, (void *)&dhd->pub) != 0) {
3346 bzero(&dhd->pub.skbbuf[0], sizeof(void *) * MAXSKBPEND);
3392 dhd->pub.tcp_ack_info_cnt = 0;
3393 bzero(dhd->pub.tcp_ack_info_tbl, sizeof(struct tcp_ack_info)*MAXTCPSTREAMS);
3398 return &dhd->pub;
3405 __FUNCTION__, dhd_state, &dhd->pub));
3407 dhd_detach(&dhd->pub);
3408 dhd_free(&dhd->pub);
3432 if ((dhd->pub.busstate == DHD_BUS_DOWN) &&
3447 if (!(dhd_bus_download_firmware(dhd->pub.bus, dhd->pub.osh,
3458 if (dhd->pub.busstate != DHD_BUS_LOAD) {
3467 dhd->pub.tickcnt = 0;
3468 dhd_os_wd_timer(&dhd->pub, dhd_watchdog_ms);
3471 if ((ret = dhd_bus_init(&dhd->pub, FALSE)) != 0) {
3485 flags = dhd_os_spin_lock(&dhd->pub);
3487 dhd_os_spin_unlock(&dhd->pub, flags);
3495 DHD_OS_WD_WAKE_UNLOCK(&dhd->pub);
3500 dhd_enable_oob_intr(dhd->pub.bus, TRUE);
3504 if (dhd->pub.busstate != DHD_BUS_DATA) {
3505 flags = dhd_os_spin_lock(&dhd->pub);
3507 dhd_os_spin_unlock(&dhd->pub, flags);
3514 DHD_OS_WD_WAKE_UNLOCK(&dhd->pub);
3526 if ((ret = dhd_prot_init(&dhd->pub)) < 0)
3534 aoe_update_host_ipv4_table(&dhd->pub, dhd->pend_ipaddr, TRUE, 0);
3603 ret = _dhd_tdls_enable(&dhd->pub, tdls_on, auto_on, mac);
4193 dhd_iovar(dhd_pub_t *pub, int ifidx, char *name, char *cmd_buf, uint cmd_len, int set) argument
4209 ret = dhd_wl_ioctl(pub, ifidx, &ioc, ioc.buf, ioc.len);
4329 dhd_pub = &dhd->pub;
4353 if (dhd->pub.busstate != DHD_BUS_DATA) {
4379 dhd_aoe_hostip_clr(&dhd->pub, idx);
4380 dhd_aoe_arp_clr(&dhd->pub, idx);
4424 dhd_pub = &dhd->pub;
4496 if (!ETHER_ISNULLADDR(dhd->pub.mac.octet))
4497 memcpy(temp_addr, dhd->pub.mac.octet, ETHER_ADDR_LEN);
4516 net->hard_header_len = ETH_HLEN + dhd->pub.hdrlen;
4530 dhd->pub.rxsz = DBUS_RX_BUFFER_SIZE_DHD(net);
4580 if (dhd->pub.busstate != DHD_BUS_DOWN) {
4582 dhd_prot_stop(&dhd->pub);
4585 dhd_bus_stop(dhd->pub.bus, TRUE);
4615 dhd->pub.up = 0;
4681 MFREE(dhd->pub.osh, ifp, sizeof(*ifp));
4688 flags = dhd_os_spin_lock(&dhd->pub);
4691 dhd_os_spin_unlock(&dhd->pub, flags);
4774 MFREE(dhd->pub.osh, dhd, sizeof(*dhd));
4959 dhd_os_proto_block(dhd_pub_t *pub) argument
4961 dhd_info_t * dhd = (dhd_info_t *)(pub->info);
4972 dhd_os_proto_unblock(dhd_pub_t *pub) argument
4974 dhd_info_t * dhd = (dhd_info_t *)(pub->info);
4997 dhd_os_ioctl_resp_wait(dhd_pub_t *pub, uint *condition, bool *pending) argument
4999 dhd_info_t * dhd = (dhd_info_t *)(pub->info);
5014 dhd_os_ioctl_resp_wake(dhd_pub_t *pub) argument
5016 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5028 dhd_pub_t *pub = bus; local
5029 dhd_info_t *dhd = (dhd_info_t *)pub->info;
5041 dhd_pub_t *pub = bus; local
5042 dhd_info_t *dhd = (dhd_info_t *)pub->info;
5052 flags = dhd_os_spin_lock(pub);
5055 if (pub->busstate == DHD_BUS_DOWN) {
5056 dhd_os_spin_unlock(pub, flags);
5058 DHD_OS_WD_WAKE_UNLOCK(pub);
5065 dhd_os_spin_unlock(pub, flags);
5071 DHD_OS_WD_WAKE_UNLOCK(pub);
5076 DHD_OS_WD_WAKE_LOCK(pub);
5082 dhd_os_spin_unlock(pub, flags);
5128 dhd_os_sdlock(dhd_pub_t *pub) argument
5132 dhd = (dhd_info_t *)(pub->info);
5143 dhd_os_sdunlock(dhd_pub_t *pub) argument
5147 dhd = (dhd_info_t *)(pub->info);
5158 dhd_os_sdlock_txq(dhd_pub_t *pub) argument
5162 dhd = (dhd_info_t *)(pub->info);
5167 dhd_os_sdunlock_txq(dhd_pub_t *pub) argument
5171 dhd = (dhd_info_t *)(pub->info);
5176 dhd_os_sdlock_rxq(dhd_pub_t *pub) argument
5181 dhd_os_sdunlock_rxq(dhd_pub_t *pub) argument
5186 dhd_os_sdtxlock(dhd_pub_t *pub) argument
5188 dhd_os_sdlock(pub);
5192 dhd_os_sdtxunlock(dhd_pub_t *pub) argument
5194 dhd_os_sdunlock(pub);
5199 dhd_os_rxflock(dhd_pub_t *pub) argument
5203 dhd = (dhd_info_t *)(pub->info);
5209 dhd_os_rxfunlock(dhd_pub_t *pub) argument
5213 dhd = (dhd_info_t *)(pub->info);
5220 dhd_os_tcpacklock(dhd_pub_t *pub) argument
5224 dhd = (dhd_info_t *)(pub->info);
5230 dhd_os_tcpackunlock(dhd_pub_t *pub) argument
5234 dhd = (dhd_info_t *)(pub->info);
5257 if (!dhd->pub.up) {
5277 bcmerror = wl_host_event(&dhd->pub, ifidx, pktdata, event, data);
5370 if (dhd_wl_ioctl_cmd(&dhd->pub, WLC_DOWN, NULL, 0, TRUE, 0) < 0) {
5374 dhd_wlfc_deinit(&dhd->pub);
5375 if (dhd->pub.plat_deinit)
5376 dhd->pub.plat_deinit((void *)&dhd->pub);
5379 if (dhd->pub.pno_state)
5380 dhd_pno_deinit(&dhd->pub);
5384 ret = dhd_bus_devreset(&dhd->pub, flag);
5399 ret = dhd->pub.suspend_disable_flag;
5400 dhd->pub.suspend_disable_flag = val;
5412 ret = dhd_set_suspend(val, &dhd->pub);
5428 dhd->pub.suspend_bcn_li_dtim = val;
5444 if (num >= dhd->pub.pktfilter_count)
5465 dhd->pub.pktfilter[num] = filterp;
5466 dhd_pktfilter_offload_set(&dhd->pub, dhd->pub.pktfilter[num]);
5468 dhd->pub.pktfilter[num] = NULL;
5497 return dhd_os_enable_packet_filter(&dhd->pub, val);
5507 dhd_process_cid_mac(&dhd->pub, TRUE);
5509 if ((ret = dhd_preinit_ioctls(&dhd->pub)) < 0)
5512 dhd_process_cid_mac(&dhd->pub, FALSE);
5525 return (dhd_pno_stop_for_ssid(&dhd->pub));
5535 return (dhd_pno_set_for_ssid(&dhd->pub, ssids_local, nssid, scan_fr,
5545 return (dhd_pno_enable(&dhd->pub, enable));
5554 return (dhd_pno_set_for_hotlist(&dhd->pub, p_pfn_bssid, hotlist_params));
5562 return (dhd_pno_stop_for_batch(&dhd->pub));
5570 return (dhd_pno_set_for_batch(&dhd->pub, batch_params));
5578 return (dhd_pno_get_for_batch(&dhd->pub, buf, bufsize, PNO_STATUS_NORMAL));
5623 if (dhd->pub.hang_report) {
5625 ret = dhd_os_send_hang_message(&dhd->pub);
5633 dhd->pub.busstate = DHD_BUS_DOWN;
5643 if (dhd && dhd->pub.up) {
5644 memcpy(&dhd->pub.dhd_cspec, cspec, sizeof(wl_country_t));
5654 if (dhd && dhd->pub.up) {
5689 static void dhd_suspend_lock(dhd_pub_t *pub) argument
5692 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5698 static void dhd_suspend_unlock(dhd_pub_t *pub) argument
5701 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5707 unsigned long dhd_os_spin_lock(dhd_pub_t *pub) argument
5709 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5718 void dhd_os_spin_unlock(dhd_pub_t *pub, unsigned long flags) argument
5720 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5796 int dhd_os_wake_lock_timeout(dhd_pub_t *pub) argument
5798 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5827 ret = dhd_os_wake_lock_timeout(&dhd->pub);
5831 int dhd_os_wake_lock_rx_timeout_enable(dhd_pub_t *pub, int val) argument
5833 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5845 int dhd_os_wake_lock_ctrl_timeout_enable(dhd_pub_t *pub, int val) argument
5847 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5859 int dhd_os_wake_lock_ctrl_timeout_cancel(dhd_pub_t *pub) argument
5861 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5882 ret = dhd_os_wake_lock_rx_timeout_enable(&dhd->pub, val);
5892 ret = dhd_os_wake_lock_ctrl_timeout_enable(&dhd->pub, val);
5896 int dhd_os_wake_lock(dhd_pub_t *pub) argument
5898 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5924 ret = dhd_os_wake_lock(&dhd->pub);
5928 int dhd_os_wake_unlock(dhd_pub_t *pub) argument
5930 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
5934 dhd_os_wake_lock_timeout(pub);
5957 dhd_pub_t *pub = (dhd_pub_t *)dhdp; local
5960 if (!pub)
5962 dhd = (dhd_info_t *)(pub->info);
5983 ret = dhd_os_wake_unlock(&dhd->pub);
5987 int dhd_os_wd_wake_lock(dhd_pub_t *pub) argument
5989 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
6007 int dhd_os_wd_wake_unlock(dhd_pub_t *pub) argument
6009 dhd_info_t *dhd = (dhd_info_t *)(pub->info);
6028 dhd_pub_t *pub = (dhd_pub_t *)dhdp; local
6030 if (!pub)
6032 return pub->up;
6072 DHD_OS_WAKE_LOCK(&dhd->pub);
6073 ret = dhd_wl_ioctl(&dhd->pub, ifidx, ioc, ioc->buf, ioc->len);
6074 dhd_check_hang(net, &dhd->pub, ret);
6075 DHD_OS_WAKE_UNLOCK(&dhd->pub);
6097 if (dhd->pub.wlfc_state == NULL)
6100 return dhd_wlfc_interface_entry_update(dhd->pub.wlfc_state, action, ifid, iftype, ea);
6105 if (dhd->pub.wlfc_state == NULL)
6108 return dhd_wlfc_FIFOcreditmap_update(dhd->pub.wlfc_state, event_data);
6113 return dhd_wlfc_enable(&dhd->pub);
6502 if ((ret = dhd_wl_ioctl(&dhd->pub, ifidx, &ioc, ioc.buf, ioc.len)) < 0) {
6505 dhd_ifname(&dhd->pub, ifidx)));