Home
last modified time | relevance | path

Searched refs:dma_page (Results 1 – 3 of 3) sorted by relevance

/drivers/media/pci/ivtv/
Divtv-udma.c26 void ivtv_udma_get_page_info(struct ivtv_dma_page_info *dma_page, unsigned long first, unsigned lon… in ivtv_udma_get_page_info() argument
28 dma_page->uaddr = first & PAGE_MASK; in ivtv_udma_get_page_info()
29 dma_page->offset = first & ~PAGE_MASK; in ivtv_udma_get_page_info()
30 dma_page->tail = 1 + ((first+size-1) & ~PAGE_MASK); in ivtv_udma_get_page_info()
31 dma_page->first = (first & PAGE_MASK) >> PAGE_SHIFT; in ivtv_udma_get_page_info()
32 dma_page->last = ((first+size-1) & PAGE_MASK) >> PAGE_SHIFT; in ivtv_udma_get_page_info()
33 dma_page->page_count = dma_page->last - dma_page->first + 1; in ivtv_udma_get_page_info()
34 if (dma_page->page_count == 1) dma_page->tail -= dma_page->offset; in ivtv_udma_get_page_info()
37 int ivtv_udma_fill_sg_list (struct ivtv_user_dma *dma, struct ivtv_dma_page_info *dma_page, int map… in ivtv_udma_fill_sg_list() argument
45 offset = dma_page->offset; in ivtv_udma_fill_sg_list()
[all …]
Divtv-udma.h25 void ivtv_udma_get_page_info(struct ivtv_dma_page_info *dma_page, unsigned long first, unsigned lon…
26 int ivtv_udma_fill_sg_list(struct ivtv_user_dma *dma, struct ivtv_dma_page_info *dma_page, int map_…
/drivers/gpu/drm/ttm/
Dttm_page_alloc_dma.c128 struct dma_page { struct
326 static void __ttm_dma_free_page(struct dma_pool *pool, struct dma_page *d_page) in __ttm_dma_free_page()
334 static struct dma_page *__ttm_dma_alloc_page(struct dma_pool *pool) in __ttm_dma_alloc_page()
336 struct dma_page *d_page; in __ttm_dma_alloc_page()
338 d_page = kmalloc(sizeof(struct dma_page), GFP_KERNEL); in __ttm_dma_alloc_page()
384 struct dma_page *d_page, *tmp; in ttm_dma_pages_put()
398 static void ttm_dma_page_put(struct dma_pool *pool, struct dma_page *d_page) in ttm_dma_page_put()
424 struct dma_page *dma_p, *tmp; in ttm_dma_page_pool_free()
688 struct dma_page *d_page, *tmp; in ttm_dma_handle_caching_state_failure()
721 struct dma_page *dma_p; in ttm_dma_pool_alloc_new_pages()
[all …]