Lines Matching full:pub
1960 int dhd_wifi_platform_set_power(dhd_pub_t *pub, bool on);
1962 static INLINE int dhd_wifi_platform_set_power(dhd_pub_t *pub, bool on) { return 0; } in dhd_wifi_platform_set_power() argument
2128 extern int dhd_os_wake_lock(dhd_pub_t *pub);
2129 extern int dhd_os_wake_unlock(dhd_pub_t *pub);
2130 extern int dhd_os_wake_lock_waive(dhd_pub_t *pub);
2131 extern int dhd_os_wake_lock_restore(dhd_pub_t *pub);
2132 extern void dhd_event_wake_lock(dhd_pub_t *pub);
2133 extern void dhd_event_wake_unlock(dhd_pub_t *pub);
2134 extern void dhd_pm_wake_lock_timeout(dhd_pub_t *pub, int val);
2135 extern void dhd_pm_wake_unlock(dhd_pub_t *pub);
2136 extern void dhd_txfl_wake_lock_timeout(dhd_pub_t *pub, int val);
2137 extern void dhd_txfl_wake_unlock(dhd_pub_t *pub);
2138 extern void dhd_nan_wake_lock_timeout(dhd_pub_t *pub, int val);
2139 extern void dhd_nan_wake_unlock(dhd_pub_t *pub);
2140 extern int dhd_os_wake_lock_timeout(dhd_pub_t *pub);
2141 extern int dhd_os_wake_lock_rx_timeout_enable(dhd_pub_t *pub, int val);
2142 extern int dhd_os_wake_lock_ctrl_timeout_enable(dhd_pub_t *pub, int val);
2143 extern int dhd_os_wake_lock_ctrl_timeout_cancel(dhd_pub_t *pub);
2144 extern int dhd_os_wd_wake_lock(dhd_pub_t *pub);
2145 extern int dhd_os_wd_wake_unlock(dhd_pub_t *pub);
2149 extern void dhd_os_scan_wake_lock_timeout(dhd_pub_t *pub, int val);
2150 extern void dhd_os_scan_wake_unlock(dhd_pub_t *pub);
2180 #define DHD_OS_WAKE_LOCK(pub) \ argument
2184 dhd_os_wake_lock(pub); \
2186 #define DHD_OS_WAKE_UNLOCK(pub) \ argument
2190 dhd_os_wake_unlock(pub); \
2192 #define DHD_EVENT_WAKE_LOCK(pub) \ argument
2196 dhd_event_wake_lock(pub); \
2198 #define DHD_EVENT_WAKE_UNLOCK(pub) \ argument
2202 dhd_event_wake_unlock(pub); \
2204 #define DHD_PM_WAKE_LOCK_TIMEOUT(pub, val) \ argument
2207 dhd_pm_wake_lock_timeout(pub, val); \
2209 #define DHD_PM_WAKE_UNLOCK(pub) \ argument
2212 dhd_pm_wake_unlock(pub); \
2214 #define DHD_TXFL_WAKE_LOCK_TIMEOUT(pub, val) \ argument
2217 dhd_txfl_wake_lock_timeout(pub, val); \
2219 #define DHD_TXFL_WAKE_UNLOCK(pub) \ argument
2222 dhd_txfl_wake_unlock(pub); \
2224 #define DHD_NAN_WAKE_LOCK_TIMEOUT(pub, val) \ argument
2227 dhd_nan_wake_lock_timeout(pub, val); \
2229 #define DHD_NAN_WAKE_UNLOCK(pub) \ argument
2232 dhd_nan_wake_unlock(pub); \
2234 #define DHD_OS_WAKE_LOCK_TIMEOUT(pub) \ argument
2238 dhd_os_wake_lock_timeout(pub); \
2240 #define DHD_OS_WAKE_LOCK_RX_TIMEOUT_ENABLE(pub, val) \ argument
2244 dhd_os_wake_lock_rx_timeout_enable(pub, val); \
2246 #define DHD_OS_WAKE_LOCK_CTRL_TIMEOUT_ENABLE(pub, val) \ argument
2250 dhd_os_wake_lock_ctrl_timeout_enable(pub, val); \
2252 #define DHD_OS_WAKE_LOCK_CTRL_TIMEOUT_CANCEL(pub) \ argument
2256 dhd_os_wake_lock_ctrl_timeout_cancel(pub); \
2258 #define DHD_OS_WAKE_LOCK_WAIVE(pub) \ argument
2262 dhd_os_wake_lock_waive(pub); \
2264 #define DHD_OS_WAKE_LOCK_RESTORE(pub) \ argument
2268 dhd_os_wake_lock_restore(pub); \
2283 #define DHD_OS_WAKE_LOCK(pub) dhd_os_wake_lock(pub) argument
2284 #define DHD_OS_WAKE_UNLOCK(pub) dhd_os_wake_unlock(pub) argument
2285 #define DHD_EVENT_WAKE_LOCK(pub) dhd_event_wake_lock(pub) argument
2286 #define DHD_EVENT_WAKE_UNLOCK(pub) dhd_event_wake_unlock(pub) argument
2287 #define DHD_PM_WAKE_LOCK_TIMEOUT(pub, val) dhd_pm_wake_lock_timeout(pub, val) argument
2288 #define DHD_PM_WAKE_UNLOCK(pub) dhd_pm_wake_unlock(pub) argument
2289 #define DHD_TXFL_WAKE_LOCK_TIMEOUT(pub, val) dhd_txfl_wake_lock_timeout(pub, val) argument
2290 #define DHD_TXFL_WAKE_UNLOCK(pub) dhd_txfl_wake_unlock(pub) argument
2291 #define DHD_NAN_WAKE_LOCK_TIMEOUT(pub, val) dhd_nan_wake_lock_timeout(pub, val) argument
2292 #define DHD_NAN_WAKE_UNLOCK(pub) dhd_nan_wake_unlock(pub) argument
2293 #define DHD_OS_WAKE_LOCK_TIMEOUT(pub) dhd_os_wake_lock_timeout(pub) argument
2294 #define DHD_OS_WAKE_LOCK_RX_TIMEOUT_ENABLE(pub, val) \ argument
2295 dhd_os_wake_lock_rx_timeout_enable(pub, val)
2296 #define DHD_OS_WAKE_LOCK_CTRL_TIMEOUT_ENABLE(pub, val) \ argument
2297 dhd_os_wake_lock_ctrl_timeout_enable(pub, val)
2298 #define DHD_OS_WAKE_LOCK_CTRL_TIMEOUT_CANCEL(pub) \ argument
2299 dhd_os_wake_lock_ctrl_timeout_cancel(pub)
2300 #define DHD_OS_WAKE_LOCK_WAIVE(pub) dhd_os_wake_lock_waive(pub) argument
2301 #define DHD_OS_WAKE_LOCK_RESTORE(pub) dhd_os_wake_lock_restore(pub) argument
2306 #define DHD_OS_WD_WAKE_LOCK(pub) dhd_os_wd_wake_lock(pub) argument
2307 #define DHD_OS_WD_WAKE_UNLOCK(pub) dhd_os_wd_wake_unlock(pub) argument
2311 #define DHD_OS_SCAN_WAKE_LOCK_TIMEOUT(pub, val) \ argument
2315 dhd_os_scan_wake_lock_timeout(pub, val); \
2317 #define DHD_OS_SCAN_WAKE_UNLOCK(pub) \ argument
2321 dhd_os_scan_wake_unlock(pub); \
2324 #define DHD_OS_SCAN_WAKE_LOCK_TIMEOUT(pub, val) dhd_os_scan_wake_lock_timeout(pub, val) argument
2325 #define DHD_OS_SCAN_WAKE_UNLOCK(pub) dhd_os_scan_wake_unlock(pub) argument
2328 #define DHD_OS_SCAN_WAKE_LOCK_TIMEOUT(pub, val) argument
2329 #define DHD_OS_SCAN_WAKE_UNLOCK(pub) argument
2335 #define DHD_OS_WAKE_LOCK(pub) argument
2336 #define DHD_OS_WAKE_UNLOCK(pub) argument
2337 #define DHD_EVENT_WAKE_LOCK(pub) argument
2338 #define DHD_EVENT_WAKE_UNLOCK(pub) argument
2339 #define DHD_PM_WAKE_LOCK_TIMEOUT(pub, val) argument
2340 #define DHD_PM_WAKE_UNLOCK(pub) argument
2341 #define DHD_TXFL_WAKE_LOCK_TIMEOUT(pub, val) argument
2342 #define DHD_TXFL_WAKE_UNLOCK(pub) argument
2343 #define DHD_NAN_WAKE_LOCK_TIMEOUT(pub, val) argument
2344 #define DHD_NAN_WAKE_UNLOCK(pub) argument
2345 #define DHD_OS_WD_WAKE_LOCK(pub) argument
2346 #define DHD_OS_WD_WAKE_UNLOCK(pub) argument
2347 #define DHD_OS_WAKE_LOCK_TIMEOUT(pub) argument
2348 #define DHD_OS_WAKE_LOCK_RX_TIMEOUT_ENABLE(pub, val) UNUSED_PARAMETER(val) argument
2349 #define DHD_OS_WAKE_LOCK_CTRL_TIMEOUT_ENABLE(pub, val) UNUSED_PARAMETER(val) argument
2350 #define DHD_OS_WAKE_LOCK_CTRL_TIMEOUT_CANCEL(pub, val) argument
2351 #define DHD_OS_WAKE_LOCK_WAIVE(pub) argument
2352 #define DHD_OS_WAKE_LOCK_RESTORE(pub) argument
2353 #define DHD_OS_SCAN_WAKE_LOCK_TIMEOUT(pub, val) argument
2354 #define DHD_OS_SCAN_WAKE_UNLOCK(pub) argument
2362 extern void dhd_os_oob_irq_wake_lock_timeout(dhd_pub_t *pub, int val);
2363 extern void dhd_os_oob_irq_wake_unlock(dhd_pub_t *pub);
2365 #define DHD_OS_OOB_IRQ_WAKE_LOCK_TIMEOUT(pub, val) dhd_os_oob_irq_wake_lock_timeout(pub, val) argument
2366 #define DHD_OS_OOB_IRQ_WAKE_UNLOCK(pub) dhd_os_oob_irq_wake_unlock(pub) argument
2611 extern void dhd_os_dhdiovar_lock(dhd_pub_t *pub);
2612 extern void dhd_os_dhdiovar_unlock(dhd_pub_t *pub);
2613 void dhd_os_logdump_lock(dhd_pub_t *pub);
2614 void dhd_os_logdump_unlock(dhd_pub_t *pub);
2615 extern int dhd_os_proto_block(dhd_pub_t * pub);
2616 extern int dhd_os_proto_unblock(dhd_pub_t * pub);
2617 extern int dhd_os_ioctl_resp_wait(dhd_pub_t * pub, uint * condition);
2618 extern int dhd_os_ioctl_resp_wake(dhd_pub_t * pub);
2621 extern void dhd_os_ioctl_resp_lock(dhd_pub_t * pub);
2622 extern void dhd_os_ioctl_resp_unlock(dhd_pub_t * pub);
2624 extern void dhd_wakeup_ioctl_event(dhd_pub_t *pub, dhd_ioctl_recieved_status_t reason);
2626 static INLINE void dhd_wakeup_ioctl_event(dhd_pub_t *pub, dhd_ioctl_recieved_status_t reason) in dhd_wakeup_ioctl_event() argument
2656 dhd_pcie_dump_core_regs(dhd_pub_t * pub, uint32 index, uint32 first_addr, uint32 last_addr);
2667 extern void dhd_os_wakeind(dhd_pub_t * pub, uint32 *val);
2676 extern int dhd_os_gets_image(dhd_pub_t *pub, char *str, int len, void *image);
2677 extern void dhdsdio_bus_usr_cnt_inc(dhd_pub_t *pub);
2678 extern void dhdsdio_bus_usr_cnt_dec(dhd_pub_t *pub);
2680 extern void *dhd_os_open_image1(dhd_pub_t *pub, char *filename); /* rev1 function signature */
2681 extern void dhd_os_close_image1(dhd_pub_t *pub, void *image);
2686 extern void dhd_os_sdlock(dhd_pub_t * pub);
2687 extern void dhd_os_sdunlock(dhd_pub_t * pub);
2688 extern void dhd_os_sdlock_txq(dhd_pub_t * pub);
2689 extern void dhd_os_sdunlock_txq(dhd_pub_t * pub);
2690 extern unsigned long dhd_os_sdlock_txoff(dhd_pub_t * pub);
2691 extern void dhd_os_sdunlock_txoff(dhd_pub_t * pub, unsigned long flags);
2692 extern void dhd_os_sdlock_rxq(dhd_pub_t * pub);
2693 extern void dhd_os_sdunlock_rxq(dhd_pub_t * pub);
2694 extern void dhd_os_sdlock_sndup_rxq(dhd_pub_t * pub);
2697 extern unsigned long dhd_os_tcpacklock(dhd_pub_t *pub);
2698 extern void dhd_os_tcpackunlock(dhd_pub_t *pub, unsigned long flags);
2710 extern void dhd_os_sdunlock_sndup_rxq(dhd_pub_t * pub);
2711 extern void dhd_os_sdlock_eventq(dhd_pub_t * pub);
2712 extern void dhd_os_sdunlock_eventq(dhd_pub_t * pub);
2715 extern void dhd_set_version_info(dhd_pub_t *pub, char *fw);
2716 extern bool dhd_os_check_if_up(dhd_pub_t *pub);
2717 extern int dhd_os_check_wakelock(dhd_pub_t *pub);
2718 extern int dhd_os_check_wakelock_all(dhd_pub_t *pub);
2719 extern int dhd_get_instance(dhd_pub_t *pub);
2881 extern struct net_device * dhd_idx2net(void *pub, int ifidx);
2983 extern int dhd_os_ds_enter_wait(dhd_pub_t * pub, uint * condition);
2984 extern int dhd_os_ds_enter_wake(dhd_pub_t * pub);
2986 static INLINE int dhd_os_ds_enter_wait(dhd_pub_t * pub, uint * condition) in dhd_os_ds_enter_wait() argument
2988 static INLINE int dhd_os_ds_enter_wake(dhd_pub_t * pub) in dhd_os_ds_enter_wake() argument
2994 extern int dhd_os_busbusy_wait_negation(dhd_pub_t * pub, uint * condition);
2995 extern int dhd_os_busbusy_wake(dhd_pub_t * pub);
2997 extern int dhd_os_busbusy_wait_condition(dhd_pub_t *pub, uint *var, uint condition);
2998 extern int dhd_os_d3ack_wait(dhd_pub_t * pub, uint * condition);
2999 extern int dhd_os_d3ack_wake(dhd_pub_t * pub);
3000 extern int dhd_os_dmaxfer_wait(dhd_pub_t *pub, uint *condition);
3001 extern int dhd_os_dmaxfer_wake(dhd_pub_t *pub);
3002 int dhd_os_busbusy_wait_bitmask(dhd_pub_t *pub, uint *var,
3005 extern int dhd_os_ds_exit_wait(dhd_pub_t * pub, uint * condition);
3006 extern int dhd_os_ds_exit_wake(dhd_pub_t * pub);
3008 int dhd_os_tput_test_wait(dhd_pub_t *pub, uint *condition, uint timeout_ms);
3009 int dhd_os_tput_test_wake(dhd_pub_t * pub);
3011 static INLINE int dhd_os_tput_test_wait(dhd_pub_t *pub, uint *condition, in dhd_os_tput_test_wait() argument
3014 static INLINE int dhd_os_tput_test_wake(dhd_pub_t * pub) in dhd_os_tput_test_wake() argument
3016 static INLINE int dhd_os_d3ack_wait(dhd_pub_t * pub, uint * condition) in dhd_os_d3ack_wait() argument
3017 { return dhd_os_ioctl_resp_wait(pub, condition); } in dhd_os_d3ack_wait()
3018 static INLINE int dhd_os_d3ack_wake(dhd_pub_t * pub) in dhd_os_d3ack_wake() argument
3019 { return dhd_os_ioctl_resp_wake(pub); } in dhd_os_d3ack_wake()
3021 static INLINE int dhd_os_ds_exit_wait(dhd_pub_t * pub, uint * condition) in dhd_os_ds_exit_wait() argument
3023 static INLINE int dhd_os_ds_exit_wake(dhd_pub_t * pub) in dhd_os_ds_exit_wake() argument
3026 static INLINE int dhd_os_busbusy_wait_negation(dhd_pub_t * pub, uint * condition) in dhd_os_busbusy_wait_negation() argument
3028 static INLINE int dhd_os_busbusy_wake(dhd_pub_t * pub) in dhd_os_busbusy_wake() argument
3030 static INLINE int dhd_os_busbusy_wait_condition(dhd_pub_t *pub, uint *var, uint condition) in dhd_os_busbusy_wait_condition() argument
3032 static INLINE int dhd_os_dmaxfer_wait(dhd_pub_t *pub, uint *condition) in dhd_os_dmaxfer_wait() argument
3034 static INLINE int dhd_os_dmaxfer_wake(dhd_pub_t *pub) in dhd_os_dmaxfer_wake() argument
3036 static INLINE int dhd_os_busbusy_wait_bitmask(dhd_pub_t *pub, uint *var, in dhd_os_busbusy_wait_bitmask() argument
3048 extern struct dhd_sta *dhd_find_sta(void *pub, int ifidx, void *ea);
3049 extern struct dhd_sta *dhd_findadd_sta(void *pub, int ifidx, void *ea);
3050 extern void dhd_del_all_sta(void *pub, int ifidx);
3051 extern void dhd_del_sta(void *pub, int ifidx, void *ea);
3059 static INLINE void* dhd_find_sta(void *pub, int ifidx, void *ea) { return NULL;} in dhd_find_sta() argument
3060 static INLINE void *dhd_findadd_sta(void *pub, int ifidx, void *ea) { return NULL; } in dhd_findadd_sta() argument
3061 static INLINE void dhd_del_all_sta(void *pub, int ifidx) { } in dhd_del_all_sta() argument
3062 static INLINE void dhd_del_sta(void *pub, int ifidx, void *ea) { } in dhd_del_sta() argument
3069 int dhd_iovar(dhd_pub_t *pub, int ifidx, char *name, char *param_buf, uint param_len,
3071 extern int dhd_getiovar(dhd_pub_t *pub, int ifidx, char *name, char *cmd_buf,
3552 int dhd_ioctl_process(dhd_pub_t *pub, int ifidx, struct dhd_ioctl *ioc, void *data_buf);
3567 int dhd_os_wlfc_block(dhd_pub_t *pub);
3568 int dhd_os_wlfc_unblock(dhd_pub_t *pub);
3639 #define dhd_add_flowid(pub, ifidx, ac_prio, ea, flowid) do {} while (0) argument
3640 #define dhd_del_flowid(pub, ifidx, flowid) do {} while (0) argument
3644 extern unsigned long dhd_os_general_spin_lock(dhd_pub_t *pub);
3645 extern void dhd_os_general_spin_unlock(dhd_pub_t *pub, unsigned long flags);
3783 extern uint dhd_get_rxsz(dhd_pub_t *pub);
3784 extern void dhd_set_path(dhd_pub_t *pub);
4044 extern int dhd_start_join_timer(dhd_pub_t *pub);
4045 extern int dhd_stop_join_timer(dhd_pub_t *pub);
4046 extern int dhd_start_scan_timer(dhd_pub_t *pub, bool is_escan);
4047 extern int dhd_stop_scan_timer(dhd_pub_t *pub, bool is_escan, uint16 sync_id);
4048 extern int dhd_start_cmd_timer(dhd_pub_t *pub);
4049 extern int dhd_stop_cmd_timer(dhd_pub_t *pub);
4050 extern int dhd_start_bus_timer(dhd_pub_t *pub);
4051 extern int dhd_stop_bus_timer(dhd_pub_t *pub);
4052 extern uint16 dhd_get_request_id(dhd_pub_t *pub);
4053 extern int dhd_set_request_id(dhd_pub_t *pub, uint16 id, uint32 cmd);
4054 extern void dhd_clear_join_error(dhd_pub_t *pub, uint32 mask);
4055 extern void dhd_get_scan_to_val(dhd_pub_t *pub, uint32 *to_val);
4056 extern void dhd_set_scan_to_val(dhd_pub_t *pub, uint32 to_val);
4057 extern void dhd_get_join_to_val(dhd_pub_t *pub, uint32 *to_val);
4058 extern void dhd_set_join_to_val(dhd_pub_t *pub, uint32 to_val);
4059 extern void dhd_get_cmd_to_val(dhd_pub_t *pub, uint32 *to_val);
4060 extern void dhd_set_cmd_to_val(dhd_pub_t *pub, uint32 to_val);
4061 extern void dhd_get_bus_to_val(dhd_pub_t *pub, uint32 *to_val);
4062 extern void dhd_set_bus_to_val(dhd_pub_t *pub, uint32 to_val);
4063 extern int dhd_start_timesync_timer(dhd_pub_t *pub);
4064 extern int dhd_stop_timesync_timer(dhd_pub_t *pub);
4068 static INLINE int dhd_start_join_timer(dhd_pub_t *pub) { return 0; } in dhd_start_join_timer() argument
4069 static INLINE int dhd_stop_join_timer(dhd_pub_t *pub) { return 0; } in dhd_stop_join_timer() argument
4070 static INLINE int dhd_start_scan_timer(dhd_pub_t *pub, bool is_escan) { return 0; } in dhd_start_scan_timer() argument
4071 static INLINE int dhd_stop_scan_timer(dhd_pub_t *pub, bool is_escan, uint16 sync_id) { return 0; } in dhd_stop_scan_timer() argument
4072 static INLINE int dhd_start_cmd_timer(dhd_pub_t *pub) { return 0; } in dhd_start_cmd_timer() argument
4073 static INLINE int dhd_stop_cmd_timer(dhd_pub_t *pub) { return 0; } in dhd_stop_cmd_timer() argument
4074 static INLINE int dhd_start_bus_timer(dhd_pub_t *pub) { return 0; } in dhd_start_bus_timer() argument
4075 static INLINE int dhd_stop_bus_timer(dhd_pub_t *pub) { return 0; } in dhd_stop_bus_timer() argument
4076 static INLINE uint16 dhd_get_request_id(dhd_pub_t *pub) { return 0; } in dhd_get_request_id() argument
4077 static INLINE int dhd_set_request_id(dhd_pub_t *pub, uint16 id) { return 0; } in dhd_set_request_id() argument
4078 static INLINE void dhd_clear_join_error(dhd_pub_t *pub, uint32 mask) { return; } in dhd_clear_join_error() argument
4079 static INLINE void dhd_get_scan_to_val(dhd_pub_t *pub, uint32 *to_val) { return; } in dhd_get_scan_to_val() argument
4080 static INLINE void dhd_set_scan_to_val(dhd_pub_t *pub, uint32 to_val) { return; } in dhd_set_scan_to_val() argument
4081 static INLINE void dhd_get_join_to_val(dhd_pub_t *pub, uint32 *to_val) { return; } in dhd_get_join_to_val() argument
4082 static INLINE void dhd_set_join_to_val(dhd_pub_t *pub, uint32 to_val) { return; } in dhd_set_join_to_val() argument
4083 static INLINE void dhd_get_cmd_to_val(dhd_pub_t *pub, uint32 *to_val) { return; } in dhd_get_cmd_to_val() argument
4084 static INLINE void dhd_set_cmd_to_val(dhd_pub_t *pub, uint32 to_val) { return; } in dhd_set_cmd_to_val() argument
4085 static INLINE void dhd_get_bus_to_val(dhd_pub_t *pub, uint32 *to_val) { return; } in dhd_get_bus_to_val() argument
4086 static INLINE void dhd_set_bus_to_val(dhd_pub_t *pub, uint32 to_val) { return; } in dhd_set_bus_to_val() argument
4087 static INLINE int dhd_start_timesync_timer(dhd_pub_t *pub) { return 0; } in dhd_start_timesync_timer() argument
4088 static INLINE int dhd_stop_timesync_timer(dhd_pub_t *pub) { return 0; } in dhd_stop_timesync_timer() argument
4181 extern void init_dhd_timeouts(dhd_pub_t *pub);
4182 extern void deinit_dhd_timeouts(dhd_pub_t *pub);
4192 void dhd_send_trap_to_fw_for_timeout(dhd_pub_t * pub, timeout_reasons_t reason);
4507 extern unsigned long dhd_os_hp2plock(dhd_pub_t *pub);
4508 extern void dhd_os_hp2punlock(dhd_pub_t *pub, unsigned long flags);
4747 void dhd_set_monitor(dhd_pub_t *pub, int ifidx, int val);