Home
last modified time | relevance | path

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

123

/Linux-v6.1/fs/proc/
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 …]
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 …]
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()
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()
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()
561 static inline void pde_set_flags(struct proc_dir_entry *pde) in pde_set_flags() argument
563 if (pde->proc_ops->proc_flags & PROC_ENTRY_PERMANENT) in pde_set_flags()
564 pde->flags |= PROC_ENTRY_PERMANENT; in pde_set_flags()
675 void pde_put(struct proc_dir_entry *pde) in pde_put() argument
[all …]
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()
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()
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()
Dmeminfo.c167 struct proc_dir_entry *pde; in proc_meminfo_init() local
169 pde = proc_create_single("meminfo", 0, NULL, meminfo_proc_show); in proc_meminfo_init()
170 pde_make_permanent(pde); in proc_meminfo_init()
/Linux-v6.1/drivers/net/wireless/ath/
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 …]
/Linux-v6.1/arch/parisc/kernel/
Dpdt.c117 static void report_mem_err(unsigned long pde) in report_mem_err() argument
123 addr = pde & PDT_ADDR_PHYS_MASK; in report_mem_err()
134 pde & PDT_ADDR_PERM_ERR ? "permanent ":"", in report_mem_err()
135 pde & PDT_ADDR_SINGLE_ERR ? "single":"multi"); in report_mem_err()
324 unsigned long pde = *bad_mem_ptr++; in pdt_mainloop() local
326 report_mem_err(pde); in pdt_mainloop()
329 if ((pde & PDT_ADDR_PERM_ERR) || in pdt_mainloop()
330 ((pde & PDT_ADDR_SINGLE_ERR) == 0)) in pdt_mainloop()
331 memory_failure(pde >> PAGE_SHIFT, 0); in pdt_mainloop()
333 soft_offline_page(pde >> PAGE_SHIFT, 0); in pdt_mainloop()
[all …]
/Linux-v6.1/drivers/gpu/drm/i915/gt/
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 …]
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()
179 void **pde = pd->entry; in __gen8_ppgtt_cleanup() local
182 if (!*pde) in __gen8_ppgtt_cleanup()
185 __gen8_ppgtt_cleanup(vm, *pde, GEN8_PDES, lvl - 1); in __gen8_ppgtt_cleanup()
186 } while (pde++, --count); in __gen8_ppgtt_cleanup()
845 struct i915_page_directory *pde; in gen8_preallocate_top_level_pdp() local
848 pde = alloc_pd(vm); in gen8_preallocate_top_level_pdp()
[all …]
/Linux-v6.1/drivers/iommu/intel/
Dpasid.h81 static inline bool pasid_pde_is_present(struct pasid_dir_entry *pde) in pasid_pde_is_present() argument
83 return READ_ONCE(pde->val) & PASID_PTE_PRESENT; in pasid_pde_is_present()
88 get_pasid_table_from_pde(struct pasid_dir_entry *pde) in get_pasid_table_from_pde() argument
90 if (!pasid_pde_is_present(pde)) in get_pasid_table_from_pde()
93 return phys_to_virt(READ_ONCE(pde->val) & PDE_PFN_MASK); in get_pasid_table_from_pde()
Ddebugfs.c319 static void pgtable_walk_level(struct seq_file *m, struct dma_pte *pde, in pgtable_walk_level() argument
329 i++, pde++, start += level_to_directory_size(level)) { in pgtable_walk_level()
330 if (!dma_pte_present(pde)) in pgtable_walk_level()
333 path[level] = pde->val; in pgtable_walk_level()
334 if (dma_pte_superpage(pde) || level == 1) in pgtable_walk_level()
337 pgtable_walk_level(m, phys_to_virt(dma_pte_addr(pde)), in pgtable_walk_level()
/Linux-v6.1/arch/powerpc/kernel/
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()
/Linux-v6.1/arch/m68k/kernel/
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()
/Linux-v6.1/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c177 uint64_t *pml4e, *pdpe, *pde; in __virt_pg_map() local
209 pde = virt_create_upper_pte(vm, PTE_GET_PFN(*pdpe), vaddr, paddr, PG_LEVEL_2M, level); in __virt_pg_map()
210 if (*pde & PTE_LARGE_MASK) in __virt_pg_map()
214 pte = virt_get_pte(vm, PTE_GET_PFN(*pde), vaddr, PG_LEVEL_4K); in __virt_pg_map()
249 uint64_t *pml4e, *pdpe, *pde; in _vm_get_page_table_entry() local
301 pde = addr_gpa2hva(vm, PTE_GET_PFN(pdpe[index[2]]) * vm->page_size); in _vm_get_page_table_entry()
302 TEST_ASSERT(pde[index[1]] & PTE_PRESENT_MASK, in _vm_get_page_table_entry()
304 TEST_ASSERT(!(pde[index[1]] & PTE_LARGE_MASK), in _vm_get_page_table_entry()
306 TEST_ASSERT((pde[index[1]] & rsvd_mask) == 0, in _vm_get_page_table_entry()
309 pte = addr_gpa2hva(vm, PTE_GET_PFN(pde[index[1]]) * vm->page_size); in _vm_get_page_table_entry()
[all …]
/Linux-v6.1/net/netfilter/
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()
/Linux-v6.1/drivers/iommu/
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()
579 unsigned int pde = iova_pd_index(iova); in as_get_pte() local
582 if (!as->pts[pde]) { in as_get_pte()
599 as->pts[pde] = page; in as_get_pte()
608 *dmap = smmu_pde_to_dma(smmu, pd[pde]); in as_get_pte()
611 return tegra_smmu_pte_offset(as->pts[pde], iova); in as_get_pte()
623 unsigned int pde = iova_pd_index(iova); in tegra_smmu_pte_put_use() local
624 struct page *page = as->pts[pde]; in tegra_smmu_pte_put_use()
630 if (--as->count[pde] == 0) { in tegra_smmu_pte_put_use()
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dvmm.h35 #define NVKM_VMM_PDE_INVALID(pde) IS_ERR_OR_NULL(pde) argument
36 #define NVKM_VMM_PDE_SPARSED(pde) IS_ERR(pde) argument
38 struct nvkm_vmm_pt **pde; member
65 nvkm_vmm_pde_func pde; member
Dvmm.c32 kvfree(pgt->pde); in nvkm_vmm_pt_del()
62 pgt->pde = kvcalloc(pten, sizeof(*pgt->pde), GFP_KERNEL); in nvkm_vmm_pt_new()
63 if (!pgt->pde) { in nvkm_vmm_pt_new()
160 pgd->pde[pdei] = NVKM_VMM_PDE_SPARSE; in nvkm_vmm_unref_pdes()
163 pgd->pde[pdei] = NULL; in nvkm_vmm_unref_pdes()
170 func->pde(vmm, pgd, pdei); in nvkm_vmm_unref_pdes()
171 pgd->pde[pdei] = NULL; in nvkm_vmm_unref_pdes()
177 func->pde(vmm, pgd, pdei); in nvkm_vmm_unref_pdes()
386 pgt->pde[ptei++] = NVKM_VMM_PDE_SPARSE; in nvkm_vmm_sparse_ptes()
398 memset(&pt->pde[ptei], 0x00, sizeof(pt->pde[0]) * ptes); in nvkm_vmm_sparse_unref_ptes()
[all …]
/Linux-v6.1/drivers/char/
Dtoshiba.c499 struct proc_dir_entry *pde; in toshiba_init() local
501 pde = proc_create_single("toshiba", 0, NULL, proc_toshiba_show); in toshiba_init()
502 if (!pde) { in toshiba_init()
/Linux-v6.1/fs/nilfs2/
Ddir.c544 struct nilfs_dir_entry *de, *pde = NULL; in nilfs_delete_entry() local
558 pde = de; in nilfs_delete_entry()
561 if (pde) in nilfs_delete_entry()
562 from = (char *)pde - (char *)page_address(page); in nilfs_delete_entry()
566 if (pde) in nilfs_delete_entry()
567 pde->rec_len = nilfs_rec_len_to_disk(to - from); in nilfs_delete_entry()
/Linux-v6.1/fs/ufs/
Ddir.c503 struct ufs_dir_entry *pde = NULL; in ufs_delete_entry() local
521 pde = de; in ufs_delete_entry()
524 if (pde) in ufs_delete_entry()
525 from = (char*)pde - (char*)page_address(page); in ufs_delete_entry()
531 if (pde) in ufs_delete_entry()
532 pde->d_reclen = cpu_to_fs16(sb, to - from); in ufs_delete_entry()

123