Lines Matching refs:page_offset
381 unsigned long page_offset; in vmw_bo_vm_mkwrite() local
396 page_offset = vmf->pgoff - drm_vma_node_start(&bo->base.vma_node); in vmw_bo_vm_mkwrite()
397 if (unlikely(page_offset >= PFN_UP(bo->resource->size))) { in vmw_bo_vm_mkwrite()
403 !test_bit(page_offset, &vbo->dirty->bitmap[0])) { in vmw_bo_vm_mkwrite()
406 __set_bit(page_offset, &dirty->bitmap[0]); in vmw_bo_vm_mkwrite()
407 dirty->start = min(dirty->start, page_offset); in vmw_bo_vm_mkwrite()
408 dirty->end = max(dirty->end, page_offset + 1); in vmw_bo_vm_mkwrite()
435 unsigned long page_offset; in vmw_bo_vm_fault() local
437 page_offset = vmf->pgoff - in vmw_bo_vm_fault()
439 if (page_offset >= PFN_UP(bo->resource->size) || in vmw_bo_vm_fault()
440 vmw_resources_clean(vbo, page_offset, in vmw_bo_vm_fault()
441 page_offset + PAGE_SIZE, in vmw_bo_vm_fault()