Lines Matching refs:srng

1277 					   struct dp_srng *srng,  in dp_srng_aligned_mem_alloc_consistent()  argument
1282 qdf_assert(!srng->is_mem_prealloc); in dp_srng_aligned_mem_alloc_consistent()
1291 (&srng->alloc_size, in dp_srng_aligned_mem_alloc_consistent()
1292 &srng->base_vaddr_unaligned, in dp_srng_aligned_mem_alloc_consistent()
1293 &srng->base_paddr_unaligned, in dp_srng_aligned_mem_alloc_consistent()
1294 &srng->base_paddr_aligned, in dp_srng_aligned_mem_alloc_consistent()
1298 srng->is_mem_prealloc = true; in dp_srng_aligned_mem_alloc_consistent()
1302 mem = qdf_aligned_mem_alloc_consistent(soc->osdev, &srng->alloc_size, in dp_srng_aligned_mem_alloc_consistent()
1303 &srng->base_vaddr_unaligned, in dp_srng_aligned_mem_alloc_consistent()
1304 &srng->base_paddr_unaligned, in dp_srng_aligned_mem_alloc_consistent()
1305 &srng->base_paddr_aligned, in dp_srng_aligned_mem_alloc_consistent()
1309 srng->is_mem_prealloc ? "pre-alloc" : "dynamic-alloc", mem, in dp_srng_aligned_mem_alloc_consistent()
1310 srng, ring_type, srng->alloc_size, srng->num_entries); in dp_srng_aligned_mem_alloc_consistent()
1315 struct dp_srng *srng) in dp_srng_mem_free_consistent() argument
1317 if (srng->is_mem_prealloc) { in dp_srng_mem_free_consistent()
1324 (srng->alloc_size, in dp_srng_mem_free_consistent()
1325 srng->base_vaddr_unaligned, in dp_srng_mem_free_consistent()
1326 srng->base_paddr_unaligned); in dp_srng_mem_free_consistent()
1330 srng->alloc_size, in dp_srng_mem_free_consistent()
1331 srng->base_vaddr_unaligned, in dp_srng_mem_free_consistent()
1332 srng->base_paddr_unaligned, 0); in dp_srng_mem_free_consistent()
1393 struct dp_srng *srng, in dp_srng_aligned_mem_alloc_consistent() argument
1399 mem = qdf_aligned_mem_alloc_consistent(soc->osdev, &srng->alloc_size, in dp_srng_aligned_mem_alloc_consistent()
1400 &srng->base_vaddr_unaligned, in dp_srng_aligned_mem_alloc_consistent()
1401 &srng->base_paddr_unaligned, in dp_srng_aligned_mem_alloc_consistent()
1402 &srng->base_paddr_aligned, in dp_srng_aligned_mem_alloc_consistent()
1405 qdf_mem_set(srng->base_vaddr_unaligned, 0, srng->alloc_size); in dp_srng_aligned_mem_alloc_consistent()
1411 struct dp_srng *srng) in dp_srng_mem_free_consistent() argument
1414 srng->alloc_size, in dp_srng_mem_free_consistent()
1415 srng->base_vaddr_unaligned, in dp_srng_mem_free_consistent()
1416 srng->base_paddr_unaligned, 0); in dp_srng_mem_free_consistent()
1647 void dp_srng_msi_setup(struct dp_soc *soc, struct dp_srng *srng, in dp_srng_msi_setup() argument
1726 if (soc->arch_ops.dp_register_ppeds_interrupts(soc, srng, in dp_srng_msi_setup()
2264 void dp_srng_free(struct dp_soc *soc, struct dp_srng *srng) in dp_srng_free() argument
2266 if (srng->alloc_size && srng->base_vaddr_unaligned) { in dp_srng_free()
2267 if (!srng->cached) { in dp_srng_free()
2268 dp_srng_mem_free_consistent(soc, srng); in dp_srng_free()
2270 qdf_mem_free(srng->base_vaddr_unaligned); in dp_srng_free()
2272 srng->alloc_size = 0; in dp_srng_free()
2273 srng->base_vaddr_unaligned = NULL; in dp_srng_free()
2275 srng->hal_srng = NULL; in dp_srng_free()
2280 QDF_STATUS dp_srng_init(struct dp_soc *soc, struct dp_srng *srng, int ring_type, in dp_srng_init() argument
2283 return soc->arch_ops.txrx_srng_init(soc, srng, ring_type, in dp_srng_init()
2289 QDF_STATUS dp_srng_alloc(struct dp_soc *soc, struct dp_srng *srng, in dp_srng_alloc() argument
2297 if (srng->base_vaddr_unaligned) { in dp_srng_alloc()
2304 srng->hal_srng = NULL; in dp_srng_alloc()
2305 srng->alloc_size = num_entries * entry_size; in dp_srng_alloc()
2306 srng->num_entries = num_entries; in dp_srng_alloc()
2307 srng->cached = cached; in dp_srng_alloc()
2310 srng->base_vaddr_aligned = in dp_srng_alloc()
2312 srng, in dp_srng_alloc()
2315 srng->base_vaddr_aligned = qdf_aligned_malloc( in dp_srng_alloc()
2316 &srng->alloc_size, in dp_srng_alloc()
2317 &srng->base_vaddr_unaligned, in dp_srng_alloc()
2318 &srng->base_paddr_unaligned, in dp_srng_alloc()
2319 &srng->base_paddr_aligned, in dp_srng_alloc()
2323 if (!srng->base_vaddr_aligned) in dp_srng_alloc()
2331 void dp_srng_deinit(struct dp_soc *soc, struct dp_srng *srng, in dp_srng_deinit() argument
2334 if (!srng->hal_srng) { in dp_srng_deinit()
2344 soc->arch_ops.dp_free_ppeds_interrupts(soc, srng, ring_type, in dp_srng_deinit()
2348 hal_srng_cleanup(soc->hal_soc, srng->hal_srng, in dp_srng_deinit()
2350 srng->hal_srng = NULL; in dp_srng_deinit()
14381 struct dp_srng *srng = in dp_pdev_srng_init() local
14384 if (srng->hal_srng) in dp_pdev_srng_init()
14387 if (dp_srng_init(soc, srng, RXDMA_DST, 0, lmac_id)) { in dp_pdev_srng_init()
14470 struct dp_srng *srng = in dp_pdev_srng_alloc() local
14473 if (srng->base_vaddr_unaligned) in dp_pdev_srng_alloc()
14476 if (dp_srng_alloc(soc, srng, RXDMA_DST, ring_size, 0)) { in dp_pdev_srng_alloc()
14863 void dp_ssr_dump_srng_register(char *region_name, struct dp_srng *srng, int num) in dp_ssr_dump_srng_register() argument
14875 qdf_ssr_driver_dump_register_region(ring_handle, srng->hal_srng, in dp_ssr_dump_srng_register()
14878 srng->base_vaddr_aligned, in dp_ssr_dump_srng_register()
14879 srng->alloc_size); in dp_ssr_dump_srng_register()