/linux-6.3-rc2/fs/proc/ |
A 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() 290 unuse_pde(pde); in proc_reg_llseek() 306 unuse_pde(pde); in proc_reg_read_iter() 329 unuse_pde(pde); in proc_reg_read() 353 unuse_pde(pde); in proc_reg_write() 377 unuse_pde(pde); in proc_reg_poll() 401 unuse_pde(pde); in proc_reg_unlocked_ioctl() 425 unuse_pde(pde); in proc_reg_compat_ioctl() [all …]
|
A D | internal.h | 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() 203 return S_ISDIR(pde->mode) && !pde->proc_iops; in is_empty_pde() 316 static inline void pde_force_lookup(struct proc_dir_entry *pde) in pde_force_lookup() argument [all …]
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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() 564 pde->flags |= PROC_ENTRY_PERMANENT; in pde_set_flags() 678 proc_free_inum(pde->low_ino); in pde_put() 679 pde_free(pde); in pde_put() 809 if (!pde->write) in proc_simple_write() [all …]
|
A 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()
|
A 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()
|
A D | meminfo.c | 167 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-6.3-rc2/drivers/net/wireless/ath/ |
A D | dfs_pri_detector.c | 173 pde->count--; in pulse_queue_dequeue() 177 return (pde->count > 0); in pulse_queue_dequeue() 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() 197 pulse_queue_dequeue(pde); in pulse_queue_check_window() 216 pde->count++; in pulse_queue_enqueue() 217 pde->last_ts = ts; in pulse_queue_enqueue() 219 if (pde->count >= pde->max_count) in pulse_queue_enqueue() 370 pde->count = 0; in pri_detector_reset() [all …]
|
/linux-6.3-rc2/arch/parisc/kernel/ |
A D | pdt.c | 116 static void report_mem_err(unsigned long pde) in report_mem_err() argument 122 addr = pde & PDT_ADDR_PHYS_MASK; in report_mem_err() 133 pde & PDT_ADDR_PERM_ERR ? "permanent ":"", in report_mem_err() 134 pde & PDT_ADDR_SINGLE_ERR ? "single":"multi"); in report_mem_err() 323 unsigned long pde = *bad_mem_ptr++; in pdt_mainloop() local 325 report_mem_err(pde); in pdt_mainloop() 328 if ((pde & PDT_ADDR_PERM_ERR) || in pdt_mainloop() 329 ((pde & PDT_ADDR_SINGLE_ERR) == 0)) in pdt_mainloop() 330 memory_failure(pde >> PAGE_SHIFT, 0); in pdt_mainloop() 332 soft_offline_page(pde >> PAGE_SHIFT, 0); in pdt_mainloop() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/ |
A D | gen6_ppgtt.c | 20 const unsigned int pde, in gen6_write_pde() argument 27 ppgtt->pd_addr + pde); in gen6_write_pde() 154 unsigned int pde; in gen6_flush_pd() local 181 unsigned int pde; in gen6_alloc_va_range() local 196 if (!pd->entry[pde]) { in gen6_alloc_va_range() 199 pd->entry[pde] = pt; in gen6_alloc_va_range() 201 pt = pd->entry[pde]; in gen6_alloc_va_range() 258 u32 pde; in gen6_ppgtt_free_pd() local 260 gen6_for_all_pdes(pt, pd, pde) in gen6_ppgtt_free_pd() 300 unsigned int pde; in pd_vma_unbind() local [all …]
|
A D | gen8_ppgtt.c | 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() 186 } while (pde++, --count); in __gen8_ppgtt_cleanup() 869 pde = alloc_pd(vm); in gen8_preallocate_top_level_pdp() 870 if (IS_ERR(pde)) in gen8_preallocate_top_level_pdp() 871 return PTR_ERR(pde); in gen8_preallocate_top_level_pdp() 875 free_pd(vm, pde); in gen8_preallocate_top_level_pdp() [all …]
|
/linux-6.3-rc2/drivers/iommu/intel/ |
A 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()
|
A 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.3-rc2/arch/powerpc/kernel/ |
A 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.3-rc2/arch/m68k/kernel/ |
A 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.3-rc2/net/netfilter/ |
A 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.3-rc2/tools/testing/selftests/kvm/lib/x86_64/ |
A D | processor.c | 184 uint64_t *pml4e, *pdpe, *pde; in __virt_pg_map() local 216 if (*pde & PTE_LARGE_MASK) in __virt_pg_map() 265 uint64_t *pml4e, *pdpe, *pde; in __vm_get_page_table_entry() local 293 return pde; in __vm_get_page_table_entry() 309 uint64_t *pde, *pde_start; in virt_arch_dump() local 347 pde = &pde_start[n3]; in virt_arch_dump() 348 if (!(*pde & PTE_PRESENT_MASK)) in virt_arch_dump() 352 indent, "", pde - pde_start, pde, in virt_arch_dump() 353 addr_hva2gpa(vm, pde), in virt_arch_dump() 354 PTE_GET_PFN(*pde), !!(*pde & PTE_WRITABLE_MASK), in virt_arch_dump() [all …]
|
/linux-6.3-rc2/drivers/iommu/ |
A D | tegra-smmu.c | 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() 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() 640 as->pts[pde] = NULL; in tegra_smmu_pte_put_use() 663 unsigned int pde = iova_pd_index(iova); in as_get_pde_page() local 664 struct page *page = as->pts[pde]; in as_get_pde_page() 688 if (as->pts[pde]) { in as_get_pde_page() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
A 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
|
A D | vmm.c | 32 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-6.3-rc2/drivers/char/ |
A 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.3-rc2/fs/nilfs2/ |
A 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()
|