/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat05.c | 48 char *shmaddr; in shm_test() local 54 shmaddr = shmat(shmid, 0, 0); in shm_test() 55 if (shmaddr == (char *)-1) { in shm_test() 61 shmaddr[0] = 1; in shm_test() 64 if (shmdt((const void *)shmaddr) != 0) { in shm_test()
|
/third_party/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap04.c | 94 char *shmaddr; /* pointer to shared memory segment */ variable 124 addr = mremap(shmaddr, memsize, newsize, 0); in main() 206 shmaddr = shmat(shmid, NULL, 0); in setup() 207 if (shmaddr == (void *)-1) { in setup() 226 if (shmdt(shmaddr) < 0) { in cleanup()
|
/third_party/ltp/include/ |
D | tst_safe_sysv_ipc.h | 41 const void *shmaddr, int shmflg); 42 #define SAFE_SHMAT(shmid, shmaddr, shmflg) \ argument 43 safe_shmat(__FILE__, __LINE__, (shmid), (shmaddr), (shmflg)) 45 int safe_shmdt(const char *file, const int lineno, const void *shmaddr); 46 #define SAFE_SHMDT(shmaddr) safe_shmdt(__FILE__, __LINE__, (shmaddr)) argument
|
/third_party/gstreamer/gstplugins_good/sys/ximage/ |
D | ximageutil.c | 47 emeta->SHMInfo.shmaddr = ((void *) -1); in gst_meta_ximage_init() 104 SHMInfo.shmaddr = ((void *) -1); in ximageutil_check_xshm_calls() 132 SHMInfo.shmaddr = shmat (SHMInfo.shmid, 0, 0); in ximageutil_check_xshm_calls() 133 if (SHMInfo.shmaddr == ((void *) -1)) { in ximageutil_check_xshm_calls() 142 ximage->data = SHMInfo.shmaddr; in ximageutil_check_xshm_calls() 168 if (SHMInfo.shmaddr != ((void *) -1)) in ximageutil_check_xshm_calls() 169 shmdt (SHMInfo.shmaddr); in ximageutil_check_xshm_calls() 387 meta->SHMInfo.shmaddr = ((void *) -1); in gst_ximageutil_ximage_new() 409 meta->SHMInfo.shmaddr = shmat (meta->SHMInfo.shmid, 0, 0); in gst_ximageutil_ximage_new() 410 if (meta->SHMInfo.shmaddr == ((void *) -1)) in gst_ximageutil_ximage_new() [all …]
|
/third_party/gstreamer/gstplugins_base/sys/ximage/ |
D | ximagepool.c | 80 if (mem->SHMInfo.shmaddr != ((void *) -1)) { in gst_ximage_memory_free() 81 shmdt (mem->SHMInfo.shmaddr); in gst_ximage_memory_free() 91 if (mem->SHMInfo.shmaddr != ((void *) -1)) { in gst_ximage_memory_free() 96 shmdt (mem->SHMInfo.shmaddr); in gst_ximage_memory_free() 97 mem->SHMInfo.shmaddr = (void *) -1; in gst_ximage_memory_free() 228 mem->SHMInfo.shmaddr = ((void *) -1); in ximage_memory_alloc() 286 mem->SHMInfo.shmaddr = shmat (mem->SHMInfo.shmid, NULL, 0); in ximage_memory_alloc() 287 if (mem->SHMInfo.shmaddr == ((void *) -1)) in ximage_memory_alloc() 291 mem->ximage->data = mem->SHMInfo.shmaddr; in ximage_memory_alloc() 438 SHMInfo.shmaddr = ((void *) -1); in gst_x_image_sink_check_xshm_calls() [all …]
|
/third_party/ltp/lib/ |
D | tst_safe_sysv_ipc.c | 161 const void *shmaddr, int shmflg) in safe_shmat() argument 165 rval = shmat(shmid, shmaddr, shmflg); in safe_shmat() 169 "shmat(%i, %p, %x) failed", shmid, shmaddr, shmflg); in safe_shmat() 175 int safe_shmdt(const char *file, const int lineno, const void *shmaddr) in safe_shmdt() argument 179 rval = shmdt(shmaddr); in safe_shmdt() 183 shmaddr); in safe_shmdt() 186 "Invalid shmdt(%p) return value %d", shmaddr, rval); in safe_shmdt()
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/x11/ |
D | SDL_x11framebuffer.c | 94 shminfo->shmaddr = (char *)shmat(shminfo->shmid, 0, 0); in X11_CreateWindowFramebuffer() 96 if ( shminfo->shmaddr != (char *)-1 ) { in X11_CreateWindowFramebuffer() 103 shmdt(shminfo->shmaddr); in X11_CreateWindowFramebuffer() 114 shminfo->shmaddr, shminfo, in X11_CreateWindowFramebuffer() 119 shmdt(shminfo->shmaddr); in X11_CreateWindowFramebuffer() 123 *pixels = shminfo->shmaddr; in X11_CreateWindowFramebuffer() 242 shmdt(data->shminfo.shmaddr); in X11_DestroyWindowFramebuffer()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmat/ |
D | shmat01.c | 40 void **shmaddr; member 90 addr = shmat(shm_id, *tc->shmaddr, tc->flag); in verify_shmat() 108 if (expected_addr(*tc->shmaddr, addr) != addr) { in verify_shmat() 111 addr, expected_addr(*tc->shmaddr, addr)); in verify_shmat()
|
D | shmat02.c | 36 void **shmaddr; member 49 addr = shmat(*tc->shmid, *tc->shmaddr, 0); in verify_shmat()
|
/third_party/mesa3d/src/gallium/winsys/sw/xlib/ |
D | xlib_sw_winsys.c | 127 shminfo->shmaddr = (char *) -1; in alloc_shm() 135 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0); in alloc_shm() 136 if (shminfo->shmaddr == (char *) -1) { in alloc_shm() 142 return shminfo->shmaddr; in alloc_shm() 261 shmdt(xlib_dt->shminfo.shmaddr); in xlib_displaytarget_destroy() 265 xlib_dt->shminfo.shmaddr = (char *) -1; in xlib_displaytarget_destroy()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 76 void *addr = NULL, *shmaddr = NULL; in test_overcommit() local 116 shmaddr = SAFE_SHMAT(shmid, ADDR, SHMAT_FLAGS); in test_overcommit() 117 check_wr_bytes(shmaddr); in test_overcommit() 150 SAFE_SHMDT(shmaddr); in test_overcommit()
|
/third_party/skia/third_party/externals/swiftshader/src/Main/ |
D | FrameBufferX11.cpp | 69 shminfo.shmaddr = x_image->data = (char*)shmat(shminfo.shmid, 0, 0); in FrameBufferX11() 82 shmdt(shminfo.shmaddr); in FrameBufferX11() 116 shmdt(shminfo.shmaddr); in ~FrameBufferX11()
|
/third_party/gstreamer/gstplugins_base/sys/xvimage/ |
D | xvimageallocator.c | 164 if (mem->SHMInfo.shmaddr != ((void *) -1)) { in gst_xvimage_allocator_free() 169 shmdt (mem->SHMInfo.shmaddr); in gst_xvimage_allocator_free() 170 mem->SHMInfo.shmaddr = (void *) -1; in gst_xvimage_allocator_free() 365 mem->SHMInfo.shmaddr = ((void *) -1); in gst_xvimage_allocator_alloc() 471 mem->SHMInfo.shmaddr = shmat (mem->SHMInfo.shmid, NULL, 0); in gst_xvimage_allocator_alloc() 472 if (mem->SHMInfo.shmaddr == ((void *) -1)) in gst_xvimage_allocator_alloc() 476 mem->xvimage->data = mem->SHMInfo.shmaddr; in gst_xvimage_allocator_alloc()
|
D | xvcontext.c | 478 SHMInfo.shmaddr = ((void *) -1); in gst_xvcontext_check_xshm_calls() 504 SHMInfo.shmaddr = shmat (SHMInfo.shmid, NULL, 0); in gst_xvcontext_check_xshm_calls() 505 if (SHMInfo.shmaddr == ((void *) -1)) { in gst_xvcontext_check_xshm_calls() 512 xvimage->data = SHMInfo.shmaddr; in gst_xvcontext_check_xshm_calls() 555 if (SHMInfo.shmaddr != ((void *) -1)) in gst_xvcontext_check_xshm_calls() 556 shmdt (SHMInfo.shmaddr); in gst_xvcontext_check_xshm_calls()
|
/third_party/mesa3d/src/mesa/drivers/x11/ |
D | xm_buffer.c | 104 b->shminfo.shmaddr = b->backxrb->ximage->data in alloc_back_shm_ximage() 106 if (b->shminfo.shmaddr == (char *) -1) { in alloc_back_shm_ximage() 128 shmdt(b->shminfo.shmaddr); in alloc_back_shm_ximage() 149 shmdt(b->shminfo.shmaddr); in alloc_back_shm_ximage() 183 shmdt(b->shminfo.shmaddr); in alloc_back_buffer() 402 shmdt( b->shminfo.shmaddr ); in xmesa_delete_framebuffer()
|
/third_party/mesa3d/src/glx/ |
D | drisw_glx.c | 214 int shmid, char *shmaddr, unsigned offset, in swrastPutImageShm() argument 222 pdp->shminfo.shmaddr = shmaddr; in swrastPutImageShm() 224 shmaddr + offset, loaderPrivate); in swrastPutImageShm() 231 int shmid, char *shmaddr, unsigned offset, in swrastPutImageShm2() argument 239 pdp->shminfo.shmaddr = shmaddr; in swrastPutImageShm2() 241 shmaddr + offset, loaderPrivate); in swrastPutImageShm2() 326 ximage->data = prp->shminfo.shmaddr; /* no offset */ in swrastGetImageShm2()
|
/third_party/mesa3d/src/gallium/frontends/dri/ |
D | drisw.c | 81 put_image_shm(__DRIdrawable *dPriv, int shmid, char *shmaddr, in put_image_shm() argument 92 shmid, shmaddr, offset, dPriv->loaderPrivate); in put_image_shm() 96 shmid, shmaddr, offset + offset_x, dPriv->loaderPrivate); in put_image_shm() 190 int shmid, char *shmaddr, unsigned offset, in drisw_put_image_shm() argument 197 put_image_shm(dPriv, shmid, shmaddr, offset, offset_x, x, y, width, height, stride); in drisw_put_image_shm()
|
/third_party/mesa3d/src/gallium/include/frontend/ |
D | drisw_api.h | 23 int shmid, char *shmaddr, unsigned offset, unsigned offset_x,
|
/third_party/ffmpeg/libavdevice/ |
D | xv.c | 204 xv->yuv_shminfo.shmaddr = (char *)shmat(xv->yuv_shminfo.shmid, 0, 0); in xv_write_header() 205 xv->yuv_image->data = xv->yuv_shminfo.shmaddr; in xv_write_header()
|
/third_party/mesa3d/include/GL/internal/ |
D | dri_interface.h | 619 int shmid, char *shmaddr, unsigned offset, 644 int shmid, char *shmaddr, unsigned offset,
|
/third_party/mesa3d/src/vulkan/wsi/ |
D | wsi_common_x11.c | 854 uint8_t * shmaddr; member 1399 image->shmaddr = addr; in alloc_shm() 1554 if (image->shmaddr) in x11_image_finish() 1555 shmdt(image->shmaddr); in x11_image_finish()
|