Lines Matching refs:ovr
963 struct drm_mode_get_plane ovr, counts; in drmModeGetPlane() local
967 memclear(ovr); in drmModeGetPlane()
968 ovr.plane_id = plane_id; in drmModeGetPlane()
969 if (drmIoctl(fd, DRM_IOCTL_MODE_GETPLANE, &ovr)) in drmModeGetPlane()
972 counts = ovr; in drmModeGetPlane()
974 if (ovr.count_format_types) { in drmModeGetPlane()
975 ovr.format_type_ptr = VOID2U64(drmMalloc(ovr.count_format_types * in drmModeGetPlane()
977 if (!ovr.format_type_ptr) in drmModeGetPlane()
981 if (drmIoctl(fd, DRM_IOCTL_MODE_GETPLANE, &ovr)) in drmModeGetPlane()
984 if (counts.count_format_types < ovr.count_format_types) { in drmModeGetPlane()
985 drmFree(U642VOID(ovr.format_type_ptr)); in drmModeGetPlane()
992 r->count_formats = ovr.count_format_types; in drmModeGetPlane()
993 r->plane_id = ovr.plane_id; in drmModeGetPlane()
994 r->crtc_id = ovr.crtc_id; in drmModeGetPlane()
995 r->fb_id = ovr.fb_id; in drmModeGetPlane()
996 r->possible_crtcs = ovr.possible_crtcs; in drmModeGetPlane()
997 r->gamma_size = ovr.gamma_size; in drmModeGetPlane()
998 r->formats = drmAllocCpy(U642VOID(ovr.format_type_ptr), in drmModeGetPlane()
999 ovr.count_format_types, sizeof(uint32_t)); in drmModeGetPlane()
1000 if (ovr.count_format_types && !r->formats) { in drmModeGetPlane()
1007 drmFree(U642VOID(ovr.format_type_ptr)); in drmModeGetPlane()