| /kernel/linux/linux-4.19/include/linux/ |
| D | tee_drv.h | 44 * @list_shm: List of shared memory object owned by this context 49 * shared memory release. 90 * @shm_register: register shared memory buffer in TEE 91 * @shm_unregister: unregister shared memory buffer in TEE 135 * @pool: Shared memory pool, NULL if not used 170 * struct tee_shm - shared memory object 174 * @paddr: physical address of the shared memory 175 * @kaddr: virtual address of the shared memory 176 * @size: size of shared memory 182 * @id: unique id of a shared memory object on this device [all …]
|
| D | reset.h | 19 const char *id, int index, bool shared, 22 int index, bool shared, 27 const char *id, int index, bool shared, 31 bool shared, bool optional); 33 bool shared, bool optional); 68 const char *id, int index, bool shared, in __of_reset_control_get() argument 76 int index, bool shared, bool optional) in __reset_control_get() argument 83 int index, bool shared, bool optional) in __devm_reset_control_get() argument 89 devm_reset_control_array_get(struct device *dev, bool shared, bool optional) in devm_reset_control_array_get() argument 95 of_reset_control_array_get(struct device_node *np, bool shared, bool optional) in of_reset_control_array_get() argument [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/mfd/ |
| D | axp20x.txt | 80 LDO2 : LDO : ldo24in-supply : shared supply 82 LDO4 : LDO : ldo24in-supply : shared supply 96 ALDO1 : LDO : aldoin-supply : shared supply 97 ALDO2 : LDO : aldoin-supply : shared supply 98 ALDO3 : LDO : aldoin-supply : shared supply 99 DLDO1 : LDO : dldoin-supply : shared supply 100 DLDO2 : LDO : dldoin-supply : shared supply 101 DLDO3 : LDO : dldoin-supply : shared supply 102 DLDO4 : LDO : dldoin-supply : shared supply 103 ELDO1 : LDO : eldoin-supply : shared supply [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
| D | axp20x.txt | 90 LDO2 : LDO : ldo24in-supply : shared supply 92 LDO4 : LDO : ldo24in-supply : shared supply 106 ALDO1 : LDO : aldoin-supply : shared supply 107 ALDO2 : LDO : aldoin-supply : shared supply 108 ALDO3 : LDO : aldoin-supply : shared supply 109 DLDO1 : LDO : dldoin-supply : shared supply 110 DLDO2 : LDO : dldoin-supply : shared supply 111 DLDO3 : LDO : dldoin-supply : shared supply 112 DLDO4 : LDO : dldoin-supply : shared supply 113 ELDO1 : LDO : eldoin-supply : shared supply [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | tee_drv.h | 40 * @list_shm: List of shared memory object owned by this context 45 * shared memory release. 51 * @cap_memref_null: flag indicating if the TEE Client support shared 94 * @shm_register: register shared memory buffer in TEE 95 * @shm_unregister: unregister shared memory buffer in TEE 139 * @pool: Shared memory pool, NULL if not used 190 * struct tee_shm - shared memory object 192 * @paddr: physical address of the shared memory 193 * @kaddr: virtual address of the shared memory 194 * @size: size of shared memory [all …]
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| D | hid-cougar.c | 78 struct cougar_shared *shared; member 121 struct cougar_shared *shared; in cougar_get_shared_data() local 124 list_for_each_entry(shared, &cougar_udev_list, list) { in cougar_get_shared_data() 125 if (hid_compare_device_paths(hdev, shared->dev, '/')) { in cougar_get_shared_data() 126 kref_get(&shared->kref); in cougar_get_shared_data() 127 return shared; in cougar_get_shared_data() 135 struct cougar_shared *shared = container_of(kref, in cougar_release_shared_data() local 139 list_del(&shared->list); in cougar_release_shared_data() 142 kfree(shared); in cougar_release_shared_data() 149 if (cougar->shared) { in cougar_remove_shared_data() [all …]
|
| /kernel/linux/linux-4.19/drivers/hid/ |
| D | hid-cougar.c | 79 struct cougar_shared *shared; member 119 struct cougar_shared *shared; in cougar_get_shared_data() local 122 list_for_each_entry(shared, &cougar_udev_list, list) { in cougar_get_shared_data() 123 if (hid_compare_device_paths(hdev, shared->dev, '/')) { in cougar_get_shared_data() 124 kref_get(&shared->kref); in cougar_get_shared_data() 125 return shared; in cougar_get_shared_data() 133 struct cougar_shared *shared = container_of(kref, in cougar_release_shared_data() local 137 list_del(&shared->list); in cougar_release_shared_data() 140 kfree(shared); in cougar_release_shared_data() 147 if (cougar->shared) { in cougar_remove_shared_data() [all …]
|
| /kernel/linux/linux-5.10/Documentation/filesystems/ |
| D | sharedsubtree.rst | 4 Shared Subtrees 24 that got mounted recently. Shared subtree semantics provide the necessary 33 Shared subtree provides four different flavors of mounts; struct vfsmount to be 36 a. shared mount 42 2a) A shared mount can be replicated to as many mountpoints and all the 47 Let's say /mnt has a mount that is shared:: 49 mount --make-shared /mnt 51 Note: mount(8) command now supports the --make-shared flag, 86 2b) A slave mount is like a shared mount except that mount and umount events 89 All slave mounts have a master mount which is a shared. [all …]
|
| /kernel/linux/linux-4.19/Documentation/filesystems/ |
| D | sharedsubtree.txt | 1 Shared Subtrees 21 that got mounted recently. Shared subtree semantics provide the necessary 30 Shared subtree provides four different flavors of mounts; struct vfsmount to be 33 a. shared mount 39 2a) A shared mount can be replicated to as many mountpoints and all the 44 Let's say /mnt has a mount that is shared. 45 mount --make-shared /mnt 47 Note: mount(8) command now supports the --make-shared flag, 76 2b) A slave mount is like a shared mount except that mount and umount events 79 All slave mounts have a master mount which is a shared. [all …]
|
| /kernel/linux/linux-5.10/mm/ |
| D | interval_tree.c | 23 INTERVAL_TREE_DEFINE(struct vm_area_struct, shared.rb, 24 unsigned long, shared.rb_subtree_last, 38 if (!prev->shared.rb.rb_right) { in vma_interval_tree_insert_after() 40 link = &prev->shared.rb.rb_right; in vma_interval_tree_insert_after() 42 parent = rb_entry(prev->shared.rb.rb_right, in vma_interval_tree_insert_after() 43 struct vm_area_struct, shared.rb); in vma_interval_tree_insert_after() 44 if (parent->shared.rb_subtree_last < last) in vma_interval_tree_insert_after() 45 parent->shared.rb_subtree_last = last; in vma_interval_tree_insert_after() 46 while (parent->shared.rb.rb_left) { in vma_interval_tree_insert_after() 47 parent = rb_entry(parent->shared.rb.rb_left, in vma_interval_tree_insert_after() [all …]
|
| /kernel/linux/linux-4.19/mm/ |
| D | interval_tree.c | 24 INTERVAL_TREE_DEFINE(struct vm_area_struct, shared.rb, 25 unsigned long, shared.rb_subtree_last, 39 if (!prev->shared.rb.rb_right) { in vma_interval_tree_insert_after() 41 link = &prev->shared.rb.rb_right; in vma_interval_tree_insert_after() 43 parent = rb_entry(prev->shared.rb.rb_right, in vma_interval_tree_insert_after() 44 struct vm_area_struct, shared.rb); in vma_interval_tree_insert_after() 45 if (parent->shared.rb_subtree_last < last) in vma_interval_tree_insert_after() 46 parent->shared.rb_subtree_last = last; in vma_interval_tree_insert_after() 47 while (parent->shared.rb.rb_left) { in vma_interval_tree_insert_after() 48 parent = rb_entry(parent->shared.rb.rb_left, in vma_interval_tree_insert_after() [all …]
|
| /kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
| D | process_test_042.cpp | 40 int *shared = (int *)shmat(shmid, nullptr, 0); in Child2() local 41 ICUNIT_ASSERT_NOT_EQUAL_VOID(shared, (void *)-1, shared); in Child2() 43 while ((*shared) < (TEST_LOOP + 2)) { // 2, Set the cycle number. in Child2() 44 ICUNIT_ASSERT_EQUAL_VOID(*shared, count, *shared); in Child2() 45 (*shared)++; in Child2() 57 int *shared = (int *)shmat(shmid, nullptr, 0); in Child1() local 58 ICUNIT_ASSERT_NOT_EQUAL_VOID(shared, (void *)-1, shared); in Child1() 60 while ((*shared) < (TEST_LOOP + 1)) { in Child1() 61 ICUNIT_ASSERT_EQUAL_VOID(*shared, count, *shared); in Child1() 62 (*shared)++; in Child1() [all …]
|
| /kernel/linux/linux-4.19/drivers/dma-buf/ |
| D | reservation.c | 41 * The reservation object provides a mechanism to manage shared and 44 * write operations) or N shared fences (read operations). The RCU 59 * reservation_object_reserve_shared - Reserve space to add a shared 91 fobj = krealloc(obj->staged, offsetof(typeof(*fobj), shared[max]), in reservation_object_reserve_shared() 118 old_fence = rcu_dereference_protected(fobj->shared[i], in reservation_object_add_shared_inplace() 123 RCU_INIT_POINTER(fobj->shared[i], fence); in reservation_object_add_shared_inplace() 142 RCU_INIT_POINTER(fobj->shared[signaled_idx], fence); in reservation_object_add_shared_inplace() 145 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); in reservation_object_add_shared_inplace() 166 RCU_INIT_POINTER(fobj->shared[0], fence); in reservation_object_add_shared_replace() 180 check = rcu_dereference_protected(old->shared[i], in reservation_object_add_shared_replace() [all …]
|
| /kernel/linux/linux-5.10/drivers/dma-buf/ |
| D | dma-resv.c | 44 * The reservation object provides a mechanism to manage shared and 47 * write operations) or N shared fences (read operations). The RCU 66 list = kmalloc(offsetof(typeof(*list), shared[shared_max]), GFP_KERNEL); in dma_resv_list_alloc() 70 list->shared_max = (ksize(list) - offsetof(typeof(*list), shared)) / in dma_resv_list_alloc() 71 sizeof(*list->shared); in dma_resv_list_alloc() 90 dma_fence_put(rcu_dereference_protected(list->shared[i], true)); in dma_resv_list_free() 176 * dma_resv_reserve_shared - Reserve space to add shared fences to 219 fence = rcu_dereference_protected(old->shared[i], in dma_resv_reserve_shared() 222 RCU_INIT_POINTER(new->shared[--k], fence); in dma_resv_reserve_shared() 224 RCU_INIT_POINTER(new->shared[j++], fence); in dma_resv_reserve_shared() [all …]
|
| /kernel/linux/linux-5.10/drivers/md/ |
| D | dm-stats.c | 185 static int dm_stat_in_flight(struct dm_stat_shared *shared) in dm_stat_in_flight() argument 187 return atomic_read(&shared->in_flight[READ]) + in dm_stat_in_flight() 188 atomic_read(&shared->in_flight[WRITE]); in dm_stat_in_flight() 210 struct dm_stat_shared *shared; in dm_stats_cleanup() local 216 shared = &s->stat_shared[ni]; in dm_stats_cleanup() 217 if (WARN_ON(dm_stat_in_flight(shared))) { in dm_stats_cleanup() 224 atomic_read(&shared->in_flight[READ]), in dm_stats_cleanup() 225 atomic_read(&shared->in_flight[WRITE])); in dm_stats_cleanup() 483 static void dm_stat_round(struct dm_stat *s, struct dm_stat_shared *shared, in dm_stat_round() argument 497 difference = now - shared->stamp; in dm_stat_round() [all …]
|
| /kernel/linux/linux-4.19/drivers/md/ |
| D | dm-stats.c | 185 static int dm_stat_in_flight(struct dm_stat_shared *shared) in dm_stat_in_flight() argument 187 return atomic_read(&shared->in_flight[READ]) + in dm_stat_in_flight() 188 atomic_read(&shared->in_flight[WRITE]); in dm_stat_in_flight() 210 struct dm_stat_shared *shared; in dm_stats_cleanup() local 216 shared = &s->stat_shared[ni]; in dm_stats_cleanup() 217 if (WARN_ON(dm_stat_in_flight(shared))) { in dm_stats_cleanup() 224 atomic_read(&shared->in_flight[READ]), in dm_stats_cleanup() 225 atomic_read(&shared->in_flight[WRITE])); in dm_stats_cleanup() 483 static void dm_stat_round(struct dm_stat *s, struct dm_stat_shared *shared, in dm_stat_round() argument 497 difference = now - shared->stamp; in dm_stat_round() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/kvm/ |
| D | e500_mmu.c | 71 esel += gtlb0_set_base(vcpu_e500, vcpu->arch.shared->mas2); in get_tlb_esel() 134 tlbsel = (vcpu->arch.shared->mas4 >> 28) & 0x1; in kvmppc_e500_deliver_tlb_miss() 136 tsized = (vcpu->arch.shared->mas4 >> 7) & 0x1f; in kvmppc_e500_deliver_tlb_miss() 138 vcpu->arch.shared->mas0 = MAS0_TLBSEL(tlbsel) | MAS0_ESEL(victim) in kvmppc_e500_deliver_tlb_miss() 140 vcpu->arch.shared->mas1 = MAS1_VALID | (as ? MAS1_TS : 0) in kvmppc_e500_deliver_tlb_miss() 143 vcpu->arch.shared->mas2 = (eaddr & MAS2_EPN) in kvmppc_e500_deliver_tlb_miss() 144 | (vcpu->arch.shared->mas4 & MAS2_ATTRIB_MASK); in kvmppc_e500_deliver_tlb_miss() 145 vcpu->arch.shared->mas7_3 &= MAS3_U0 | MAS3_U1 | MAS3_U2 | MAS3_U3; in kvmppc_e500_deliver_tlb_miss() 146 vcpu->arch.shared->mas6 = (vcpu->arch.shared->mas6 & MAS6_SPID1) in kvmppc_e500_deliver_tlb_miss() 332 vcpu->arch.shared->mas0 &= ~MAS0_NV(~0); in kvmppc_e500_emul_tlbre() [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/kvm/ |
| D | e500_mmu.c | 74 esel += gtlb0_set_base(vcpu_e500, vcpu->arch.shared->mas2); in get_tlb_esel() 137 tlbsel = (vcpu->arch.shared->mas4 >> 28) & 0x1; in kvmppc_e500_deliver_tlb_miss() 139 tsized = (vcpu->arch.shared->mas4 >> 7) & 0x1f; in kvmppc_e500_deliver_tlb_miss() 141 vcpu->arch.shared->mas0 = MAS0_TLBSEL(tlbsel) | MAS0_ESEL(victim) in kvmppc_e500_deliver_tlb_miss() 143 vcpu->arch.shared->mas1 = MAS1_VALID | (as ? MAS1_TS : 0) in kvmppc_e500_deliver_tlb_miss() 146 vcpu->arch.shared->mas2 = (eaddr & MAS2_EPN) in kvmppc_e500_deliver_tlb_miss() 147 | (vcpu->arch.shared->mas4 & MAS2_ATTRIB_MASK); in kvmppc_e500_deliver_tlb_miss() 148 vcpu->arch.shared->mas7_3 &= MAS3_U0 | MAS3_U1 | MAS3_U2 | MAS3_U3; in kvmppc_e500_deliver_tlb_miss() 149 vcpu->arch.shared->mas6 = (vcpu->arch.shared->mas6 & MAS6_SPID1) in kvmppc_e500_deliver_tlb_miss() 335 vcpu->arch.shared->mas0 &= ~MAS0_NV(~0); in kvmppc_e500_emul_tlbre() [all …]
|
| /kernel/linux/linux-4.19/Documentation/admin-guide/mm/ |
| D | numa_memory_policy.rst | 102 * VMA policies are shared between all tasks that share a 124 Shared Policy 125 Conceptually, shared policies apply to "memory objects" mapped 126 shared into one or more tasks' distinct address spaces. An 127 application installs shared policies the same way as VMA 129 virtual addresses that map the shared object. However, unlike 131 range of a task's address space, shared policies apply 132 directly to the shared object. Thus, all tasks that attach to 134 shared object, by any task, will obey the shared policy. 136 As of 2.6.22, only shared memory segments, created by shmget() or [all …]
|
| /kernel/linux/linux-5.10/Documentation/admin-guide/mm/ |
| D | numa_memory_policy.rst | 102 * VMA policies are shared between all tasks that share a 124 Shared Policy 125 Conceptually, shared policies apply to "memory objects" mapped 126 shared into one or more tasks' distinct address spaces. An 127 application installs shared policies the same way as VMA 129 virtual addresses that map the shared object. However, unlike 131 range of a task's address space, shared policies apply 132 directly to the shared object. Thus, all tasks that attach to 134 shared object, by any task, will obey the shared policy. 136 As of 2.6.22, only shared memory segments, created by shmget() or [all …]
|
| /kernel/linux/linux-4.19/drivers/soc/qcom/ |
| D | Kconfig | 11 Command DB queries shared memory by key string for shared system 12 resources. Platform drivers that require to set state of a shared 14 SoC specific identifier and information for the shared resources. 89 and exposing regions of shared memory with remote processors for the 101 internal bus to transmit state requests for shared resources. A set 106 tristate "Qualcomm Shared Memory Manager (SMEM)" 110 Say y here to enable support for the Qualcomm Shared Memory Manager. 111 The driver provides an interface to items in a heap shared among all 133 tristate "Qualcomm Shared Memory Point to Point support" 138 Say yes here to support the Qualcomm Shared Memory Point to Point [all …]
|
| /kernel/linux/linux-4.19/include/uapi/linux/ |
| D | tee.h | 45 /* Flags relating to shared memory */ 47 #define TEE_IOCTL_SHM_DMA_BUF 0x2 /* dma-buf handle on shared memory */ 53 #define TEE_GEN_CAP_REG_MEM (1 << 2)/* Supports registering shared memory */ 91 * struct tee_ioctl_shm_alloc_data - Shared memory allocate argument 92 * @size: [in/out] Size of shared memory to allocate 94 * @id: [out] Identifier of the shared memory 107 * TEE_IOC_SHM_ALLOC - allocate shared memory 109 * Allocates shared memory between the user space process and secure OS. 113 * The returned file descriptor is used to map the shared memory into user 114 * space. The shared memory is freed when the descriptor is closed and the [all …]
|
| /kernel/liteos_m/testsuites/sample/kernel/dynlink/lib/ |
| D | Makefile | 58 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)athmtc.c -o $(CASE)athmtc.so 59 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)bss.c -o $(CASE)bss.so 60 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)initfini.c -o $(CASE)align10000.so 61 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)static.c -o $(CASE)static.so 62 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)sym.c -o $(CASE)sym.so 63 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)undfunc.c -o $(CASE)undfunc.so 64 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)undval.c -o $(CASE)undval.so 65 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)xxxxx.c -o $(CASE)xxxxx.so 68 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(ALIGN_CFLAGS) $(CASE)initfini.c -o $(AGCASE)align4.so 69 …$(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(INIT_FINI_CFLAGS) $(CASE)initfini.c -o $(AGCASE)init_fi… [all …]
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/ |
| D | pxa3xx-gcu.c | 88 struct pxa3xx_gcu_shared *shared; member 118 struct pxa3xx_gcu_shared *shared = priv->shared; \ 132 shared->hw_running ? "running" : " idle", \ 153 memset(priv->shared, 0, SHARED_SIZE); in pxa3xx_gcu_reset() 154 priv->shared->buffer_phys = priv->shared_phys; in pxa3xx_gcu_reset() 155 priv->shared->magic = PXA3XX_GCU_SHARED_MAGIC; in pxa3xx_gcu_reset() 171 struct pxa3xx_gcu_shared *sh = priv->shared; in dump_whole_state() 207 struct pxa3xx_gcu_shared *shared = priv->shared; in run_ready() local 214 shared->buffer[num++] = 0x05000000; in run_ready() 217 shared->buffer[num++] = 0x00000001; in run_ready() [all …]
|
| /kernel/liteos_a/testsuites/unittest/basic/mem/shm/smoke/ |
| D | shm_test_011.cpp | 37 int *shared = NULL; in Testcase() local 47 shared = (int *)shmat(shmid, NULL, 0); in Testcase() 48 if (shared == (int *)-1) { in Testcase() 51 *shared = 2; in Testcase() 52 ret = shmdt(shared); in Testcase() 57 shared = (int *)shmat(shmid, NULL, 0); in Testcase() 58 ICUNIT_ASSERT_NOT_EQUAL(shared, (int *)-1, shared); in Testcase() 60 ICUNIT_ASSERT_EQUAL(*shared, 2, *shared); in Testcase() 62 ret = shmdt(shared); in Testcase()
|