Searched refs:dma_buf (Results 1 – 6 of 6) sorted by relevance
/system/core/trusty/confirmationui/fuzz/ |
D | msg_fuzzer.cpp | 52 static android::base::unique_fd dma_buf; variable 63 dma_buf.reset(allocator.Alloc(kDmabufSystemHeapName, CONFIRMATIONUI_MAX_MSG_SIZE)); in LLVMFuzzerInitialize() 64 if (dma_buf < 0) { in LLVMFuzzerInitialize() 69 shm_base = mmap(0, CONFIRMATIONUI_MAX_MSG_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in LLVMFuzzerInitialize() 78 static bool Init(int chan, int dma_buf) { in Init() argument 96 .fd = dma_buf, in Init() 159 bool success = Init(chan, dma_buf); in LLVMFuzzerTestOneInput()
|
/system/core/trusty/apploader/fuzz/ |
D | app_fuzzer.cpp | 46 static bool SendLoadMsg(int chan, int dma_buf, size_t dma_buf_size) { in SendLoadMsg() argument 64 .fd = dma_buf, in SendLoadMsg() 108 unique_fd dma_buf(alloc.Alloc(kDmabufSystemHeapName, shm_len)); in LLVMFuzzerTestOneInput() local 109 if (dma_buf < 0) { in LLVMFuzzerTestOneInput() 114 void* shm_base = mmap(0, shm_len, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in LLVMFuzzerTestOneInput() 122 bool success = SendLoadMsg(*ta.GetRawFd(), dma_buf, shm_len); in LLVMFuzzerTestOneInput()
|
/system/core/trusty/confirmationui/ |
D | TrustyApp.cpp | 100 unique_fd dma_buf(allocator.Alloc("system", shm_len)); in TrustyApp() local 101 if (dma_buf < 0) { in TrustyApp() 123 .fd = dma_buf, in TrustyApp() 144 void* shm_base = mmap(0, shm_len, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in TrustyApp()
|
/system/core/trusty/line-coverage/ |
D | coverage.cpp | 137 unique_fd dma_buf(fd); in Open() local 139 void* shm = mmap(0, shm_len_, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in Open() 146 ret = Rpc(&req, dma_buf, &resp); in Open()
|
/system/core/trusty/coverage/ |
D | coverage.cpp | 144 unique_fd dma_buf(fd); in Open() local 146 void* shm = mmap(0, shm_len_, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in Open() 153 ret = Rpc(&req, dma_buf, &resp); in Open()
|
/system/core/trusty/libtrusty/tipc-test/ |
D | tipc_test.c | 907 int dma_buf = -1; in send_fd_test() local 929 dma_buf = DmabufHeapAlloc(allocator, "system", buf_size, 0, 0 /* legacy align */); in send_fd_test() 930 if (dma_buf < 0) { in send_fd_test() 931 ret = dma_buf; in send_fd_test() 936 buf = mmap(0, buf_size, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in send_fd_test() 946 .fd = dma_buf, in send_fd_test() 973 close(dma_buf); in send_fd_test()
|