Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 196) sorted by relevance

12345678

/hardware/intel/img/libdrm/libdrm/nouveau/
Dnouveau_channel.c44 nvchan->base.device = dev; in nouveau_channel_alloc()
55 nvchan->base.id = nvchan->drm.channel; in nouveau_channel_alloc()
56 if (nouveau_grobj_ref(&nvchan->base, nvchan->drm.fb_ctxdma_handle, in nouveau_channel_alloc()
57 &nvchan->base.vram) || in nouveau_channel_alloc()
58 nouveau_grobj_ref(&nvchan->base, nvchan->drm.tt_ctxdma_handle, in nouveau_channel_alloc()
59 &nvchan->base.gart)) { in nouveau_channel_alloc()
68 gr->base.bound = NOUVEAU_GROBJ_BOUND_EXPLICIT; in nouveau_channel_alloc()
69 gr->base.subc = i; in nouveau_channel_alloc()
70 gr->base.handle = nvchan->drm.subchan[i].handle; in nouveau_channel_alloc()
71 gr->base.grclass = nvchan->drm.subchan[i].grclass; in nouveau_channel_alloc()
[all …]
Dnouveau_grobj.c43 nvgrobj->base.channel = chan; in nouveau_grobj_alloc()
44 nvgrobj->base.handle = handle; in nouveau_grobj_alloc()
45 nvgrobj->base.grclass = class; in nouveau_grobj_alloc()
46 nvgrobj->base.bound = NOUVEAU_GROBJ_UNBOUND; in nouveau_grobj_alloc()
47 nvgrobj->base.subc = -1; in nouveau_grobj_alloc()
59 *grobj = &nvgrobj->base; in nouveau_grobj_alloc()
75 nvgrobj->base.channel = chan; in nouveau_grobj_ref()
76 nvgrobj->base.handle = handle; in nouveau_grobj_ref()
77 nvgrobj->base.grclass = 0; in nouveau_grobj_ref()
79 *grobj = &nvgrobj->base; in nouveau_grobj_ref()
[all …]
Dnouveau_device.c63 ret = nouveau_device_get_param(&nvdev->base, in nouveau_device_open_existing()
69 nvdev->base.vm_vram_base = value; in nouveau_device_open_existing()
71 ret = nouveau_device_get_param(&nvdev->base, in nouveau_device_open_existing()
77 nvdev->base.vm_vram_size = value; in nouveau_device_open_existing()
79 ret = nouveau_device_get_param(&nvdev->base, in nouveau_device_open_existing()
85 nvdev->base.vm_gart_size = value; in nouveau_device_open_existing()
87 ret = nouveau_bo_init(&nvdev->base); in nouveau_device_open_existing()
93 ret = nouveau_device_get_param(&nvdev->base, in nouveau_device_open_existing()
99 nvdev->base.chipset = value; in nouveau_device_open_existing()
101 *dev = &nvdev->base; in nouveau_device_open_existing()
[all …]
Dnouveau_pushbuf.c131 nvpb->current_offset = nvpb->base.cur - nvpb->pushbuf; in nouveau_pushbuf_space_call()
148 nvpb->base.channel = chan; in nouveau_pushbuf_space_call()
149 nvpb->base.remaining = nvpb->size; in nouveau_pushbuf_space_call()
150 nvpb->base.cur = nvpb->pushbuf; in nouveau_pushbuf_space_call()
173 nvpb->base.channel = chan; in nouveau_pushbuf_space()
174 nvpb->base.remaining = nvpb->size; in nouveau_pushbuf_space()
175 nvpb->base.cur = nvpb->pushbuf; in nouveau_pushbuf_space()
249 chan->pushbuf = &nvpb->base; in nouveau_pushbuf_init()
262 if (nvpb->base.remaining == nvpb->size) in nouveau_pushbuf_flush()
268 *(nvpb->base.cur++) = nvpb->cal_suffix0; in nouveau_pushbuf_flush()
[all …]
/hardware/qcom/display/msm8960/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
112 memset(base, 0, ionAllocData.len); in alloc_buffer()
114 clean_buffer(base, data.size, data.offset, fd_data.fd, in alloc_buffer()
118 data.base = base; in alloc_buffer()
122 data.base, ionAllocData.len, data.fd); in alloc_buffer()
127 int IonAlloc::free_buffer(void* base, size_t size, int offset, int fd) in free_buffer() argument
131 base, size, fd); in free_buffer()
137 if(base) in free_buffer()
[all …]
Dmapper.cpp71 hnd->base = 0; in gralloc_map()
75 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
97 void* base = (void*)hnd->base; in gralloc_unmap() local
101 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
103 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
105 base = (void*)hnd->base_metadata; in gralloc_unmap()
107 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
109 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
115 hnd->base = 0; in gralloc_unmap()
142 hnd->base = 0; in gralloc_register_buffer()
[all …]
/hardware/qcom/display/msm8974/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
108 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
110 if(base == MAP_FAILED) { in alloc_buffer()
119 data.base = base; in alloc_buffer()
123 data.base, ionAllocData.len, data.fd); in alloc_buffer()
128 int IonAlloc::free_buffer(void* base, size_t size, int offset, int fd) in free_buffer() argument
132 base, size, fd); in free_buffer()
138 if(base) in free_buffer()
139 err = unmap_buffer(base, size, offset); in free_buffer()
147 void *base = 0; in map_buffer() local
[all …]
Dmapper.cpp71 hnd->base = 0; in gralloc_map()
75 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
97 void* base = (void*)hnd->base; in gralloc_unmap() local
101 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
103 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
105 base = (void*)hnd->base_metadata; in gralloc_unmap()
107 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
109 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
115 hnd->base = 0; in gralloc_unmap()
142 hnd->base = 0; in gralloc_register_buffer()
[all …]
/hardware/qcom/display/msm8084/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
114 data.base = base; in alloc_buffer()
118 data.base, ionAllocData.len, data.fd); in alloc_buffer()
123 int IonAlloc::free_buffer(void* base, size_t size, size_t offset, int fd) in free_buffer() argument
127 base, size, fd); in free_buffer()
133 if(base) in free_buffer()
134 err = unmap_buffer(base, size, offset); in free_buffer()
142 void *base = 0; in map_buffer() local
[all …]
Dmapper.cpp72 hnd->base = 0; in gralloc_map()
76 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
101 void* base = (void*)hnd->base; in gralloc_unmap() local
105 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
107 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
109 base = (void*)hnd->base_metadata; in gralloc_unmap()
111 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
113 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
119 hnd->base = 0; in gralloc_unmap()
146 hnd->base = 0; in gralloc_register_buffer()
[all …]
/hardware/qcom/display/msm8226/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
114 data.base = base; in alloc_buffer()
118 data.base, ionAllocData.len, data.fd); in alloc_buffer()
123 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
128 base, size, fd); in free_buffer()
134 if(base) in free_buffer()
135 err = unmap_buffer(base, size, offset); in free_buffer()
144 void *base = 0; in map_buffer() local
[all …]
Dmapper.cpp72 hnd->base = 0; in gralloc_map()
76 hnd->base = uint64_t(mappedAddress) + hnd->offset; in gralloc_map()
101 void* base = (void*)hnd->base; in gralloc_unmap() local
105 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
107 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
109 base = (void*)hnd->base_metadata; in gralloc_unmap()
111 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
113 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
119 hnd->base = 0; in gralloc_unmap()
146 hnd->base = 0; in gralloc_register_buffer()
[all …]
/hardware/libhardware/tests/hwc/
Dcnativewindow.c50 aBuffer base; member
57 aWindow base; member
113 static void cnw_inc_ref(aBase *base) { TRACE("buf %p ref++\n",base); } in cnw_inc_ref() argument
114 static void cnw_dec_ref(aBase *base) { TRACE("buf %p ref--\n",base); } in cnw_dec_ref() argument
116 static inline CNativeWindow *from_base(aWindow *base) { in from_base() argument
117 return (CNativeWindow *) base; in from_base()
120 static inline CNativeWindow *from_base_const(const aWindow *base) { in from_base_const() argument
121 return (CNativeWindow *) base; in from_base_const()
124 static int cnw_set_swap_interval(aWindow *base, int interval) { in cnw_set_swap_interval() argument
125 CNativeWindow *win = from_base(base); in cnw_set_swap_interval()
[all …]
/hardware/intel/common/libva/va/x11/
Ddri1_util.c18 struct dri_drawable base; member
34 dri1_drawable->base.x_drawable = x_drawable; in dri1CreateDrawable()
36 return &dri1_drawable->base; in dri1CreateDrawable()
68 assert(dri_state->base.fd >= 0); in dri1Close()
69 drmCloseOnce(dri_state->base.fd); in dri1Close()
86 dri_state->base.fd = -1; in isDRI1Connected()
88 dri_state->base.auth_type = VA_NONE; in isDRI1Connected()
108 dri_state->base.fd = drmOpenOnce(NULL, BusID, &newlyopened); in isDRI1Connected()
111 if (dri_state->base.fd < 0) in isDRI1Connected()
115 if (drmGetMagic(dri_state->base.fd, &magic)) in isDRI1Connected()
[all …]
Ddri2_util.c52 struct dri_drawable base; member
73 dri2_drawable->base.x_drawable = x_drawable; in dri2CreateDrawable()
74 dri2_drawable->base.x = 0; in dri2CreateDrawable()
75 dri2_drawable->base.y = 0; in dri2CreateDrawable()
78 return &dri2_drawable->base; in dri2CreateDrawable()
171 if (dri_state->base.fd >= 0); in dri2Close()
172 close(dri_state->base.fd); in dri2Close()
185 dri_state->base.fd = -1; in isDRI2Connected()
186 dri_state->base.auth_type = VA_NONE; in isDRI2Connected()
198 dri_state->base.fd = open(device_name, O_RDWR); in isDRI2Connected()
[all …]
/hardware/libhardware/modules/gralloc/
Dmapper.cpp59 hnd->base = uintptr_t(mappedAddress) + hnd->offset; in gralloc_map()
63 *vaddr = (void*)hnd->base; in gralloc_map()
72 void* base = (void*)hnd->base; in gralloc_unmap() local
75 if (munmap(base, size) < 0) { in gralloc_unmap()
79 hnd->base = 0; in gralloc_unmap()
142 if (hnd->base) in gralloc_unregister_buffer()
158 if (hnd->base) { in terminateBuffer()
183 *vaddr = (void*)hnd->base; in gralloc_lock()
/hardware/intel/common/wrs_omxil_core/
DAndroid.mk18 base/inc/cmodule.h \
19 base/inc/componentbase.h \
20 base/inc/portaudio.h \
21 base/inc/portbase.h \
22 base/inc/portimage.h \
23 base/inc/portother.h \
24 base/inc/portvideo.h \
45 -include $(WRS_OMXIL_CORE_ROOT)/base/src/Android.mk
/hardware/ti/omap4-aah/test/CameraHal/
DAndroid.mk38 frameworks/base/include/ui \
39 frameworks/base/include/surfaceflinger \
40 frameworks/base/include/camera \
41 frameworks/base/include/media
81 frameworks/base/include/ui \
82 frameworks/base/include/surfaceflinger \
83 frameworks/base/include/camera \
84 frameworks/base/include/media \
/hardware/intel/img/libdrm/libdrm/radeon/
Dradeon_bo_gem.c49 struct radeon_bo base; member
56 struct radeon_bo_manager base; member
76 bo->base.bom = bom; in bo_open()
77 bo->base.handle = 0; in bo_open()
78 bo->base.size = size; in bo_open()
79 bo->base.alignment = alignment; in bo_open()
80 bo->base.domains = domains; in bo_open()
81 bo->base.flags = flags; in bo_open()
82 bo->base.ptr = NULL; in bo_open()
94 bo->base.handle = open_arg.handle; in bo_open()
[all …]
/hardware/samsung_slsi/exynos5/gralloc/
Dmapper.cpp52 hnd->base = mappedAddress; in gralloc_map()
60 if (!hnd->base) in gralloc_unmap()
63 if (munmap(hnd->base, hnd->size) < 0) { in gralloc_unmap()
65 hnd->base, hnd->size); in gralloc_unmap()
67 ALOGV("%s: base %p %d %d %d %d\n", __func__, hnd->base, hnd->size, in gralloc_unmap()
69 hnd->base = 0; in gralloc_unmap()
94 ALOGV("%s: base %p %d %d %d %d\n", __func__, hnd->base, hnd->size, in gralloc_register_buffer()
122 ALOGV("%s: base %p %d %d %d %d\n", __func__, hnd->base, hnd->size, in gralloc_unregister_buffer()
154 if (!hnd->base) in gralloc_lock()
156 *vaddr = (void*)hnd->base; in gralloc_lock()
/hardware/intel/bootstub/
Dbootstub.h58 #define GDT_ENTRY(flags, base, limit) \
59 ((((base) & 0xff000000) << (56-24)) | \
62 (((base) & 0x00ffffff) << 16) | \
65 #define GDT_ENTRY(flags, base, limit) \ argument
66 (((u64)(base & 0xff000000) << 32) | \
69 ((u64)(base & 0x00ffffff) << 16) | \
/hardware/intel/img/libdrm/
Ddepcomp302 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
304 tmpdepfile1=$dir$base.d
305 tmpdepfile2=$dir.libs/$base.d
308 tmpdepfile1=$dir$base.d
309 tmpdepfile2=$dir$base.d
341 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
357 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
358 tmpdepfile2=$dir$base.o.d # libtool 1.5
359 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
360 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
[all …]
/hardware/intel/img/psb_video/src/
Dpsb_ws_driver.c47 vNode->base.func = func; in psb_alloc()
48 vNode->base.type_id = 0; in psb_alloc()
49 return &vNode->base; in psb_alloc()
69 free(containerOf(node, struct _PsbDrmValidateNode, base)); in psb_free()
87 containerOf(node, struct _PsbDrmValidateNode, base); in psb_clear()
/hardware/qcom/display/msm8960/libqdutils/
DqdMetaData.cpp51 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
53 if (!base) { in setMetaData()
57 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
85 if(munmap(base, size)) in setMetaData()
86 ALOGE("%s: failed to unmap ptr 0x%x, err %d", __func__, (int)base, in setMetaData()
/hardware/qcom/display/msm8974/libqdutils/
DqdMetaData.cpp51 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
53 if (!base) { in setMetaData()
57 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
88 if(munmap(base, size)) in setMetaData()
89 ALOGE("%s: failed to unmap ptr 0x%x, err %d", __func__, (int)base, in setMetaData()

12345678