Lines Matching refs:hal

194 	struct ath11k_hal *hal = &ab->hal;  in ath11k_hal_alloc_cont_rdp()  local
198 hal->rdp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->rdp.paddr, in ath11k_hal_alloc_cont_rdp()
200 if (!hal->rdp.vaddr) in ath11k_hal_alloc_cont_rdp()
208 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_free_cont_rdp() local
211 if (!hal->rdp.vaddr) in ath11k_hal_free_cont_rdp()
216 hal->rdp.vaddr, hal->rdp.paddr); in ath11k_hal_free_cont_rdp()
217 hal->rdp.vaddr = NULL; in ath11k_hal_free_cont_rdp()
222 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_wrp() local
226 hal->wrp.vaddr = dma_alloc_coherent(ab->dev, size, &hal->wrp.paddr, in ath11k_hal_alloc_cont_wrp()
228 if (!hal->wrp.vaddr) in ath11k_hal_alloc_cont_wrp()
236 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_free_cont_wrp() local
239 if (!hal->wrp.vaddr) in ath11k_hal_free_cont_wrp()
244 hal->wrp.vaddr, hal->wrp.paddr); in ath11k_hal_free_cont_wrp()
245 hal->wrp.vaddr = NULL; in ath11k_hal_free_cont_wrp()
251 struct hal_srng_config *srng_config = &ab->hal.srng_config[HAL_CE_DST]; in ath11k_hal_ce_dst_setup()
269 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_dst_hw_init() local
318 hp_addr = hal->rdp.paddr + in ath11k_hal_srng_dst_hw_init()
320 (unsigned long)hal->rdp.vaddr); in ath11k_hal_srng_dst_hw_init()
348 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_src_hw_init() local
420 tp_addr = hal->rdp.paddr + in ath11k_hal_srng_src_hw_init()
422 (unsigned long)hal->rdp.vaddr); in ath11k_hal_srng_src_hw_init()
467 struct hal_srng_config *srng_config = &ab->hal.srng_config[type]; in ath11k_hal_srng_get_ring_id()
492 srng_config = &ab->hal.srng_config[ring_type]; in ath11k_hal_srng_get_entrysize()
504 srng_config = &ab->hal.srng_config[ring_type]; in ath11k_hal_srng_get_max_entries()
531 return ab->hal.wrp.paddr + in ath11k_hal_srng_get_hp_addr()
533 (unsigned long)ab->hal.wrp.vaddr); in ath11k_hal_srng_get_hp_addr()
535 return ab->hal.rdp.paddr + in ath11k_hal_srng_get_hp_addr()
537 (unsigned long)ab->hal.rdp.vaddr); in ath11k_hal_srng_get_hp_addr()
547 return ab->hal.rdp.paddr + in ath11k_hal_srng_get_tp_addr()
549 (unsigned long)ab->hal.rdp.vaddr); in ath11k_hal_srng_get_tp_addr()
551 return ab->hal.wrp.paddr + in ath11k_hal_srng_get_tp_addr()
553 (unsigned long)ab->hal.wrp.vaddr); in ath11k_hal_srng_get_tp_addr()
921 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_setup() local
922 struct hal_srng_config *srng_config = &ab->hal.srng_config[type]; in ath11k_hal_srng_setup()
933 srng = &hal->srng_list[ring_id]; in ath11k_hal_srng_setup()
970 srng->u.src_ring.tp_addr = (void *)(hal->rdp.vaddr + ring_id); in ath11k_hal_srng_setup()
975 srng->u.src_ring.hp_addr = (void *)(hal->wrp.vaddr + in ath11k_hal_srng_setup()
1002 srng->u.dst_ring.hp_addr = (void *)(hal->rdp.vaddr + ring_id); in ath11k_hal_srng_setup()
1008 srng->u.dst_ring.tp_addr = (void *)(hal->wrp.vaddr + in ath11k_hal_srng_setup()
1046 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_update_hp_tp_addr() local
1048 struct hal_srng_config *srng_config = &hal->srng_config[ring_type]; in ath11k_hal_srng_update_hp_tp_addr()
1054 srng = &hal->srng_list[ring_id]; in ath11k_hal_srng_update_hp_tp_addr()
1068 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_update_shadow_config() local
1069 struct hal_srng_config *srng_config = &hal->srng_config[ring_type]; in ath11k_hal_srng_update_shadow_config()
1070 int shadow_cfg_idx = hal->num_shadow_reg_configured; in ath11k_hal_srng_update_shadow_config()
1076 hal->num_shadow_reg_configured++; in ath11k_hal_srng_update_shadow_config()
1086 hal->shadow_reg_addr[shadow_cfg_idx] = target_reg; in ath11k_hal_srng_update_shadow_config()
1104 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_shadow_config() local
1109 struct hal_srng_config *srng_config = &hal->srng_config[ring_type]; in ath11k_hal_srng_shadow_config()
1127 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_get_shadow_config() local
1129 *len = hal->num_shadow_reg_configured; in ath11k_hal_srng_get_shadow_config()
1130 *cfg = hal->shadow_reg_addr; in ath11k_hal_srng_get_shadow_config()
1148 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_create_config() local
1151 hal->srng_config = kmemdup(hw_srng_config_template, in ath11k_hal_srng_create_config()
1154 if (!hal->srng_config) in ath11k_hal_srng_create_config()
1157 s = &hal->srng_config[HAL_REO_DST]; in ath11k_hal_srng_create_config()
1163 s = &hal->srng_config[HAL_REO_EXCEPTION]; in ath11k_hal_srng_create_config()
1167 s = &hal->srng_config[HAL_REO_REINJECT]; in ath11k_hal_srng_create_config()
1171 s = &hal->srng_config[HAL_REO_CMD]; in ath11k_hal_srng_create_config()
1175 s = &hal->srng_config[HAL_REO_STATUS]; in ath11k_hal_srng_create_config()
1179 s = &hal->srng_config[HAL_TCL_DATA]; in ath11k_hal_srng_create_config()
1185 s = &hal->srng_config[HAL_TCL_CMD]; in ath11k_hal_srng_create_config()
1189 s = &hal->srng_config[HAL_TCL_STATUS]; in ath11k_hal_srng_create_config()
1193 s = &hal->srng_config[HAL_CE_SRC]; in ath11k_hal_srng_create_config()
1201 s = &hal->srng_config[HAL_CE_DST]; in ath11k_hal_srng_create_config()
1209 s = &hal->srng_config[HAL_CE_DST_STATUS]; in ath11k_hal_srng_create_config()
1218 s = &hal->srng_config[HAL_WBM_IDLE_LINK]; in ath11k_hal_srng_create_config()
1222 s = &hal->srng_config[HAL_SW2WBM_RELEASE]; in ath11k_hal_srng_create_config()
1226 s = &hal->srng_config[HAL_WBM2SW_RELEASE]; in ath11k_hal_srng_create_config()
1238 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_init() local
1241 memset(hal, 0, sizeof(*hal)); in ath11k_hal_srng_init()
1267 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_deinit() local
1271 kfree(hal->srng_config); in ath11k_hal_srng_deinit()
1303 srng = &ab->hal.srng_list[i]; in ath11k_hal_dump_srng_stats()