Lines Matching refs:prot
261 uint32_t prot, uint32_t flags, struct mobj *mobj, in vm_map_pad() argument
269 if (prot & ~TEE_MATTR_PROT_MASK) in vm_map_pad()
292 reg->attr = attr | prot; in vm_map_pad()
311 res = tee_pager_add_um_region(uctx, reg->va, fobj, prot); in vm_map_pad()
676 uint16_t *prot) in vm_get_prot() argument
690 *prot = r->attr & TEE_MATTR_PROT_MASK; in vm_get_prot()
696 uint32_t prot) in vm_set_prot() argument
706 if (prot & ~TEE_MATTR_PROT_MASK || !len) in vm_set_prot()
723 r->attr |= prot; in vm_set_prot()
736 prot)) in vm_set_prot()
803 uint32_t prot = 0; in map_kinit() local
807 prot = TEE_MATTR_PRX; in map_kinit()
809 prot |= TEE_MATTR_GUARDED; in map_kinit()
810 res = vm_map(uctx, &va, sz, prot, VM_FLAG_PERMANENT, in map_kinit()
1311 uint16_t *prot, size_t *offs) in vm_get_mobj() argument
1327 *prot = r->attr & TEE_MATTR_PROT_MASK; in vm_get_mobj()