Lines Matching refs:lut
111 return pcfr->lut[offset]; in get_lut_entry()
122 struct look_up_table *lut) in release_lut_entry_enh() argument
124 lut->dbr_recv = false; in release_lut_entry_enh()
125 lut->tx_recv = false; in release_lut_entry_enh()
126 lut->data = NULL; in release_lut_entry_enh()
127 lut->data_len = 0; in release_lut_entry_enh()
128 lut->dbr_ppdu_id = 0; in release_lut_entry_enh()
129 lut->tx_ppdu_id = 0; in release_lut_entry_enh()
130 lut->dbr_tstamp = 0; in release_lut_entry_enh()
131 lut->txrx_tstamp = 0; in release_lut_entry_enh()
132 lut->tx_address1 = 0; in release_lut_entry_enh()
133 lut->tx_address2 = 0; in release_lut_entry_enh()
134 lut->dbr_address = 0; in release_lut_entry_enh()
135 qdf_mem_zero(&lut->header, sizeof(struct csi_cfr_header)); in release_lut_entry_enh()
149 struct look_up_table *lut = NULL; in target_if_cfr_dump_lut_enh() local
171 lut = get_lut_entry(pcfr, i); in target_if_cfr_dump_lut_enh()
172 if (!lut) in target_if_cfr_dump_lut_enh()
174 if (lut->dbr_recv ^ lut->tx_recv) { in target_if_cfr_dump_lut_enh()
175 diff = (lut->dbr_tstamp > lut->txrx_tstamp) ? in target_if_cfr_dump_lut_enh()
176 (lut->dbr_tstamp - lut->txrx_tstamp) : in target_if_cfr_dump_lut_enh()
177 (lut->txrx_tstamp - lut->dbr_tstamp); in target_if_cfr_dump_lut_enh()
196 struct look_up_table *lut = NULL; in cfr_free_pending_dbr_events() local
215 lut = get_lut_entry(pcfr, i); in cfr_free_pending_dbr_events()
216 if (!lut) in cfr_free_pending_dbr_events()
219 if (lut->dbr_recv && !lut->tx_recv && in cfr_free_pending_dbr_events()
220 (lut->dbr_tstamp < pcfr->last_success_tstamp)) { in cfr_free_pending_dbr_events()
222 lut->dbr_address, in cfr_free_pending_dbr_events()
225 release_lut_entry_enh(pdev, lut); in cfr_free_pending_dbr_events()
743 static QDF_STATUS check_dma_length(struct look_up_table *lut, in check_dma_length() argument
747 if (lut->header_length <= PINE_MAX_HEADER_LENGTH_WORDS && in check_dma_length()
748 lut->payload_length <= PINE_MAX_DATA_LENGTH_BYTES) { in check_dma_length()
753 if (lut->header_length <= SPRUCE_MAX_HEADER_LENGTH_WORDS && in check_dma_length()
754 lut->payload_length <= SPRUCE_MAX_DATA_LENGTH_BYTES) { in check_dma_length()
758 if (lut->header_length <= MAPLE_MAX_HEADER_LENGTH_WORDS && in check_dma_length()
759 lut->payload_length <= MAPLE_MAX_DATA_LENGTH_BYTES) { in check_dma_length()
763 if (lut->header_length <= WAIKIKI_MAX_HEADER_LENGTH_WORDS && in check_dma_length()
764 lut->payload_length <= WAIKIKI_MAX_DATA_LENGTH_BYTES) { in check_dma_length()
768 if (lut->header_length <= QCN6432_MAX_HEADER_LENGTH_WORDS && in check_dma_length()
769 lut->payload_length <= QCN6432_MAX_DATA_LENGTH_BYTES) { in check_dma_length()
773 if (lut->header_length <= QCA5332_MAX_HEADER_LENGTH_WORDS && in check_dma_length()
774 lut->payload_length <= QCA5332_MAX_DATA_LENGTH_BYTES) { in check_dma_length()
778 if (lut->header_length <= CYP_MAX_HEADER_LENGTH_WORDS && in check_dma_length()
779 lut->payload_length <= CYP_MAX_DATA_LENGTH_BYTES) { in check_dma_length()
803 struct look_up_table *lut, in correlate_and_relay_enh() argument
832 if (lut->tx_recv) in correlate_and_relay_enh()
834 lut->tx_recv = true; in correlate_and_relay_enh()
837 lut->dbr_recv = true; in correlate_and_relay_enh()
840 if ((lut->dbr_recv) && (lut->tx_recv)) { in correlate_and_relay_enh()
841 if (lut->dbr_ppdu_id == lut->tx_ppdu_id) { in correlate_and_relay_enh()
842 pcfr->last_success_tstamp = lut->dbr_tstamp; in correlate_and_relay_enh()
843 if (lut->dbr_tstamp > lut->txrx_tstamp) { in correlate_and_relay_enh()
844 diff = lut->dbr_tstamp - lut->txrx_tstamp; in correlate_and_relay_enh()
848 } else if (lut->txrx_tstamp > lut->dbr_tstamp) { in correlate_and_relay_enh()
849 diff = lut->txrx_tstamp - lut->dbr_tstamp; in correlate_and_relay_enh()
861 if (check_dma_length(lut, target_type) == in correlate_and_relay_enh()
867 lut->tx_ppdu_id); in correlate_and_relay_enh()
878 lut->header_length, in correlate_and_relay_enh()
879 lut->payload_length, in correlate_and_relay_enh()
880 lut->tx_ppdu_id); in correlate_and_relay_enh()
898 lut->tx_recv = false; in correlate_and_relay_enh()
899 lut->tx_ppdu_id = 0; in correlate_and_relay_enh()
1189 struct look_up_table *lut = NULL; in target_if_cfr_rx_tlv_process() local
1293 lut = get_lut_entry(pcfr, cookie); in target_if_cfr_rx_tlv_process()
1294 if (qdf_unlikely(!lut)) { in target_if_cfr_rx_tlv_process()
1317 lut->tx_ppdu_id = cdp_rx_ppdu->ppdu_id; in target_if_cfr_rx_tlv_process()
1318 lut->tx_address1 = cfr_info->rtt_che_buffer_pointer_low32; in target_if_cfr_rx_tlv_process()
1319 lut->tx_address2 = cfr_info->rtt_che_buffer_pointer_high8; in target_if_cfr_rx_tlv_process()
1320 lut->txrx_tstamp = qdf_ktime_to_ms(qdf_ktime_get()); in target_if_cfr_rx_tlv_process()
1321 header = &lut->header; in target_if_cfr_rx_tlv_process()
1407 status = correlate_and_relay_enh(pdev, cookie, lut, in target_if_cfr_rx_tlv_process()
1412 &lut->header, in target_if_cfr_rx_tlv_process()
1415 lut->data, in target_if_cfr_rx_tlv_process()
1416 lut->data_len, in target_if_cfr_rx_tlv_process()
1419 release_lut_entry_enh(pdev, lut); in target_if_cfr_rx_tlv_process()
1483 struct look_up_table *lut = NULL; in enh_cfr_dbr_event_handler() local
1555 lut = get_lut_entry(pcfr, cookie); in enh_cfr_dbr_event_handler()
1556 if (!lut) { in enh_cfr_dbr_event_handler()
1562 lut->data = data; in enh_cfr_dbr_event_handler()
1563 lut->data_len = length; in enh_cfr_dbr_event_handler()
1564 lut->dbr_ppdu_id = dma_hdr.phy_ppdu_id; in enh_cfr_dbr_event_handler()
1565 lut->dbr_address = payload->paddr; in enh_cfr_dbr_event_handler()
1566 lut->dbr_tstamp = qdf_ktime_to_ms(qdf_ktime_get()); in enh_cfr_dbr_event_handler()
1567 lut->header_length = dma_hdr.length; in enh_cfr_dbr_event_handler()
1568 lut->payload_length = dma_hdr.total_bytes; in enh_cfr_dbr_event_handler()
1569 qdf_mem_copy(&lut->dma_hdr, &dma_hdr, in enh_cfr_dbr_event_handler()
1572 header = &lut->header; in enh_cfr_dbr_event_handler()
1597 status = correlate_and_relay_enh(pdev, cookie, lut, in enh_cfr_dbr_event_handler()
1606 &lut->header, in enh_cfr_dbr_event_handler()
1609 lut->data, in enh_cfr_dbr_event_handler()
1610 lut->data_len, in enh_cfr_dbr_event_handler()
1613 release_lut_entry_enh(pdev, lut); in enh_cfr_dbr_event_handler()
2020 struct look_up_table *lut = NULL; in target_if_peer_capture_event() local
2162 lut = get_lut_entry(pcfr, cookie); in target_if_peer_capture_event()
2163 if (!lut) { in target_if_peer_capture_event()
2172 lut->tx_ppdu_id = (tx_evt_param.correlation_info_2 >> 16); in target_if_peer_capture_event()
2173 lut->tx_address1 = tx_evt_param.correlation_info_1; in target_if_peer_capture_event()
2174 lut->tx_address2 = tx_evt_param.correlation_info_2; in target_if_peer_capture_event()
2175 lut->txrx_tstamp = qdf_ktime_to_ms(qdf_ktime_get()); in target_if_peer_capture_event()
2177 header = &lut->header; in target_if_peer_capture_event()
2222 status = correlate_and_relay_enh(pdev, cookie, lut, in target_if_peer_capture_event()
2227 &lut->header, in target_if_peer_capture_event()
2231 lut->data, in target_if_peer_capture_event()
2232 lut->data_len, in target_if_peer_capture_event()
2235 release_lut_entry_enh(pdev, lut); in target_if_peer_capture_event()
2457 struct look_up_table *lut = NULL; in os_timer_func() local
2486 lut = get_lut_entry(pcfr, i); in os_timer_func()
2487 if (!lut) in os_timer_func()
2490 if (lut->dbr_recv && !lut->tx_recv) { in os_timer_func()
2491 diff = cur_tstamp - lut->dbr_tstamp; in os_timer_func()
2494 lut->dbr_address, in os_timer_func()
2497 release_lut_entry_enh(pdev, lut); in os_timer_func()