Home
last modified time | relevance | path

Searched refs:pde (Results 1 – 25 of 72) sorted by relevance

123

/openbmc/linux/fs/proc/
H A Dinode.c47 de = ei->pde; in proc_evict_inode()
50 ei->pde = NULL; in proc_evict_inode()
73 ei->pde = NULL; in proc_alloc_inode()
204 static inline int use_pde(struct proc_dir_entry *pde) in use_pde() argument
206 return likely(atomic_inc_unless_negative(&pde->in_use)); in use_pde()
209 static void unuse_pde(struct proc_dir_entry *pde) in unuse_pde() argument
211 if (unlikely(atomic_dec_return(&pde->in_use) == BIAS)) in unuse_pde()
212 complete(pde->pde_unload_completion); in unuse_pde()
224 static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo) in close_pdeo() argument
225 __releases(&pde->pde_unload_lock) in close_pdeo()
[all …]
H A Dinternal.h77 static inline bool pde_is_permanent(const struct proc_dir_entry *pde) in pde_is_permanent() argument
79 return pde->flags & PROC_ENTRY_PERMANENT; in pde_is_permanent()
82 static inline void pde_make_permanent(struct proc_dir_entry *pde) in pde_make_permanent() argument
84 pde->flags |= PROC_ENTRY_PERMANENT; in pde_make_permanent()
88 void pde_free(struct proc_dir_entry *pde);
102 struct proc_dir_entry *pde; member
120 return PROC_I(inode)->pde; in PDE()
195 static inline void pde_get(struct proc_dir_entry *pde) in pde_get() argument
197 refcount_inc(&pde->refcnt); in pde_get()
201 static inline bool is_empty_pde(const struct proc_dir_entry *pde) in is_empty_pde() argument
[all …]
H A Dcmdline.c17 struct proc_dir_entry *pde; in proc_cmdline_init() local
19 pde = proc_create_single("cmdline", 0, NULL, cmdline_proc_show); in proc_cmdline_init()
20 pde_make_permanent(pde); in proc_cmdline_init()
21 pde->size = saved_command_line_len + 1; in proc_cmdline_init()
H A Dversion.c21 struct proc_dir_entry *pde; in proc_version_init() local
23 pde = proc_create_single("version", 0, NULL, version_proc_show); in proc_version_init()
24 pde_make_permanent(pde); in proc_version_init()
H A Dgeneric.c37 void pde_free(struct proc_dir_entry *pde) in pde_free() argument
39 if (S_ISLNK(pde->mode)) in pde_free()
40 kfree(pde->data); in pde_free()
41 if (pde->name != pde->inline_name) in pde_free()
42 kfree(pde->name); in pde_free()
43 kmem_cache_free(proc_dir_entry_cache, pde); in pde_free()
560 static inline void pde_set_flags(struct proc_dir_entry *pde) in pde_set_flags() argument
562 if (pde->proc_ops->proc_flags & PROC_ENTRY_PERMANENT) in pde_set_flags()
563 pde->flags |= PROC_ENTRY_PERMANENT; in pde_set_flags()
674 void pde_put(struct proc_dir_entry *pde) in pde_put() argument
[all …]
H A Dloadavg.c31 struct proc_dir_entry *pde; in proc_loadavg_init() local
33 pde = proc_create_single("loadavg", 0, NULL, loadavg_proc_show); in proc_loadavg_init()
34 pde_make_permanent(pde); in proc_loadavg_init()
H A Dsoftirqs.c31 struct proc_dir_entry *pde; in proc_softirqs_init() local
33 pde = proc_create_single("softirqs", 0, NULL, show_softirqs); in proc_softirqs_init()
34 pde_make_permanent(pde); in proc_softirqs_init()
H A Duptime.c43 struct proc_dir_entry *pde; in proc_uptime_init() local
45 pde = proc_create_single("uptime", 0, NULL, uptime_proc_show); in proc_uptime_init()
46 pde_make_permanent(pde); in proc_uptime_init()
H A Ddevices.c58 struct proc_dir_entry *pde; in proc_devices_init() local
60 pde = proc_create_seq("devices", 0, NULL, &devinfo_ops); in proc_devices_init()
61 pde_make_permanent(pde); in proc_devices_init()
/openbmc/linux/drivers/net/wireless/ath/
H A Ddfs_pri_detector.c160 static struct pulse_elem *pulse_queue_get_tail(struct pri_detector *pde) in pulse_queue_get_tail() argument
162 struct list_head *l = &pde->pulses; in pulse_queue_get_tail()
168 static bool pulse_queue_dequeue(struct pri_detector *pde) in pulse_queue_dequeue() argument
170 struct pulse_elem *p = pulse_queue_get_tail(pde); in pulse_queue_dequeue()
173 pde->count--; in pulse_queue_dequeue()
177 return (pde->count > 0); in pulse_queue_dequeue()
181 static void pulse_queue_check_window(struct pri_detector *pde) in pulse_queue_check_window() argument
187 if (pde->count < 2) in pulse_queue_check_window()
190 if (pde->last_ts <= pde->window_size) in pulse_queue_check_window()
193 min_valid_ts = pde->last_ts - pde->window_size; in pulse_queue_check_window()
[all …]
/openbmc/qemu/target/i386/
H A Dmonitor.c75 uint32_t pgd, pde, pte; in tlb_info_32() local
79 cpu_physical_memory_read(pgd + l1 * 4, &pde, 4); in tlb_info_32()
80 pde = le32_to_cpu(pde); in tlb_info_32()
81 if (pde & PG_PRESENT_MASK) { in tlb_info_32()
82 if ((pde & PG_PSE_MASK) && (env->cr[4] & CR4_PSE_MASK)) { in tlb_info_32()
84 print_pte(mon, env, (l1 << 22), pde, ~((1 << 21) - 1)); in tlb_info_32()
87 cpu_physical_memory_read((pde & ~0xfff) + l2 * 4, &pte, 4); in tlb_info_32()
103 uint64_t pdpe, pde, pte; in tlb_info_pae32() local
113 cpu_physical_memory_read(pd_addr + l2 * 8, &pde, 8); in tlb_info_pae32()
114 pde = le64_to_cpu(pde); in tlb_info_pae32()
[all …]
H A Darch_memory_mapping.c86 uint64_t pde; in walk_pde() local
92 pde = address_space_ldq(as, pde_addr, MEMTXATTRS_UNSPECIFIED, NULL); in walk_pde()
93 if (!(pde & PG_PRESENT_MASK)) { in walk_pde()
99 if (pde & PG_PSE_MASK) { in walk_pde()
101 start_paddr = (pde & ~0x1fffff) & ~(0x1ULL << 63); in walk_pde()
112 pte_start_addr = (pde & PLM4_ADDR_MASK) & a20_mask; in walk_pde()
123 uint32_t pde; in walk_pde2() local
129 pde = address_space_ldl(as, pde_addr, MEMTXATTRS_UNSPECIFIED, NULL); in walk_pde2()
130 if (!(pde & PG_PRESENT_MASK)) { in walk_pde2()
136 if ((pde & PG_PSE_MASK) && pse) { in walk_pde2()
[all …]
H A Dhelper.c257 uint64_t pde, pdpe; in x86_cpu_get_phys_page_attrs_debug() local
313 pde = x86_ldq_phys(cs, pde_addr); in x86_cpu_get_phys_page_attrs_debug()
314 if (!(pde & PG_PRESENT_MASK)) { in x86_cpu_get_phys_page_attrs_debug()
317 if (pde & PG_PSE_MASK) { in x86_cpu_get_phys_page_attrs_debug()
320 pte = pde; in x86_cpu_get_phys_page_attrs_debug()
323 pte_addr = ((pde & PG_ADDRESS_MASK) + in x86_cpu_get_phys_page_attrs_debug()
332 uint32_t pde; in x86_cpu_get_phys_page_attrs_debug() local
336 pde = x86_ldl_phys(cs, pde_addr); in x86_cpu_get_phys_page_attrs_debug()
337 if (!(pde & PG_PRESENT_MASK)) in x86_cpu_get_phys_page_attrs_debug()
339 if ((pde & PG_PSE_MASK) && (env->cr[4] & CR4_PSE_MASK)) { in x86_cpu_get_phys_page_attrs_debug()
[all …]
/openbmc/qemu/target/sparc/
H A Dmmu_helper.c74 uint32_t pde; in get_physical_address() local
101 pde = address_space_ldl(cs->as, pde_ptr, MEMTXATTRS_UNSPECIFIED, &result); in get_physical_address()
107 switch (pde & PTE_ENTRYTYPE_MASK) { in get_physical_address()
115 pde_ptr = ((address >> 22) & ~3) + ((pde & ~3) << 4); in get_physical_address()
116 pde = address_space_ldl(cs->as, pde_ptr, in get_physical_address()
122 switch (pde & PTE_ENTRYTYPE_MASK) { in get_physical_address()
129 pde_ptr = ((address & 0xfc0000) >> 16) + ((pde & ~3) << 4); in get_physical_address()
130 pde = address_space_ldl(cs->as, pde_ptr, in get_physical_address()
136 switch (pde & PTE_ENTRYTYPE_MASK) { in get_physical_address()
143 pde_ptr = ((address & 0x3f000) >> 10) + ((pde & ~3) << 4); in get_physical_address()
[all …]
/openbmc/u-boot/arch/x86/lib/
H A Dphysmem.c38 struct pde { struct
54 typedef struct pde pdt_t[512]; argument
74 struct pde *pde = &(pdts[pdpt_idx][pdt_idx]); in x86_phys_map_page() local
76 memset(pde, 0, sizeof(struct pde)); in x86_phys_map_page()
77 pde->p = 1; in x86_phys_map_page()
78 pde->rw = 1; in x86_phys_map_page()
79 pde->us = 1; in x86_phys_map_page()
80 pde->ps = 1; in x86_phys_map_page()
81 pde->base = phys >> 21; in x86_phys_map_page()
/openbmc/linux/arch/parisc/kernel/
H A Dpdt.c118 static void report_mem_err(unsigned long pde) in report_mem_err() argument
124 addr = pde & PDT_ADDR_PHYS_MASK; in report_mem_err()
135 pde & PDT_ADDR_PERM_ERR ? "permanent ":"", in report_mem_err()
136 pde & PDT_ADDR_SINGLE_ERR ? "single":"multi"); in report_mem_err()
325 unsigned long pde = *bad_mem_ptr++; in pdt_mainloop() local
327 report_mem_err(pde); in pdt_mainloop()
330 if ((pde & PDT_ADDR_PERM_ERR) || in pdt_mainloop()
331 ((pde & PDT_ADDR_SINGLE_ERR) == 0)) in pdt_mainloop()
332 memory_failure(pde >> PAGE_SHIFT, 0); in pdt_mainloop()
334 soft_offline_page(pde >> PAGE_SHIFT, 0); in pdt_mainloop()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dgen6_ppgtt.c20 const unsigned int pde, in gen6_write_pde() argument
27 ppgtt->pd_addr + pde); in gen6_write_pde()
80 unsigned int pde = first_entry / GEN6_PTES; in gen6_ppgtt_clear_range() local
86 i915_pt_entry(ppgtt->base.pd, pde++); in gen6_ppgtt_clear_range()
154 unsigned int pde; in gen6_flush_pd() local
161 gen6_for_each_pde(pt, pd, start, end, pde) in gen6_flush_pd()
162 gen6_write_pde(ppgtt, pde, pt); in gen6_flush_pd()
165 ioread32(ppgtt->pd_addr + pde - 1); in gen6_flush_pd()
181 unsigned int pde; in gen6_alloc_va_range() local
184 gen6_for_each_pde(pt, pd, start, length, pde) { in gen6_alloc_va_range()
[all …]
H A Dgen8_ppgtt.c21 u64 pde = addr | GEN8_PAGE_PRESENT | GEN8_PAGE_RW; in gen8_pde_encode() local
24 pde |= PPAT_CACHED_PDE; in gen8_pde_encode()
26 pde |= PPAT_UNCACHED; in gen8_pde_encode()
28 return pde; in gen8_pde_encode()
208 void **pde = pd->entry; in __gen8_ppgtt_cleanup() local
211 if (!*pde) in __gen8_ppgtt_cleanup()
214 __gen8_ppgtt_cleanup(vm, *pde, GEN8_PDES, lvl - 1); in __gen8_ppgtt_cleanup()
215 } while (pde++, --count); in __gen8_ppgtt_cleanup()
898 struct i915_page_directory *pde; in gen8_preallocate_top_level_pdp() local
901 pde = alloc_pd(vm); in gen8_preallocate_top_level_pdp()
[all …]
/openbmc/linux/drivers/iommu/intel/
H A Dpasid.h72 static inline bool pasid_pde_is_present(struct pasid_dir_entry *pde) in pasid_pde_is_present() argument
74 return READ_ONCE(pde->val) & PASID_PTE_PRESENT; in pasid_pde_is_present()
79 get_pasid_table_from_pde(struct pasid_dir_entry *pde) in get_pasid_table_from_pde() argument
81 if (!pasid_pde_is_present(pde)) in get_pasid_table_from_pde()
84 return phys_to_virt(READ_ONCE(pde->val) & PDE_PFN_MASK); in get_pasid_table_from_pde()
/openbmc/linux/arch/powerpc/kernel/
H A Dproc_powerpc.c51 struct proc_dir_entry *pde; in proc_ppc64_init() local
53 pde = proc_create_data("powerpc/systemcfg", S_IFREG | 0444, NULL, in proc_ppc64_init()
55 if (!pde) in proc_ppc64_init()
57 proc_set_size(pde, PAGE_SIZE); in proc_ppc64_init()
/openbmc/qemu/target/ppc/
H A Dmmu-radix64.c333 uint64_t index, mask, nlb, pde; in ppc_radix64_next_level() local
336 pde = ldq_phys(as, *pte_addr); in ppc_radix64_next_level()
337 if (!(pde & R_PTE_VALID)) { /* Invalid Entry */ in ppc_radix64_next_level()
342 *pte = pde; in ppc_radix64_next_level()
344 if (!(pde & R_PTE_LEAF)) { /* Prepare for next iteration */ in ppc_radix64_next_level()
345 *nls = pde & R_PDE_NLS; in ppc_radix64_next_level()
348 nlb = pde & R_PDE_NLB; in ppc_radix64_next_level()
358 *pte_addr = nlb + index * sizeof(pde); in ppc_radix64_next_level()
368 uint64_t index, pde, rpn, mask; in ppc_radix64_walk_tree() local
382 *pte_addr = base_addr + index * sizeof(pde); in ppc_radix64_walk_tree()
[all …]
/openbmc/linux/arch/m68k/kernel/
H A Dbootinfo_proc.c61 struct proc_dir_entry *pde; in init_bootinfo_procfs() local
70 pde = proc_create_data("bootinfo", 0400, NULL, &bootinfo_proc_ops, NULL); in init_bootinfo_procfs()
71 if (!pde) { in init_bootinfo_procfs()
/openbmc/linux/net/netfilter/
H A Dnf_flow_table_procfs.c69 struct proc_dir_entry *pde; in nf_flow_table_init_proc() local
71 pde = proc_create_net("nf_flowtable", 0444, net->proc_net_stat, in nf_flow_table_init_proc()
74 return pde ? 0 : -ENOMEM; in nf_flow_table_init_proc()
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dprocessor.c185 uint64_t *pml4e, *pdpe, *pde; in __virt_pg_map() local
216 pde = virt_create_upper_pte(vm, pdpe, vaddr, paddr, PG_LEVEL_2M, level); in __virt_pg_map()
217 if (*pde & PTE_LARGE_MASK) in __virt_pg_map()
221 pte = virt_get_pte(vm, pde, vaddr, PG_LEVEL_4K); in __virt_pg_map()
266 uint64_t *pml4e, *pdpe, *pde; in __vm_get_page_table_entry() local
292 pde = virt_get_pte(vm, pdpe, vaddr, PG_LEVEL_2M); in __vm_get_page_table_entry()
293 if (vm_is_target_pte(pde, level, PG_LEVEL_2M)) in __vm_get_page_table_entry()
294 return pde; in __vm_get_page_table_entry()
296 return virt_get_pte(vm, pde, vaddr, PG_LEVEL_4K); in __vm_get_page_table_entry()
310 uint64_t *pde, *pde_start; in virt_arch_dump() local
[all …]
/openbmc/linux/drivers/iommu/
H A Dtegra-smmu.c172 static dma_addr_t smmu_pde_to_dma(struct tegra_smmu *smmu, u32 pde) in smmu_pde_to_dma() argument
174 return (dma_addr_t)(pde & smmu->pfn_mask) << 12; in smmu_pde_to_dma()
580 unsigned int pde = iova_pd_index(iova); in as_get_pte() local
583 if (!as->pts[pde]) { in as_get_pte()
600 as->pts[pde] = page; in as_get_pte()
609 *dmap = smmu_pde_to_dma(smmu, pd[pde]); in as_get_pte()
612 return tegra_smmu_pte_offset(as->pts[pde], iova); in as_get_pte()
624 unsigned int pde = iova_pd_index(iova); in tegra_smmu_pte_put_use() local
625 struct page *page = as->pts[pde]; in tegra_smmu_pte_put_use()
631 if (--as->count[pde] == 0) { in tegra_smmu_pte_put_use()
[all …]

123