| /kernel/linux/linux-6.6/tools/tracing/rtla/src/ |
| D | osnoise.c | 24 char *osnoise_get_cpus(struct osnoise_context *context) in osnoise_get_cpus() argument 26 if (context->curr_cpus) in osnoise_get_cpus() 27 return context->curr_cpus; in osnoise_get_cpus() 29 if (context->orig_cpus) in osnoise_get_cpus() 30 return context->orig_cpus; in osnoise_get_cpus() 32 context->orig_cpus = tracefs_instance_file_read(NULL, "osnoise/cpus", NULL); in osnoise_get_cpus() 38 return context->orig_cpus; in osnoise_get_cpus() 48 int osnoise_set_cpus(struct osnoise_context *context, char *cpus) in osnoise_set_cpus() argument 50 char *orig_cpus = osnoise_get_cpus(context); in osnoise_set_cpus() 57 context->curr_cpus = strdup(cpus); in osnoise_set_cpus() [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /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 …]
|
| /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-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-m55/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/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-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-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/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-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-m55/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-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/keil/ |
| 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-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-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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /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-6.6/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() 95 context->flush_seq++; in etnaviv_iommu_map() 100 etnaviv_context_unmap(context, iova, da - iova); in etnaviv_iommu_map() [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 …]
|
| /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-5.10/drivers/gpu/drm/etnaviv/ |
| 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_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 …]
|
| /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 …]
|