/linux-6.12.1/fs/proc/ |
D | inode.c | 63 ei->pde = NULL; in proc_alloc_inode() 78 if (ei->pde) in proc_free_inode() 79 pde_put(ei->pde); in proc_free_inode() 198 static inline int use_pde(struct proc_dir_entry *pde) in use_pde() argument 200 return likely(atomic_inc_unless_negative(&pde->in_use)); in use_pde() 203 static void unuse_pde(struct proc_dir_entry *pde) in unuse_pde() argument 205 if (unlikely(atomic_dec_return(&pde->in_use) == BIAS)) in unuse_pde() 206 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 | 78 static inline bool pde_is_permanent(const struct proc_dir_entry *pde) in pde_is_permanent() argument 80 return pde->flags & PROC_ENTRY_PERMANENT; in pde_is_permanent() 83 static inline void pde_make_permanent(struct proc_dir_entry *pde) in pde_make_permanent() argument 85 pde->flags |= PROC_ENTRY_PERMANENT; in pde_make_permanent() 89 void pde_free(struct proc_dir_entry *pde); 103 struct proc_dir_entry *pde; member 121 return PROC_I(inode)->pde; in PDE() 227 static inline void pde_get(struct proc_dir_entry *pde) in pde_get() argument 229 refcount_inc(&pde->refcnt); in pde_get() 233 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 | 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 | 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 | 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 | 175 struct proc_dir_entry *pde; in proc_meminfo_init() local 177 pde = proc_create_single("meminfo", 0, NULL, meminfo_proc_show); in proc_meminfo_init() 178 pde_make_permanent(pde); in proc_meminfo_init()
|
/linux-6.12.1/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.12.1/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.12.1/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 | 22 u64 pde = addr | GEN8_PAGE_PRESENT | GEN8_PAGE_RW; in gen8_pde_encode() local 25 pde |= PPAT_CACHED_PDE; in gen8_pde_encode() 27 pde |= PPAT_UNCACHED; in gen8_pde_encode() 29 return pde; in gen8_pde_encode() 209 void **pde = pd->entry; in __gen8_ppgtt_cleanup() local 212 if (!*pde) in __gen8_ppgtt_cleanup() 215 __gen8_ppgtt_cleanup(vm, *pde, GEN8_PDES, lvl - 1); in __gen8_ppgtt_cleanup() 216 } while (pde++, --count); in __gen8_ppgtt_cleanup() 902 struct i915_page_directory *pde; in gen8_preallocate_top_level_pdp() local 905 pde = alloc_pd(vm); in gen8_preallocate_top_level_pdp() [all …]
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | r535.c | 70 ctrl->numLevelsToCopy = vmm->pd->pde[0]->pde[0] ? 3 : 2; in r535_mmu_promote_vmm() 75 ctrl->levels[1].physAddress = vmm->pd->pde[0]->pt[0]->addr; in r535_mmu_promote_vmm() 79 if (vmm->pd->pde[0]->pde[0]) { in r535_mmu_promote_vmm() 80 ctrl->levels[2].physAddress = vmm->pd->pde[0]->pde[0]->pt[0]->addr; in r535_mmu_promote_vmm()
|
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.12.1/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.12.1/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.12.1/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.12.1/drivers/iommu/intel/ |
D | pasid.h | 62 static inline bool pasid_pde_is_present(struct pasid_dir_entry *pde) in pasid_pde_is_present() argument 64 return READ_ONCE(pde->val) & PASID_PTE_PRESENT; in pasid_pde_is_present() 69 get_pasid_table_from_pde(struct pasid_dir_entry *pde) in get_pasid_table_from_pde() argument 71 if (!pasid_pde_is_present(pde)) in get_pasid_table_from_pde() 74 return phys_to_virt(READ_ONCE(pde->val) & PDE_PFN_MASK); in get_pasid_table_from_pde()
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 189 uint64_t *pml4e, *pdpe, *pde; in __virt_pg_map() local 222 pde = virt_create_upper_pte(vm, pdpe, vaddr, paddr, PG_LEVEL_2M, level); in __virt_pg_map() 223 if (*pde & PTE_LARGE_MASK) in __virt_pg_map() 227 pte = virt_get_pte(vm, pde, vaddr, PG_LEVEL_4K); in __virt_pg_map() 281 uint64_t *pml4e, *pdpe, *pde; in __vm_get_page_table_entry() local 310 pde = virt_get_pte(vm, pdpe, vaddr, PG_LEVEL_2M); in __vm_get_page_table_entry() 311 if (vm_is_target_pte(pde, level, PG_LEVEL_2M)) in __vm_get_page_table_entry() 312 return pde; in __vm_get_page_table_entry() 314 return virt_get_pte(vm, pde, vaddr, PG_LEVEL_4K); in __vm_get_page_table_entry() 328 uint64_t *pde, *pde_start; in virt_arch_dump() local [all …]
|
/linux-6.12.1/drivers/iommu/ |
D | tegra-smmu.c | 174 static dma_addr_t smmu_pde_to_dma(struct tegra_smmu *smmu, u32 pde) in smmu_pde_to_dma() argument 176 return (dma_addr_t)(pde & smmu->pfn_mask) << 12; in smmu_pde_to_dma() 595 unsigned int pde = iova_pd_index(iova); in as_get_pte() local 598 if (!as->pts[pde]) { in as_get_pte() 615 as->pts[pde] = page; in as_get_pte() 624 *dmap = smmu_pde_to_dma(smmu, pd[pde]); in as_get_pte() 627 return tegra_smmu_pte_offset(as->pts[pde], iova); in as_get_pte() 639 unsigned int pde = iova_pd_index(iova); in tegra_smmu_pte_put_use() local 640 struct page *page = as->pts[pde]; in tegra_smmu_pte_put_use() 646 if (--as->count[pde] == 0) { in tegra_smmu_pte_put_use() [all …]
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_lmtt.c | 286 u64 next, pde, pt_addr; in __lmtt_alloc_range() local 296 pde = lmtt->ops->lmtt_pte_encode(pt_addr, pd->level); in __lmtt_alloc_range() 298 lmtt_write_pte(lmtt, pd, pde, idx); in __lmtt_alloc_range() 321 u64 pde; in lmtt_alloc_range() local 338 pde = lmtt->ops->lmtt_pte_encode(pt_addr, pd->level); in lmtt_alloc_range() 340 lmtt_write_pte(lmtt, pd, pde, vfid); in lmtt_alloc_range()
|
/linux-6.12.1/fs/nilfs2/ |
D | dir.c | 525 struct nilfs_dir_entry *de, *pde = NULL; in nilfs_delete_entry() local 539 pde = de; in nilfs_delete_entry() 542 if (pde) in nilfs_delete_entry() 543 from = (char *)pde - kaddr; in nilfs_delete_entry() 547 if (pde) in nilfs_delete_entry() 548 pde->rec_len = nilfs_rec_len_to_disk(to - from); in nilfs_delete_entry()
|
/linux-6.12.1/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()
|