| /trusted-services/components/messaging/ffa/libsp/test/ |
| A D | test_ffa_memory_descriptors.cpp | 87 UNSIGNED_LONGS_EQUAL(0, tx_buffer.used); in TEST() 160 tx_buffer.used); in TEST() 175 tx_buffer.used); in TEST() 214 tx_buffer.used); in TEST() 256 tx_buffer.used); in TEST() 274 tx_buffer.used); in TEST() 332 tx_buffer.used); in TEST() 524 tx_buffer.used = 0x100000000ULL; in TEST() 525 tx_buffer.length = 0x200000000ULL; in TEST() 624 ffa_get_memory_region(&tx_buffer); in TEST() [all …]
|
| A D | test_sp_rxtx.cpp | 60 void *tx_buffer = NULL; in TEST() local 70 void *tx_buffer = (void *)0x12340000; in TEST() local 80 void *tx_buffer = (void *)0x12340000; in TEST() local 90 void *tx_buffer = (void *)0x12340000; in TEST() local 103 void *tx_buffer = (void *)2048; in TEST() local 115 void *tx_buffer = (void *)8192; in TEST() local 127 void *tx_buffer = (void *)32768; in TEST() local 139 void *tx_buffer = (void *)0x12350000; in TEST() local 151 void *tx_buffer = (void *)0x12350000; in TEST() local 163 void *tx_buffer = (void *)0x12350000; in TEST() local [all …]
|
| A D | test_sp_memory_management.cpp | 41 static void *tx_buffer = tx_buffer_area; variable 217 expect_sp_rxtx_buffer_tx_get(&tx_buffer, &buffer_size, result); in TEST() 360 expect_ffa_mem_donate(expected_size, expected_size, tx_buffer, in TEST() 382 expect_ffa_mem_donate(expected_size, expected_size, tx_buffer, in TEST() 505 expect_sp_rxtx_buffer_tx_get(&tx_buffer, &buffer_size, result); in TEST() 662 expect_ffa_mem_lend(expected_size, expected_size, tx_buffer, in TEST() 684 expect_ffa_mem_lend(expected_size, expected_size, tx_buffer, in TEST() 807 expect_sp_rxtx_buffer_tx_get(&tx_buffer, &buffer_size, result); in TEST() 966 expect_ffa_mem_share(expected_size, expected_size, tx_buffer, in TEST() 988 expect_ffa_mem_share(expected_size, expected_size, tx_buffer, in TEST() [all …]
|
| A D | test_ffa_api.cpp | 224 const uint64_t tx_buffer = 0xfedcba9876543210ULL; in TEST() local 229 expect_ffa_svc(0xc4000066, tx_buffer, rx_buffer, page_count, 0, 0, 0, 0, in TEST() 232 ffa_result result = ffa_rxtx_map((const void *)tx_buffer, in TEST() 239 const uint64_t tx_buffer = 0xfedcba9876543210ULL; in TEST() local 244 expect_ffa_svc(0xc4000066, tx_buffer, rx_buffer, page_count, 0, 0, 0, 0, in TEST() 247 ffa_result result = ffa_rxtx_map((const void *)tx_buffer, in TEST() 254 const uint64_t tx_buffer = 0xfedcba9876543210ULL; in TEST() local 260 expect_ffa_svc(0xc4000066, tx_buffer, rx_buffer, page_count, 0, 0, 0, 0, in TEST() 264 ffa_rxtx_map((const void *)tx_buffer, (const void *)rx_buffer, in TEST() 271 const uint64_t tx_buffer = 0xfedcba9876543210ULL; in TEST() local [all …]
|
| /trusted-services/components/messaging/ffa/libsp/mock/ |
| A D | mock_sp_rxtx.cpp | 9 void expect_sp_rxtx_buffer_map(void *tx_buffer, const void *rx_buffer, in expect_sp_rxtx_buffer_map() argument 13 .withPointerParameter("tx_buffer", tx_buffer) in expect_sp_rxtx_buffer_map() 19 sp_result sp_rxtx_buffer_map(void *tx_buffer, const void *rx_buffer, in sp_rxtx_buffer_map() argument 24 .withPointerParameter("tx_buffer", tx_buffer) in sp_rxtx_buffer_map()
|
| A D | mock_sp_rxtx.h | 11 void expect_sp_rxtx_buffer_map(void *tx_buffer, const void *rx_buffer, 13 sp_result sp_rxtx_buffer_map(void *tx_buffer, const void *rx_buffer,
|
| A D | mock_ffa_api.cpp | 57 void expect_ffa_rxtx_map(const void *tx_buffer, const void *rx_buffer, in expect_ffa_rxtx_map() argument 61 .withConstPointerParameter("tx_buffer", tx_buffer) in expect_ffa_rxtx_map() 67 ffa_result ffa_rxtx_map(const void *tx_buffer, const void *rx_buffer, in ffa_rxtx_map() argument 72 .withConstPointerParameter("tx_buffer", tx_buffer) in ffa_rxtx_map()
|
| A D | mock_ffa_api.h | 21 void expect_ffa_rxtx_map(const void *tx_buffer, const void *rx_buffer,
|
| /trusted-services/components/messaging/ffa/libsp/ |
| A D | sp_rxtx.c | 16 sp_result sp_rxtx_buffer_map(void *tx_buffer, const void *rx_buffer, in sp_rxtx_buffer_map() argument 25 if (!tx_buffer || !rx_buffer || !size) in sp_rxtx_buffer_map() 41 if (((uintptr_t)tx_buffer & alignment_mask) != 0 || in sp_rxtx_buffer_map() 52 result = ffa_rxtx_map(tx_buffer, rx_buffer, page_count); in sp_rxtx_buffer_map() 57 ffa_tx_buffer = tx_buffer; in sp_rxtx_buffer_map()
|
| A D | sp_memory_management.c | 532 struct ffa_mem_transaction_buffer tx_buffer = { 0 }; in sp_memory_retrieve() local 548 sp_res = get_tx_buffer(&tx_buffer); in sp_memory_retrieve() 560 setup_descriptors(&tx_buffer, descriptor, acc_desc, 1, regions, in sp_memory_retrieve() 563 ffa_res = ffa_mem_retrieve_req_rxtx(tx_buffer.used, tx_buffer.used, in sp_memory_retrieve()
|
| A D | ffa.c | 136 ffa_result ffa_rxtx_map(const void *tx_buffer, const void *rx_buffer, in ffa_rxtx_map() argument 146 ffa_svc(FFA_RXTX_MAP_64, (uintptr_t)tx_buffer, (uintptr_t)rx_buffer, in ffa_rxtx_map()
|
| /trusted-services/components/messaging/ffa/libsp/include/ |
| A D | sp_rxtx.h | 33 sp_result sp_rxtx_buffer_map(void *tx_buffer, const void *rx_buffer,
|
| A D | ffa_api.h | 73 ffa_result ffa_rxtx_map(const void *tx_buffer, const void *rx_buffer,
|
| /trusted-services/deployments/internal-trusted-storage/env/commonsp/ |
| A D | its_sp.c | 19 static uint8_t tx_buffer[4096] __aligned(4096); variable 38 result = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_main()
|
| /trusted-services/deployments/protected-storage/env/commonsp/ |
| A D | ps_sp.c | 19 static uint8_t tx_buffer[4096] __aligned(4096); variable 38 result = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_main()
|
| /trusted-services/deployments/logging/env/commonsp/ |
| A D | logging_sp.c | 123 static uint8_t tx_buffer[4096] __aligned(4096); in sp_init() local 126 sp_res = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_init()
|
| /trusted-services/deployments/block-storage/env/commonsp/ |
| A D | block_storage_sp.c | 133 static uint8_t tx_buffer[4096] __aligned(4096); in sp_init() local 136 sp_res = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_init()
|
| /trusted-services/deployments/env-test/env/commonsp/ |
| A D | env_test_sp.c | 124 static uint8_t tx_buffer[4096] __aligned(4096); in sp_init() local 127 sp_res = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_init()
|
| /trusted-services/components/service/spm_test/ |
| A D | sp.c | 24 static volatile uint8_t tx_buffer[4096] __aligned(4096); variable 151 IMSG("Testing ffa_rxtx_map(%p %p, 1)\n", tx_buffer, rx_buffer); in test_ffa_rxtx_map() 153 result = sp_rxtx_buffer_map((void*)tx_buffer,(void*)rx_buffer, in test_ffa_rxtx_map() 466 t_buf->buffer = (void*)tx_buffer; in set_rxtx_buf() 779 memset((void *)tx_buffer, 0x00, sizeof(tx_buffer)); in test_mem_sharing_invalid() 781 transaction = (struct ffa_mem_transaction_desc *)tx_buffer; in test_mem_sharing_invalid() 803 transaction->mem_access_desc_count = sizeof(tx_buffer); in test_mem_sharing_invalid() 810 transaction->mem_access_desc_offset = sizeof(tx_buffer); in test_mem_sharing_invalid() 816 acc_desc = (struct ffa_mem_access_desc *)(tx_buffer + len); in test_mem_sharing_invalid() 849 comp_desc->total_page_count = sizeof(tx_buffer); in test_mem_sharing_invalid() [all …]
|
| /trusted-services/deployments/crypto/env/commonsp/ |
| A D | crypto_sp.c | 159 static uint8_t tx_buffer[4096] __aligned(4096); in sp_init() local 162 sp_res = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_init()
|
| /trusted-services/deployments/se-proxy/env/commonsp/ |
| A D | se_proxy_sp.c | 160 static uint8_t tx_buffer[4096] __aligned(4096); in sp_init() local 163 sp_res = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_init()
|
| /trusted-services/deployments/smm-gateway/env/commonsp/ |
| A D | smm_gateway_sp.c | 149 static uint8_t tx_buffer[4096] __aligned(4096); in sp_init() local 152 sp_res = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_init()
|
| /trusted-services/deployments/fwu/env/commonsp/ |
| A D | fwu_sp.c | 171 static uint8_t tx_buffer[4096] __aligned(4096); in sp_init() local 174 sp_result sp_res = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_init()
|
| /trusted-services/deployments/attestation/env/commonsp/ |
| A D | attestation_sp.c | 201 static uint8_t tx_buffer[4096] __aligned(4096); in sp_init() local 204 sp_res = sp_rxtx_buffer_map(tx_buffer, rx_buffer, sizeof(rx_buffer)); in sp_init()
|
| /trusted-services/components/messaging/ffa/libsp/mock/test/ |
| A D | test_mock_ffa_api.cpp | 60 const char tx_buffer = 0; in TEST() local 64 expect_ffa_rxtx_map(&tx_buffer, &rx_buffer, page_count, result); in TEST() 65 LONGS_EQUAL(result, ffa_rxtx_map(&tx_buffer, &rx_buffer, page_count)); in TEST()
|