We should not need to index into SHMs based on absolute VA/PA. These functions are not used and this kind of usage should not be encouraged anyway. Remove these functions.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -298,24 +298,6 @@ void tee_shm_free(struct tee_shm *shm); · 297 unmodified lines | |||
| 298 | */ | 298 | */ |
| 299 | void tee_shm_put(struct tee_shm *shm); | 299 | void tee_shm_put(struct tee_shm *shm); |
| 300 | 300 | ||
| 301 | /** | ||
| 302 | * tee_shm_va2pa() - Get physical address of a virtual address | ||
| 303 | * @shm: Shared memory handle | ||
| 304 | * @va: Virtual address to tranlsate | ||
| 305 | * @pa: Returned physical address | ||
| 306 | * @returns 0 on success and < 0 on failure | ||
| 307 | */ | ||
| 308 | int tee_shm_va2pa(struct tee_shm *shm, void *va, phys_addr_t *pa); | ||
| 309 | |||
| 310 | /** | ||
| 311 | * tee_shm_pa2va() - Get virtual address of a physical address | ||
| 312 | * @shm: Shared memory handle | ||
| 313 | * @pa: Physical address to tranlsate | ||
| 314 | * @va: Returned virtual address | ||
| 315 | * @returns 0 on success and < 0 on failure | ||
| 316 | */ | ||
| 317 | int tee_shm_pa2va(struct tee_shm *shm, phys_addr_t pa, void **va); | ||
| 318 | |||
| 319 | /** | 301 | /** |
| 320 | * tee_shm_get_va() - Get virtual address of a shared memory plus an offset | 302 | * tee_shm_get_va() - Get virtual address of a shared memory plus an offset |
| 321 | * @shm: Shared memory handle | 303 | * @shm: Shared memory handle |