Lines Matching defs:page
35 #include <asm/page.h>
89 struct page *pages[AR_BUFFERS];
126 * List of page-sized buffers for storing DMA descriptors.
661 static int read_paged_phy_reg(struct fw_ohci *ohci, int page, int addr)
665 ret = update_phy_reg(ohci, 7, PHY_PAGE_SELECT, page << 5);
1023 struct page *pages[AR_BUFFERS + AR_WRAPAROUND_PAGES];
1163 * for descriptors, even 0x10-byte ones. This can cause page faults when
1164 * an IOMMU is in use and the oversized read crosses a page boundary.
1864 reg = write_phy_reg(ohci, 7, 0xe0); /* Select page 7 */
2918 * data buffer is in the context program's coherent page and must not
3259 int page, end_page, i, length, offset;
3271 /* Determine the first page the payload isn't contained in. */
3319 page = payload_index >> PAGE_SHIFT;
3321 next_page_index = (page + 1) << PAGE_SHIFT;
3326 page_bus = page_private(buffer->pages[page]);
3362 int page, offset, packet_count, header_size, payload_per_buffer;
3373 page = payload >> PAGE_SHIFT;
3409 page_bus = page_private(buffer->pages[page]);
3419 page++;
3440 int page, offset, rest, z, i, length;
3442 page = payload >> PAGE_SHIFT;
3446 /* We need one descriptor for each page in the buffer. */
3449 if (WARN_ON(offset & 3 || rest & 3 || page + z > buffer->page_count))
3472 page_bus = page_private(buffer->pages[page]);
3481 page++;
3685 * Because dma_alloc_coherent() allocates at least one page,