| /linux/fs/proc/ |
| H A 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 …]
|
| H A 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 static inline void pde_make_permanent(struct proc_dir_entry *pde) in pde_make_permanent() argument 87 pde->flags |= PROC_ENTRY_PERMANENT; in pde_make_permanent() 90 static inline bool pde_has_proc_read_iter(const struct proc_dir_entry *pde) in pde_has_proc_read_iter() argument 92 return pde->flags & PROC_ENTRY_proc_read_iter; in pde_has_proc_read_iter() 95 static inline bool pde_has_proc_compat_ioctl(const struct proc_dir_entry *pde) in pde_has_proc_compat_ioctl() argument 98 return pde->flags & PROC_ENTRY_proc_compat_ioctl; in pde_has_proc_compat_ioctl() 104 static inline bool pde_has_proc_lseek(const struct proc_dir_entry *pde) in pde_has_proc_lseek() argument 106 return pde->flags & PROC_ENTRY_proc_lseek; in pde_has_proc_lseek() [all …]
|
| H 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() 372 static void pde_set_flags(struct proc_dir_entry *pde) in pde_set_flags() argument 374 const struct proc_ops *proc_ops = pde->proc_ops; in pde_set_flags() 380 pde->flags |= PROC_ENTRY_PERMANENT; in pde_set_flags() 382 pde->flags |= PROC_ENTRY_proc_read_iter; in pde_set_flags() [all …]
|
| H 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()
|
| H 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()
|
| H 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()
|
| H 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()
|
| H 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()
|
| /linux/drivers/net/wireless/ath/ |
| H A 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/arch/m68k/kernel/ |
| H 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/net/netfilter/ |
| H 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()
|
| H A D | nf_conntrack_standalone.c | 483 struct proc_dir_entry *pde; in nf_conntrack_standalone_init_proc() local 487 pde = proc_create_net("nf_conntrack", 0440, net->proc_net, &ct_seq_ops, in nf_conntrack_standalone_init_proc() 489 if (!pde) in nf_conntrack_standalone_init_proc() 495 proc_set_user(pde, root_uid, root_gid); in nf_conntrack_standalone_init_proc() 497 pde = proc_create_net("nf_conntrack", 0444, net->proc_net_stat, in nf_conntrack_standalone_init_proc() 499 if (!pde) in nf_conntrack_standalone_init_proc()
|
| H A D | xt_recent.c | 338 struct proc_dir_entry *pde; in recent_mt_check() local 415 pde = proc_create_data(t->name, ip_list_perms, recent_net->xt_recent, in recent_mt_check() 417 if (pde == NULL) { in recent_mt_check() 422 proc_set_user(pde, uid, gid); in recent_mt_check()
|
| /linux/drivers/iommu/intel/ |
| H A D | pasid.h | 55 static inline bool pasid_pde_is_present(struct pasid_dir_entry *pde) in pasid_pde_is_present() argument 57 return READ_ONCE(pde->val) & PASID_PTE_PRESENT; in pasid_pde_is_present() 62 get_pasid_table_from_pde(struct pasid_dir_entry *pde) in get_pasid_table_from_pde() argument 64 if (!pasid_pde_is_present(pde)) in get_pasid_table_from_pde() 67 return phys_to_virt(READ_ONCE(pde->val) & PDE_PFN_MASK); in get_pasid_table_from_pde()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A 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/drivers/iommu/ |
| H A D | tegra-smmu.c | 185 static dma_addr_t smmu_pde_to_dma(struct tegra_smmu *smmu, u32 pde) in smmu_pde_to_dma() argument 187 return (dma_addr_t)(pde & smmu->pfn_mask) << 12; in smmu_pde_to_dma() 604 unsigned int pde = iova_pd_index(iova); in as_get_pte() local 607 if (!as->pts[pde]) { in as_get_pte() 624 as->pts[pde] = pt; in as_get_pte() 631 *dmap = smmu_pde_to_dma(smmu, as->pd->val[pde]); in as_get_pte() 634 return tegra_smmu_pte_offset(as->pts[pde], iova); in as_get_pte() 646 unsigned int pde = iova_pd_index(iova); in tegra_smmu_pte_put_use() local 647 struct tegra_pt *pt = as->pts[pde]; in tegra_smmu_pte_put_use() 653 if (--as->count[pde] == 0) { in tegra_smmu_pte_put_use() [all …]
|
| /linux/drivers/char/ |
| H 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/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
| H A D | vmm.c | 32 kvfree(pgt->pde); in nvkm_vmm_pt_del() 63 pgt->pde = kvzalloc_objs(*pgt->pde, pten); in nvkm_vmm_pt_new() 64 if (!pgt->pde) { in nvkm_vmm_pt_new() 161 pgd->pde[pdei] = NVKM_VMM_PDE_SPARSE; in nvkm_vmm_unref_pdes() 164 pgd->pde[pdei] = NULL; in nvkm_vmm_unref_pdes() 171 func->pde(vmm, pgd, pdei); in nvkm_vmm_unref_pdes() 172 pgd->pde[pdei] = NULL; in nvkm_vmm_unref_pdes() 178 func->pde(vmm, pgd, pdei); in nvkm_vmm_unref_pdes() 407 pgt->pde[ptei++] = NVKM_VMM_PDE_SPARSE; in nvkm_vmm_sparse_ptes() 420 memset(&pt->pde[ptei], 0x00, sizeof(pt->pde[0]) * ptes); in nvkm_vmm_sparse_unref_ptes() [all …]
|
| H A D | vmmnv50.c | 151 if (!nv50_vmm_pde(vmm, pgd->pde[pdei], &data)) in nv50_vmm_pgd_pde() 163 .pde = nv50_vmm_pgd_pde, 356 if (!nv50_vmm_pde(vmm, vmm->pd->pde[pdei], &data)) { in nv50_vmm_join()
|
| H A D | vmmgf100.c | 108 struct nvkm_vmm_pt *pgt = pgd->pde[pdei]; in gf100_vmm_pgd_pde() 149 .pde = gf100_vmm_pgd_pde,
|
| /linux/tools/testing/selftests/kvm/lib/x86/ |
| H A D | processor.c | 412 u64 *pde, *pde_start; in virt_arch_dump() local 450 pde = &pde_start[n3]; in virt_arch_dump() 451 if (!is_present_pte(mmu, pde)) in virt_arch_dump() 455 indent, "", pde - pde_start, pde, in virt_arch_dump() 456 addr_hva2gpa(vm, pde), in virt_arch_dump() 457 PTE_GET_PFN(*pde), is_writable_pte(mmu, pde), in virt_arch_dump() 458 is_nx_pte(mmu, pde)); in virt_arch_dump() 460 pte_start = addr_gpa2hva(vm, *pde in virt_arch_dump() [all...] |
| /linux/drivers/scsi/ |
| H A D | scsi_proc.c | 551 struct proc_dir_entry *pde; in scsi_init_procfs() local 557 pde = proc_create("scsi/scsi", 0, NULL, &scsi_scsi_proc_ops); in scsi_init_procfs() 558 if (!pde) in scsi_init_procfs()
|
| /linux/fs/afs/ |
| H A D | dir_edit.c | 397 union afs_xdr_dirent *de, *pde; in afs_edit_dir_remove() local 485 pde = &pblock->dirents[ps]; in afs_edit_dir_remove() 486 prev_next = pde->u.hash_next; in afs_edit_dir_remove() 495 pde->u.hash_next = next; in afs_edit_dir_remove()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | at91_udc.h | 138 struct proc_dir_entry *pde; member
|
| /linux/ipc/ |
| H A D | util.c | 141 struct proc_dir_entry *pde; in ipc_init_proc_interface() local 152 pde = proc_create_data(path, in ipc_init_proc_interface() 157 if (!pde) in ipc_init_proc_interface()
|