/linux-6.6.21/fs/proc/ |
D | inode.c | 47 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 …]
|
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() 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 …]
|
D | cmdline.c | 17 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()
|
D | version.c | 21 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()
|
D | loadavg.c | 31 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()
|
D | softirqs.c | 31 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()
|
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() 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 …]
|
D | uptime.c | 43 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()
|
D | devices.c | 58 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()
|
D | meminfo.c | 176 struct proc_dir_entry *pde; in proc_meminfo_init() local 178 pde = proc_create_single("meminfo", 0, NULL, meminfo_proc_show); in proc_meminfo_init() 179 pde_make_permanent(pde); in proc_meminfo_init()
|
/linux-6.6.21/drivers/net/wireless/ath/ |
D | dfs_pri_detector.c | 160 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-6.6.21/arch/parisc/kernel/ |
D | pdt.c | 118 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 …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | gen6_ppgtt.c | 20 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 …]
|
D | gen8_ppgtt.c | 21 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 …]
|
/linux-6.6.21/drivers/iommu/intel/ |
D | pasid.h | 72 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()
|
D | debugfs.c | 319 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-6.6.21/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()
|
/linux-6.6.21/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()
|
/linux-6.6.21/net/netfilter/ |
D | nf_flow_table_procfs.c | 69 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-6.6.21/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 185 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 …]
|
/linux-6.6.21/drivers/iommu/ |
D | tegra-smmu.c | 172 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 …]
|
/linux-6.6.21/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
|
/linux-6.6.21/drivers/char/ |
D | toshiba.c | 499 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-6.6.21/fs/nilfs2/ |
D | dir.c | 544 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-6.6.21/fs/ufs/ |
D | dir.c | 510 struct ufs_dir_entry *pde = NULL; in ufs_delete_entry() local 528 pde = de; in ufs_delete_entry() 531 if (pde) in ufs_delete_entry() 532 from = (char*)pde - (char*)page_address(page); in ufs_delete_entry() 538 if (pde) in ufs_delete_entry() 539 pde->d_reclen = cpu_to_fs16(sb, to - from); in ufs_delete_entry()
|