Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 102) sorted by relevance

12345

/wlan-driver/qca-wifi-host-cmn/qdf/inc/
H A Dqdf_lock.h93 #define BEFORE_LOCK(lock, was_locked) \ argument
102 #define AFTER_LOCK(lock, func) \ argument
103 lock->stats.acquired_by = func; \
105 lock->stats.acquired++; \
106 lock->stats.last_acquired = AFTER_LOCK_time; \
108 lock->stats.contended++; \
109 lock->stats.contention_time += \
112 lock->stats.non_contention_time += \
117 lock->stats.num_large_contentions++; \
120 lock->stats.max_contention_wait) \
[all …]
/wlan-driver/qca-wifi-host-cmn/qdf/linux/src/
H A Dqdf_lock.c35 QDF_STATUS qdf_mutex_create(qdf_mutex_t *lock, const char *func, int line) in qdf_mutex_create() argument
38 if (!lock) { in qdf_mutex_create()
44 if (LINUX_LOCK_COOKIE == lock->cookie) { in qdf_mutex_create()
57 qdf_lock_stats_create(&lock->stats, func, line); in qdf_mutex_create()
60 mutex_init(&lock->m_lock); in qdf_mutex_create()
61 lock->cookie = LINUX_LOCK_COOKIE; in qdf_mutex_create()
62 lock->state = LOCK_RELEASED; in qdf_mutex_create()
63 lock->process_id = 0; in qdf_mutex_create()
64 lock->refcount = 0; in qdf_mutex_create()
70 QDF_STATUS qdf_mutex_acquire(qdf_mutex_t *lock) in qdf_mutex_acquire() argument
[all …]
H A Di_qdf_lock.h100 struct wakeup_source lock; member
106 struct hif_pm_runtime_lock *lock; member
194 static inline QDF_STATUS __qdf_spinlock_create(__qdf_spinlock_t *lock) in __qdf_spinlock_create() argument
196 spin_lock_init(&lock->spinlock); in __qdf_spinlock_create()
197 lock->flags = 0; in __qdf_spinlock_create()
201 #define __qdf_spinlock_destroy(lock) argument
209 static inline void __qdf_spin_lock(__qdf_spinlock_t *lock) in __qdf_spin_lock() argument
211 spin_lock(&lock->spinlock); in __qdf_spin_lock()
220 static inline void __qdf_spin_unlock(__qdf_spinlock_t *lock) in __qdf_spin_unlock() argument
222 spin_unlock(&lock->spinlock); in __qdf_spin_unlock()
[all …]
H A Dqdf_idr.c71 qdf_spinlock_create(&idp->lock); in qdf_idr_create()
85 qdf_spinlock_destroy(&idp->lock); in qdf_idr_destroy()
100 qdf_spinlock_acquire(&idp->lock); in qdf_idr_alloc()
102 qdf_spinlock_release(&idp->lock); in qdf_idr_alloc()
118 qdf_spinlock_acquire(&idp->lock); in qdf_idr_remove()
121 qdf_spinlock_release(&idp->lock); in qdf_idr_remove()
133 qdf_spinlock_acquire(&idp->lock); in qdf_idr_find()
135 qdf_spinlock_release(&idp->lock); in qdf_idr_find()
/wlan-driver/qcacld-3.0/components/pmo/core/inc/
H A Dwlan_pmo_wow.h132 qdf_spin_lock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_get_and_increment_wow_default_ptrn()
134 qdf_spin_unlock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_get_and_increment_wow_default_ptrn()
156 qdf_spin_lock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_increment_wow_default_ptrn()
158 qdf_spin_unlock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_increment_wow_default_ptrn()
178 qdf_spin_lock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_decrement_wow_default_ptrn()
180 qdf_spin_unlock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_decrement_wow_default_ptrn()
202 qdf_spin_lock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_get_wow_default_ptrn()
204 qdf_spin_unlock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_get_wow_default_ptrn()
227 qdf_spin_lock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_set_wow_default_ptrn()
229 qdf_spin_unlock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_set_wow_default_ptrn()
[all …]
/wlan-driver/qca-wifi-host-cmn/umac/green_ap/dispatcher/src/
H A Dwlan_green_ap_api.c96 qdf_spinlock_create(&green_ap_ctx->lock); in wlan_green_ap_pdev_obj_create_notification()
112 qdf_spinlock_destroy(&green_ap_ctx->lock); in wlan_green_ap_pdev_obj_create_notification()
157 qdf_spinlock_destroy(&green_ap_ctx->lock); in wlan_green_ap_pdev_obj_destroy_notification()
297 qdf_spin_lock_bh(&green_ap_ctx->lock); in wlan_green_ap_pdev_open()
313 qdf_spin_unlock_bh(&green_ap_ctx->lock); in wlan_green_ap_pdev_open()
337 qdf_spin_lock_bh(&green_ap_ctx->lock); in wlan_green_ap_start()
340 qdf_spin_unlock_bh(&green_ap_ctx->lock); in wlan_green_ap_start()
347 qdf_spin_unlock_bh(&green_ap_ctx->lock); in wlan_green_ap_start()
353 qdf_spin_unlock_bh(&green_ap_ctx->lock); in wlan_green_ap_start()
375 qdf_spin_lock_bh(&green_ap_ctx->lock); in wlan_green_ap_stop()
[all …]
H A Dwlan_green_ap_ucfg_api.c76 qdf_spin_lock_bh(&green_ap_ctx->lock); in ucfg_green_ap_set_ps_config()
78 qdf_spin_unlock_bh(&green_ap_ctx->lock); in ucfg_green_ap_set_ps_config()
88 qdf_spin_unlock_bh(&green_ap_ctx->lock); in ucfg_green_ap_set_ps_config()
166 qdf_spin_lock_bh(&green_ap_ctx->lock); in ucfg_green_ap_get_ps_config()
168 qdf_spin_unlock_bh(&green_ap_ctx->lock); in ucfg_green_ap_get_ps_config()
173 qdf_spin_unlock_bh(&green_ap_ctx->lock); in ucfg_green_ap_get_ps_config()
196 qdf_spin_lock_bh(&green_ap_ctx->lock); in ucfg_green_ap_set_transition_time()
198 qdf_spin_unlock_bh(&green_ap_ctx->lock); in ucfg_green_ap_set_transition_time()
203 qdf_spin_unlock_bh(&green_ap_ctx->lock); in ucfg_green_ap_set_transition_time()
226 qdf_spin_lock_bh(&green_ap_ctx->lock); in ucfg_green_ap_get_transition_time()
[all …]
/wlan-driver/qca-wifi-host-cmn/qdf/src/
H A Dqdf_tracker.c40 qdf_spinlock_create(&tracker->lock); in qdf_tracker_init()
49 qdf_spin_lock_bh(&tracker->lock); in qdf_tracker_deinit()
51 qdf_spin_unlock_bh(&tracker->lock); in qdf_tracker_deinit()
54 qdf_spinlock_destroy(&tracker->lock); in qdf_tracker_deinit()
99 qdf_spin_lock_bh(&tracker->lock); in qdf_tracker_check_for_leaks()
105 qdf_spin_unlock_bh(&tracker->lock); in qdf_tracker_check_for_leaks()
118 qdf_spin_lock_bh(&tracker->lock); in qdf_tracker_track()
124 qdf_spin_unlock_bh(&tracker->lock); in qdf_tracker_track()
137 qdf_spin_lock_bh(&tracker->lock); in qdf_tracker_track()
139 qdf_spin_unlock_bh(&tracker->lock); in qdf_tracker_track()
[all …]
H A Dqdf_flex_mem.c51 qdf_spinlock_create(&pool->lock); in qdf_flex_mem_init()
62 qdf_spinlock_destroy(&pool->lock); in qdf_flex_mem_deinit()
114 qdf_spin_lock_bh(&pool->lock); in qdf_flex_mem_alloc()
116 qdf_spin_unlock_bh(&pool->lock); in qdf_flex_mem_alloc()
172 qdf_spin_lock_bh(&pool->lock); in qdf_flex_mem_free()
174 qdf_spin_unlock_bh(&pool->lock); in qdf_flex_mem_free()
/wlan-driver/qca-wifi-host-cmn/dp/wifi3.0/
H A Ddp_rx_desc.c119 qdf_spinlock_create(&rx_desc_pool->lock); in dp_rx_desc_pool_init()
121 qdf_spin_lock_bh(&rx_desc_pool->lock); in dp_rx_desc_pool_init()
132 qdf_spin_unlock_bh(&rx_desc_pool->lock); in dp_rx_desc_pool_init()
222 qdf_spin_lock_bh(&rx_desc_pool->lock); in dp_rx_desc_nbuf_and_pool_free()
225 qdf_spin_unlock_bh(&rx_desc_pool->lock); in dp_rx_desc_nbuf_and_pool_free()
228 qdf_spinlock_destroy(&rx_desc_pool->lock); in dp_rx_desc_nbuf_and_pool_free()
237 qdf_spin_lock_bh(&rx_desc_pool->lock); in dp_rx_desc_nbuf_free()
240 qdf_spin_unlock_bh(&rx_desc_pool->lock); in dp_rx_desc_nbuf_free()
263 qdf_spin_lock_bh(&rx_desc_pool->lock); in dp_rx_desc_pool_deinit()
274 qdf_spin_unlock_bh(&rx_desc_pool->lock); in dp_rx_desc_pool_deinit()
[all …]
H A Ddp_tx_desc.h75 #define TX_DESC_LOCK_CREATE(lock) argument
76 #define TX_DESC_LOCK_DESTROY(lock) argument
77 #define TX_DESC_LOCK_LOCK(lock) argument
78 #define TX_DESC_LOCK_UNLOCK(lock) argument
98 #define TX_DESC_LOCK_CREATE(lock) qdf_spinlock_create(lock) argument
99 #define TX_DESC_LOCK_DESTROY(lock) qdf_spinlock_destroy(lock) argument
100 #define TX_DESC_LOCK_LOCK(lock) qdf_spin_lock_bh(lock) argument
101 #define TX_DESC_LOCK_UNLOCK(lock) qdf_spin_unlock_bh(lock) argument
1033 TX_DESC_LOCK_LOCK(&pool->lock); in dp_tx_desc_alloc()
1039 TX_DESC_LOCK_UNLOCK(&pool->lock); in dp_tx_desc_alloc()
[all …]
H A Ddp_tx_desc.c111 TX_DESC_LOCK_LOCK(&tx_desc_pool->lock); in dp_tx_desc_pool_cleanup()
120 TX_DESC_LOCK_UNLOCK(&tx_desc_pool->lock); in dp_tx_desc_pool_cleanup()
123 TX_DESC_LOCK_LOCK(&tx_desc_pool->lock); in dp_tx_desc_pool_cleanup()
133 TX_DESC_LOCK_UNLOCK(&tx_desc_pool->lock); in dp_tx_desc_pool_cleanup()
288 TX_DESC_LOCK_CREATE(&tx_desc_pool->lock); in dp_tx_desc_pool_init()
305 TX_DESC_LOCK_DESTROY(&tx_desc_pool->lock); in dp_tx_desc_pool_deinit()
448 qdf_spinlock_create(&dp_tx_ext_desc_pool->lock); in dp_tx_ext_desc_pool_init_by_id()
505 qdf_spinlock_destroy(&dp_tx_ext_desc_pool->lock); in dp_tx_ext_desc_pool_deinit_by_id()
606 qdf_spinlock_create(&tso_desc_pool->lock); in dp_tx_tso_desc_pool_init_by_id()
636 qdf_spin_lock_bh(&tso_desc_pool->lock); in dp_tx_tso_desc_pool_deinit_by_id()
[all …]
/wlan-driver/qcacld-3.0/components/nan/dispatcher/src/
H A Dnan_ucfg_api.c147 qdf_spin_lock_bh(&priv_obj->lock); in __ucfg_nan_set_ndi_state()
150 qdf_spin_unlock_bh(&priv_obj->lock); in __ucfg_nan_set_ndi_state()
173 qdf_spin_lock_bh(&priv_obj->lock); in ucfg_nan_set_active_peers()
175 qdf_spin_unlock_bh(&priv_obj->lock); in ucfg_nan_set_active_peers()
231 qdf_spin_lock_bh(&priv_obj->lock); in ucfg_nan_set_peer_mc_list()
240 qdf_spin_unlock_bh(&priv_obj->lock); in ucfg_nan_set_peer_mc_list()
248 qdf_spin_unlock_bh(&priv_obj->lock); in ucfg_nan_set_peer_mc_list()
286 qdf_spin_lock_bh(&priv_obj->lock); in ucfg_nan_clear_peer_mc_list()
296 qdf_spin_unlock_bh(&priv_obj->lock); in ucfg_nan_clear_peer_mc_list()
311 qdf_spin_lock_bh(&priv_obj->lock); in ucfg_nan_get_active_peers()
[all …]
/wlan-driver/qca-wifi-host-cmn/hif/src/
H A Dhif_runtime_pm.c356 static int __hif_pm_runtime_allow_suspend(struct hif_pm_runtime_lock *lock);
583 int hif_runtime_lock_init(qdf_runtime_lock_t *lock, const char *name) in hif_runtime_lock_init() argument
599 lock->lock = context; in hif_runtime_lock_init()
604 void hif_runtime_lock_deinit(struct hif_pm_runtime_lock *lock) in hif_runtime_lock_deinit() argument
606 if (!lock) { in hif_runtime_lock_deinit()
611 hif_debug("Deinitializing Runtime PM wakelock %s", lock->name); in hif_runtime_lock_deinit()
615 __hif_pm_runtime_allow_suspend(lock); in hif_runtime_lock_deinit()
619 qdf_mem_free(lock); in hif_runtime_lock_deinit()
790 static int __hif_pm_runtime_prevent_suspend(struct hif_pm_runtime_lock *lock) in __hif_pm_runtime_prevent_suspend() argument
794 if (lock->active) in __hif_pm_runtime_prevent_suspend()
[all …]
/wlan-driver/qcacld-3.0/components/pmo/dispatcher/src/
H A Dwlan_pmo_obj_mgmt_api.c176 qdf_spinlock_create(&psoc_ctx->lock); in pmo_psoc_object_created_notification()
219 qdf_spinlock_destroy(&psoc_ctx->lock); in pmo_psoc_object_destroyed_notification()
376 qdf_spin_lock_bh(&pmo_ctx->lock); in pmo_register_suspend_handler()
379 qdf_spin_unlock_bh(&pmo_ctx->lock); in pmo_register_suspend_handler()
409 qdf_spin_lock_bh(&pmo_ctx->lock); in pmo_unregister_suspend_handler()
413 qdf_spin_unlock_bh(&pmo_ctx->lock); in pmo_unregister_suspend_handler()
415 qdf_spin_unlock_bh(&pmo_ctx->lock); in pmo_unregister_suspend_handler()
448 qdf_spin_lock_bh(&pmo_ctx->lock); in pmo_register_resume_handler()
451 qdf_spin_unlock_bh(&pmo_ctx->lock); in pmo_register_resume_handler()
480 qdf_spin_lock_bh(&pmo_ctx->lock); in pmo_unregister_resume_handler()
[all …]
/wlan-driver/qcacld-3.0/components/pmo/core/src/
H A Dwlan_pmo_lphb.c64 qdf_spin_lock_bh(&psoc_ctx->lock); in pmo_core_send_lphb_enable()
73 qdf_spin_unlock_bh(&psoc_ctx->lock); in pmo_core_send_lphb_enable()
76 qdf_spin_lock_bh(&psoc_ctx->lock); in pmo_core_send_lphb_enable()
79 qdf_spin_unlock_bh(&psoc_ctx->lock); in pmo_core_send_lphb_enable()
233 qdf_spin_lock_bh(&psoc_ctx->lock); in pmo_core_lphb_config_req()
236 qdf_spin_unlock_bh(&psoc_ctx->lock); in pmo_core_lphb_config_req()
H A Dwlan_pmo_hw_filter.c49 qdf_spin_lock_bh(&psoc_priv->lock); in pmo_core_enable_hw_filter_in_fwr()
51 qdf_spin_unlock_bh(&psoc_priv->lock); in pmo_core_enable_hw_filter_in_fwr()
86 qdf_spin_lock_bh(&psoc_priv->lock); in pmo_core_disable_hw_filter_in_fwr()
88 qdf_spin_unlock_bh(&psoc_priv->lock); in pmo_core_disable_hw_filter_in_fwr()
/wlan-driver/qcacld-3.0/components/disa/core/src/
H A Dwlan_disa_main.c42 qdf_spinlock_create(&gp_disa_ctx->lock); in disa_allocate_ctx()
54 qdf_spinlock_destroy(&gp_disa_ctx->lock); in disa_free_ctx()
79 qdf_spin_lock_bh(&disa_ctx->lock); in disa_core_encrypt_decrypt_req()
87 qdf_spin_unlock_bh(&disa_ctx->lock); in disa_core_encrypt_decrypt_req()
/wlan-driver/qca-wifi-host-cmn/target_if/core/src/
H A Dtarget_if_main.c131 qdf_spin_lock_bh(&g_target_if_ctx->lock); in target_if_get_psoc_from_scn_hdl()
136 qdf_spin_unlock_bh(&g_target_if_ctx->lock); in target_if_get_psoc_from_scn_hdl()
145 qdf_spin_lock_bh(&g_target_if_ctx->lock); in target_if_get_pdev_from_scn_hdl()
150 qdf_spin_unlock_bh(&g_target_if_ctx->lock); in target_if_get_pdev_from_scn_hdl()
185 qdf_spinlock_create(&g_target_if_ctx->lock); in target_if_init()
187 qdf_spin_lock_bh(&g_target_if_ctx->lock); in target_if_init()
190 qdf_spin_unlock_bh(&g_target_if_ctx->lock); in target_if_init()
205 qdf_spin_lock_bh(&g_target_if_ctx->lock); in target_if_deinit()
210 qdf_spin_unlock_bh(&g_target_if_ctx->lock); in target_if_deinit()
212 qdf_spinlock_destroy(&g_target_if_ctx->lock); in target_if_deinit()
[all …]
/wlan-driver/qcacld-3.0/components/nan/core/src/
H A Dnan_api.c47 qdf_spinlock_create(&nan_obj->lock); in nan_psoc_obj_created_notification()
63 qdf_spinlock_destroy(&nan_obj->lock); in nan_psoc_obj_created_notification()
87 qdf_spinlock_destroy(&nan_obj->lock); in nan_psoc_obj_destroyed_notification()
119 qdf_spinlock_create(&nan_obj->lock); in nan_vdev_obj_created_notification()
132 qdf_spinlock_destroy(&nan_obj->lock); in nan_vdev_obj_created_notification()
161 qdf_spinlock_destroy(&nan_obj->lock); in nan_vdev_obj_destroyed_notification()
188 qdf_spinlock_create(&nan_peer_obj->lock); in nan_peer_obj_created_notification()
201 qdf_spinlock_destroy(&nan_peer_obj->lock); in nan_peer_obj_created_notification()
234 qdf_spinlock_destroy(&nan_peer_obj->lock); in nan_peer_obj_destroyed_notification()
/wlan-driver/qca-wifi-host-cmn/wbuff/src/
H A Dwbuff.c256 qdf_spinlock_create(&mod->lock); in wbuff_module_init()
285 qdf_spinlock_destroy(&mod->lock); in wbuff_module_deinit()
382 qdf_spin_lock_bh(&mod->lock); in wbuff_module_deregister()
402 qdf_spin_unlock_bh(&mod->lock); in wbuff_module_deregister()
440 qdf_spin_lock_bh(&mod->lock); in wbuff_buff_get()
446 qdf_spin_unlock_bh(&mod->lock); in wbuff_buff_get()
490 qdf_spin_lock_bh(&wbuff.mod[module_id].lock); in wbuff_buff_put()
497 qdf_spin_unlock_bh(&wbuff.mod[module_id].lock); in wbuff_buff_put()
/wlan-driver/qca-wifi-host-cmn/gpio/core/src/
H A Dwlan_gpio_api.c45 qdf_spinlock_create(&gpio_obj->lock); in gpio_psoc_obj_created_notification()
58 qdf_spinlock_destroy(&gpio_obj->lock); in gpio_psoc_obj_created_notification()
93 qdf_spinlock_destroy(&gpio_obj->lock); in gpio_psoc_obj_destroyed_notification()
/wlan-driver/qcacld-3.0/components/interop_issues_ap/core/src/
H A Dwlan_interop_issues_ap_api.c47 qdf_spinlock_create(&interop_issues_ap_obj->lock); in interop_issues_ap_psoc_obj_created_notification()
63 qdf_spinlock_destroy(&interop_issues_ap_obj->lock); in interop_issues_ap_psoc_obj_created_notification()
100 qdf_spinlock_destroy(&interop_issues_ap_obj->lock); in interop_issues_ap_psoc_obj_destroyed_notification()
/wlan-driver/qcacld-3.0/components/disa/core/inc/
H A Dwlan_disa_priv.h43 qdf_spinlock_t lock; member
58 qdf_spinlock_t lock; member
/wlan-driver/qca-wifi-host-cmn/umac/cmn_services/serialization/src/
H A Dwlan_serialization_utils_i.h659 wlan_serialization_acquire_lock(qdf_spinlock_t *lock);
668 wlan_serialization_release_lock(qdf_spinlock_t *lock);
677 wlan_serialization_create_lock(qdf_spinlock_t *lock);
686 wlan_serialization_destroy_lock(qdf_spinlock_t *lock);

12345