| /kernel/linux/linux-4.19/drivers/misc/vmw_vmci/ |
| D | vmci_context.c | 38 * These, along with context lookup, are protected by the 43 spinlock_t lock; /* Spinlock for context list operations */ 52 static void ctx_signal_notify(struct vmci_ctx *context) in ctx_signal_notify() argument 54 *context->notify = true; in ctx_signal_notify() 57 static void ctx_clear_notify(struct vmci_ctx *context) in ctx_clear_notify() argument 59 *context->notify = false; in ctx_clear_notify() 66 static void ctx_clear_notify_call(struct vmci_ctx *context) in ctx_clear_notify_call() argument 68 if (context->pending_datagrams == 0 && in ctx_clear_notify_call() 69 vmci_handle_arr_get_size(context->pending_doorbell_array) == 0) in ctx_clear_notify_call() 70 ctx_clear_notify(context); in ctx_clear_notify_call() [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/vmw_vmci/ |
| D | vmci_context.c | 30 * These, along with context lookup, are protected by the 35 spinlock_t lock; /* Spinlock for context list operations */ 44 static void ctx_signal_notify(struct vmci_ctx *context) in ctx_signal_notify() argument 46 *context->notify = true; in ctx_signal_notify() 49 static void ctx_clear_notify(struct vmci_ctx *context) in ctx_clear_notify() argument 51 *context->notify = false; in ctx_clear_notify() 58 static void ctx_clear_notify_call(struct vmci_ctx *context) in ctx_clear_notify_call() argument 60 if (context->pending_datagrams == 0 && in ctx_clear_notify_call() 61 vmci_handle_arr_get_size(context->pending_doorbell_array) == 0) in ctx_clear_notify_call() 62 ctx_clear_notify(context); in ctx_clear_notify_call() [all …]
|
| D | vmci_route.c | 18 * devices. Will set the source context if it is invalid. 41 /* Must have a valid destination context. */ in vmci_route() 42 if (VMCI_INVALID_ID == dst->context) in vmci_route() 46 if (VMCI_HYPERVISOR_CONTEXT_ID == dst->context) { in vmci_route() 63 /* And we cannot send if the source is the host context. */ in vmci_route() 64 if (VMCI_HOST_CONTEXT_ID == src->context) in vmci_route() 69 * respect it (both context and resource are invalid). in vmci_route() 70 * However, if they passed only an invalid context, in vmci_route() 72 * should set the real context here before passing it in vmci_route() 75 if (VMCI_INVALID_ID == src->context && in vmci_route() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m33/iar/TZ/non_secure/ |
| D | los_context.c | 74 Return : Context pointer 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 82 context->S16 = 0xAA000010; in ArchTskStackInit() 83 context->S17 = 0xAA000011; in ArchTskStackInit() 84 context->S18 = 0xAA000012; in ArchTskStackInit() 85 context->S19 = 0xAA000013; in ArchTskStackInit() 86 context->S20 = 0xAA000014; in ArchTskStackInit() 87 context->S21 = 0xAA000015; in ArchTskStackInit() 88 context->S22 = 0xAA000016; in ArchTskStackInit() 89 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m33/gcc/TZ/non_secure/ |
| D | los_context.c | 74 Return : Context pointer 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 82 context->S16 = 0xAA000010; in ArchTskStackInit() 83 context->S17 = 0xAA000011; in ArchTskStackInit() 84 context->S18 = 0xAA000012; in ArchTskStackInit() 85 context->S19 = 0xAA000013; in ArchTskStackInit() 86 context->S20 = 0xAA000014; in ArchTskStackInit() 87 context->S21 = 0xAA000015; in ArchTskStackInit() 88 context->S22 = 0xAA000016; in ArchTskStackInit() 89 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m55/gcc/NTZ/ |
| D | los_context.c | 73 Return : Context pointer 77 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 81 context->S16 = 0xAA000010; in ArchTskStackInit() 82 context->S17 = 0xAA000011; in ArchTskStackInit() 83 context->S18 = 0xAA000012; in ArchTskStackInit() 84 context->S19 = 0xAA000013; in ArchTskStackInit() 85 context->S20 = 0xAA000014; in ArchTskStackInit() 86 context->S21 = 0xAA000015; in ArchTskStackInit() 87 context->S22 = 0xAA000016; in ArchTskStackInit() 88 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/linux/linux-4.19/security/selinux/ss/ |
| D | mls.h | 25 #include "context.h" 28 int mls_compute_context_len(struct policydb *p, struct context *context); 29 void mls_sid_to_context(struct policydb *p, struct context *context, 31 int mls_context_isvalid(struct policydb *p, struct context *c); 38 struct context *context, 42 int mls_from_string(struct policydb *p, char *str, struct context *context, 45 int mls_range_set(struct context *context, struct mls_range *range); 49 struct context *context); 52 struct context *scontext, 53 struct context *tcontext, [all …]
|
| D | mls.c | 34 * security context string representation of `context'. 36 int mls_compute_context_len(struct policydb *p, struct context *context) in mls_compute_context_len() argument 48 int index_sens = context->range.level[l].sens; in mls_compute_context_len() 54 e = &context->range.level[l].cat; in mls_compute_context_len() 73 if (mls_level_eq(&context->range.level[0], in mls_compute_context_len() 74 &context->range.level[1])) in mls_compute_context_len() 85 * Write the security context string representation of 86 * the MLS fields of `context' into the string `*scontext'. 90 struct context *context, in mls_sid_to_context() argument 108 context->range.level[l].sens - 1)); in mls_sid_to_context() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m4/iar/ |
| D | los_context.c | 76 Return : Context pointer 80 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 84 context->S16 = 0xAA000010; in ArchTskStackInit() 85 context->S17 = 0xAA000011; in ArchTskStackInit() 86 context->S18 = 0xAA000012; in ArchTskStackInit() 87 context->S19 = 0xAA000013; in ArchTskStackInit() 88 context->S20 = 0xAA000014; in ArchTskStackInit() 89 context->S21 = 0xAA000015; in ArchTskStackInit() 90 context->S22 = 0xAA000016; in ArchTskStackInit() 91 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m4/gcc/ |
| D | los_context.c | 73 Return : Context pointer 77 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 81 context->S16 = 0xAA000010; in ArchTskStackInit() 82 context->S17 = 0xAA000011; in ArchTskStackInit() 83 context->S18 = 0xAA000012; in ArchTskStackInit() 84 context->S19 = 0xAA000013; in ArchTskStackInit() 85 context->S20 = 0xAA000014; in ArchTskStackInit() 86 context->S21 = 0xAA000015; in ArchTskStackInit() 87 context->S22 = 0xAA000016; in ArchTskStackInit() 88 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m7/iar/ |
| D | los_context.c | 74 Return : Context pointer 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 82 context->S16 = 0xAA000010; in ArchTskStackInit() 83 context->S17 = 0xAA000011; in ArchTskStackInit() 84 context->S18 = 0xAA000012; in ArchTskStackInit() 85 context->S19 = 0xAA000013; in ArchTskStackInit() 86 context->S20 = 0xAA000014; in ArchTskStackInit() 87 context->S21 = 0xAA000015; in ArchTskStackInit() 88 context->S22 = 0xAA000016; in ArchTskStackInit() 89 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m33/iar/NTZ/ |
| D | los_context.c | 74 Return : Context pointer 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 82 context->S16 = 0xAA000010; in ArchTskStackInit() 83 context->S17 = 0xAA000011; in ArchTskStackInit() 84 context->S18 = 0xAA000012; in ArchTskStackInit() 85 context->S19 = 0xAA000013; in ArchTskStackInit() 86 context->S20 = 0xAA000014; in ArchTskStackInit() 87 context->S21 = 0xAA000015; in ArchTskStackInit() 88 context->S22 = 0xAA000016; in ArchTskStackInit() 89 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m33/gcc/NTZ/ |
| D | los_context.c | 74 Return : Context pointer 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 82 context->S16 = 0xAA000010; in ArchTskStackInit() 83 context->S17 = 0xAA000011; in ArchTskStackInit() 84 context->S18 = 0xAA000012; in ArchTskStackInit() 85 context->S19 = 0xAA000013; in ArchTskStackInit() 86 context->S20 = 0xAA000014; in ArchTskStackInit() 87 context->S21 = 0xAA000015; in ArchTskStackInit() 88 context->S22 = 0xAA000016; in ArchTskStackInit() 89 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m7/gcc/ |
| D | los_context.c | 74 Return : Context pointer 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 82 context->S16 = 0xAA000010; in ArchTskStackInit() 83 context->S17 = 0xAA000011; in ArchTskStackInit() 84 context->S18 = 0xAA000012; in ArchTskStackInit() 85 context->S19 = 0xAA000013; in ArchTskStackInit() 86 context->S20 = 0xAA000014; in ArchTskStackInit() 87 context->S21 = 0xAA000015; in ArchTskStackInit() 88 context->S22 = 0xAA000016; in ArchTskStackInit() 89 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/linux/linux-5.10/security/selinux/ss/ |
| D | mls.h | 27 #include "context.h" 31 int mls_compute_context_len(struct policydb *p, struct context *context); 32 void mls_sid_to_context(struct policydb *p, struct context *context, 34 int mls_context_isvalid(struct policydb *p, struct context *c); 41 struct context *context, 45 int mls_from_string(struct policydb *p, char *str, struct context *context, 48 int mls_range_set(struct context *context, struct mls_range *range); 52 struct context *oldc, 53 struct context *newc); 56 struct context *scontext, [all …]
|
| D | mls.c | 34 * security context string representation of `context'. 36 int mls_compute_context_len(struct policydb *p, struct context *context) in mls_compute_context_len() argument 48 int index_sens = context->range.level[l].sens; in mls_compute_context_len() 54 e = &context->range.level[l].cat; in mls_compute_context_len() 73 if (mls_level_eq(&context->range.level[0], in mls_compute_context_len() 74 &context->range.level[1])) in mls_compute_context_len() 85 * Write the security context string representation of 86 * the MLS fields of `context' into the string `*scontext'. 90 struct context *context, in mls_sid_to_context() argument 108 context->range.level[l].sens - 1)); in mls_sid_to_context() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m3/keil/ |
| D | los_context.c | 75 Return : Context pointer 79 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 83 context->S16 = 0xAA000010; in ArchTskStackInit() 84 context->S17 = 0xAA000011; in ArchTskStackInit() 85 context->S18 = 0xAA000012; in ArchTskStackInit() 86 context->S19 = 0xAA000013; in ArchTskStackInit() 87 context->S20 = 0xAA000014; in ArchTskStackInit() 88 context->S21 = 0xAA000015; in ArchTskStackInit() 89 context->S22 = 0xAA000016; in ArchTskStackInit() 90 context->S23 = 0xAA000017; in ArchTskStackInit() [all …]
|
| /kernel/linux/linux-4.19/fs/xfs/ |
| D | xfs_attr_list.c | 57 xfs_attr_shortform_list(xfs_attr_list_context_t *context) in xfs_attr_shortform_list() argument 66 ASSERT(context != NULL); in xfs_attr_shortform_list() 67 dp = context->dp; in xfs_attr_shortform_list() 74 cursor = context->cursor; in xfs_attr_shortform_list() 77 trace_xfs_attr_list_sf(context); in xfs_attr_shortform_list() 88 if (context->bufsize == 0 || in xfs_attr_shortform_list() 90 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list() 92 context->put_listent(context, in xfs_attr_shortform_list() 101 if (context->seen_enough) in xfs_attr_shortform_list() 105 trace_xfs_attr_list_sf_all(context); in xfs_attr_shortform_list() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/ |
| D | etnaviv_mmu.c | 16 static void etnaviv_context_unmap(struct etnaviv_iommu_context *context, in etnaviv_context_unmap() argument 29 unmapped_page = context->global->ops->unmap(context, iova, in etnaviv_context_unmap() 39 static int etnaviv_context_map(struct etnaviv_iommu_context *context, in etnaviv_context_map() argument 55 ret = context->global->ops->map(context, iova, paddr, pgsize, in etnaviv_context_map() 67 etnaviv_context_unmap(context, orig_iova, orig_size - size); in etnaviv_context_map() 72 static int etnaviv_iommu_map(struct etnaviv_iommu_context *context, u32 iova, in etnaviv_iommu_map() argument 79 if (!context || !sgt) in etnaviv_iommu_map() 88 ret = etnaviv_context_map(context, da, pa, bytes, prot); in etnaviv_iommu_map() 98 etnaviv_context_unmap(context, iova, da - iova); in etnaviv_iommu_map() 102 static void etnaviv_iommu_unmap(struct etnaviv_iommu_context *context, u32 iova, in etnaviv_iommu_unmap() argument [all …]
|
| D | etnaviv_iommu.c | 28 to_v1_context(struct etnaviv_iommu_context *context) in to_v1_context() argument 30 return container_of(context, struct etnaviv_iommuv1_context, base); in to_v1_context() 33 static void etnaviv_iommuv1_free(struct etnaviv_iommu_context *context) in etnaviv_iommuv1_free() argument 35 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_free() 37 drm_mm_takedown(&context->mm); in etnaviv_iommuv1_free() 39 dma_free_wc(context->global->dev, PT_SIZE, v1_context->pgtable_cpu, in etnaviv_iommuv1_free() 42 context->global->v1.shared_context = NULL; in etnaviv_iommuv1_free() 47 static int etnaviv_iommuv1_map(struct etnaviv_iommu_context *context, in etnaviv_iommuv1_map() argument 51 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_map() 62 static size_t etnaviv_iommuv1_unmap(struct etnaviv_iommu_context *context, in etnaviv_iommuv1_unmap() argument [all …]
|
| D | etnaviv_iommu_v2.c | 42 to_v2_context(struct etnaviv_iommu_context *context) in to_v2_context() argument 44 return container_of(context, struct etnaviv_iommuv2_context, base); in to_v2_context() 47 static void etnaviv_iommuv2_free(struct etnaviv_iommu_context *context) in etnaviv_iommuv2_free() argument 49 struct etnaviv_iommuv2_context *v2_context = to_v2_context(context); in etnaviv_iommuv2_free() 52 drm_mm_takedown(&context->mm); in etnaviv_iommuv2_free() 56 dma_free_wc(context->global->dev, SZ_4K, in etnaviv_iommuv2_free() 61 dma_free_wc(context->global->dev, SZ_4K, v2_context->mtlb_cpu, in etnaviv_iommuv2_free() 64 clear_bit(v2_context->id, context->global->v2.pta_alloc); in etnaviv_iommuv2_free() 92 static int etnaviv_iommuv2_map(struct etnaviv_iommu_context *context, in etnaviv_iommuv2_map() argument 96 struct etnaviv_iommuv2_context *v2_context = to_v2_context(context); in etnaviv_iommuv2_map() [all …]
|
| /kernel/liteos_m/arch/risc-v/riscv32/gcc/ |
| D | los_context.c | 84 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() local 86 context->mstatus = RISCV_MSTATUS_MPP | RISCV_MSTATUS_MPIE; in ArchTskStackInit() 87 context->mepc = (UINT32)(UINTPTR)OsTaskEntry; in ArchTskStackInit() 88 context->tp = TP_INIT_VALUE; in ArchTskStackInit() 89 context->sp = SP_INIT_VALUE; in ArchTskStackInit() 90 context->s11 = S11_INIT_VALUE; in ArchTskStackInit() 91 context->s10 = S10_INIT_VALUE; in ArchTskStackInit() 92 context->s9 = S9_INIT_VALUE; in ArchTskStackInit() 93 context->s8 = S8_INIT_VALUE; in ArchTskStackInit() 94 context->s7 = S7_INIT_VALUE; in ArchTskStackInit() [all …]
|
| /kernel/linux/linux-5.10/kernel/ |
| D | auditsc.c | 41 * Subject and object context labeling support added by <danjones@us.ibm.com> 228 * it's going to remain 1-element for almost any setup) until we free context itself. 459 /* Determine if any context name data matches a rule's watch data */ 876 static inline void audit_proctitle_free(struct audit_context *context) in audit_proctitle_free() argument 878 kfree(context->proctitle.value); in audit_proctitle_free() 879 context->proctitle.value = NULL; in audit_proctitle_free() 880 context->proctitle.len = 0; in audit_proctitle_free() 883 static inline void audit_free_module(struct audit_context *context) in audit_free_module() argument 885 if (context->type == AUDIT_KERN_MODULE) { in audit_free_module() 886 kfree(context->module.name); in audit_free_module() [all …]
|
| /kernel/linux/linux-4.19/kernel/ |
| D | auditsc.c | 41 * Subject and object context labeling support added by <danjones@us.ibm.com> 199 * it's going to remain 1-element for almost any setup) until we free context itself. 436 /* Determine if any context name data matches a rule's watch data */ 839 /* Transfer the audit context pointer to the caller, clearing it in the tsk's struct */ 844 struct audit_context *context = tsk->audit_context; in audit_take_context() local 846 if (!context) in audit_take_context() 848 context->return_valid = return_valid; in audit_take_context() 864 context->return_code = -EINTR; in audit_take_context() 866 context->return_code = return_code; in audit_take_context() 868 if (context->in_syscall && !context->dummy) { in audit_take_context() [all …]
|
| /kernel/linux/linux-5.10/fs/xfs/ |
| D | xfs_attr_list.c | 53 struct xfs_attr_list_context *context) in xfs_attr_shortform_list() argument 55 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr_shortform_list() 56 struct xfs_inode *dp = context->dp; in xfs_attr_shortform_list() 69 trace_xfs_attr_list_sf(context); in xfs_attr_shortform_list() 80 if (context->bufsize == 0 || in xfs_attr_shortform_list() 82 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list() 84 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr_shortform_list() 88 context->put_listent(context, in xfs_attr_shortform_list() 97 if (context->seen_enough) in xfs_attr_shortform_list() 101 trace_xfs_attr_list_sf_all(context); in xfs_attr_shortform_list() [all …]
|