Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/media/video/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_…
/linux-2.6.39/arch/blackfin/kernel/
Ddma-mapping.c17 static unsigned long *dma_page; variable
28 dma_page = (unsigned long *)__get_free_page(GFP_KERNEL); in dma_alloc_init()
29 memset(dma_page, 0, PAGE_SIZE); in dma_alloc_init()
37 dma_page, dma_pages, dma_base); in dma_alloc_init()
56 if (test_bit(i++, dma_page) == 0) { in __alloc_dma_pages()
59 __set_bit(--i, dma_page); in __alloc_dma_pages()
84 __clear_bit(i, dma_page); in __free_dma_pages()
/linux-2.6.39/mm/
Ddmapool.c56 struct dma_page { /* cacheable header for 'allocation' bytes */ struct
74 struct dma_page *page; in show_pools() argument
199 static void pool_initialise_page(struct dma_pool *pool, struct dma_page *page) in pool_initialise_page()
215 static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags) in pool_alloc_page()
217 struct dma_page *page; in pool_alloc_page()
239 static inline int is_page_busy(struct dma_page *page) in is_page_busy()
244 static void pool_free_page(struct dma_pool *pool, struct dma_page *page) in pool_free_page()
273 struct dma_page *page; in dma_pool_destroy()
275 struct dma_page, page_list); in dma_pool_destroy()
310 struct dma_page *page; in dma_pool_alloc()
[all …]