Home
last modified time | relevance | path

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

/Linux-v5.15/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.15/net/xdp/
Dxsk_buff_pool.c174 if (!pool->dma_pages) { in xp_assign_dev()
284 dma_map->dma_pages = kvcalloc(nr_pages, sizeof(*dma_map->dma_pages), GFP_KERNEL); in xp_create_dma_map()
285 if (!dma_map->dma_pages) { in xp_create_dma_map()
302 kvfree(dma_map->dma_pages); in xp_destroy_dma_map()
312 dma = &dma_map->dma_pages[i]; in __xp_dma_unmap()
340 kvfree(pool->dma_pages); in xp_dma_unmap()
351 if (dma_map->dma_pages[i] + PAGE_SIZE == dma_map->dma_pages[i + 1]) in xp_check_dma_contiguity()
352 dma_map->dma_pages[i] |= XSK_NEXT_PG_CONTIG_MASK; in xp_check_dma_contiguity()
354 dma_map->dma_pages[i] &= ~XSK_NEXT_PG_CONTIG_MASK; in xp_check_dma_contiguity()
360 pool->dma_pages = kvcalloc(dma_map->dma_pages_cnt, sizeof(*pool->dma_pages), GFP_KERNEL); in xp_init_dma_info()
[all …]
/Linux-v5.15/include/net/
Dxsk_buff_pool.h32 dma_addr_t *dma_pages; member
61 dma_addr_t *dma_pages; member
154 return !(pool->dma_pages[addr >> PAGE_SHIFT] & in xp_desc_crosses_non_contig_pg()