viter 940 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_piter_start(struct vmw_piter *viter, viter 951 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h static inline bool vmw_piter_next(struct vmw_piter *viter) viter 953 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h return viter->next(viter); viter 963 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h static inline dma_addr_t vmw_piter_dma_addr(struct vmw_piter *viter) viter 965 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h return viter->dma_address(viter); viter 975 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h static inline struct page *vmw_piter_page(struct vmw_piter *viter) viter 977 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h return viter->page(viter); viter 262 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c static bool __vmw_piter_non_sg_next(struct vmw_piter *viter) viter 264 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c return ++(viter->i) < viter->num_pages; viter 267 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c static bool __vmw_piter_sg_next(struct vmw_piter *viter) viter 269 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c bool ret = __vmw_piter_non_sg_next(viter); viter 271 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c return __sg_page_iter_dma_next(&viter->iter) && ret; viter 284 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c static struct page *__vmw_piter_non_sg_page(struct vmw_piter *viter) viter 286 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c return viter->pages[viter->i]; viter 298 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c static dma_addr_t __vmw_piter_phys_addr(struct vmw_piter *viter) viter 300 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c return page_to_phys(viter->pages[viter->i]); viter 303 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c static dma_addr_t __vmw_piter_dma_addr(struct vmw_piter *viter) viter 305 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c return viter->addrs[viter->i]; viter 308 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c static dma_addr_t __vmw_piter_sg_addr(struct vmw_piter *viter) viter 310 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c return sg_page_iter_dma_address(&viter->iter); viter 324 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c void vmw_piter_start(struct vmw_piter *viter, const struct vmw_sg_table *vsgt, viter 327 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->i = p_offset - 1; viter 328 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->num_pages = vsgt->num_pages; viter 329 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->page = &__vmw_piter_non_sg_page; viter 330 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->pages = vsgt->pages; viter 333 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->next = &__vmw_piter_non_sg_next; viter 334 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->dma_address = &__vmw_piter_phys_addr; viter 337 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->next = &__vmw_piter_non_sg_next; viter 338 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->dma_address = &__vmw_piter_dma_addr; viter 339 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->addrs = vsgt->addrs; viter 343 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->next = &__vmw_piter_sg_next; viter 344 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c viter->dma_address = &__vmw_piter_sg_addr; viter 345 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c __sg_page_iter_start(&viter->iter.base, vsgt->sgt->sgl,