Lines Matching defs:pwrite
156 #define LOCAL_I915_CREATE_PLACEMENT_STOLEN 1 /* Cannot use CPU mmaps or pread/pwrite */
721 struct drm_i915_gem_pwrite pwrite;
726 VG_CLEAR(pwrite);
727 pwrite.handle = handle;
728 pwrite.offset = offset;
729 pwrite.size = length;
730 pwrite.data_ptr = (uintptr_t)src;
731 return do_ioctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite);
738 struct drm_i915_gem_pwrite pwrite;
743 VG_CLEAR(pwrite);
744 pwrite.handle = handle;
747 pwrite.offset = offset & ~63;
748 pwrite.size = ALIGN(offset+length, 64) - pwrite.offset;
749 pwrite.data_ptr = (uintptr_t)src + pwrite.offset - offset;
751 pwrite.offset = offset;
752 pwrite.size = length;
753 pwrite.data_ptr = (uintptr_t)src;
755 return do_ioctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite);
7749 /* Be more parsimonious with pwrite/pread/cacheable buffers */
7833 DBG(("%s: failing back to new pwrite buffer\n", __FUNCTION__));