Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/fs/proc/
Dinode.c49 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 …]
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()
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 …]
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()
566 static inline void pde_set_flags(struct proc_dir_entry *pde) in pde_set_flags() argument
568 if (pde->proc_ops->proc_flags & PROC_ENTRY_PERMANENT) in pde_set_flags()
569 pde->flags |= PROC_ENTRY_PERMANENT; in pde_set_flags()
680 void pde_put(struct proc_dir_entry *pde) in pde_put() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/
Ddfs_pri_detector.c161 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/os_adapt/
Dproc_vfs.c246 struct ProcDirEntry *pde = NULL; in VfsProcfsMkdir() local
251 int ret = parentEntry->procDirOps->mkdir(parentEntry, dirName, mode, &pde); in VfsProcfsMkdir()
252 if ((ret < 0) || (pde == NULL)) { in VfsProcfsMkdir()
256 *vnode = EntryToVnode(pde); in VfsProcfsMkdir()
294 struct ProcDirEntry *pde = NULL; in VfsProcfsReaddir() local
304 pde = VnodeToEntry(node); in VfsProcfsReaddir()
305 if (pde == NULL) { in VfsProcfsReaddir()
318 result = ReadProcFile(pde, (void *)buffer, NAME_MAX); in VfsProcfsReaddir()
346 struct ProcDirEntry *pde = VnodeToEntry(node); in VfsProcfsOpendir() local
347 if (pde == NULL) { in VfsProcfsOpendir()
[all …]
Dfile_sys.c63 struct ProcDirEntry *pde = CreateProcEntry("filesystems", 0, NULL); in ProcFileSysInit() local
64 if (pde == NULL) { in ProcFileSysInit()
68 pde->procFileOps = &FILESYS_PROC_FOPS; in ProcFileSysInit()
Dmem_info.c62 struct ProcDirEntry *pde = CreateProcEntry("meminfo", 0, NULL); in ProcSysMemInfoInit() local
63 if (pde == NULL) { in ProcSysMemInfoInit()
68 pde->procFileOps = &SYS_MEMINFO_PROC_FOPS; in ProcSysMemInfoInit()
Dmounts_proc.c92 struct ProcDirEntry *pde = CreateProcEntry("mounts", 0, NULL); in ProcMountsInit() local
93 if (pde == NULL) { in ProcMountsInit()
98 pde->procFileOps = &MOUNTS_PROC_FOPS; in ProcMountsInit()
Duptime_proc.c79 struct ProcDirEntry *pde = CreateProcEntry("uptime", 0, NULL); in ProcUptimeInit() local
80 if (pde == NULL) { in ProcUptimeInit()
85 pde->procFileOps = &UPTIME_PROC_FOPS; in ProcUptimeInit()
Dfd_proc.c136 struct ProcDirEntry *pde = CreateProcEntry("fd", 0, NULL); in ProcFdInit() local
137 if (pde == NULL) { in ProcFdInit()
142 pde->procFileOps = &FD_PROC_FOPS; in ProcFdInit()
Dvmm_proc.c108 struct ProcDirEntry *pde = CreateProcEntry("vmm", 0, NULL); in ProcVmmInit() local
109 if (pde == NULL) { in ProcVmmInit()
114 pde->procFileOps = &VMM_PROC_FOPS; in ProcVmmInit()
Dplimits_proc.c71 …itsMkdir(struct ProcDirEntry *parent, const char *dirName, mode_t mode, struct ProcDirEntry **pde);
72 static int ProcfsPlimitsRmdir(struct ProcDirEntry *parent, struct ProcDirEntry *pde, const char *na…
360 …mitsMkdir(struct ProcDirEntry *parent, const char *dirName, mode_t mode, struct ProcDirEntry **pde) in ProcfsPlimitsMkdir() argument
377 *pde = plimitDir; in ProcfsPlimitsMkdir()
381 static int ProcfsPlimitsRmdir(struct ProcDirEntry *parent, struct ProcDirEntry *pde, const char *na… in ProcfsPlimitsRmdir() argument
383 if (pde == NULL) { in ProcfsPlimitsRmdir()
387 ProcLimiterSet *plimits = GetProcLimiterSetFromDirEntry(pde); in ProcfsPlimitsRmdir()
388 pde->data = NULL; in ProcfsPlimitsRmdir()
392 pde->data = plimits; in ProcfsPlimitsRmdir()
397 ProcDetachNode(pde); in ProcfsPlimitsRmdir()
[all …]
/kernel/liteos_a/fs/proc/src/
Dproc_file.c372 struct ProcDirEntry *pde = NULL; in CreateProcEntry() local
375 pde = ProcCreateDir(parent, name, NULL, mode); in CreateProcEntry()
377 pde = ProcCreateFile(parent, name, NULL, mode); in CreateProcEntry()
379 return pde; in CreateProcEntry()
483 struct ProcDirEntry *pde = CreateProcEntry(name, mode, parent); in ProcCreateData() local
484 if (pde != NULL) { in ProcCreateData()
486 pde->procFileOps = procFileOps; in ProcCreateData()
489 pde->data = param->data; in ProcCreateData()
490 pde->dataType = param->dataType; in ProcCreateData()
493 return pde; in ProcCreateData()
[all …]
/kernel/liteos_a/fs/proc/include/
Dproc_file.h84 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);
Dinternal.h74 int ProcMatch(unsigned int len, const char *name, struct ProcDirEntry *pde);
78 void ProcFreeEntry(struct ProcDirEntry *pde);
Dproc_fs.h93 ssize_t (*readLink)(struct ProcDirEntry *pde, char *buf, size_t bufLen);
98 int (*rmdir)(struct ProcDirEntry *parent, struct ProcDirEntry *pde, const char *name);
99 …(*mkdir)(struct ProcDirEntry *parent, const char *dirName, mode_t mode, struct ProcDirEntry **pde);
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dgen6_ppgtt.c16 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 …]
Dgen8_ppgtt.c19 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/
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c279 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 …]
Dvmx.c452 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/
Dtegra-smmu.c171 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 …]

123