Lines Matching refs:pcfr

388 	struct pdev_cfr *pcfr;  in ucfg_cfr_capture_data()  local
415 pcfr = wlan_objmgr_pdev_get_comp_private_obj(pdev, in ucfg_cfr_capture_data()
417 if (!pcfr) { in ucfg_cfr_capture_data()
422 if (!pcfr->is_cfr_capable) { in ucfg_cfr_capture_data()
434 vaddr = pcfr->cfr_mem_chunk.vaddr; in ucfg_cfr_capture_data()
458 if (((*rindex) + payload_len) <= (pcfr->cfr_mem_chunk.len - 4)) in ucfg_cfr_capture_data()
460 else if (((*rindex) + payload_len) > (pcfr->cfr_mem_chunk.len - 4)) in ucfg_cfr_capture_data()
529 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_reset_bitmap() local
533 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_reset_bitmap()
537 pcfr->rcc_param.modified_in_curr_session |= params->reset_cfg; in ucfg_cfr_set_reset_bitmap()
538 tgt_cfr_default_ta_ra_cfg(pdev, &pcfr->rcc_param, in ucfg_cfr_set_reset_bitmap()
562 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_en_bitmap() local
566 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_en_bitmap()
570 pcfr->rcc_param.filter_group_bitmap = params->en_cfg; in ucfg_cfr_set_en_bitmap()
586 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_ul_mu_user_mask() local
590 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_ul_mu_user_mask()
594 pcfr->rcc_param.ul_mu_user_mask_lower = params->ul_mu_user_mask_lower; in ucfg_cfr_set_ul_mu_user_mask()
595 pcfr->rcc_param.ul_mu_user_mask_upper = params->ul_mu_user_mask_upper; in ucfg_cfr_set_ul_mu_user_mask()
617 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_freeze_tlv_delay_cnt() local
621 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_freeze_tlv_delay_cnt()
625 pcfr->rcc_param.freeze_tlv_delay_cnt_en = in ucfg_cfr_set_freeze_tlv_delay_cnt()
628 pcfr->rcc_param.freeze_tlv_delay_cnt_thr = in ucfg_cfr_set_freeze_tlv_delay_cnt()
644 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_tara_filterin_as_fp() local
648 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_tara_filterin_as_fp()
652 if (!pcfr->is_mo_marking_support) { in ucfg_cfr_set_tara_filterin_as_fp()
656 pcfr->rcc_param.en_ta_ra_filter_in_as_fp = in ucfg_cfr_set_tara_filterin_as_fp()
672 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_capture_count() local
676 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_capture_count()
680 if (!pcfr->is_cap_interval_mode_sel_support) { in ucfg_cfr_set_capture_count()
684 pcfr->rcc_param.capture_count = params->cap_count; in ucfg_cfr_set_capture_count()
699 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_capture_interval_mode_sel() local
703 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_capture_interval_mode_sel()
707 if (!pcfr->is_cap_interval_mode_sel_support) { in ucfg_cfr_set_capture_interval_mode_sel()
711 pcfr->rcc_param.capture_intval_mode_sel = in ucfg_cfr_set_capture_interval_mode_sel()
728 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_capture_interval() local
732 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_capture_interval()
736 if (pcfr->rcc_param.capture_duration > params->cap_intvl) { in ucfg_cfr_set_capture_interval()
740 pcfr->rcc_param.capture_interval = params->cap_intvl; in ucfg_cfr_set_capture_interval()
757 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_capture_duration() local
761 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_capture_duration()
765 if (pcfr->rcc_param.capture_interval && in ucfg_cfr_set_capture_duration()
766 (params->cap_dur > pcfr->rcc_param.capture_interval)) { in ucfg_cfr_set_capture_duration()
770 pcfr->rcc_param.capture_duration = params->cap_dur; in ucfg_cfr_set_capture_duration()
789 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_frame_type_subtype() local
794 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_frame_type_subtype()
806 curr_cfg = &pcfr->rcc_param.curr[params->grp_id]; in ucfg_cfr_set_frame_type_subtype()
816 &pcfr->rcc_param.modified_in_curr_session); in ucfg_cfr_set_frame_type_subtype()
833 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_bw_nss() local
838 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_bw_nss()
850 curr_cfg = &pcfr->rcc_param.curr[params->grp_id]; in ucfg_cfr_set_bw_nss()
858 &pcfr->rcc_param.modified_in_curr_session); in ucfg_cfr_set_bw_nss()
875 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_tara_config() local
880 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_tara_config()
891 curr_cfg = &pcfr->rcc_param.curr[params->grp_id]; in ucfg_cfr_set_tara_config()
905 &pcfr->rcc_param.modified_in_curr_session); in ucfg_cfr_set_tara_config()
914 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_get_cfg() local
920 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_get_cfg()
923 if (!cfr_is_filter_enabled(&pcfr->rcc_param)) { in ucfg_cfr_get_cfg()
932 pcfr->rcc_param.m_directed_ftm ? in ucfg_cfr_get_cfg()
935 pcfr->rcc_param.m_all_ftm_ack ? in ucfg_cfr_get_cfg()
938 pcfr->rcc_param.m_ndpa_ndp_directed ? in ucfg_cfr_get_cfg()
941 pcfr->rcc_param.m_ndpa_ndp_all ? in ucfg_cfr_get_cfg()
944 pcfr->rcc_param.m_ta_ra_filter ? in ucfg_cfr_get_cfg()
947 pcfr->rcc_param.m_all_packet ? in ucfg_cfr_get_cfg()
951 pcfr->rcc_param.capture_duration); in ucfg_cfr_get_cfg()
953 pcfr->rcc_param.capture_interval); in ucfg_cfr_get_cfg()
955 pcfr->rcc_param.capture_count); in ucfg_cfr_get_cfg()
957 pcfr->rcc_param.capture_intval_mode_sel); in ucfg_cfr_get_cfg()
959 pcfr->rcc_param.ul_mu_user_mask_lower); in ucfg_cfr_get_cfg()
961 pcfr->rcc_param.ul_mu_user_mask_upper); in ucfg_cfr_get_cfg()
963 pcfr->rcc_param.freeze_tlv_delay_cnt_en ? in ucfg_cfr_get_cfg()
966 pcfr->rcc_param.freeze_tlv_delay_cnt_thr); in ucfg_cfr_get_cfg()
968 pcfr->rcc_param.filter_group_bitmap); in ucfg_cfr_get_cfg()
970 pcfr->rcc_param.modified_in_curr_session); in ucfg_cfr_get_cfg()
975 glbl_cfg = &pcfr->global[grp_id]; in ucfg_cfr_get_cfg()
1052 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_rcc_dump_dbg_counters() local
1059 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_rcc_dump_dbg_counters()
1071 pcfr->total_tx_evt_cnt); in ucfg_cfr_rcc_dump_dbg_counters()
1073 pcfr->dbr_evt_cnt); in ucfg_cfr_rcc_dump_dbg_counters()
1075 pcfr->rx_tlv_evt_cnt); in ucfg_cfr_rcc_dump_dbg_counters()
1077 pcfr->release_cnt); in ucfg_cfr_rcc_dump_dbg_counters()
1080 pcfr->flush_dbr_cnt); in ucfg_cfr_rcc_dump_dbg_counters()
1082 pcfr->invalid_dma_length_cnt); in ucfg_cfr_rcc_dump_dbg_counters()
1084 pcfr->flush_timeout_dbr_cnt); in ucfg_cfr_rcc_dump_dbg_counters()
1086 pcfr->tx_peer_status_cfr_fail); in ucfg_cfr_rcc_dump_dbg_counters()
1088 pcfr->tx_evt_status_cfr_fail); in ucfg_cfr_rcc_dump_dbg_counters()
1090 pcfr->tx_dbr_cookie_lookup_fail); in ucfg_cfr_rcc_dump_dbg_counters()
1093 pcfr->clear_txrx_event); in ucfg_cfr_rcc_dump_dbg_counters()
1095 pcfr->cfr_dma_aborts); in ucfg_cfr_rcc_dump_dbg_counters()
1136 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_rcc_clr_dbg_counters() local
1141 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_rcc_clr_dbg_counters()
1154 pcfr->dbr_evt_cnt = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1155 pcfr->release_cnt = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1156 pcfr->total_tx_evt_cnt = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1157 pcfr->rx_tlv_evt_cnt = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1158 pcfr->flush_dbr_cnt = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1159 pcfr->flush_timeout_dbr_cnt = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1160 pcfr->invalid_dma_length_cnt = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1161 pcfr->clear_txrx_event = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1162 pcfr->cfr_dma_aborts = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1163 pcfr->tx_peer_status_cfr_fail = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1164 pcfr->tx_evt_status_cfr_fail = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1165 pcfr->tx_dbr_cookie_lookup_fail = 0; in ucfg_cfr_rcc_clr_dbg_counters()
1230 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_committed_rcc_config() local
1237 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_committed_rcc_config()
1249 pcfr->rcc_param.vdev_id = wlan_vdev_get_id(vdev); in ucfg_cfr_committed_rcc_config()
1267 if (cfr_is_filter_enabled(&pcfr->rcc_param)) { in ucfg_cfr_committed_rcc_config()
1268 if (pcfr->cfr_timer_enable) { in ucfg_cfr_committed_rcc_config()
1274 if (pcfr->rcc_param.m_all_ftm_ack) { in ucfg_cfr_committed_rcc_config()
1281 if (pcfr->rcc_param.m_ndpa_ndp_all) { in ucfg_cfr_committed_rcc_config()
1288 if (pcfr->rcc_param.m_all_packet) { in ucfg_cfr_committed_rcc_config()
1303 if (pcfr->rcc_param.m_ta_ra_filter) { in ucfg_cfr_committed_rcc_config()
1314 if (pcfr->rcc_param.m_directed_ftm) { in ucfg_cfr_committed_rcc_config()
1319 if (pcfr->rcc_param.m_ndpa_ndp_directed) { in ucfg_cfr_committed_rcc_config()
1336 status = tgt_cfr_config_rcc(pdev, &pcfr->rcc_param); in ucfg_cfr_committed_rcc_config()
1343 tgt_cfr_default_ta_ra_cfg(pdev, &pcfr->rcc_param, in ucfg_cfr_committed_rcc_config()
1349 pcfr->rcc_param.num_grp_tlvs = 0; in ucfg_cfr_committed_rcc_config()
1350 pcfr->rcc_param.modified_in_curr_session = 0; in ucfg_cfr_committed_rcc_config()
1359 struct pdev_cfr *pcfr; in ucfg_cfr_suspend() local
1361 pcfr = wlan_objmgr_pdev_get_comp_private_obj( in ucfg_cfr_suspend()
1364 if (!pcfr) { in ucfg_cfr_suspend()
1369 return cfr_allow_suspend(pcfr); in ucfg_cfr_suspend()
1374 struct pdev_cfr *pcfr; in ucfg_cfr_resume() local
1376 pcfr = wlan_objmgr_pdev_get_comp_private_obj( in ucfg_cfr_resume()
1379 if (!pcfr) { in ucfg_cfr_resume()
1384 return cfr_prevent_suspend(pcfr); in ucfg_cfr_resume()
1394 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_set_rcc_mode() local
1398 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_set_rcc_mode()
1404 pcfr->rcc_param.m_directed_ftm = value; in ucfg_cfr_set_rcc_mode()
1407 pcfr->rcc_param.m_all_ftm_ack = value; in ucfg_cfr_set_rcc_mode()
1410 pcfr->rcc_param.m_ndpa_ndp_directed = value; in ucfg_cfr_set_rcc_mode()
1413 pcfr->rcc_param.m_ndpa_ndp_all = value; in ucfg_cfr_set_rcc_mode()
1416 pcfr->rcc_param.m_ta_ra_filter = value; in ucfg_cfr_set_rcc_mode()
1419 pcfr->rcc_param.m_all_packet = value; in ucfg_cfr_set_rcc_mode()
1422 pcfr->rcc_param.m_directed_ftm = value; in ucfg_cfr_set_rcc_mode()
1423 pcfr->rcc_param.m_all_ftm_ack = value; in ucfg_cfr_set_rcc_mode()
1424 pcfr->rcc_param.m_ndpa_ndp_directed = value; in ucfg_cfr_set_rcc_mode()
1425 pcfr->rcc_param.m_ndpa_ndp_all = value; in ucfg_cfr_set_rcc_mode()
1426 pcfr->rcc_param.m_ta_ra_filter = value; in ucfg_cfr_set_rcc_mode()
1427 pcfr->rcc_param.m_all_packet = value; in ucfg_cfr_set_rcc_mode()
1443 struct pdev_cfr *pcfr = NULL; in ucfg_cfr_get_rcc_enabled() local
1448 status = dev_sanity_check(vdev, &pdev, &pcfr); in ucfg_cfr_get_rcc_enabled()
1452 if ((pcfr->rcc_param.vdev_id != CFR_INVALID_VDEV_ID) && in ucfg_cfr_get_rcc_enabled()
1453 (pcfr->rcc_param.vdev_id != wlan_vdev_get_id(vdev))) { in ucfg_cfr_get_rcc_enabled()
1456 pcfr->rcc_param.vdev_id); in ucfg_cfr_get_rcc_enabled()
1460 rcc_enabled = cfr_is_filter_enabled(&pcfr->rcc_param); in ucfg_cfr_get_rcc_enabled()