| /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 | 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 | 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()
|
| 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 | 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() 62 pgt->pde = kvzalloc_objs(*pgt->pde, pten); 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() 409 pgt->pde[ptei++] = NVKM_VMM_PDE_SPARSE; in nvkm_vmm_sparse_ptes() 422 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 & PHYSICAL_PAGE_MASK); in virt_arch_dump()
|
| /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/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()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | at91_udc.h | 138 struct proc_dir_entry *pde; member
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_vm_pt.c | 636 uint64_t pde, pt, flags; in amdgpu_vm_pde_update() local 648 pde = (entry - to_amdgpu_bo_vm(parent->bo)->entries) * 8; in amdgpu_vm_pde_update() 649 return vm->update_funcs->update(params, to_amdgpu_bo_vm(bo), pde, pt, in amdgpu_vm_pde_update()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_vm.c | 666 uint64_t pde, pt; in radeon_vm_update_page_directory() local 676 pde = pd_addr + pt_idx * 8; in radeon_vm_update_page_directory() 677 if (((last_pde + 8 * count) != pde) || in radeon_vm_update_page_directory() 687 last_pde = pde; in radeon_vm_update_page_directory()
|