Home
last modified time | relevance | path

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

12345678910>>...41

/linux/drivers/hid/
H A 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 …]
/linux/drivers/media/platform/amphion/
H A Dvpu_malone.h10 void vpu_malone_init_rpc(struct vpu_shared_addr *shared,
12 void vpu_malone_set_log_buf(struct vpu_shared_addr *shared,
14 void vpu_malone_set_system_cfg(struct vpu_shared_addr *shared,
16 u32 vpu_malone_get_version(struct vpu_shared_addr *shared);
17 int vpu_malone_get_stream_buffer_size(struct vpu_shared_addr *shared);
18 int vpu_malone_config_stream_buffer(struct vpu_shared_addr *shared,
20 int vpu_malone_get_stream_buffer_desc(struct vpu_shared_addr *shared,
23 int vpu_malone_update_stream_buffer(struct vpu_shared_addr *shared,
25 int vpu_malone_set_decode_params(struct vpu_shared_addr *shared,
31 int vpu_malone_add_scode(struct vpu_shared_addr *shared,
[all …]
H A Dvpu_windsor.h10 void vpu_windsor_init_rpc(struct vpu_shared_addr *shared,
12 void vpu_windsor_set_log_buf(struct vpu_shared_addr *shared, struct vpu_buffer *log);
13 void vpu_windsor_set_system_cfg(struct vpu_shared_addr *shared,
15 int vpu_windsor_get_stream_buffer_size(struct vpu_shared_addr *shared);
19 int vpu_windsor_config_memory_resource(struct vpu_shared_addr *shared,
22 int vpu_windsor_config_stream_buffer(struct vpu_shared_addr *shared,
24 int vpu_windsor_update_stream_buffer(struct vpu_shared_addr *shared,
26 int vpu_windsor_get_stream_buffer_desc(struct vpu_shared_addr *shared,
28 u32 vpu_windsor_get_version(struct vpu_shared_addr *shared);
29 int vpu_windsor_set_encode_params(struct vpu_shared_addr *shared,
[all …]
H A Dvpu_windsor.c510 static struct vpu_enc_yuv_desc *get_yuv_desc(struct vpu_shared_addr *shared, in get_yuv_desc() argument
513 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_yuv_desc()
518 static struct vpu_enc_mem_pool *get_mem_pool(struct vpu_shared_addr *shared, in get_mem_pool() argument
521 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_mem_pool()
526 static struct vpu_rpc_buffer_desc *get_stream_buf_desc(struct vpu_shared_addr *shared, in get_stream_buf_desc() argument
529 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_stream_buf_desc()
534 static struct vpu_enc_expert_mode_param *get_expert_param(struct vpu_shared_addr *shared, in get_expert_param() argument
537 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_expert_param()
542 static struct vpu_enc_param *get_enc_param(struct vpu_shared_addr *shared, u32 instance) in get_enc_param() argument
544 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_enc_param()
[all …]
H A Dvpu_rpc.h52 void (*init_rpc)(struct vpu_shared_addr *shared,
54 void (*set_log_buf)(struct vpu_shared_addr *shared,
56 void (*set_system_cfg)(struct vpu_shared_addr *shared,
58 void (*set_stream_cfg)(struct vpu_shared_addr *shared, u32 index);
59 u32 (*get_version)(struct vpu_shared_addr *shared);
60 u32 (*get_max_instance_count)(struct vpu_shared_addr *shared);
61 int (*get_stream_buffer_size)(struct vpu_shared_addr *shared);
62 int (*send_cmd_buf)(struct vpu_shared_addr *shared,
64 int (*receive_msg_buf)(struct vpu_shared_addr *shared,
69 int (*input_frame)(struct vpu_shared_addr *shared,
[all …]
H A Dvpu_rpc.c56 static int vpu_rpc_send_cmd_buf(struct vpu_shared_addr *shared, struct vpu_rpc_event *cmd) in vpu_rpc_send_cmd_buf() argument
66 desc = shared->cmd_desc; in vpu_rpc_send_cmd_buf()
71 data = (u32 *)(shared->cmd_mem_vir + desc->wptr - desc->start); in vpu_rpc_send_cmd_buf()
80 data = shared->cmd_mem_vir; in vpu_rpc_send_cmd_buf()
89 data = shared->cmd_mem_vir; in vpu_rpc_send_cmd_buf()
100 static bool vpu_rpc_check_msg(struct vpu_shared_addr *shared) in vpu_rpc_check_msg() argument
107 desc = shared->msg_desc; in vpu_rpc_check_msg()
112 msgword = *(u32 *)(shared->msg_mem_vir + desc->rptr - desc->start); in vpu_rpc_check_msg()
121 static int vpu_rpc_receive_msg_buf(struct vpu_shared_addr *shared, struct vpu_rpc_event *msg) in vpu_rpc_receive_msg_buf() argument
129 if (!vpu_rpc_check_msg(shared)) in vpu_rpc_receive_msg_buf()
[all …]
H A Dvpu_malone.c340 void vpu_malone_init_rpc(struct vpu_shared_addr *shared, in vpu_malone_init_rpc() argument
355 hc = shared->priv; in vpu_malone_init_rpc()
357 shared->iface = iface; in vpu_malone_init_rpc()
358 shared->boot_addr = boot_addr; in vpu_malone_init_rpc()
366 shared->cmd_desc = &iface->cmd_buffer_desc.buffer; in vpu_malone_init_rpc()
367 shared->cmd_mem_vir = rpc->virt + offset; in vpu_malone_init_rpc()
375 shared->msg_desc = &iface->msg_buffer_desc.buffer; in vpu_malone_init_rpc()
376 shared->msg_mem_vir = rpc->virt + offset; in vpu_malone_init_rpc()
439 void vpu_malone_set_log_buf(struct vpu_shared_addr *shared, in vpu_malone_set_log_buf() argument
442 struct malone_iface *iface = shared->iface; in vpu_malone_set_log_buf()
[all …]
/linux/mm/
H A 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 …]
/linux/drivers/md/
H A Ddm-stats.c188 static int dm_stat_in_flight(struct dm_stat_shared *shared) in dm_stat_in_flight() argument
190 return atomic_read(&shared->in_flight[READ]) + in dm_stat_in_flight()
191 atomic_read(&shared->in_flight[WRITE]); in dm_stat_in_flight()
219 struct dm_stat_shared *shared; in dm_stats_cleanup() local
225 shared = &s->stat_shared[ni]; in dm_stats_cleanup()
226 if (WARN_ON(dm_stat_in_flight(shared))) { in dm_stats_cleanup()
233 atomic_read(&shared->in_flight[READ]), in dm_stats_cleanup()
234 atomic_read(&shared->in_flight[WRITE])); in dm_stats_cleanup()
531 static void dm_stat_round(struct dm_stat *s, struct dm_stat_shared *shared, in dm_stat_round() argument
545 difference = now - shared->stamp; in dm_stat_round()
[all …]
/linux/arch/powerpc/kvm/
H A 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 …]
H A 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 …]
H A De500mc.c135 mtspr(SPRN_GSPRG0, (unsigned long)vcpu->arch.shared->sprg0); in kvmppc_core_vcpu_load_e500mc()
136 mtspr(SPRN_GSPRG1, (unsigned long)vcpu->arch.shared->sprg1); in kvmppc_core_vcpu_load_e500mc()
137 mtspr(SPRN_GSPRG2, (unsigned long)vcpu->arch.shared->sprg2); in kvmppc_core_vcpu_load_e500mc()
138 mtspr(SPRN_GSPRG3, (unsigned long)vcpu->arch.shared->sprg3); in kvmppc_core_vcpu_load_e500mc()
140 mtspr(SPRN_GSRR0, vcpu->arch.shared->srr0); in kvmppc_core_vcpu_load_e500mc()
141 mtspr(SPRN_GSRR1, vcpu->arch.shared->srr1); in kvmppc_core_vcpu_load_e500mc()
144 mtspr(SPRN_GDEAR, vcpu->arch.shared->dar); in kvmppc_core_vcpu_load_e500mc()
145 mtspr(SPRN_GESR, vcpu->arch.shared->esr); in kvmppc_core_vcpu_load_e500mc()
159 vcpu->arch.shared->sprg0 = mfspr(SPRN_GSPRG0); in kvmppc_core_vcpu_put_e500mc()
160 vcpu->arch.shared->sprg1 = mfspr(SPRN_GSPRG1); in kvmppc_core_vcpu_put_e500mc()
[all …]
H A De500.h215 return !!(vcpu->arch.shared->msr & (MSR_IS | MSR_DS)); in get_cur_as()
220 return !!(vcpu->arch.shared->msr & MSR_PR); in get_cur_pr()
225 return (vcpu->arch.shared->mas6 >> 16) & 0xff; in get_cur_spid()
230 return vcpu->arch.shared->mas6 & 0x1; in get_cur_sas()
239 return (vcpu->arch.shared->mas0 >> 28) & 0x1; in get_tlb_tlbsel()
244 return vcpu->arch.shared->mas0 & 0xfff; in get_tlb_nv_bit()
249 return (vcpu->arch.shared->mas0 >> 16) & 0xfff; in get_tlb_esel_bit()
263 if (get_tlb_ts(tlbe) != !!(vcpu->arch.shared->msr & MSR_IS)) in tlbe_is_host_safe()
316 unsigned int tidseld = (vcpu->arch.shared->mas4 >> 16) & 0xf; in get_tlbmiss_tid()
/linux/drivers/video/fbdev/
H A 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 …]
/linux/tools/testing/shared/
H A Dshared.mk3 CFLAGS += -I../shared -I. -I../../include -I../../../lib -g -Og -Wall \
8 SHARED_OFILES = xarray-shared.o radix-tree.o idr.o linux.o $(LIBS)
10 SHARED_DEPS = Makefile ../shared/shared.mk ../shared/*.h generated/map-shift.h \
36 %.o: ../shared/%.c
49 xarray-shared.o: ../shared/xarray-shared.c ../../../lib/xarray.c \
52 maple-shared
[all...]
/linux/drivers/thermal/tegra/
H A 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 …]
/linux/drivers/net/ipa/
H A Dipa_uc.c131 struct ipa_uc_mem_area *shared = ipa_uc_shared(ipa); in ipa_uc_event_handler() local
134 if (shared->event == IPA_UC_EVENT_ERROR) in ipa_uc_event_handler()
136 else if (shared->event != IPA_UC_EVENT_LOG_INFO) in ipa_uc_event_handler()
138 shared->event); in ipa_uc_event_handler()
145 struct ipa_uc_mem_area *shared = ipa_uc_shared(ipa); in ipa_uc_response_hdlr() local
156 switch (shared->response) { in ipa_uc_response_hdlr()
170 shared->response); in ipa_uc_response_hdlr()
234 struct ipa_uc_mem_area *shared = ipa_uc_shared(ipa); in send_uc_command() local
239 shared->command = command; in send_uc_command()
240 shared->command_param = cpu_to_le32(command_param); in send_uc_command()
[all …]
/linux/arch/x86/xen/
H A 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 …]
/linux/Documentation/filesystems/
H A 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 …]
/linux/drivers/mtd/lpddr/
H A 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 …]
/linux/drivers/video/fbdev/via/
H A 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 …]
H A Dviafbdev.c246 !ppar->shared->vdev->engine_mmio) in viafb_check_var()
669 struct viafb_shared *shared = viapar->shared; in viafb_fillrect() local
673 if (info->flags & FBINFO_HWACCEL_DISABLED || !shared->hw_bitblt) { in viafb_fillrect()
692 if (shared->hw_bitblt(shared->vdev->engine_mmio, VIA_BITBLT_FILL, in viafb_fillrect()
703 struct viafb_shared *shared = viapar->shared; in viafb_copyarea() local
705 if (info->flags & FBINFO_HWACCEL_DISABLED || !shared->hw_bitblt) { in viafb_copyarea()
714 if (shared->hw_bitblt(shared->vdev->engine_mmio, VIA_BITBLT_COLOR, in viafb_copyarea()
726 struct viafb_shared *shared = viapar->shared; in viafb_imageblit() local
730 if (info->flags & FBINFO_HWACCEL_DISABLED || !shared->hw_bitblt || in viafb_imageblit()
751 if (shared->hw_bitblt(shared->vdev->engine_mmio, op, in viafb_imageblit()
[all …]
/linux/arch/arm64/boot/dts/ti/
H A Dk3-am68-sk-som.dtsi31 compatible = "shared-dma-pool";
37 compatible = "shared-dma-pool";
43 compatible = "shared-dma-pool";
49 compatible = "shared-dma-pool";
55 compatible = "shared-dma-pool";
61 compatible = "shared-dma-pool";
67 compatible = "shared-dma-pool";
73 compatible = "shared-dma-pool";
79 compatible = "shared-dma-pool";
85 compatible = "shared-dma-pool";
[all …]
/linux/Documentation/devicetree/bindings/reserved-memory/
H A Dxen,shared-memory.txt5 to be a shared memory area across multiple virtual machines for
8 For each of these pre-shared memory regions, a range is exposed under
13 compatible = "xen,shared-memory-v1"
16 the base guest physical address and size of the shared memory region
19 64 bit integer offset within the owner virtual machine's shared
23 a string that identifies the shared memory region as specified in
/linux/arch/x86/kvm/mmu/
H A Dtdp_mmu.c23 bool shared) in kvm_lockdep_assert_mmu_lock_held() argument
25 if (shared) in kvm_lockdep_assert_mmu_lock_held()
292 bool shared);
342 static void handle_removed_pt(struct kvm *kvm, tdp_ptep_t pt, bool shared) in handle_removed_pt() argument
358 if (shared) { in handle_removed_pt()
419 old_spte, FROZEN_SPTE, level, shared); in handle_removed_pt()
443 bool shared) in handle_changed_spte() argument
522 handle_removed_pt(kvm, spte_to_child_pt(old_spte, level), shared); in handle_changed_spte()
667 bool flush, bool shared) in tdp_mmu_iter_cond_resched() argument
679 if (shared) in tdp_mmu_iter_cond_resched()
[all …]

12345678910>>...41