/wlan-driver/qcacld-3.0/components/pmo/core/inc/ |
H A D | wlan_pmo_wow.h | 123 struct pmo_vdev_priv_obj *vdev_ctx) in pmo_get_and_increment_wow_default_ptrn() argument 127 if (vdev_ctx->pmo_psoc_ctx->caps.unified_wow) { in pmo_get_and_increment_wow_default_ptrn() 128 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_get_and_increment_wow_default_ptrn() 129 count = vdev_ctx->num_wow_default_patterns++; in pmo_get_and_increment_wow_default_ptrn() 130 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_get_and_increment_wow_default_ptrn() 132 qdf_spin_lock_bh(&vdev_ctx->pmo_psoc_ctx->lock); in pmo_get_and_increment_wow_default_ptrn() 133 count = vdev_ctx->pmo_psoc_ctx->wow.ptrn_id_def++; 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() 149 struct pmo_vdev_priv_obj *vdev_ctx) in pmo_increment_wow_default_ptrn() argument 151 if (vdev_ctx->pmo_psoc_ctx->caps.unified_wow) { in pmo_increment_wow_default_ptrn() [all …]
|
H A D | wlan_pmo_suspend_resume.h | 155 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_vdev_set_restore_dtim() local 157 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_vdev_set_restore_dtim() 158 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_vdev_set_restore_dtim() 159 vdev_ctx->restore_dtim_setting = value; in pmo_core_vdev_set_restore_dtim() 160 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_vdev_set_restore_dtim() 173 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_vdev_get_restore_dtim() local 175 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_vdev_get_restore_dtim() 176 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_vdev_get_restore_dtim() 177 value = vdev_ctx->restore_dtim_setting; in pmo_core_vdev_get_restore_dtim() 178 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_vdev_get_restore_dtim() [all …]
|
H A D | wlan_pmo_static_config.h | 120 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_vdev_set_ps_params() local 122 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_vdev_set_ps_params() 123 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_vdev_set_ps_params() 124 vdev_ctx->ps_params = *ps_params; in pmo_core_vdev_set_ps_params() 125 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_vdev_set_ps_params() 139 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_vdev_get_ps_params() local 141 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_vdev_get_ps_params() 142 if (!vdev_ctx) in pmo_core_vdev_get_ps_params() 145 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_vdev_get_ps_params() 146 *ps_params = vdev_ctx->ps_params; in pmo_core_vdev_get_ps_params() [all …]
|
/wlan-driver/qcacld-3.0/components/pmo/core/src/ |
H A D | wlan_pmo_gtk.c | 32 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_cache_gtk_req_in_vdev_priv() local 36 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_cache_gtk_req_in_vdev_priv() 42 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_cache_gtk_req_in_vdev_priv() 43 qdf_mem_copy(&vdev_ctx->vdev_gtk_req, gtk_req, in pmo_core_cache_gtk_req_in_vdev_priv() 44 sizeof(vdev_ctx->vdev_gtk_req)); in pmo_core_cache_gtk_req_in_vdev_priv() 45 qdf_mem_copy(&vdev_ctx->vdev_gtk_req.bssid, in pmo_core_cache_gtk_req_in_vdev_priv() 47 vdev_ctx->vdev_gtk_req.flags = PMO_GTK_OFFLOAD_ENABLE; in pmo_core_cache_gtk_req_in_vdev_priv() 48 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_cache_gtk_req_in_vdev_priv() 56 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_flush_gtk_req_from_vdev_priv() local 58 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_flush_gtk_req_from_vdev_priv() [all …]
|
H A D | wlan_pmo_mc_addr_filtering.c | 31 static void pmo_core_fill_mc_list(struct pmo_vdev_priv_obj **vdev_ctx, in pmo_core_fill_mc_list() argument 41 temp_ctx = *vdev_ctx; in pmo_core_fill_mc_list() 84 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_cache_mc_addr_list_in_vdev_priv() local 86 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_cache_mc_addr_list_in_vdev_priv() 87 pmo_core_fill_mc_list(&vdev_ctx, mc_list_config); in pmo_core_cache_mc_addr_list_in_vdev_priv() 95 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_flush_mc_addr_list_from_vdev_priv() local 97 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_flush_mc_addr_list_from_vdev_priv() 99 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_flush_mc_addr_list_from_vdev_priv() 100 qdf_mem_zero(&vdev_ctx->vdev_mc_list_req, in pmo_core_flush_mc_addr_list_from_vdev_priv() 101 sizeof(vdev_ctx->vdev_mc_list_req)); in pmo_core_flush_mc_addr_list_from_vdev_priv() [all …]
|
H A D | wlan_pmo_ns.c | 78 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_cache_ns_in_vdev_priv() local 83 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_cache_ns_in_vdev_priv() 125 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_cache_ns_in_vdev_priv() 126 qdf_mem_copy(&vdev_ctx->vdev_ns_req, request, in pmo_core_cache_ns_in_vdev_priv() 127 sizeof(vdev_ctx->vdev_ns_req)); in pmo_core_cache_ns_in_vdev_priv() 128 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_cache_ns_in_vdev_priv() 137 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_flush_ns_from_vdev_priv() local 141 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_flush_ns_from_vdev_priv() 144 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_flush_ns_from_vdev_priv() 145 qdf_mem_zero(&vdev_ctx->vdev_ns_req, sizeof(vdev_ctx->vdev_ns_req)); in pmo_core_flush_ns_from_vdev_priv() [all …]
|
H A D | wlan_pmo_arp.c | 34 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_cache_arp_in_vdev_priv() local 38 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_cache_arp_in_vdev_priv() 64 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_cache_arp_in_vdev_priv() 65 qdf_mem_copy(&vdev_ctx->vdev_arp_req, request, in pmo_core_cache_arp_in_vdev_priv() 66 sizeof(vdev_ctx->vdev_arp_req)); in pmo_core_cache_arp_in_vdev_priv() 67 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_cache_arp_in_vdev_priv() 84 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_flush_arp_from_vdev_priv() local 88 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_flush_arp_from_vdev_priv() 91 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_flush_arp_from_vdev_priv() 92 qdf_mem_zero(&vdev_ctx->vdev_arp_req, sizeof(vdev_ctx->vdev_arp_req)); in pmo_core_flush_arp_from_vdev_priv() [all …]
|
H A D | wlan_pmo_static_config.c | 43 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_register_wow_wakeup_events() local 49 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_register_wow_wakeup_events() 73 if (vdev_ctx->magic_ptrn_enable) in pmo_register_wow_wakeup_events() 81 if (vdev_ctx->magic_ptrn_enable) in pmo_register_wow_wakeup_events() 120 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_configure_wow_ap() local 123 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_configure_wow_ap() 132 pmo_get_and_increment_wow_default_ptrn(vdev_ctx), in pmo_configure_wow_ap() 145 pmo_get_and_increment_wow_default_ptrn(vdev_ctx), in pmo_configure_wow_ap() 156 pmo_get_and_increment_wow_default_ptrn(vdev_ctx), in pmo_configure_wow_ap() 210 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_configure_wow_ssdp() local [all …]
|
H A D | wlan_pmo_suspend_resume.c | 116 struct pmo_vdev_priv_obj *vdev_ctx, in pmo_core_calculate_listen_interval() argument 121 struct pmo_psoc_cfg *psoc_cfg = &vdev_ctx->pmo_psoc_ctx->psoc_cfg; in pmo_core_calculate_listen_interval() 185 struct pmo_vdev_priv_obj *vdev_ctx) in pmo_configure_vdev_suspend_params() argument 190 struct pmo_psoc_cfg *psoc_cfg = &vdev_ctx->pmo_psoc_ctx->psoc_cfg; in pmo_configure_vdev_suspend_params() 236 struct pmo_vdev_priv_obj *vdev_ctx) in pmo_configure_vdev_resume_params() argument 249 vdev_ctx->ps_params.ps_ito); in pmo_configure_vdev_resume_params() 256 vdev_ctx->ps_params.spec_wake); in pmo_configure_vdev_resume_params() 273 struct pmo_vdev_priv_obj *vdev_ctx) in pmo_core_set_vdev_suspend_dtim() argument 284 ret = pmo_core_calculate_listen_interval(vdev, vdev_ctx, in pmo_core_set_vdev_suspend_dtim() 313 bool pmo_is_listen_interval_user_set(struct pmo_vdev_priv_obj *vdev_ctx) in pmo_is_listen_interval_user_set() argument [all …]
|
H A D | wlan_pmo_wow.c | 53 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_del_wow_pattern() local 59 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_del_wow_pattern() 60 pattern_count = pmo_get_wow_default_ptrn(vdev_ctx); in pmo_core_del_wow_pattern() 66 pattern_count = pmo_get_wow_user_ptrn(vdev_ctx); in pmo_core_del_wow_pattern() 82 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_add_wow_user_pattern() local 88 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_add_wow_user_pattern() 91 for (id = 0; id < pmo_get_wow_default_ptrn(vdev_ctx); id++) in pmo_core_add_wow_user_pattern() 94 pmo_set_wow_default_ptrn(vdev_ctx, 0); in pmo_core_add_wow_user_pattern() 145 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_del_wow_user_pattern() local 151 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_del_wow_user_pattern() [all …]
|
H A D | wlan_pmo_main.c | 549 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_get_vdev_bridge_addr() local 556 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_get_vdev_bridge_addr() 557 qdf_mem_copy(bridgeaddr->bytes, vdev_ctx->bridgeaddr, in pmo_get_vdev_bridge_addr() 566 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_set_vdev_bridge_addr() local 573 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_set_vdev_bridge_addr() 574 qdf_mem_copy(vdev_ctx->bridgeaddr, bridgeaddr->bytes, QDF_MAC_ADDR_SIZE); in pmo_set_vdev_bridge_addr() 582 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_core_get_listen_interval() local 589 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_core_get_listen_interval() 590 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_core_get_listen_interval() 591 *listen_interval = vdev_ctx->dyn_listen_interval; in pmo_core_get_listen_interval() [all …]
|
/wlan-driver/qcacld-3.0/components/pmo/dispatcher/src/ |
H A D | wlan_pmo_tgt_ns.c | 35 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_tgt_enable_ns_offload_req() local 40 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_tgt_enable_ns_offload_req() 56 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_enable_ns_offload_req() 57 qdf_mem_copy(arp_offload_req, &vdev_ctx->vdev_arp_req, in pmo_tgt_enable_ns_offload_req() 59 qdf_mem_copy(ns_offload_req, &vdev_ctx->vdev_ns_req, in pmo_tgt_enable_ns_offload_req() 61 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_enable_ns_offload_req() 81 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_enable_ns_offload_req() 82 if (vdev_ctx->vdev_arp_req.enable) in pmo_tgt_enable_ns_offload_req() 83 vdev_ctx->vdev_arp_req.is_offload_applied = true; in pmo_tgt_enable_ns_offload_req() 84 if (vdev_ctx->vdev_ns_req.enable) in pmo_tgt_enable_ns_offload_req() [all …]
|
H A D | wlan_pmo_tgt_arp.c | 34 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_tgt_enable_arp_offload_req() local 39 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_tgt_enable_arp_offload_req() 55 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_enable_arp_offload_req() 56 qdf_mem_copy(arp_offload_req, &vdev_ctx->vdev_arp_req, in pmo_tgt_enable_arp_offload_req() 58 qdf_mem_copy(ns_offload_req, &vdev_ctx->vdev_ns_req, in pmo_tgt_enable_arp_offload_req() 60 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_enable_arp_offload_req() 79 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_enable_arp_offload_req() 80 if (vdev_ctx->vdev_arp_req.enable) in pmo_tgt_enable_arp_offload_req() 81 vdev_ctx->vdev_arp_req.is_offload_applied = true; in pmo_tgt_enable_arp_offload_req() 82 if (vdev_ctx->vdev_ns_req.enable) in pmo_tgt_enable_arp_offload_req() [all …]
|
H A D | wlan_pmo_tgt_gtk.c | 36 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_tgt_send_gtk_offload_req() local 48 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_tgt_send_gtk_offload_req() 64 qdf_atomic_set(&vdev_ctx->gtk_err_enable, true); in pmo_tgt_send_gtk_offload_req() 74 qdf_atomic_set(&vdev_ctx->gtk_err_enable, false); in pmo_tgt_send_gtk_offload_req() 126 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_tgt_gtk_rsp_evt() local 144 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_tgt_gtk_rsp_evt() 153 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_gtk_rsp_evt() 154 vdev_ctx->vdev_gtk_req.replay_counter = rsp_param->replay_counter; in pmo_tgt_gtk_rsp_evt() 155 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_gtk_rsp_evt() 157 if (vdev_ctx->vdev_gtk_rsp_req.callback) { in pmo_tgt_gtk_rsp_evt() [all …]
|
H A D | wlan_pmo_obj_mgmt_api.c | 233 pmo_vdev_dynamic_arp_ns_offload_init(struct pmo_vdev_priv_obj *vdev_ctx) in pmo_vdev_dynamic_arp_ns_offload_init() argument 235 qdf_runtime_lock_init(&vdev_ctx->dyn_arp_ns_offload_rt_lock); in pmo_vdev_dynamic_arp_ns_offload_init() 239 pmo_vdev_dynamic_arp_ns_offload_deinit(struct pmo_vdev_priv_obj *vdev_ctx) in pmo_vdev_dynamic_arp_ns_offload_deinit() argument 241 qdf_runtime_lock_deinit(&vdev_ctx->dyn_arp_ns_offload_rt_lock); in pmo_vdev_dynamic_arp_ns_offload_deinit() 245 pmo_vdev_dynamic_arp_ns_offload_init(struct pmo_vdev_priv_obj *vdev_ctx) {} in pmo_vdev_dynamic_arp_ns_offload_init() argument 248 pmo_vdev_dynamic_arp_ns_offload_deinit(struct pmo_vdev_priv_obj *vdev_ctx) {} in pmo_vdev_dynamic_arp_ns_offload_deinit() argument 256 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_vdev_object_created_notification() local 265 vdev_ctx = qdf_mem_malloc(sizeof(*vdev_ctx)); in pmo_vdev_object_created_notification() 266 if (!vdev_ctx) { in pmo_vdev_object_created_notification() 273 (void *)vdev_ctx, QDF_STATUS_SUCCESS); in pmo_vdev_object_created_notification() [all …]
|
H A D | wlan_pmo_tgt_wow.c | 96 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_tgt_send_wow_patterns_to_fw() local 102 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_tgt_send_wow_patterns_to_fw() 116 pmo_decrement_wow_default_ptrn(vdev_ctx); in pmo_tgt_send_wow_patterns_to_fw() 122 pmo_increment_wow_user_ptrn(vdev_ctx); in pmo_tgt_send_wow_patterns_to_fw() 133 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_tgt_del_wow_pattern() local 138 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_tgt_del_wow_pattern() 153 pmo_decrement_wow_user_ptrn(vdev_ctx); in pmo_tgt_del_wow_pattern() 155 pmo_decrement_wow_default_ptrn(vdev_ctx); in pmo_tgt_del_wow_pattern()
|
H A D | wlan_pmo_tgt_static_config.c | 60 struct pmo_vdev_priv_obj *vdev_ctx; in pmo_tgt_send_ra_filter_req() local 69 vdev_ctx = pmo_vdev_get_priv(vdev); in pmo_tgt_send_ra_filter_req() 72 qdf_spin_lock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_send_ra_filter_req() 73 ra_interval = vdev_ctx->pmo_psoc_ctx->psoc_cfg.ra_ratelimit_interval; in pmo_tgt_send_ra_filter_req() 74 qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); in pmo_tgt_send_ra_filter_req() 79 default_pattern = pmo_get_and_increment_wow_default_ptrn(vdev_ctx); in pmo_tgt_send_ra_filter_req() 91 pmo_decrement_wow_default_ptrn(vdev_ctx); in pmo_tgt_send_ra_filter_req()
|
/wlan-driver/qca-wifi-host-cmn/umac/mlo_mgr/src/ |
H A D | wlan_mlo_t2lm.c | 1072 struct wlan_objmgr_vdev *vdev_ctx = (struct wlan_objmgr_vdev *)vdev; in wlan_mlo_t2lm_timer_expiry_handler() local 1077 if (!vdev_ctx || !vdev_ctx->mlo_dev_ctx) in wlan_mlo_t2lm_timer_expiry_handler() 1080 t2lm_ctx = &vdev_ctx->mlo_dev_ctx->t2lm_ctx; in wlan_mlo_t2lm_timer_expiry_handler() 1081 t2lm_timer = &vdev_ctx->mlo_dev_ctx->t2lm_ctx.t2lm_timer; in wlan_mlo_t2lm_timer_expiry_handler() 1083 wlan_mlo_t2lm_timer_stop(vdev_ctx); in wlan_mlo_t2lm_timer_expiry_handler() 1093 wlan_mlo_dev_t2lm_notify_link_update(vdev_ctx, in wlan_mlo_t2lm_timer_expiry_handler() 1098 wlan_handle_t2lm_timer(vdev_ctx); in wlan_mlo_t2lm_timer_expiry_handler() 1103 wlan_mlo_dev_t2lm_notify_link_update(vdev_ctx, in wlan_mlo_t2lm_timer_expiry_handler() 1107 wlan_handle_t2lm_timer(vdev_ctx); in wlan_mlo_t2lm_timer_expiry_handler()
|