Home
last modified time | relevance | path

Searched refs:drm (Results 1 – 25 of 136) sorted by relevance

123456

/external/libdrm/tegra/
Dtegra.c44 struct drm_tegra *drm = bo->drm; in drm_tegra_bo_free() local
53 drmIoctl(drm->fd, DRM_IOCTL_GEM_CLOSE, &args); in drm_tegra_bo_free()
60 struct drm_tegra *drm; in drm_tegra_wrap() local
65 drm = calloc(1, sizeof(*drm)); in drm_tegra_wrap()
66 if (!drm) in drm_tegra_wrap()
69 drm->close = close; in drm_tegra_wrap()
70 drm->fd = fd; in drm_tegra_wrap()
72 *drmp = drm; in drm_tegra_wrap()
97 void drm_tegra_close(struct drm_tegra *drm) in drm_tegra_close() argument
99 if (!drm) in drm_tegra_close()
[all …]
Dtegra.h35 void drm_tegra_close(struct drm_tegra *drm);
37 int drm_tegra_bo_new(struct drm_tegra_bo **bop, struct drm_tegra *drm,
39 int drm_tegra_bo_wrap(struct drm_tegra_bo **bop, struct drm_tegra *drm,
42 int drm_tegra_bo_name_ref(struct drm_tegra *drm, uint32_t name, uint32_t size,
/external/drm_gralloc/
Dgralloc_drm.cpp108 struct gralloc_drm_t *drm; in gralloc_drm_create() local
111 drm = new gralloc_drm_t; in gralloc_drm_create()
112 if (!drm) in gralloc_drm_create()
116 drm->fd = open(path, O_RDWR); in gralloc_drm_create()
117 if (drm->fd < 0) { in gralloc_drm_create()
122 drm->drv = init_drv_from_fd(drm->fd); in gralloc_drm_create()
123 if (!drm->drv) { in gralloc_drm_create()
124 close(drm->fd); in gralloc_drm_create()
125 delete drm; in gralloc_drm_create()
129 return drm; in gralloc_drm_create()
[all …]
Dgralloc.cpp43 if (!dmod->drm) { in drm_init()
44 dmod->drm = gralloc_drm_create(); in drm_init()
45 if (!dmod->drm) in drm_init()
68 *fd = gralloc_drm_get_fd(dmod->drm); in drm_mod_perform()
91 return gralloc_drm_handle_register(handle, dmod->drm); in drm_mod_register_buffer()
172 gralloc_drm_destroy(dmod->drm); in drm_mod_close_gpu0()
204 bo = gralloc_drm_bo_create(dmod->drm, w, h, format, usage); in drm_mod_alloc_gpu0()
279 .drm = NULL
Dgralloc_drm.h44 void gralloc_drm_destroy(struct gralloc_drm_t *drm);
46 int gralloc_drm_get_fd(struct gralloc_drm_t *drm);
112 int gralloc_drm_handle_register(buffer_handle_t handle, struct gralloc_drm_t *drm);
115 struct gralloc_drm_bo_t *gralloc_drm_bo_create(struct gralloc_drm_t *drm, int width, int height, in…
122 unsigned int planes_for_format(struct gralloc_drm_t *drm, int hal_format);
/external/libdrm/
DMakefile.sources20 include/drm/drm.h \
21 include/drm/drm_fourcc.h \
22 include/drm/drm_mode.h \
23 include/drm/drm_sarea.h \
24 include/drm/i915_drm.h \
25 include/drm/mach64_drm.h \
26 include/drm/mga_drm.h \
27 include/drm/nouveau_drm.h \
28 include/drm/qxl_drm.h \
29 include/drm/r128_drm.h \
[all …]
DAndroid.mk41 $(LOCAL_PATH)/include/drm
44 $(LOCAL_PATH)/include/drm
59 $(LOCAL_PATH)/include/drm
62 $(LOCAL_PATH)/include/drm
DMakefile.am112 libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm
133 cp -r $(kernel_source)/include/uapi/drm/*.h $(top_srcdir)/include/drm/
136 git add include/drm/*.h
/external/mesa3d/src/egl/wayland/wayland-drm/
Dwayland-drm.c52 struct wl_drm *drm = buffer->drm; in destroy_buffer() local
54 drm->callbacks->release_buffer(drm->user_data, buffer); in destroy_buffer()
76 struct wl_drm *drm = resource->data; in create_buffer() local
85 buffer->drm = drm; in create_buffer()
96 drm->callbacks->reference_buffer(drm->user_data, name, buffer); in create_buffer()
170 struct wl_drm *drm = resource->data; in drm_authenticate() local
172 if (drm->callbacks->authenticate(drm->user_data, id) < 0) in drm_authenticate()
189 struct wl_drm *drm = data; in bind_drm() local
194 wl_resource_post_event(resource, WL_DRM_DEVICE, drm->device_name); in bind_drm()
213 struct wl_drm *drm; in wayland_drm_init() local
[all …]
DMakefile.am6 noinst_LTLIBRARIES = libwayland-drm.la
7 libwayland_drm_la_SOURCES = wayland-drm.c wayland-drm-protocol.c
8 noinst_HEADERS = wayland-drm.h
10 BUILT_SOURCES = wayland-drm-protocol.c \
11 wayland-drm-client-protocol.h \
12 wayland-drm-server-protocol.h
/external/libdrm/nouveau/
Dnouveau.c70 struct nouveau_drm *drm = nouveau_drm(obj); in nouveau_object_ioctl() local
79 if (obj != &drm->client) in nouveau_object_ioctl()
92 return drmCommandWriteRead(drm->fd, DRM_NOUVEAU_NVIF, args, argc); in nouveau_object_ioctl()
99 struct nouveau_drm *drm = nouveau_drm(obj); in nouveau_object_mthd() local
108 if (!drm->nvif) in nouveau_object_mthd()
141 struct nouveau_drm *drm = nouveau_drm(obj); in nouveau_object_sclass_get() local
150 if (!drm->nvif) in nouveau_object_sclass_get()
239 struct nouveau_drm *drm = nouveau_drm(parent); in nouveau_object_init() local
254 if (!abi16_object(obj, &func) && drm->nvif) { in nouveau_object_init()
331 struct nouveau_drm *drm; in nouveau_drm_new() local
[all …]
Dabi16.c41 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_chan_nv04() local
49 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, in abi16_chan_nv04()
65 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_chan_nvc0() local
70 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, in abi16_chan_nvc0()
86 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_chan_nve0() local
96 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, in abi16_chan_nve0()
112 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_engobj() local
141 ret = drmCommandWrite(drm->fd, DRM_NOUVEAU_GROBJ_ALLOC, in abi16_engobj()
153 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_ntfy() local
162 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_NOTIFIEROBJ_ALLOC, in abi16_ntfy()
[all …]
/external/mesa3d/src/gallium/targets/egl-static/
DMakefile56 egl_LIBS += $(TOP)/src/egl/wayland/wayland-drm/.libs/libwayland-drm.a
59 ifneq ($(findstring drm, $(EGL_PLATFORMS)),)
91 ifneq ($(findstring i915/drm,$(GALLIUM_WINSYS_DIRS)),)
94 $(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
100 ifneq ($(findstring nouveau/drm,$(GALLIUM_WINSYS_DIRS)),)
103 $(TOP)/src/gallium/winsys/nouveau/drm/libnouveaudrm.a \
112 ifneq ($(findstring radeon/drm,$(GALLIUM_WINSYS_DIRS)),)
116 $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
123 ifneq ($(findstring radeon/drm,$(GALLIUM_WINSYS_DIRS)),)
127 $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
[all …]
/external/libdrm/man/
DMakefile.am13 drm.xml \
14 drm-kms.xml \
15 drm-memory.xml
18 drm-mm.xml \
19 drm-gem.xml \
20 drm-ttm.xml
/external/mesa3d/src/gallium/targets/pipe-loader/
DMakefile35 $(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
41 $(TOP)/src/gallium/winsys/nouveau/drm/libnouveaudrm.a \
50 $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
56 $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
62 $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
68 $(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
90 ifneq ($(findstring i915/drm,$(GALLIUM_WINSYS_DIRS)),)
95 ifneq ($(findstring nouveau/drm,$(GALLIUM_WINSYS_DIRS)),)
100 ifneq ($(findstring radeon/drm,$(GALLIUM_WINSYS_DIRS)),)
107 ifneq ($(findstring radeon/drm,$(GALLIUM_WINSYS_DIRS)),)
[all …]
/external/mesa3d/src/gallium/state_trackers/egl/common/
Degl_g3d_image.c167 nbuf.u.drm.templ.target = PIPE_TEXTURE_2D; in egl_g3d_reference_drm_buffer()
168 nbuf.u.drm.templ.format = format; in egl_g3d_reference_drm_buffer()
169 nbuf.u.drm.templ.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW; in egl_g3d_reference_drm_buffer()
170 nbuf.u.drm.templ.width0 = attrs.Width; in egl_g3d_reference_drm_buffer()
171 nbuf.u.drm.templ.height0 = attrs.Height; in egl_g3d_reference_drm_buffer()
172 nbuf.u.drm.templ.depth0 = 1; in egl_g3d_reference_drm_buffer()
173 nbuf.u.drm.templ.array_size = 1; in egl_g3d_reference_drm_buffer()
175 nbuf.u.drm.name = name; in egl_g3d_reference_drm_buffer()
176 nbuf.u.drm.stride = in egl_g3d_reference_drm_buffer()
358 nbuf.u.drm.templ.bind |= PIPE_BIND_SHARED; in egl_g3d_export_drm_image()
[all …]
Dnative_helper.c430 wsh.handle = nbuf->u.drm.name; in drm_display_import_native_buffer()
431 wsh.stride = nbuf->u.drm.stride; in drm_display_import_native_buffer()
433 res = screen->resource_from_handle(screen, &nbuf->u.drm.templ, &wsh); in drm_display_import_native_buffer()
456 if ((nbuf->u.drm.templ.bind & res->bind) != nbuf->u.drm.templ.bind) in drm_display_export_native_buffer()
464 nbuf->u.drm.handle = wsh.handle; in drm_display_export_native_buffer()
465 nbuf->u.drm.stride = wsh.stride; in drm_display_export_native_buffer()
468 if (nbuf->u.drm.templ.bind & PIPE_BIND_SHARED) { in drm_display_export_native_buffer()
474 nbuf->u.drm.name = wsh.handle; in drm_display_export_native_buffer()
477 nbuf->u.drm.templ = *res; in drm_display_export_native_buffer()
/external/mesa3d/src/gallium/state_trackers/egl/
DSConscript27 if env['drm']:
41 if env['drm']:
44 if env['drm'] and False:
51 sources.append(['drm/native_drm.c', 'drm/modeset.c'])
DMakefile9 -I$(TOP)/src/egl/wayland/wayland-drm/ \
30 -I$(TOP)/src/egl/wayland/wayland-drm \
38 drm_SOURCES = $(wildcard drm/*.c)
69 ifneq ($(findstring drm, $(EGL_PLATFORMS)),)
119 $(call egl-cc,drm)
/external/mesa3d/src/gallium/
DAndroid.mk39 SUBDIRS += winsys/i915/drm drivers/i915
45 winsys/nouveau/drm \
54 SUBDIRS += winsys/radeon/drm
68 SUBDIRS += winsys/svga/drm drivers/svga
DSConscript30 if env['drm']:
31 # These drivers depend on drm headers
105 'winsys/svga/drm/SConscript',
110 'winsys/i915/drm/SConscript',
115 'winsys/radeon/drm/SConscript',
165 if env['xorg'] and env['drm']:
/external/mesa3d/src/egl/wayland/
D.gitignore2 wayland-drm-client-protocol.h
3 wayland-drm-server-protocol.h
4 wayland-drm-protocol.c
/external/drm_hwcomposer/
Dhwcomposer.cpp131 void Init(DrmResources *drm, const struct hwc_procs *procs) { in Init() argument
132 drm_ = drm; in Init()
197 DrmResources drm; member
370 ctx->drm.compositor()->Dump(&out); in hwc_dump()
394 DrmConnector *c = ctx->drm.GetConnectorForDisplay(i); in hwc_prepare()
597 ctx->drm.compositor()->CreateComposition(ctx->importer.get())); in hwc_set()
608 ret = ctx->drm.compositor()->QueueComposition(std::move(composition)); in hwc_set()
659 return ctx->drm.SetDpmsMode(display, dpmsValue); in hwc_set_power_mode()
689 ctx->hotplug_handler.Init(&ctx->drm, procs); in hwc_register_procs()
690 ctx->drm.event_listener()->RegisterHotplugHandler(&ctx->hotplug_handler); in hwc_register_procs()
[all …]
Dplatformdrmgeneric.cpp37 Importer *Importer::CreateInstance(DrmResources *drm) { in CreateInstance() argument
38 DrmGenericImporter *importer = new DrmGenericImporter(drm); in CreateInstance()
52 DrmGenericImporter::DrmGenericImporter(DrmResources *drm) : drm_(drm) { in DrmGenericImporter() argument
/external/mesa3d/src/egl/drivers/dri2/
DMakefile.am28 -I$(top_srcdir)/src/egl/wayland/wayland-drm \
29 -I$(top_builddir)/src/egl/wayland/wayland-drm \

123456