Home
last modified time | relevance | path

Searched refs:shared (Results 1 – 25 of 980) sorted by relevance

12345678910>>...40

/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
Dprocess_test_042.cpp40 int *shared = (int *)shmat(shmid, nullptr, 0); in Child2() local
41 ICUNIT_ASSERT_NOT_EQUAL_VOID(shared, reinterpret_cast<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, reinterpret_cast<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-5.10/drivers/hid/
Dhid-cougar.c78 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-5.10/mm/
Dinterval_tree.c23 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/liteos_a/testsuites/unittest/basic/mem/shm/smoke/
Dshm_test_011.cpp37 int *shared = NULL; in Testcase() local
47 shared = (int *)shmat(shmid, NULL, 0); in Testcase()
48 if (shared == reinterpret_cast<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, reinterpret_cast<int *>(-1), shared); in Testcase()
60 ICUNIT_ASSERT_EQUAL(*shared, 2, *shared); in Testcase()
62 ret = shmdt(shared); in Testcase()
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
Dshm_test_006.cpp38 void *shared = NULL; in Testcase() local
44 shared = shmat(shmid, 0, 0); in Testcase()
45 ICUNIT_ASSERT_NOT_EQUAL(shared, reinterpret_cast<void *>(-1), shared); in Testcase()
47 ret = shmdt(shared); in Testcase()
50 remap = shared; in Testcase()
51 shared = shmat(shmid, remap, SHM_REMAP); in Testcase()
52 ICUNIT_ASSERT_NOT_EQUAL(shared, reinterpret_cast<void *>(-1), shared); in Testcase()
54 ret = shmdt(shared); in Testcase()
Dshm_test_007.cpp38 char *shared = NULL; in Testcase() local
50 if ((shared = static_cast<char *>(shmat(shmid, 0, 0))) == reinterpret_cast<void *>(-1)) { in Testcase()
55 if (strncmp(shared, testStr, sizeof(testStr)) != 0) { in Testcase()
56 printf("child : error strncmp() shared = %s\n", shared); in Testcase()
60 if ((shmdt(shared)) < 0) { in Testcase()
75 shared = static_cast<char *>(shmat(shmid, 0, 0)); in Testcase()
76 ICUNIT_ASSERT_NOT_EQUAL(shared, reinterpret_cast<void *>(-1), shared); in Testcase()
78 ret = strncpy_s(shared, memSize, testStr, sizeof(testStr)); in Testcase()
80 ret = shmdt(shared); in Testcase()
Dshm_test_008.cpp39 void *shared = NULL; in Testcase() local
44 shared = shmat(shmid, 0, 0); in Testcase()
45 ICUNIT_ASSERT_EQUAL(shared, reinterpret_cast<void *>(-1), shared); in Testcase()
48 shared = shmat(shmid, 0, SHM_RDONLY); in Testcase()
49 ICUNIT_ASSERT_NOT_EQUAL(shared, reinterpret_cast<void *>(-1), shared); in Testcase()
51 ret = shmdt(shared); in Testcase()
Dshm_test_001.cpp45 struct shared_use_st *shared = nullptr; in ShmReadFunc() local
57 shared = (struct shared_use_st *)shm; in ShmReadFunc()
59 if (shared->written == 1) { in ShmReadFunc()
60 printf("You wrote: %s\n", shared->text); in ShmReadFunc()
63 shared->written = 0; in ShmReadFunc()
64 if (strncmp(shared->text, "end", 3) == 0) { in ShmReadFunc()
85 struct shared_use_st *shared = nullptr; in ShmWriteFunc() local
99 shared = (struct shared_use_st *)shm; in ShmWriteFunc()
101 while (shared->written == 1) { in ShmWriteFunc()
113 (void)strncpy_s(shared->text, TEXT_SZ, buffer, TEXT_SZ - 1); in ShmWriteFunc()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Daxp20x.txt90 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/drivers/md/
Ddm-stats.c185 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()
488 static void dm_stat_round(struct dm_stat *s, struct dm_stat_shared *shared, in dm_stat_round() argument
502 difference = now - shared->stamp; in dm_stat_round()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dpxa3xx-gcu.c88 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/linux/linux-5.10/arch/powerpc/kvm/
De500_mmu.c71 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 …]
De500_emulate.c75 int cpir = cvcpu->arch.shared->pir; in kvmppc_e500_emul_msgsnd()
225 vcpu->arch.shared->mas0 = spr_val; in kvmppc_core_emulate_mtspr_e500()
228 vcpu->arch.shared->mas1 = spr_val; in kvmppc_core_emulate_mtspr_e500()
231 vcpu->arch.shared->mas2 = spr_val; in kvmppc_core_emulate_mtspr_e500()
234 vcpu->arch.shared->mas7_3 &= ~(u64)0xffffffff; in kvmppc_core_emulate_mtspr_e500()
235 vcpu->arch.shared->mas7_3 |= spr_val; in kvmppc_core_emulate_mtspr_e500()
238 vcpu->arch.shared->mas4 = spr_val; in kvmppc_core_emulate_mtspr_e500()
241 vcpu->arch.shared->mas6 = spr_val; in kvmppc_core_emulate_mtspr_e500()
244 vcpu->arch.shared->mas7_3 &= (u64)0xffffffff; in kvmppc_core_emulate_mtspr_e500()
245 vcpu->arch.shared->mas7_3 |= (u64)spr_val << 32; in kvmppc_core_emulate_mtspr_e500()
[all …]
De500mc.c130 mtspr(SPRN_GSPRG0, (unsigned long)vcpu->arch.shared->sprg0); in kvmppc_core_vcpu_load_e500mc()
131 mtspr(SPRN_GSPRG1, (unsigned long)vcpu->arch.shared->sprg1); in kvmppc_core_vcpu_load_e500mc()
132 mtspr(SPRN_GSPRG2, (unsigned long)vcpu->arch.shared->sprg2); in kvmppc_core_vcpu_load_e500mc()
133 mtspr(SPRN_GSPRG3, (unsigned long)vcpu->arch.shared->sprg3); in kvmppc_core_vcpu_load_e500mc()
135 mtspr(SPRN_GSRR0, vcpu->arch.shared->srr0); in kvmppc_core_vcpu_load_e500mc()
136 mtspr(SPRN_GSRR1, vcpu->arch.shared->srr1); in kvmppc_core_vcpu_load_e500mc()
139 mtspr(SPRN_GDEAR, vcpu->arch.shared->dar); in kvmppc_core_vcpu_load_e500mc()
140 mtspr(SPRN_GESR, vcpu->arch.shared->esr); in kvmppc_core_vcpu_load_e500mc()
154 vcpu->arch.shared->sprg0 = mfspr(SPRN_GSPRG0); in kvmppc_core_vcpu_put_e500mc()
155 vcpu->arch.shared->sprg1 = mfspr(SPRN_GSPRG1); in kvmppc_core_vcpu_put_e500mc()
[all …]
/kernel/liteos_m/testsuites/sample/kernel/dynlink/lib/
DMakefile58 $(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/net/ipa/
Dipa_uc.c127 struct ipa_uc_mem_area *shared = ipa_uc_shared(ipa); in ipa_uc_event_handler() local
130 if (shared->event == IPA_UC_EVENT_ERROR) in ipa_uc_event_handler()
134 shared->event); in ipa_uc_event_handler()
140 struct ipa_uc_mem_area *shared = ipa_uc_shared(ipa); in ipa_uc_response_hdlr() local
150 switch (shared->response) { in ipa_uc_response_hdlr()
158 shared->response); in ipa_uc_response_hdlr()
193 struct ipa_uc_mem_area *shared = ipa_uc_shared(ipa); in send_uc_command() local
195 shared->command = command; in send_uc_command()
196 shared->command_param = cpu_to_le32(command_param); in send_uc_command()
197 shared->command_param_hi = 0; in send_uc_command()
[all …]
/kernel/linux/linux-5.10/drivers/dma-buf/
Ddma-resv.c66 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()
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()
245 fence = rcu_dereference_protected(new->shared[i], in dma_resv_reserve_shared()
280 old = rcu_dereference_protected(fobj->shared[i], in dma_resv_add_shared_fence()
292 RCU_INIT_POINTER(fobj->shared[i], fence); in dma_resv_add_shared_fence()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/tegra/
Dsoctherm-fuse.c74 struct tsensor_shared_calib *shared) in tegra_calc_shared_calib() argument
84 shared->base_cp = (val & tfuse->fuse_base_cp_mask) >> in tegra_calc_shared_calib()
86 shared->base_ft = (val & tfuse->fuse_base_ft_mask) >> in tegra_calc_shared_calib()
101 shared->actual_temp_cp = 2 * NOMINAL_CALIB_CP + shifted_cp; in tegra_calc_shared_calib()
102 shared->actual_temp_ft = 2 * NOMINAL_CALIB_FT + shifted_ft; in tegra_calc_shared_calib()
108 const struct tsensor_shared_calib *shared, in tegra_calc_tsensor_calib() argument
126 actual_tsensor_cp = (shared->base_cp * 64) + sign_extend32(val, 12); in tegra_calc_tsensor_calib()
129 actual_tsensor_ft = (shared->base_ft * 32) + sign_extend32(val, 12); in tegra_calc_tsensor_calib()
132 delta_temp = shared->actual_temp_ft - shared->actual_temp_cp; in tegra_calc_tsensor_calib()
140 temp = ((s64)actual_tsensor_ft * shared->actual_temp_cp) - in tegra_calc_tsensor_calib()
[all …]
/kernel/linux/linux-5.10/arch/x86/xen/
Dgrant-table.c35 void *shared = *__shared; in arch_gnttab_map_shared() local
39 if (shared == NULL) in arch_gnttab_map_shared()
40 *__shared = shared = gnttab_shared_vm_area.area->addr; in arch_gnttab_map_shared()
42 addr = (unsigned long)shared; in arch_gnttab_map_shared()
57 grant_status_t *shared = *__shared; in arch_gnttab_map_status() local
61 if (shared == NULL) in arch_gnttab_map_status()
62 *__shared = shared = gnttab_status_vm_area.area->addr; in arch_gnttab_map_status()
64 addr = (unsigned long)shared; in arch_gnttab_map_status()
75 void arch_gnttab_unmap(void *shared, unsigned long nr_gframes) in arch_gnttab_unmap() argument
81 if (shared == gnttab_status_vm_area.area->addr) in arch_gnttab_unmap()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_wait.c42 struct dma_fence **shared; in i915_gem_object_wait_reservation() local
47 &excl, &count, &shared); in i915_gem_object_wait_reservation()
52 timeout = i915_gem_object_wait_fence(shared[i], in i915_gem_object_wait_reservation()
57 dma_fence_put(shared[i]); in i915_gem_object_wait_reservation()
61 dma_fence_put(shared[i]); in i915_gem_object_wait_reservation()
62 kfree(shared); in i915_gem_object_wait_reservation()
139 struct dma_fence **shared; in i915_gem_object_wait_priority() local
144 &excl, &count, &shared); in i915_gem_object_wait_priority()
149 fence_set_priority(shared[i], attr); in i915_gem_object_wait_priority()
150 dma_fence_put(shared[i]); in i915_gem_object_wait_priority()
[all …]
/kernel/linux/linux-5.10/Documentation/filesystems/
Dsharedsubtree.rst36 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.
93 Let's say /mnt has a mount which is shared.
94 # mount --make-shared /mnt
99 the new mount at /tmp becomes a shared mount and it is a replica of
[all …]
/kernel/linux/linux-5.10/drivers/mtd/lpddr/
Dlpddr_cmds.c38 struct flchip_shared *shared; in lpddr_cmdset() local
68 shared = kmalloc_array(lpddr->numchips, sizeof(struct flchip_shared), in lpddr_cmdset()
70 if (!shared) { in lpddr_cmdset()
78 shared[i].writing = shared[i].erasing = NULL; in lpddr_cmdset()
79 mutex_init(&shared[i].lock); in lpddr_cmdset()
84 chip->priv = &shared[i]; in lpddr_cmdset()
224 struct flchip_shared *shared = chip->priv; in get_chip() local
226 mutex_lock(&shared->lock); in get_chip()
227 contender = shared->writing; in get_chip()
239 mutex_unlock(&shared->lock); in get_chip()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpcie.c262 struct brcmf_pcie_shared_info shared; member
629 struct brcmf_pcie_shared_info *shared; in brcmf_pcie_send_mb_data() local
635 shared = &devinfo->shared; in brcmf_pcie_send_mb_data()
636 addr = shared->htod_mb_data_addr; in brcmf_pcie_send_mb_data()
666 struct brcmf_pcie_shared_info *shared; in brcmf_pcie_handle_mb_data() local
670 shared = &devinfo->shared; in brcmf_pcie_handle_mb_data()
671 addr = shared->dtoh_mb_data_addr; in brcmf_pcie_handle_mb_data()
701 struct brcmf_pcie_shared_info *shared; in brcmf_pcie_bus_console_init() local
705 shared = &devinfo->shared; in brcmf_pcie_bus_console_init()
706 console = &shared->console; in brcmf_pcie_bus_console_init()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/via/
Daccel.c308 u32 chip_name = viapar->shared->chip_info.gfx_chip_name; in viafb_setup_engine()
310 engine = viapar->shared->vdev->engine_mmio; in viafb_setup_engine()
328 viapar->shared->hw_bitblt = hw_bitblt_1; in viafb_setup_engine()
333 viapar->shared->hw_bitblt = hw_bitblt_2; in viafb_setup_engine()
336 viapar->shared->hw_bitblt = NULL; in viafb_setup_engine()
340 viapar->shared->cursor_vram_addr = viapar->fbmem_free; in viafb_setup_engine()
344 viapar->shared->vq_vram_addr = viapar->fbmem_free; in viafb_setup_engine()
357 viapar->shared->vdev->camera_fbmem_size = 3*VGA_HEIGHT*VGA_WIDTH*2; in viafb_setup_engine()
358 viapar->fbmem_free -= viapar->shared->vdev->camera_fbmem_size; in viafb_setup_engine()
359 viapar->fbmem_used += viapar->shared->vdev->camera_fbmem_size; in viafb_setup_engine()
[all …]
/kernel/linux/linux-5.10/drivers/reset/
Dcore.c47 bool shared; member
309 if (rstc->shared) { in reset_control_reset()
321 if (rstc->shared && ret) in reset_control_reset()
355 if (rstc->shared) { in reset_control_assert()
413 if (rstc->shared) { in reset_control_deassert()
542 unsigned int index, bool shared, bool acquired) in __reset_control_get_internal() argument
555 if (!rstc->shared && !shared && !acquired) in __reset_control_get_internal()
558 if (WARN_ON(!rstc->shared || !shared)) in __reset_control_get_internal()
580 rstc->shared = shared; in __reset_control_get_internal()
606 const char *id, int index, bool shared, in __of_reset_control_get() argument
[all …]

12345678910>>...40