Lines Matching full:struct

24 struct mobj *mobj_tee_ram_rx;
25 struct mobj *mobj_tee_ram_rw;
31 struct mobj_phys {
32 struct mobj mobj;
40 static struct mobj_phys *to_mobj_phys(struct mobj *mobj);
42 static void *mobj_phys_get_va(struct mobj *mobj, size_t offset, size_t len) in mobj_phys_get_va()
44 struct mobj_phys *moph = to_mobj_phys(mobj); in mobj_phys_get_va()
52 static TEE_Result mobj_phys_get_pa(struct mobj *mobj, size_t offs, in mobj_phys_get_pa()
55 struct mobj_phys *moph = to_mobj_phys(mobj); in mobj_phys_get_pa()
75 static TEE_Result mobj_phys_get_mem_type(struct mobj *mobj, uint32_t *mem_type) in mobj_phys_get_mem_type()
77 struct mobj_phys *moph = to_mobj_phys(mobj); in mobj_phys_get_mem_type()
86 static bool mobj_phys_matches(struct mobj *mobj, enum buf_is_attr attr) in mobj_phys_matches()
88 struct mobj_phys *moph = to_mobj_phys(mobj); in mobj_phys_matches()
108 static void mobj_phys_free(struct mobj *mobj) in mobj_phys_free()
110 struct mobj_phys *moph = to_mobj_phys(mobj); in mobj_phys_free()
119 const struct mobj_ops mobj_phys_ops
129 static struct mobj_phys *to_mobj_phys(struct mobj *mobj) in to_mobj_phys()
132 return container_of(mobj, struct mobj_phys, mobj); in to_mobj_phys()
135 static struct mobj *mobj_phys_init(paddr_t pa, size_t size, uint32_t mem_type, in mobj_phys_init()
140 struct mobj_phys *moph = NULL; in mobj_phys_init()
141 struct tee_mmap_region *map = NULL; in mobj_phys_init()
179 struct mobj *mobj_phys_alloc(paddr_t pa, size_t size, uint32_t mem_type, in mobj_phys_alloc()
203 static void mobj_virt_assert_type(struct mobj *mobj);
205 static void *mobj_virt_get_va(struct mobj *mobj, size_t offset, in mobj_virt_get_va()
218 const struct mobj_ops mobj_virt_ops
223 static void mobj_virt_assert_type(struct mobj *mobj __maybe_unused) in mobj_virt_assert_type()
228 struct mobj mobj_virt = { .ops = &mobj_virt_ops, .size = SIZE_MAX };
238 struct mobj_shm {
239 struct mobj mobj;
244 static struct mobj_shm *to_mobj_shm(struct mobj *mobj);
246 static void *mobj_shm_get_va(struct mobj *mobj, size_t offset, size_t len) in mobj_shm_get_va()
248 struct mobj_shm *m = to_mobj_shm(mobj); in mobj_shm_get_va()
257 static TEE_Result mobj_shm_get_pa(struct mobj *mobj, size_t offs, in mobj_shm_get_pa()
260 struct mobj_shm *m = to_mobj_shm(mobj); in mobj_shm_get_pa()
280 static size_t mobj_shm_get_phys_offs(struct mobj *mobj, size_t granule) in mobj_shm_get_phys_offs()
286 static bool mobj_shm_matches(struct mobj *mobj __unused, enum buf_is_attr attr) in mobj_shm_matches()
291 static TEE_Result mobj_shm_get_mem_type(struct mobj *mobj __unused, in mobj_shm_get_mem_type()
302 static void mobj_shm_free(struct mobj *mobj) in mobj_shm_free()
304 struct mobj_shm *m = to_mobj_shm(mobj); in mobj_shm_free()
309 static uint64_t mobj_shm_get_cookie(struct mobj *mobj) in mobj_shm_get_cookie()
318 const struct mobj_ops mobj_shm_ops
329 static struct mobj_shm *to_mobj_shm(struct mobj *mobj) in to_mobj_shm()
332 return container_of(mobj, struct mobj_shm, mobj); in to_mobj_shm()
335 struct mobj *mobj_shm_alloc(paddr_t pa, size_t size, uint64_t cookie) in mobj_shm_alloc()
337 struct mobj_shm *m; in mobj_shm_alloc()
356 struct mobj_with_fobj {
357 struct fobj *fobj;
358 struct file *file;
359 struct mobj mobj;
363 const struct mobj_ops mobj_with_fobj_ops;
365 struct mobj *mobj_with_fobj_alloc(struct fobj *fobj, struct file *file, in mobj_with_fobj_alloc()
368 struct mobj_with_fobj *m = NULL; in mobj_with_fobj_alloc()
392 static struct mobj_with_fobj *to_mobj_with_fobj(struct mobj *mobj) in to_mobj_with_fobj()
396 return container_of(mobj, struct mobj_with_fobj, mobj); in to_mobj_with_fobj()
399 static bool mobj_with_fobj_matches(struct mobj *mobj __maybe_unused, in mobj_with_fobj_matches()
413 static void mobj_with_fobj_free(struct mobj *mobj) in mobj_with_fobj_free()
415 struct mobj_with_fobj *m = to_mobj_with_fobj(mobj); in mobj_with_fobj_free()
422 static struct fobj *mobj_with_fobj_get_fobj(struct mobj *mobj) in mobj_with_fobj_get_fobj()
427 static TEE_Result mobj_with_fobj_get_mem_type(struct mobj *mobj, in mobj_with_fobj_get_mem_type()
430 struct mobj_with_fobj *m = to_mobj_with_fobj(mobj); in mobj_with_fobj_get_mem_type()
440 static TEE_Result mobj_with_fobj_get_pa(struct mobj *mobj, size_t offs, in mobj_with_fobj_get_pa()
443 struct mobj_with_fobj *f = to_mobj_with_fobj(mobj); in mobj_with_fobj_get_pa()
471 const struct mobj_ops mobj_with_fobj_ops
481 bool mobj_is_paged(struct mobj *mobj) in mobj_is_paged()