Lines Matching defs:offs
371 * @offs: Offset from start of this shared memory
372 * @returns virtual address of the shared memory + offs if offs is within
375 void *tee_shm_get_va(struct tee_shm *shm, size_t offs)
379 if (offs >= shm->size)
381 return (char *)shm->kaddr + offs;
388 * @offs: Offset from start of this shared memory
390 * @returns 0 if offs is within the bounds of this shared memory, else an
393 int tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa)
395 if (offs >= shm->size)
398 *pa = shm->paddr + offs;