Home
last modified time | relevance | path

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

12345678910>>...16

/external/igt-gpu-tools/tests/
Dkms_fbcon_fbt.c59 static void setup_drm(struct drm_info *drm) in setup_drm() argument
63 if (drm->fd >= 0) in setup_drm()
66 drm->fd = drm_open_driver_master(DRIVER_INTEL); in setup_drm()
68 drm->res = drmModeGetResources(drm->fd); in setup_drm()
69 igt_require(drm->res); in setup_drm()
70 igt_assert(drm->res->count_connectors <= MAX_CONNECTORS); in setup_drm()
72 for (i = 0; i < drm->res->count_connectors; i++) in setup_drm()
73 drm->connectors[i] = drmModeGetConnectorCurrent(drm->fd, in setup_drm()
74 drm->res->connectors[i]); in setup_drm()
79 static void teardown_drm(struct drm_info *drm) in teardown_drm() argument
[all …]
Dkms_frontbuffer_tracking.c161 } drm; variable
332 if (IS_HASWELL(intel_get_drm_devid(drm.fd)) && in connector_get_mode()
352 params->primary.plane = igt_pipe_get_plane_type(&drm.display.pipes[pipe], DRM_PLANE_TYPE_PRIMARY); in init_mode_params()
359 params->cursor.plane = igt_pipe_get_plane_type(&drm.display.pipes[pipe], DRM_PLANE_TYPE_CURSOR); in init_mode_params()
366 params->sprite.plane = igt_pipe_get_plane_type(&drm.display.pipes[pipe], DRM_PLANE_TYPE_OVERLAY); in init_mode_params()
384 for_each_pipe_with_valid_output(&drm.display, pipe, output) { in find_connector()
491 igt_calc_fb_size(drm.fd, width, height, format, tiling_for_size, &size, in create_fb()
494 igt_create_fb_with_bo_size(drm.fd, width, height, format, tiling, in create_fb()
566 igt_draw_fill_fb(drm.fd, fb, pick_color(fb, ecolor)); in fill_fb()
634 igt_remove_fb(drm.fd, &s->scnd_pri); in destroy_fbs()
[all …]
/external/libdrm/
DMakefile.sources21 include/drm/drm.h \
22 include/drm/drm_fourcc.h \
23 include/drm/drm_mode.h \
24 include/drm/drm_sarea.h \
25 include/drm/i915_drm.h \
26 include/drm/mach64_drm.h \
27 include/drm/mga_drm.h \
28 include/drm/msm_drm.h \
29 include/drm/nouveau_drm.h \
30 include/drm/qxl_drm.h \
[all …]
Dmeson.build282 inc_drm = include_directories('include/drm')
285 'drm',
306 'include/drm/drm.h', 'include/drm/drm_fourcc.h', 'include/drm/drm_mode.h',
307 'include/drm/drm_sarea.h', 'include/drm/i915_drm.h',
308 'include/drm/mach64_drm.h', 'include/drm/mga_drm.h',
309 'include/drm/msm_drm.h', 'include/drm/nouveau_drm.h',
310 'include/drm/qxl_drm.h', 'include/drm/r128_drm.h',
311 'include/drm/radeon_drm.h', 'include/drm/amdgpu_drm.h',
312 'include/drm/savage_drm.h', 'include/drm/sis_drm.h',
313 'include/drm/tegra_drm.h', 'include/drm/vc4_drm.h',
[all …]
/external/libdrm/tegra/
Dtegra.c40 struct drm_tegra *drm = bo->drm; in drm_tegra_bo_free() local
49 drmIoctl(drm->fd, DRM_IOCTL_GEM_CLOSE, &args); in drm_tegra_bo_free()
56 struct drm_tegra *drm; in drm_tegra_wrap() local
61 drm = calloc(1, sizeof(*drm)); in drm_tegra_wrap()
62 if (!drm) in drm_tegra_wrap()
65 drm->close = close; in drm_tegra_wrap()
66 drm->fd = fd; in drm_tegra_wrap()
68 *drmp = drm; in drm_tegra_wrap()
93 drm_public void drm_tegra_close(struct drm_tegra *drm) in drm_tegra_close() argument
95 if (!drm) in drm_tegra_close()
[all …]
/external/mesa3d/src/egl/wayland/wayland-drm/
Dwayland-drm.c46 struct wl_drm *drm = buffer->drm; in destroy_buffer() local
48 drm->callbacks.release_buffer(drm->user_data, buffer); in destroy_buffer()
67 struct wl_drm *drm = wl_resource_get_user_data(resource); in create_buffer() local
76 buffer->drm = drm; in create_buffer()
87 drm->callbacks.reference_buffer(drm->user_data, name, fd, buffer); in create_buffer()
104 (void (**)(void)) &drm->buffer_interface, in create_buffer()
181 struct wl_drm *drm = wl_resource_get_user_data(resource); in drm_authenticate() local
183 if (drm->callbacks.authenticate(drm->user_data, id) < 0) in drm_authenticate()
201 struct wl_drm *drm = data; in bind_drm() local
214 wl_resource_post_event(resource, WL_DRM_DEVICE, drm->device_name); in bind_drm()
[all …]
Dmeson.build24 'wayland-drm-protocol.c',
25 input : 'wayland-drm.xml',
26 output : 'wayland-drm-protocol.c',
31 'wayland-drm-client-protocol.h',
32 input : 'wayland-drm.xml',
33 output : 'wayland-drm-client-protocol.h',
38 'wayland-drm-server-protocol.h',
39 input : 'wayland-drm.xml',
40 output : 'wayland-drm-server-protocol.h',
46 ['wayland-drm.c', wayland_drm_protocol_c, wayland_drm_server_protocol_h],
[all …]
Dwayland-drm.h37 struct wl_drm *drm; member
49 wayland_drm_buffer_get(struct wl_drm *drm, struct wl_resource *resource) in wayland_drm_buffer_get() argument
55 &drm->buffer_interface)) in wayland_drm_buffer_get()
67 wayland_drm_uninit(struct wl_drm *drm);
/external/mesa3d/src/gallium/
DAndroid.mk38 SUBDIRS += winsys/freedreno/drm drivers/freedreno
39 SUBDIRS += winsys/i915/drm drivers/i915
40 SUBDIRS += winsys/nouveau/drm drivers/nouveau
41 SUBDIRS += winsys/tegra/drm drivers/tegra
42 SUBDIRS += winsys/kmsro/drm drivers/kmsro
43 SUBDIRS += winsys/radeon/drm drivers/r300
44 SUBDIRS += winsys/radeon/drm drivers/r600
45 SUBDIRS += winsys/radeon/drm winsys/amdgpu/drm drivers/radeonsi
46 SUBDIRS += winsys/vc4/drm drivers/vc4
47 SUBDIRS += winsys/virgl/common winsys/virgl/drm winsys/virgl/vtest drivers/virgl
[all …]
Dmeson.build62 subdir('winsys/radeon/drm')
75 subdir('winsys/amdgpu/drm')
81 subdir('winsys/nouveau/drm')
87 subdir('winsys/freedreno/drm')
93 subdir('winsys/vc4/drm')
99 subdir('winsys/panfrost/drm')
105 subdir('winsys/etnaviv/drm')
111 subdir('winsys/kmsro/drm')
116 subdir('winsys/v3d/drm')
122 subdir('winsys/tegra/drm')
[all …]
/external/igt-gpu-tools/tools/
Dintel_residency.c86 } drm; variable
185 drm.fd = drm_open_driver_master(DRIVER_INTEL); in setup_drm()
187 drm.res = drmModeGetResources(drm.fd); in setup_drm()
188 igt_assert(drm.res->count_connectors <= MAX_CONNECTORS); in setup_drm()
190 for (i = 0; i < drm.res->count_connectors; i++) in setup_drm()
191 drm.connectors[i] = drmModeGetConnector(drm.fd, in setup_drm()
192 drm.res->connectors[i]); in setup_drm()
194 drm.bufmgr = drm_intel_bufmgr_gem_init(drm.fd, 4096); in setup_drm()
195 igt_assert(drm.bufmgr); in setup_drm()
196 drm_intel_bufmgr_gem_enable_reuse(drm.bufmgr); in setup_drm()
[all …]
/external/mesa3d/src/freedreno/
DMakefile.sources10 drm/freedreno_bo.c \
11 drm/freedreno_drmif.h \
12 drm/freedreno_ringbuffer.c \
13 drm/msm_bo.c \
14 drm/msm_pipe.c \
15 drm/msm_ringbuffer_sp.c \
16 drm/freedreno_bo_cache.c \
17 drm/freedreno_pipe.c \
18 drm/freedreno_ringbuffer.h \
19 drm/msm_device.c \
[all …]
/external/libdrm/nouveau/
Dnouveau.c66 struct nouveau_drm *drm = nouveau_drm(obj); in nouveau_object_ioctl() local
75 if (obj != &drm->client) in nouveau_object_ioctl()
88 return drmCommandWriteRead(drm->fd, DRM_NOUVEAU_NVIF, args, argc); in nouveau_object_ioctl()
95 struct nouveau_drm *drm = nouveau_drm(obj); in nouveau_object_mthd() local
104 if (!drm->nvif) in nouveau_object_mthd()
137 struct nouveau_drm *drm = nouveau_drm(obj); in nouveau_object_sclass_get() local
146 if (!drm->nvif) in nouveau_object_sclass_get()
235 struct nouveau_drm *drm = nouveau_drm(parent); in nouveau_object_init() local
250 if (!abi16_object(obj, &func) && drm->nvif) { in nouveau_object_init()
327 struct nouveau_drm *drm; in nouveau_drm_new() local
[all …]
Dabi16.c37 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_chan_nv04() local
45 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, in abi16_chan_nv04()
61 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_chan_nvc0() local
66 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, in abi16_chan_nvc0()
82 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_chan_nve0() local
92 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, in abi16_chan_nve0()
108 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_engobj() local
137 ret = drmCommandWrite(drm->fd, DRM_NOUVEAU_GROBJ_ALLOC, in abi16_engobj()
149 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_ntfy() local
158 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_NOTIFIEROBJ_ALLOC, in abi16_ntfy()
[all …]
/external/drm_hwcomposer/drm/
Dresourcemanager.cpp58 std::unique_ptr<DrmDevice> drm = std::make_unique<DrmDevice>(); in AddDrmDevice() local
60 std::tie(ret, displays_added) = drm->Init(path.c_str(), num_displays_); in AddDrmDevice()
64 importer.reset(Importer::CreateInstance(drm.get())); in AddDrmDevice()
70 drms_.push_back(std::move(drm)); in AddDrmDevice()
83 for (auto &drm : drms_) { in AvailableWritebackConnector() local
84 if (drm.get() == drm_device) in AvailableWritebackConnector()
86 writeback_conn = drm->AvailableWritebackConnector(display); in AvailableWritebackConnector()
94 for (auto &drm : drms_) { in GetDrmDevice() local
95 if (drm->HandlesDisplay(display)) in GetDrmDevice()
96 return drm.get(); in GetDrmDevice()
/external/drm_hwcomposer/
DAndroid.bp35 // hwcomposer.drm.so
76 "drm/drmconnector.cpp",
77 "drm/drmcrtc.cpp",
78 "drm/drmdevice.cpp",
79 "drm/drmencoder.cpp",
80 "drm/drmeventlistener.cpp",
81 "drm/drmmode.cpp",
82 "drm/drmplane.cpp",
83 "drm/drmproperty.cpp",
84 "drm/resourcemanager.cpp",
[all …]
/external/drm_hwcomposer/compositor/
Ddrmdisplaycompositor.cpp81 DrmDevice *drm = resource_manager_->GetDrmDevice(display_); in ~DrmDisplayCompositor() local
83 drm->DestroyPropertyBlob(mode_.blob_id); in ~DrmDisplayCompositor()
85 drm->DestroyPropertyBlob(mode_.old_blob_id); in ~DrmDisplayCompositor()
99 DrmDevice *drm = resource_manager_->GetDrmDevice(display); in Init() local
100 if (!drm) { in Init()
109 planner_ = Planner::CreateInstance(drm); in Init()
111 vsync_worker_.Init(drm, display_); in Init()
126 DrmDevice *drm = resource_manager_->GetDrmDevice(display_); in CreateInitializedComposition() local
127 DrmCrtc *crtc = drm->GetCrtcForDisplay(display_); in CreateInitializedComposition()
138 int ret = comp->Init(drm, crtc, importer.get(), planner_.get(), 0); in CreateInitializedComposition()
[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
Dmeson.build30 ['drm', '7'], ['drm-kms', '7'], ['drm-memory', '7'], ['drmAvailable', '3'],
47 foreach x : ['drm-mm', 'drm-gem', 'drm-ttm']
50 input : 'drm-memory.xml',
/external/mesa3d/include/drm-uapi/
DREADME7 in the drm-next tree.
21 …Merge tag 'drm-intel-next-2020-08-24-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-ne…
/external/mesa3d/src/gallium/winsys/nouveau/drm/
Dnouveau_drm_winsys.c36 _mesa_hash_table_remove_key(fd_tab, intptr_to_pointer(screen->drm->fd)); in nouveau_drm_screen_unref()
44 struct nouveau_drm *drm = NULL; in nouveau_drm_screen_create() local
77 ret = nouveau_drm_new(dupfd, &drm); in nouveau_drm_screen_create()
81 ret = nouveau_device_new(&drm->client, NV_DEVICE, in nouveau_drm_screen_create()
136 nouveau_drm_del(&drm); in nouveau_drm_screen_create()
/external/mesa3d/src/gallium/drivers/kmsro/
DAndroid.mk40 GALLIUM_TARGET_DRIVERS += armada-drm
47 GALLIUM_TARGET_DRIVERS += ingenic-drm
51 GALLIUM_TARGET_DRIVERS += mxsfb-drm
56 GALLIUM_TARGET_DRIVERS += sun4i-drm
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/drm/
DMediaDrmCallback.java16 package com.google.android.exoplayer2.drm;
18 import com.google.android.exoplayer2.drm.ExoMediaDrm.KeyRequest;
19 import com.google.android.exoplayer2.drm.ExoMediaDrm.ProvisionRequest;
DLocalMediaDrmCallback.java16 package com.google.android.exoplayer2.drm;
18 import com.google.android.exoplayer2.drm.ExoMediaDrm.KeyRequest;
19 import com.google.android.exoplayer2.drm.ExoMediaDrm.ProvisionRequest;
/external/mesa3d/src/vulkan/wsi/
Dwsi_common_wayland.c76 struct wsi_wl_display_drm drm; member
191 drm_handle_device(void *data, struct wl_drm *drm, const char *name) in drm_handle_device() argument
240 drm_handle_format(void *data, struct wl_drm *drm, uint32_t wl_format) in drm_handle_format() argument
243 if (display->drm.formats.element_size == 0) in drm_handle_format()
246 wsi_wl_display_add_wl_format(display, &display->drm.formats, wl_format); in drm_handle_format()
250 drm_handle_authenticated(void *data, struct wl_drm *drm) in drm_handle_authenticated() argument
255 drm_handle_capabilities(void *data, struct wl_drm *drm, uint32_t capabilities) in drm_handle_capabilities() argument
259 display->drm.capabilities = capabilities; in drm_handle_capabilities()
325 assert(display->drm.wl_drm == NULL); in registry_handle_global()
328 display->drm.wl_drm = in registry_handle_global()
[all …]

12345678910>>...16