/kernel/linux/linux-5.10/fs/proc/ |
D | inode.c | 49 de = ei->pde; in proc_evict_inode() 52 ei->pde = NULL; in proc_evict_inode() 75 ei->pde = NULL; in proc_alloc_inode() 206 static inline int use_pde(struct proc_dir_entry *pde) in use_pde() argument 208 return likely(atomic_inc_unless_negative(&pde->in_use)); in use_pde() 211 static void unuse_pde(struct proc_dir_entry *pde) in unuse_pde() argument 213 if (unlikely(atomic_dec_return(&pde->in_use) == BIAS)) in unuse_pde() 214 complete(pde->pde_unload_completion); in unuse_pde() 218 static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo) in close_pdeo() argument 219 __releases(&pde->pde_unload_lock) in close_pdeo() [all …]
|
D | internal.h | 77 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() 83 void pde_free(struct proc_dir_entry *pde); 97 struct proc_dir_entry *pde; member 115 return PROC_I(inode)->pde; in PDE() 199 static inline struct proc_dir_entry *pde_get(struct proc_dir_entry *pde) in pde_get() argument 201 refcount_inc(&pde->refcnt); in pde_get() 202 return pde; in pde_get() 206 static inline bool is_empty_pde(const struct proc_dir_entry *pde) in is_empty_pde() argument 208 return S_ISDIR(pde->mode) && !pde->proc_iops; in is_empty_pde() [all …]
|
D | generic.c | 37 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() 563 static inline void pde_set_flags(struct proc_dir_entry *pde) in pde_set_flags() argument 565 if (pde->proc_ops->proc_flags & PROC_ENTRY_PERMANENT) in pde_set_flags() 566 pde->flags |= PROC_ENTRY_PERMANENT; in pde_set_flags() 677 void pde_put(struct proc_dir_entry *pde) in pde_put() argument [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ |
D | dfs_pri_detector.c | 161 static struct pulse_elem *pulse_queue_get_tail(struct pri_detector *pde) in pulse_queue_get_tail() argument 163 struct list_head *l = &pde->pulses; in pulse_queue_get_tail() 169 static bool pulse_queue_dequeue(struct pri_detector *pde) in pulse_queue_dequeue() argument 171 struct pulse_elem *p = pulse_queue_get_tail(pde); in pulse_queue_dequeue() 174 pde->count--; in pulse_queue_dequeue() 178 return (pde->count > 0); in pulse_queue_dequeue() 182 static void pulse_queue_check_window(struct pri_detector *pde) in pulse_queue_check_window() argument 188 if (pde->count < 2) in pulse_queue_check_window() 191 if (pde->last_ts <= pde->window_size) in pulse_queue_check_window() 194 min_valid_ts = pde->last_ts - pde->window_size; in pulse_queue_check_window() [all …]
|
/kernel/liteos_a/fs/proc/src/ |
D | proc_file.c | 367 struct ProcDirEntry *pde = NULL; in CreateProcEntry() local 370 pde = ProcCreateDir(parent, name, NULL, mode); in CreateProcEntry() 372 pde = ProcCreateFile(parent, name, NULL, mode); in CreateProcEntry() 374 return pde; in CreateProcEntry() 449 struct ProcDirEntry *pde = CreateProcEntry(name, mode, parent); in ProcCreateData() local 450 if (pde != NULL) { in ProcCreateData() 452 pde->procFileOps = procFileOps; in ProcCreateData() 454 pde->data = data; in ProcCreateData() 456 return pde; in ProcCreateData() 522 static int ProcRead(struct ProcDirEntry *pde, char *buf, size_t len) in ProcRead() argument [all …]
|
/kernel/liteos_a/fs/proc/os_adapt/ |
D | proc_vfs.c | 232 struct ProcDirEntry *pde = NULL; in VfsProcfsReaddir() local 241 pde = VnodeToEntry(node); in VfsProcfsReaddir() 250 result = ReadProcFile(pde, (void *)buffer, buflen); in VfsProcfsReaddir() 276 struct ProcDirEntry *pde = VnodeToEntry(node); in VfsProcfsOpendir() local 277 if (pde == NULL) { in VfsProcfsOpendir() 280 pde->pdirCurrent = pde->subdir; in VfsProcfsOpendir() 281 pde->pf->fPos = 0; in VfsProcfsOpendir() 292 struct ProcDirEntry *pde = VnodeToEntry(node); in VfsProcfsOpen() local 293 if (ProcOpen(pde->pf) != OK) { in VfsProcfsOpen() 296 if (S_ISREG(pde->mode) && (pde->procFileOps != NULL) && (pde->procFileOps->open != NULL)) { in VfsProcfsOpen() [all …]
|
D | process_proc.c | 50 struct ProcDirEntry *pde = CreateProcEntry("process", 0, NULL); in ProcProcessInit() local 51 if (pde == NULL) { in ProcProcessInit() 56 pde->procFileOps = &PROCESS_PROC_FOPS; in ProcProcessInit()
|
D | mounts_proc.c | 92 struct ProcDirEntry *pde = CreateProcEntry("mounts", 0, NULL); in ProcMountsInit() local 93 if (pde == NULL) { in ProcMountsInit() 98 pde->procFileOps = &MOUNTS_PROC_FOPS; in ProcMountsInit()
|
D | uptime_proc.c | 79 struct ProcDirEntry *pde = CreateProcEntry("uptime", 0, NULL); in ProcUptimeInit() local 80 if (pde == NULL) { in ProcUptimeInit() 85 pde->procFileOps = &UPTIME_PROC_FOPS; in ProcUptimeInit()
|
D | fd_proc.c | 136 struct ProcDirEntry *pde = CreateProcEntry("fd", 0, NULL); in ProcFdInit() local 137 if (pde == NULL) { in ProcFdInit() 142 pde->procFileOps = &FD_PROC_FOPS; in ProcFdInit()
|
D | vmm_proc.c | 108 struct ProcDirEntry *pde = CreateProcEntry("vmm", 0, NULL); in ProcVmmInit() local 109 if (pde == NULL) { in ProcVmmInit() 114 pde->procFileOps = &VMM_PROC_FOPS; in ProcVmmInit()
|
D | fs_cache_proc.c | 210 struct ProcDirEntry *pde = CreateProcEntry("fs_cache", 0, NULL); in ProcFsCacheInit() local 211 if (pde == NULL) { in ProcFsCacheInit() 216 pde->procFileOps = &FS_CACHE_PROC_FOPS; in ProcFsCacheInit()
|
/kernel/liteos_a/fs/proc/include/ |
D | proc_file.h | 84 extern int ReadProcFile(struct ProcDirEntry *pde, void *buf, size_t len); 109 extern int WriteProcFile(struct ProcDirEntry *pde, const void *buf, size_t len); 134 extern loff_t LseekProcFile(struct ProcDirEntry *pde, loff_t offset, int whence); 159 int LseekDirProcFile(struct ProcDirEntry *pde, off_t *pos, int whence); 182 extern int CloseProcFile(struct ProcDirEntry *pde);
|
D | internal.h | 54 int ProcMatch(unsigned int len, const char *name, struct ProcDirEntry *pde); 58 void ProcFreeEntry(struct ProcDirEntry *pde);
|
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
D | pdt.c | 117 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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | gen6_ppgtt.c | 16 const unsigned int pde, in gen6_write_pde() argument 23 ppgtt->pd_addr + pde); in gen6_write_pde() 85 unsigned int pde = first_entry / GEN6_PTES; in gen6_ppgtt_clear_range() local 91 i915_pt_entry(ppgtt->base.pd, pde++); in gen6_ppgtt_clear_range() 162 unsigned int pde; in gen6_flush_pd() local 169 gen6_for_each_pde(pt, pd, start, end, pde) in gen6_flush_pd() 170 gen6_write_pde(ppgtt, pde, pt); in gen6_flush_pd() 173 ioread32(ppgtt->pd_addr + pde - 1); in gen6_flush_pd() 189 unsigned int pde; in gen6_alloc_va_range() local 192 gen6_for_each_pde(pt, pd, start, length, pde) { in gen6_alloc_va_range() [all …]
|
D | gen8_ppgtt.c | 19 u64 pde = addr | _PAGE_PRESENT | _PAGE_RW; in gen8_pde_encode() local 22 pde |= PPAT_CACHED_PDE; in gen8_pde_encode() 24 pde |= PPAT_UNCACHED; in gen8_pde_encode() 26 return pde; in gen8_pde_encode() 174 void **pde = pd->entry; in __gen8_ppgtt_cleanup() local 177 if (!*pde) in __gen8_ppgtt_cleanup() 180 __gen8_ppgtt_cleanup(vm, *pde, GEN8_PDES, lvl - 1); in __gen8_ppgtt_cleanup() 181 } while (pde++, --count); in __gen8_ppgtt_cleanup() 619 struct i915_page_directory *pde; in gen8_preallocate_top_level_pdp() local 622 pde = alloc_pd(vm); in gen8_preallocate_top_level_pdp() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | proc_powerpc.c | 51 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()
|
/kernel/linux/linux-5.10/drivers/iommu/intel/ |
D | pasid.h | 81 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()
|
D | debugfs.c | 317 static void pgtable_walk_level(struct seq_file *m, struct dma_pte *pde, in pgtable_walk_level() argument 327 i++, pde++, start += level_to_directory_size(level)) { in pgtable_walk_level() 328 if (!dma_pte_present(pde)) in pgtable_walk_level() 331 path[level] = pde->val; in pgtable_walk_level() 332 if (dma_pte_superpage(pde) || level == 1) in pgtable_walk_level() 335 pgtable_walk_level(m, phys_to_virt(dma_pte_addr(pde)), in pgtable_walk_level()
|
/kernel/linux/linux-5.10/arch/m68k/kernel/ |
D | bootinfo_proc.c | 61 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 279 struct pageDirectoryEntry *pde; in virt_pg_map() local 280 pde = addr_gpa2hva(vm, pdpe[index[2]].address * vm->page_size); in virt_pg_map() 281 if (!pde[index[1]].present) { in virt_pg_map() 282 pde[index[1]].address = vm_phy_page_alloc(vm, in virt_pg_map() 285 pde[index[1]].writable = true; in virt_pg_map() 286 pde[index[1]].present = true; in virt_pg_map() 291 pte = addr_gpa2hva(vm, pde[index[1]].address * vm->page_size); in virt_pg_map() 301 struct pageDirectoryEntry *pde, *pde_start; in virt_dump() local 342 pde = &pde_start[n3]; in virt_dump() 343 if (!pde->present) in virt_dump() [all …]
|
D | vmx.c | 452 struct eptPageTableEntry *pde; in nested_pg_map() local 453 pde = addr_gpa2hva(vm, pdpe[index[2]].address * vm->page_size); in nested_pg_map() 454 if (!pde[index[1]].readable) { in nested_pg_map() 455 pde[index[1]].address = vm_phy_page_alloc(vm, in nested_pg_map() 458 pde[index[1]].writable = true; in nested_pg_map() 459 pde[index[1]].readable = true; in nested_pg_map() 460 pde[index[1]].executable = true; in nested_pg_map() 465 pte = addr_gpa2hva(vm, pde[index[1]].address * vm->page_size); in nested_pg_map()
|
/kernel/linux/linux-5.10/drivers/iommu/ |
D | tegra-smmu.c | 171 static dma_addr_t smmu_pde_to_dma(struct tegra_smmu *smmu, u32 pde) in smmu_pde_to_dma() argument 173 return (dma_addr_t)(pde & smmu->pfn_mask) << 12; in smmu_pde_to_dma() 585 unsigned int pde = iova_pd_index(iova); in as_get_pte() local 588 if (!as->pts[pde]) { in as_get_pte() 605 as->pts[pde] = page; in as_get_pte() 614 *dmap = smmu_pde_to_dma(smmu, pd[pde]); in as_get_pte() 617 return tegra_smmu_pte_offset(as->pts[pde], iova); in as_get_pte() 629 unsigned int pde = iova_pd_index(iova); in tegra_smmu_pte_put_use() local 630 struct page *page = as->pts[pde]; in tegra_smmu_pte_put_use() 636 if (--as->count[pde] == 0) { in tegra_smmu_pte_put_use() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | vmm.h | 35 #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
|