Home | History | Annotate | Download | only in msm

Lines Matching defs:bo

37 	struct fd_bo *bo = &msm_bo->base;
40 .handle = bo->handle,
48 ret = drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_INFO,
61 static int msm_bo_offset(struct fd_bo *bo, uint64_t *offset)
63 struct msm_bo *msm_bo = to_msm_bo(bo);
71 static int msm_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op)
74 .handle = bo->handle,
80 return drmCommandWrite(bo->dev->fd, DRM_MSM_GEM_CPU_PREP, &req, sizeof(req));
83 static void msm_bo_cpu_fini(struct fd_bo *bo)
86 .handle = bo->handle,
89 drmCommandWrite(bo->dev->fd, DRM_MSM_GEM_CPU_FINI, &req, sizeof(req));
92 static int msm_bo_madvise(struct fd_bo *bo, int willneed)
95 .handle = bo->handle,
101 if (bo->dev->version < FD_VERSION_MADVISE)
104 ret = drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_MADVISE, &req, sizeof(req));
111 static void msm_bo_destroy(struct fd_bo *bo)
113 struct msm_bo *msm_bo = to_msm_bo(bo);
151 struct fd_bo *bo;
157 bo = &msm_bo->base;
158 bo->funcs = &funcs;
160 return bo;