Home
last modified time | relevance | path

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

/linux-5.19.10/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-5.19.10/net/xdp/
Dxsk_buff_pool.c195 if (!pool->dma_pages) { in xp_assign_dev()
305 dma_map->dma_pages = kvcalloc(nr_pages, sizeof(*dma_map->dma_pages), GFP_KERNEL); in xp_create_dma_map()
306 if (!dma_map->dma_pages) { in xp_create_dma_map()
323 kvfree(dma_map->dma_pages); in xp_destroy_dma_map()
333 dma = &dma_map->dma_pages[i]; in __xp_dma_unmap()
362 kvfree(pool->dma_pages); in xp_dma_unmap()
373 if (dma_map->dma_pages[i] + PAGE_SIZE == dma_map->dma_pages[i + 1]) in xp_check_dma_contiguity()
374 dma_map->dma_pages[i] |= XSK_NEXT_PG_CONTIG_MASK; in xp_check_dma_contiguity()
376 dma_map->dma_pages[i] &= ~XSK_NEXT_PG_CONTIG_MASK; in xp_check_dma_contiguity()
388 xp_init_xskb_dma(xskb, pool, dma_map->dma_pages, xskb->orig_addr); in xp_init_dma_info()
[all …]
/linux-5.19.10/include/net/
Dxsk_buff_pool.h32 dma_addr_t *dma_pages; member
61 dma_addr_t *dma_pages; member
119 dma_addr_t *dma_pages, u64 addr) in xp_init_xskb_dma() argument
121 xskb->frame_dma = (dma_pages[addr >> PAGE_SHIFT] & ~XSK_NEXT_PG_CONTIG_MASK) + in xp_init_xskb_dma()
179 return !(pool->dma_pages[addr >> PAGE_SHIFT] & in xp_desc_crosses_non_contig_pg()