Home
last modified time | relevance | path

Searched refs:dma_pages (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/savage/
Dsavage_bci.c310 dev_priv->dma_pages = kmalloc_array(dev_priv->nr_dma_pages, in savage_dma_init()
313 if (dev_priv->dma_pages == NULL) in savage_dma_init()
317 SET_AGE(&dev_priv->dma_pages[i].age, 0, 0); in savage_dma_init()
318 dev_priv->dma_pages[i].used = 0; in savage_dma_init()
319 dev_priv->dma_pages[i].flushed = 0; in savage_dma_init()
336 SET_AGE(&dev_priv->dma_pages[i].age, event, wrap); in savage_dma_reset()
337 dev_priv->dma_pages[i].used = 0; in savage_dma_reset()
338 dev_priv->dma_pages[i].flushed = 0; in savage_dma_reset()
362 if (dev_priv->dma_pages[page].age.wrap > wrap || in savage_dma_wait()
363 (dev_priv->dma_pages[page].age.wrap == wrap && in savage_dma_wait()
[all …]
Dsavage_drv.h178 drm_savage_dma_page_t *dma_pages; member
520 dev_priv->dma_pages[cur].used; \
526 dev_priv->dma_pages[cur].used; \
527 if (dev_priv->dma_pages[cur].used == 0) \
529 dev_priv->dma_pages[cur].used += (n); \
545 dev_priv->dma_pages[cur].used; \
/Linux-v5.4/arch/c6x/mm/
Ddma-coherent.c33 static u32 dma_pages; variable
49 pos = bitmap_find_free_region(dma_bitmap, dma_pages, order); in __alloc_dma_pages()
60 if (addr < dma_base || (pos + (1 << order)) >= dma_pages) { in __free_dma_pages()
131 dma_pages = dma_size >> PAGE_SHIFT; in coherent_mem_init()
133 ++dma_pages; in coherent_mem_init()
135 dma_bitmap = memblock_alloc(BITS_TO_LONGS(dma_pages) * sizeof(long), in coherent_mem_init()
139 __func__, BITS_TO_LONGS(dma_pages) * sizeof(long), in coherent_mem_init()
/Linux-v5.4/net/rds/
Dib_fmr.c106 u64 *dma_pages; in rds_ib_map_fmr() local
153 dma_pages = kmalloc_array_node(sizeof(u64), page_cnt, GFP_ATOMIC, in rds_ib_map_fmr()
155 if (!dma_pages) { in rds_ib_map_fmr()
166 dma_pages[page_cnt++] = in rds_ib_map_fmr()
170 ret = ib_map_phys_fmr(fmr->fmr, dma_pages, page_cnt, io_addr); in rds_ib_map_fmr()
193 kfree(dma_pages); in rds_ib_map_fmr()