Home
last modified time | relevance | path

Searched refs:dma_buf (Results 1 – 5 of 5) sorted by relevance

/system/core/trusty/confirmationui/fuzz/
Dmsg_fuzzer.cpp52 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/
Dapp_fuzzer.cpp50 static bool SendLoadMsg(int chan, int dma_buf, size_t dma_buf_size) { in SendLoadMsg() argument
68 .fd = dma_buf, in SendLoadMsg()
112 unique_fd dma_buf(alloc.Alloc(kDmabufSystemHeapName, shm_len)); in LLVMFuzzerTestOneInput() local
113 if (dma_buf < 0) { in LLVMFuzzerTestOneInput()
118 void* shm_base = mmap(0, shm_len, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in LLVMFuzzerTestOneInput()
126 bool success = SendLoadMsg(*ta.GetRawFd(), dma_buf, shm_len); in LLVMFuzzerTestOneInput()
/system/core/trusty/confirmationui/
DTrustyApp.cpp104 unique_fd dma_buf(allocator.Alloc("system", shm_len)); in TrustyApp() local
105 if (dma_buf < 0) { in TrustyApp()
127 .fd = dma_buf, in TrustyApp()
148 void* shm_base = mmap(0, shm_len, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in TrustyApp()
/system/core/trusty/coverage/
Dcoverage.cpp148 unique_fd dma_buf(fd); in Open() local
150 void* shm = mmap(0, shm_len_, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in Open()
157 ret = Rpc(&req, dma_buf, &resp); in Open()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c895 int dma_buf = -1; in send_fd_test() local
917 dma_buf = DmabufHeapAlloc(allocator, "system", buf_size, 0, 0 /* legacy align */); in send_fd_test()
918 if (dma_buf < 0) { in send_fd_test()
919 ret = dma_buf; in send_fd_test()
924 buf = mmap(0, buf_size, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in send_fd_test()
934 .fd = dma_buf, in send_fd_test()
957 close(dma_buf); in send_fd_test()