Lines Matching full:struct

26 struct mobj {
27 const struct mobj_ops *ops;
30 struct refcount refc;
33 struct mobj_ops {
34 void *(*get_va)(struct mobj *mobj, size_t offs, size_t len);
35 TEE_Result (*get_pa)(struct mobj *mobj, size_t offs, size_t granule,
37 size_t (*get_phys_offs)(struct mobj *mobj, size_t granule);
38 TEE_Result (*get_mem_type)(struct mobj *mobj, uint32_t *mt);
39 bool (*matches)(struct mobj *mobj, enum buf_is_attr attr);
40 void (*free)(struct mobj *mobj);
41 uint64_t (*get_cookie)(struct mobj *mobj);
42 struct fobj *(*get_fobj)(struct mobj *mobj);
43 TEE_Result (*inc_map)(struct mobj *mobj);
44 TEE_Result (*dec_map)(struct mobj *mobj);
47 extern struct mobj mobj_virt;
48 extern struct mobj *mobj_tee_ram_rx;
49 extern struct mobj *mobj_tee_ram_rw;
61 static inline void *mobj_get_va(struct mobj *mobj, size_t offset, size_t len) in mobj_get_va()
68 static inline TEE_Result mobj_get_pa(struct mobj *mobj, size_t offs, in mobj_get_pa()
76 static inline size_t mobj_get_phys_offs(struct mobj *mobj, size_t granule) in mobj_get_phys_offs()
83 static inline TEE_Result mobj_get_mem_type(struct mobj *mobj, uint32_t *mt) in mobj_get_mem_type()
90 static inline bool mobj_matches(struct mobj *mobj, enum buf_is_attr attr) in mobj_matches()
107 static inline TEE_Result mobj_inc_map(struct mobj *mobj) in mobj_inc_map()
127 static inline TEE_Result mobj_dec_map(struct mobj *mobj) in mobj_dec_map()
145 static inline struct mobj *mobj_get(struct mobj *mobj) in mobj_get()
160 static inline void mobj_put(struct mobj *mobj) in mobj_put()
172 static inline void mobj_put_wipe(struct mobj *mobj) in mobj_put_wipe()
183 static inline uint64_t mobj_get_cookie(struct mobj *mobj) in mobj_get_cookie()
195 static inline struct fobj *mobj_get_fobj(struct mobj *mobj) in mobj_get_fobj()
203 static inline bool mobj_is_nonsec(struct mobj *mobj) in mobj_is_nonsec()
208 static inline bool mobj_is_secure(struct mobj *mobj) in mobj_is_secure()
213 static inline bool mobj_is_sdp_mem(struct mobj *mobj) in mobj_is_sdp_mem()
218 static inline size_t mobj_get_phys_granule(struct mobj *mobj) in mobj_get_phys_granule()
225 static inline bool mobj_check_offset_and_len(struct mobj *mobj, size_t offset, in mobj_check_offset_and_len()
234 struct mobj *mobj_phys_alloc(paddr_t pa, size_t size, uint32_t cattr,
238 struct mobj *mobj_ffa_get_by_cookie(uint64_t cookie,
245 struct mobj_ffa *mobj_ffa_sel1_spmc_new(uint64_t cookie,
248 void mobj_ffa_sel1_spmc_delete(struct mobj_ffa *mobj);
251 struct mobj_ffa *mobj_ffa_spmc_new(uint64_t cookie, unsigned int num_pages,
253 void mobj_ffa_spmc_delete(struct mobj_ffa *mobj);
256 uint64_t mobj_ffa_get_cookie(struct mobj_ffa *mobj);
257 TEE_Result mobj_ffa_add_pages_at(struct mobj_ffa *mobj, unsigned int *idx,
259 TEE_Result mobj_ffa_push_to_inactive(struct mobj_ffa *mobj);
264 struct mobj *mobj_ffa_protmem_get_by_pa(paddr_t pa, paddr_size_t size);
269 struct mobj *mobj_reg_shm_alloc(paddr_t *pages, size_t num_pages,
282 struct mobj *mobj_reg_shm_get_by_cookie(uint64_t cookie);
295 void mobj_reg_shm_unguard(struct mobj *mobj);
301 struct mobj *mobj_mapped_shm_alloc(paddr_t *pages, size_t num_pages,
305 struct mobj *mobj_protmem_alloc(paddr_t pa, paddr_size_t size, uint64_t cookie,
308 struct mobj *mobj_protmem_get_by_pa(paddr_t pa, paddr_size_t size);
314 static inline struct mobj *mobj_mapped_shm_alloc(paddr_t *pages __unused, in mobj_mapped_shm_alloc()
322 static inline struct mobj *mobj_reg_shm_get_by_cookie(uint64_t cookie __unused) in mobj_reg_shm_get_by_cookie()
329 static inline struct mobj *
343 static inline struct mobj *mobj_protmem_get_by_pa(paddr_t pa __unused, in mobj_protmem_get_by_pa()
351 static inline struct mobj *
366 static inline struct mobj *
374 struct mobj *mobj_shm_alloc(paddr_t pa, size_t size, uint64_t cookie);
377 bool mobj_is_paged(struct mobj *mobj);
379 static inline bool mobj_is_paged(struct mobj *mobj __unused) in mobj_is_paged()
385 struct mobj *mobj_with_fobj_alloc(struct fobj *fobj, struct file *file,