Lines Matching defs:pwrite
155 #define LOCAL_I915_CREATE_PLACEMENT_STOLEN 1 /* Cannot use CPU mmaps or pread/pwrite */
555 struct drm_i915_gem_pwrite pwrite;
560 VG_CLEAR(pwrite);
561 pwrite.handle = handle;
562 pwrite.offset = offset;
563 pwrite.size = length;
564 pwrite.data_ptr = (uintptr_t)src;
565 return do_ioctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite);
572 struct drm_i915_gem_pwrite pwrite;
577 VG_CLEAR(pwrite);
578 pwrite.handle = handle;
581 pwrite.offset = offset & ~63;
582 pwrite.size = ALIGN(offset+length, 64) - pwrite.offset;
583 pwrite.data_ptr = (uintptr_t)src + pwrite.offset - offset;
585 pwrite.offset = offset;
586 pwrite.size = length;
587 pwrite.data_ptr = (uintptr_t)src;
589 return do_ioctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite);
7098 /* Be more parsimonious with pwrite/pread/cacheable buffers */
7182 DBG(("%s: failing back to new pwrite buffer\n", __FUNCTION__));