Lines Matching refs:p_mem_area
35 u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_mem_area, u32 size, in hpios_locked_mem_alloc() argument
39 p_mem_area->vaddr = in hpios_locked_mem_alloc()
40 dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle, in hpios_locked_mem_alloc()
43 if (p_mem_area->vaddr) { in hpios_locked_mem_alloc()
45 size, (unsigned int)p_mem_area->dma_handle, in hpios_locked_mem_alloc()
46 p_mem_area->vaddr); in hpios_locked_mem_alloc()
47 p_mem_area->pdev = &pdev->dev; in hpios_locked_mem_alloc()
48 p_mem_area->size = size; in hpios_locked_mem_alloc()
53 p_mem_area->size = 0; in hpios_locked_mem_alloc()
58 u16 hpios_locked_mem_free(struct consistent_dma_area *p_mem_area) in hpios_locked_mem_free() argument
60 if (p_mem_area->size) { in hpios_locked_mem_free()
61 dma_free_coherent(p_mem_area->pdev, p_mem_area->size, in hpios_locked_mem_free()
62 p_mem_area->vaddr, p_mem_area->dma_handle); in hpios_locked_mem_free()
64 (unsigned long)p_mem_area->size, in hpios_locked_mem_free()
65 (unsigned int)p_mem_area->dma_handle, in hpios_locked_mem_free()
66 p_mem_area->vaddr); in hpios_locked_mem_free()
67 p_mem_area->size = 0; in hpios_locked_mem_free()