Lines Matching refs:dma_page
14 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
16 dma_page->uaddr = first & PAGE_MASK; in ivtv_udma_get_page_info()
17 dma_page->offset = first & ~PAGE_MASK; in ivtv_udma_get_page_info()
18 dma_page->tail = 1 + ((first+size-1) & ~PAGE_MASK); in ivtv_udma_get_page_info()
19 dma_page->first = (first & PAGE_MASK) >> PAGE_SHIFT; in ivtv_udma_get_page_info()
20 dma_page->last = ((first+size-1) & PAGE_MASK) >> PAGE_SHIFT; in ivtv_udma_get_page_info()
21 dma_page->page_count = dma_page->last - dma_page->first + 1; in ivtv_udma_get_page_info()
22 if (dma_page->page_count == 1) dma_page->tail -= dma_page->offset; in ivtv_udma_get_page_info()
25 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
33 offset = dma_page->offset; in ivtv_udma_fill_sg_list()
36 for (i = 0; i < dma_page->page_count; i++) { in ivtv_udma_fill_sg_list()
37 unsigned int len = (i == dma_page->page_count - 1) ? in ivtv_udma_fill_sg_list()
38 dma_page->tail : PAGE_SIZE - offset; in ivtv_udma_fill_sg_list()