Lines Matching refs:ring_params
747 struct hal_srng_params *ring_params) in ce_srng_msi_ring_params_setup() argument
768 ring_params->msi_addr = addr_low; in ce_srng_msi_ring_params_setup()
769 ring_params->msi_addr |= (qdf_dma_addr_t)(((uint64_t)addr_high) << 32); in ce_srng_msi_ring_params_setup()
770 ring_params->msi_data = irq_id + msi_data_start; in ce_srng_msi_ring_params_setup()
771 ring_params->flags |= HAL_SRNG_MSI_INTR; in ce_srng_msi_ring_params_setup()
774 irq_id, (void *)ring_params->msi_addr, ring_params->msi_data); in ce_srng_msi_ring_params_setup()
781 struct hal_srng_params ring_params = {0}; in ce_srng_src_ring_setup() local
785 ring_params.ring_base_paddr = src_ring->base_addr_CE_space; in ce_srng_src_ring_setup()
786 ring_params.ring_base_vaddr = src_ring->base_addr_owner_space; in ce_srng_src_ring_setup()
787 ring_params.num_entries = src_ring->nentries; in ce_srng_src_ring_setup()
796 ce_srng_msi_ring_params_setup(scn, ce_id, &ring_params); in ce_srng_src_ring_setup()
798 ring_params.intr_timer_thres_us = 0; in ce_srng_src_ring_setup()
799 ring_params.intr_batch_cntr_thres_entries = 1; in ce_srng_src_ring_setup()
800 ring_params.prefetch_timer = HAL_SRNG_PREFETCH_TIMER; in ce_srng_src_ring_setup()
804 &ring_params, 0); in ce_srng_src_ring_setup()
810 struct hal_srng_params *ring_params) in ce_srng_initialize_dest_ring_thresh() argument
812 ring_params->low_threshold = dest_ring->nentries >> 3; in ce_srng_initialize_dest_ring_thresh()
813 ring_params->intr_timer_thres_us = 0; in ce_srng_initialize_dest_ring_thresh()
814 ring_params->intr_batch_cntr_thres_entries = 1; in ce_srng_initialize_dest_ring_thresh()
815 ring_params->flags |= HAL_SRNG_LOW_THRES_INTR_ENABLE; in ce_srng_initialize_dest_ring_thresh()
820 struct hal_srng_params *ring_params) in ce_srng_initialize_dest_ring_thresh() argument
822 ring_params->low_threshold = dest_ring->nentries >> 3; in ce_srng_initialize_dest_ring_thresh()
823 ring_params->intr_timer_thres_us = 100000; in ce_srng_initialize_dest_ring_thresh()
824 ring_params->intr_batch_cntr_thres_entries = 0; in ce_srng_initialize_dest_ring_thresh()
825 ring_params->flags |= HAL_SRNG_LOW_THRES_INTR_ENABLE; in ce_srng_initialize_dest_ring_thresh()
861 struct hal_srng_params *ring_params) in ce_srng_initialize_dest_timer_interrupt_war() argument
865 ring_params->low_threshold = num_buffers_when_fully_posted - 1; in ce_srng_initialize_dest_timer_interrupt_war()
866 ring_params->intr_timer_thres_us = 1024; in ce_srng_initialize_dest_timer_interrupt_war()
867 ring_params->intr_batch_cntr_thres_entries = 0; in ce_srng_initialize_dest_timer_interrupt_war()
868 ring_params->flags |= HAL_SRNG_LOW_THRES_INTR_ENABLE; in ce_srng_initialize_dest_timer_interrupt_war()
876 struct hal_srng_params ring_params = {0}; in ce_srng_dest_ring_setup() local
880 ring_params.ring_base_paddr = dest_ring->base_addr_CE_space; in ce_srng_dest_ring_setup()
881 ring_params.ring_base_vaddr = dest_ring->base_addr_owner_space; in ce_srng_dest_ring_setup()
882 ring_params.num_entries = dest_ring->nentries; in ce_srng_dest_ring_setup()
883 ring_params.max_buffer_length = attr->src_sz_max; in ce_srng_dest_ring_setup()
886 ce_srng_msi_ring_params_setup(scn, ce_id, &ring_params); in ce_srng_dest_ring_setup()
889 dest_ring, &ring_params); in ce_srng_dest_ring_setup()
893 &ring_params); in ce_srng_dest_ring_setup()
895 ring_params.prefetch_timer = HAL_SRNG_PREFETCH_TIMER; in ce_srng_dest_ring_setup()
900 &ring_params, 0); in ce_srng_dest_ring_setup()
914 struct hal_srng_params *ring_params) in ce_status_ring_config_int_threshold() argument
916 ring_params->intr_timer_thres_us = in ce_status_ring_config_int_threshold()
918 ring_params->intr_batch_cntr_thres_entries = in ce_status_ring_config_int_threshold()
924 struct hal_srng_params *ring_params) in ce_status_ring_config_int_threshold() argument
926 ring_params->intr_timer_thres_us = 0x1000; in ce_status_ring_config_int_threshold()
927 ring_params->intr_batch_cntr_thres_entries = 0x1; in ce_status_ring_config_int_threshold()
935 struct hal_srng_params ring_params = {0}; in ce_srng_status_ring_setup() local
939 ring_params.ring_base_paddr = status_ring->base_addr_CE_space; in ce_srng_status_ring_setup()
940 ring_params.ring_base_vaddr = status_ring->base_addr_owner_space; in ce_srng_status_ring_setup()
941 ring_params.num_entries = status_ring->nentries; in ce_srng_status_ring_setup()
944 ce_srng_msi_ring_params_setup(scn, ce_id, &ring_params); in ce_srng_status_ring_setup()
945 ce_status_ring_config_int_threshold(scn, &ring_params); in ce_srng_status_ring_setup()
949 ce_id, 0, &ring_params, 0); in ce_srng_status_ring_setup()
1126 struct hal_srng_params ring_params = {0}; in ce_set_srng_msi_irq_config_by_ceid() local
1132 ring_params.msi_addr = addr; in ce_set_srng_msi_irq_config_by_ceid()
1133 ring_params.msi_data = data; in ce_set_srng_msi_irq_config_by_ceid()
1138 ring_params.intr_timer_thres_us = 0; in ce_set_srng_msi_irq_config_by_ceid()
1139 ring_params.intr_batch_cntr_thres_entries = 1; in ce_set_srng_msi_irq_config_by_ceid()
1140 ring_params.prefetch_timer = HAL_SRNG_PREFETCH_TIMER; in ce_set_srng_msi_irq_config_by_ceid()
1144 ce_status_ring_config_int_threshold(scn, &ring_params); in ce_set_srng_msi_irq_config_by_ceid()
1147 &ring_params); in ce_set_srng_msi_irq_config_by_ceid()
1151 ce_state->dest_ring, &ring_params); in ce_set_srng_msi_irq_config_by_ceid()
1154 &ring_params); in ce_set_srng_msi_irq_config_by_ceid()
1156 ring_params.prefetch_timer = HAL_SRNG_PREFETCH_TIMER; in ce_set_srng_msi_irq_config_by_ceid()
1162 hal_srng_set_msi_irq_config(scn->hal_soc, ring_hdl, &ring_params); in ce_set_srng_msi_irq_config_by_ceid()