Lines Matching refs:dma_elem
526 struct bfa_mem_dma_s *dma_info, *dma_elem; in bfad_hal_mem_release() local
541 dma_elem = (struct bfa_mem_dma_s *) dm_qe; in bfad_hal_mem_release()
543 dma_elem->mem_len, dma_elem->kva, in bfad_hal_mem_release()
544 (dma_addr_t) dma_elem->dma); in bfad_hal_mem_release()
588 struct bfa_mem_dma_s *dma_info, *dma_elem; in bfad_hal_mem_alloc() local
615 dma_elem = (struct bfa_mem_dma_s *) dm_qe; in bfad_hal_mem_alloc()
616 dma_elem->kva = dma_alloc_coherent(&bfad->pcidev->dev, in bfad_hal_mem_alloc()
617 dma_elem->mem_len, in bfad_hal_mem_alloc()
619 if (dma_elem->kva == NULL) { in bfad_hal_mem_alloc()
624 dma_elem->dma = phys_addr; in bfad_hal_mem_alloc()
625 memset(dma_elem->kva, 0, dma_elem->mem_len); in bfad_hal_mem_alloc()