Searched refs:dma_page (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/arch/blackfin/kernel/
H A Ddma-mapping.c19 static unsigned long *dma_page; variable
30 dma_page = (unsigned long *)__get_free_page(GFP_KERNEL); dma_alloc_init()
31 memset(dma_page, 0, PAGE_SIZE); dma_alloc_init()
38 printk(KERN_INFO "%s: dma_page @ 0x%p - %d pages at 0x%08lx\n", __func__, dma_alloc_init()
39 dma_page, dma_pages, dma_base); dma_alloc_init()
57 start = bitmap_find_next_zero_area(dma_page, dma_pages, 0, pages, 0); __alloc_dma_pages()
60 bitmap_set(dma_page, start, pages); __alloc_dma_pages()
77 bitmap_clear(dma_page, page, pages); __free_dma_pages()
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-udma.c26 void ivtv_udma_get_page_info(struct ivtv_dma_page_info *dma_page, unsigned long first, unsigned long size) ivtv_udma_get_page_info() argument
28 dma_page->uaddr = first & PAGE_MASK; ivtv_udma_get_page_info()
29 dma_page->offset = first & ~PAGE_MASK; ivtv_udma_get_page_info()
30 dma_page->tail = 1 + ((first+size-1) & ~PAGE_MASK); ivtv_udma_get_page_info()
31 dma_page->first = (first & PAGE_MASK) >> PAGE_SHIFT; ivtv_udma_get_page_info()
32 dma_page->last = ((first+size-1) & PAGE_MASK) >> PAGE_SHIFT; ivtv_udma_get_page_info()
33 dma_page->page_count = dma_page->last - dma_page->first + 1; ivtv_udma_get_page_info()
34 if (dma_page->page_count == 1) dma_page->tail -= dma_page->offset; 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_offset) ivtv_udma_fill_sg_list() argument
45 offset = dma_page->offset; ivtv_udma_fill_sg_list()
48 for (i = 0; i < dma_page->page_count; i++) { ivtv_udma_fill_sg_list()
49 unsigned int len = (i == dma_page->page_count - 1) ? ivtv_udma_fill_sg_list()
50 dma_page->tail : PAGE_SIZE - offset; ivtv_udma_fill_sg_list()
H A Divtv-udma.h25 void ivtv_udma_get_page_info(struct ivtv_dma_page_info *dma_page, unsigned long first, unsigned long size);
26 int ivtv_udma_fill_sg_list(struct ivtv_user_dma *dma, struct ivtv_dma_page_info *dma_page, int map_offset);
/linux-4.1.27/mm/
H A Ddmapool.c56 struct dma_page { /* cacheable header for 'allocation' bytes */ struct
73 struct dma_page *page; show_pools()
206 static void pool_initialise_page(struct dma_pool *pool, struct dma_page *page) pool_initialise_page()
222 static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags) pool_alloc_page()
224 struct dma_page *page; pool_alloc_page()
245 static inline int is_page_busy(struct dma_page *page) is_page_busy()
250 static void pool_free_page(struct dma_pool *pool, struct dma_page *page) pool_free_page()
285 struct dma_page *page; dma_pool_destroy()
287 struct dma_page, page_list); dma_pool_destroy()
322 struct dma_page *page; dma_pool_alloc()
382 static struct dma_page *pool_find_page(struct dma_pool *pool, dma_addr_t dma) pool_find_page()
384 struct dma_page *page; pool_find_page()
406 struct dma_page *page; dma_pool_free()
/linux-4.1.27/drivers/gpu/drm/ttm/
H A 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) __ttm_dma_free_page()
334 static struct dma_page *__ttm_dma_alloc_page(struct dma_pool *pool) __ttm_dma_alloc_page()
336 struct dma_page *d_page; __ttm_dma_alloc_page()
338 d_page = kmalloc(sizeof(struct dma_page), GFP_KERNEL); __ttm_dma_alloc_page()
381 struct dma_page *d_page, *tmp; ttm_dma_pages_put()
395 static void ttm_dma_page_put(struct dma_pool *pool, struct dma_page *d_page) ttm_dma_page_put()
421 struct dma_page *dma_p, *tmp; ttm_dma_page_pool_free()
457 /* Move the dma_page from one list to another. */ ttm_dma_page_pool_free()
685 struct dma_page *d_page, *tmp; ttm_dma_handle_caching_state_failure()
718 struct dma_page *dma_p; ttm_dma_pool_alloc_new_pages()
822 struct dma_page *d_page; ttm_dma_page_pool_fill_locked()
848 struct dma_page *d_page; ttm_dma_pool_get_pages()
856 d_page = list_first_entry(&pool->free_list, struct dma_page, page_list); ttm_dma_pool_get_pages()
936 struct dma_page *d_page, *next; ttm_dma_unpopulate()

Completed in 146 milliseconds