Lines Matching defs:size
60 struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags)
102 rc = poolm->ops->alloc(poolm, shm, size);
134 * @size: Requested size of shared memory
143 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size)
145 return tee_shm_alloc(ctx, size, TEE_SHM_MAPPED);
188 shm->size = length;
268 size_t size = vma->vm_end - vma->vm_start;
274 /* check for overflowing the buffer's size */
275 if (vma->vm_pgoff + vma_pages(vma) > shm->size >> PAGE_SHIFT)
279 size, vma->vm_page_prot);
332 if ((char *)va >= ((char *)shm->kaddr + shm->size))
354 if (pa >= (shm->paddr + shm->size))
379 if (offs >= shm->size)
395 if (offs >= shm->size)