Lines Matching refs:cmd
566 struct ath12k_dp_rx_reo_cmd *cmd, *tmp; in ath12k_dp_rx_reo_cmd_list_cleanup() local
570 list_for_each_entry_safe(cmd, tmp, &dp->reo_cmd_list, list) { in ath12k_dp_rx_reo_cmd_list_cleanup()
571 list_del(&cmd->list); in ath12k_dp_rx_reo_cmd_list_cleanup()
572 dma_unmap_single(ab->dev, cmd->data.paddr, in ath12k_dp_rx_reo_cmd_list_cleanup()
573 cmd->data.size, DMA_BIDIRECTIONAL); in ath12k_dp_rx_reo_cmd_list_cleanup()
574 kfree(cmd->data.vaddr); in ath12k_dp_rx_reo_cmd_list_cleanup()
575 kfree(cmd); in ath12k_dp_rx_reo_cmd_list_cleanup()
607 struct ath12k_hal_reo_cmd *cmd, in ath12k_dp_reo_cmd_send() argument
617 cmd_num = ath12k_hal_reo_cmd_send(ab, cmd_ring, type, cmd); in ath12k_dp_reo_cmd_send()
653 struct ath12k_hal_reo_cmd cmd = {0}; in ath12k_dp_reo_cache_flush() local
662 cmd.addr_lo = lower_32_bits(rx_tid->paddr + tot_desc_sz); in ath12k_dp_reo_cache_flush()
663 cmd.addr_hi = upper_32_bits(rx_tid->paddr); in ath12k_dp_reo_cache_flush()
665 HAL_REO_CMD_FLUSH_CACHE, &cmd, in ath12k_dp_reo_cache_flush()
673 memset(&cmd, 0, sizeof(cmd)); in ath12k_dp_reo_cache_flush()
674 cmd.addr_lo = lower_32_bits(rx_tid->paddr); in ath12k_dp_reo_cache_flush()
675 cmd.addr_hi = upper_32_bits(rx_tid->paddr); in ath12k_dp_reo_cache_flush()
676 cmd.flag = HAL_REO_CMD_FLG_NEED_STATUS; in ath12k_dp_reo_cache_flush()
679 &cmd, ath12k_dp_reo_cmd_free); in ath12k_dp_reo_cache_flush()
795 struct ath12k_hal_reo_cmd cmd = {0}; in ath12k_dp_rx_peer_tid_delete() local
802 cmd.flag = HAL_REO_CMD_FLG_NEED_STATUS; in ath12k_dp_rx_peer_tid_delete()
803 cmd.addr_lo = lower_32_bits(rx_tid->paddr); in ath12k_dp_rx_peer_tid_delete()
804 cmd.addr_hi = upper_32_bits(rx_tid->paddr); in ath12k_dp_rx_peer_tid_delete()
805 cmd.upd0 = HAL_REO_CMD_UPD0_VLD; in ath12k_dp_rx_peer_tid_delete()
807 HAL_REO_CMD_UPDATE_RX_QUEUE, &cmd, in ath12k_dp_rx_peer_tid_delete()
905 struct ath12k_hal_reo_cmd cmd = {0}; in ath12k_peer_rx_tid_reo_update() local
908 cmd.addr_lo = lower_32_bits(rx_tid->paddr); in ath12k_peer_rx_tid_reo_update()
909 cmd.addr_hi = upper_32_bits(rx_tid->paddr); in ath12k_peer_rx_tid_reo_update()
910 cmd.flag = HAL_REO_CMD_FLG_NEED_STATUS; in ath12k_peer_rx_tid_reo_update()
911 cmd.upd0 = HAL_REO_CMD_UPD0_BA_WINDOW_SIZE; in ath12k_peer_rx_tid_reo_update()
912 cmd.ba_window_size = ba_win_sz; in ath12k_peer_rx_tid_reo_update()
915 cmd.upd0 |= HAL_REO_CMD_UPD0_SSN; in ath12k_peer_rx_tid_reo_update()
916 cmd.upd2 = u32_encode_bits(ssn, HAL_REO_CMD_UPD2_SSN); in ath12k_peer_rx_tid_reo_update()
920 HAL_REO_CMD_UPDATE_RX_QUEUE, &cmd, in ath12k_peer_rx_tid_reo_update()
1114 struct ath12k_hal_reo_cmd cmd = {0}; in ath12k_dp_rx_peer_pn_replay_config() local
1127 cmd.flag = HAL_REO_CMD_FLG_NEED_STATUS; in ath12k_dp_rx_peer_pn_replay_config()
1128 cmd.upd0 = HAL_REO_CMD_UPD0_PN | in ath12k_dp_rx_peer_pn_replay_config()
1141 cmd.upd1 |= HAL_REO_CMD_UPD1_PN_CHECK; in ath12k_dp_rx_peer_pn_replay_config()
1142 cmd.pn_size = 48; in ath12k_dp_rx_peer_pn_replay_config()
1163 cmd.addr_lo = lower_32_bits(rx_tid->paddr); in ath12k_dp_rx_peer_pn_replay_config()
1164 cmd.addr_hi = upper_32_bits(rx_tid->paddr); in ath12k_dp_rx_peer_pn_replay_config()
1167 &cmd, NULL); in ath12k_dp_rx_peer_pn_replay_config()
3853 struct ath12k_dp_rx_reo_cmd *cmd, *tmp; in ath12k_dp_rx_process_reo_status() local
3904 list_for_each_entry_safe(cmd, tmp, &dp->reo_cmd_list, list) { in ath12k_dp_rx_process_reo_status()
3905 if (reo_status.uniform_hdr.cmd_num == cmd->cmd_num) { in ath12k_dp_rx_process_reo_status()
3907 list_del(&cmd->list); in ath12k_dp_rx_process_reo_status()
3914 cmd->handler(dp, (void *)&cmd->data, in ath12k_dp_rx_process_reo_status()
3916 kfree(cmd); in ath12k_dp_rx_process_reo_status()