Lines Matching refs:offs
55 static TEE_Result mobj_phys_get_pa(struct mobj *mobj, size_t offs, in mobj_phys_get_pa() argument
64 p = moph->pa + offs; in mobj_phys_get_pa()
252 static size_t mobj_mm_offs(struct mobj *mobj, size_t offs) in mobj_mm_offs() argument
256 return (mm->offset << mm->pool->shift) + offs; in mobj_mm_offs()
259 static void *mobj_mm_get_va(struct mobj *mobj, size_t offs, size_t len) in mobj_mm_get_va() argument
262 mobj_mm_offs(mobj, offs), len); in mobj_mm_get_va()
266 static TEE_Result mobj_mm_get_pa(struct mobj *mobj, size_t offs, in mobj_mm_get_pa() argument
270 mobj_mm_offs(mobj, offs), granule, pa); in mobj_mm_get_pa()
366 static TEE_Result mobj_shm_get_pa(struct mobj *mobj, size_t offs, in mobj_shm_get_pa() argument
372 if (!pa || offs >= mobj->size) in mobj_shm_get_pa()
375 p = m->pa + offs; in mobj_shm_get_pa()
485 static void *mobj_seccpy_shm_get_va(struct mobj *mobj, size_t offs, size_t len) in mobj_seccpy_shm_get_va() argument
492 if (!mobj_check_offset_and_len(mobj, offs, len)) in mobj_seccpy_shm_get_va()
494 return (void *)(m->va + offs); in mobj_seccpy_shm_get_va()
663 static TEE_Result mobj_with_fobj_get_pa(struct mobj *mobj, size_t offs, in mobj_with_fobj_get_pa() argument
674 p = f->fobj->ops->get_pa(f->fobj, offs / SMALL_PAGE_SIZE) + in mobj_with_fobj_get_pa()
675 offs % SMALL_PAGE_SIZE; in mobj_with_fobj_get_pa()