Home
last modified time | relevance | path

Searched refs:pde (Results 1 – 25 of 50) sorted by relevance

12

/Linux-v4.19/fs/proc/
Dinode.c70 ei->pde = NULL; in proc_alloc_inode()
139 static inline int use_pde(struct proc_dir_entry *pde) in use_pde() argument
141 return likely(atomic_inc_unless_negative(&pde->in_use)); in use_pde()
144 static void unuse_pde(struct proc_dir_entry *pde) in unuse_pde() argument
146 if (unlikely(atomic_dec_return(&pde->in_use) == BIAS)) in unuse_pde()
147 complete(pde->pde_unload_completion); in unuse_pde()
151 static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo) in close_pdeo() argument
167 spin_unlock(&pde->pde_unload_lock); in close_pdeo()
174 spin_unlock(&pde->pde_unload_lock); in close_pdeo()
176 pde->proc_fops->release(file_inode(file), file); in close_pdeo()
[all …]
Dinternal.h77 void pde_free(struct proc_dir_entry *pde);
90 struct proc_dir_entry *pde; member
108 return PROC_I(inode)->pde; in PDE()
185 static inline struct proc_dir_entry *pde_get(struct proc_dir_entry *pde) in pde_get() argument
187 refcount_inc(&pde->refcnt); in pde_get()
188 return pde; in pde_get()
192 static inline bool is_empty_pde(const struct proc_dir_entry *pde) in is_empty_pde() argument
194 return S_ISDIR(pde->mode) && !pde->proc_iops; in is_empty_pde()
Dgeneric.c36 void pde_free(struct proc_dir_entry *pde) in pde_free() argument
38 if (S_ISLNK(pde->mode)) in pde_free()
39 kfree(pde->data); in pde_free()
40 if (pde->name != pde->inline_name) in pde_free()
41 kfree(pde->name); in pde_free()
42 kmem_cache_free(proc_dir_entry_cache, pde); in pde_free()
641 void pde_put(struct proc_dir_entry *pde) in pde_put() argument
643 if (refcount_dec_and_test(&pde->refcnt)) { in pde_put()
644 proc_free_inum(pde->low_ino); in pde_put()
645 pde_free(pde); in pde_put()
[all …]
Dproc_net.c31 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET() argument
33 return pde->parent->data; in PDE_NET()
/Linux-v4.19/drivers/net/wireless/ath/
Ddfs_pri_detector.c161 static struct pulse_elem *pulse_queue_get_tail(struct pri_detector *pde) in pulse_queue_get_tail() argument
163 struct list_head *l = &pde->pulses; in pulse_queue_get_tail()
169 static bool pulse_queue_dequeue(struct pri_detector *pde) in pulse_queue_dequeue() argument
171 struct pulse_elem *p = pulse_queue_get_tail(pde); in pulse_queue_dequeue()
174 pde->count--; in pulse_queue_dequeue()
178 return (pde->count > 0); in pulse_queue_dequeue()
182 static void pulse_queue_check_window(struct pri_detector *pde) in pulse_queue_check_window() argument
188 if (pde->count < 2) in pulse_queue_check_window()
191 if (pde->last_ts <= pde->window_size) in pulse_queue_check_window()
194 min_valid_ts = pde->last_ts - pde->window_size; in pulse_queue_check_window()
[all …]
/Linux-v4.19/arch/parisc/kernel/
Dpdt.c115 static void report_mem_err(unsigned long pde) in report_mem_err() argument
121 addr = pde & PDT_ADDR_PHYS_MASK; in report_mem_err()
132 pde & PDT_ADDR_PERM_ERR ? "permanent ":"", in report_mem_err()
133 pde & PDT_ADDR_SINGLE_ERR ? "single":"multi"); in report_mem_err()
321 unsigned long pde = *bad_mem_ptr++; in pdt_mainloop() local
323 report_mem_err(pde); in pdt_mainloop()
326 if ((pde & PDT_ADDR_PERM_ERR) || in pdt_mainloop()
327 ((pde & PDT_ADDR_SINGLE_ERR) == 0)) in pdt_mainloop()
328 memory_failure(pde >> PAGE_SHIFT, 0); in pdt_mainloop()
331 pfn_to_page(pde >> PAGE_SHIFT), 0); in pdt_mainloop()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Dproc_powerpc.c64 struct proc_dir_entry *pde; in proc_ppc64_init() local
66 pde = proc_create_data("powerpc/systemcfg", S_IFREG | 0444, NULL, in proc_ppc64_init()
68 if (!pde) in proc_ppc64_init()
70 proc_set_size(pde, PAGE_SIZE); in proc_ppc64_init()
/Linux-v4.19/tools/testing/selftests/kvm/lib/
Dx86.c314 struct pageDirectoryEntry *pde; in virt_pg_map() local
315 pde = addr_gpa2hva(vm, pdpe[index[2]].address * vm->page_size); in virt_pg_map()
316 if (!pde[index[1]].present) { in virt_pg_map()
317 pde[index[1]].address = vm_phy_page_alloc(vm, in virt_pg_map()
320 pde[index[1]].writable = true; in virt_pg_map()
321 pde[index[1]].present = true; in virt_pg_map()
326 pte = addr_gpa2hva(vm, pde[index[1]].address * vm->page_size); in virt_pg_map()
350 struct pageDirectoryEntry *pde, *pde_start; in virt_dump() local
391 pde = &pde_start[n3]; in virt_dump()
392 if (!pde->present) in virt_dump()
[all …]
/Linux-v4.19/arch/m68k/kernel/
Dbootinfo_proc.c61 struct proc_dir_entry *pde; in init_bootinfo_procfs() local
70 pde = proc_create_data("bootinfo", 0400, NULL, &bootinfo_fops, NULL); in init_bootinfo_procfs()
71 if (!pde) { in init_bootinfo_procfs()
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_gem_gtt.c273 gen8_pde_t pde = _PAGE_PRESENT | _PAGE_RW; in gen8_pde_encode() local
274 pde |= addr; in gen8_pde_encode()
276 pde |= PPAT_CACHED_PDE; in gen8_pde_encode()
278 pde |= PPAT_UNCACHED; in gen8_pde_encode()
279 return pde; in gen8_pde_encode()
895 unsigned int pde) in gen8_ppgtt_set_pde() argument
899 pd->page_table[pde] = pt; in gen8_ppgtt_set_pde()
902 vaddr[pde] = gen8_pde_encode(px_dma(pt), I915_CACHE_LLC); in gen8_ppgtt_set_pde()
911 u32 pde; in gen8_ppgtt_clear_pd() local
913 gen8_for_each_pde(pt, pd, start, length, pde) { in gen8_ppgtt_clear_pd()
[all …]
/Linux-v4.19/drivers/iommu/
Dtegra-smmu.c168 static dma_addr_t smmu_pde_to_dma(u32 pde) in smmu_pde_to_dma() argument
170 return pde << 12; in smmu_pde_to_dma()
559 unsigned int pde = iova_pd_index(iova); in as_get_pte() local
562 if (!as->pts[pde]) { in as_get_pte()
584 as->pts[pde] = page; in as_get_pte()
593 *dmap = smmu_pde_to_dma(pd[pde]); in as_get_pte()
596 return tegra_smmu_pte_offset(as->pts[pde], iova); in as_get_pte()
608 unsigned int pde = iova_pd_index(iova); in tegra_smmu_pte_put_use() local
609 struct page *page = as->pts[pde]; in tegra_smmu_pte_put_use()
615 if (--as->count[pde] == 0) { in tegra_smmu_pte_put_use()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dvmm.h35 #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
Dvmm.c32 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()
374 pgt->pde[ptei++] = NVKM_VMM_PDE_SPARSE; in nvkm_vmm_sparse_ptes()
386 memset(&pt->pde[ptei], 0x00, sizeof(pt->pde[0]) * ptes); in nvkm_vmm_sparse_unref_ptes()
[all …]
Dvmmgp100.c151 struct nvkm_vmm_pt *pgt = pgd->pde[pdei]; in gp100_vmm_pd0_pde()
184 .pde = gp100_vmm_pd0_pde,
191 struct nvkm_vmm_pt *pgt = pgd->pde[pdei]; in gp100_vmm_pd1_pde()
207 .pde = gp100_vmm_pd1_pde,
Dvmmnv50.c151 if (!nv50_vmm_pde(vmm, pgd->pde[pdei], &data)) in nv50_vmm_pgd_pde()
163 .pde = nv50_vmm_pgd_pde,
354 if (!nv50_vmm_pde(vmm, vmm->pd->pde[pdei], &data)) { in nv50_vmm_join()
/Linux-v4.19/net/netfilter/
Dnf_conntrack_standalone.c445 struct proc_dir_entry *pde; in nf_conntrack_standalone_init_proc() local
449 pde = proc_create_net("nf_conntrack", 0440, net->proc_net, &ct_seq_ops, in nf_conntrack_standalone_init_proc()
451 if (!pde) in nf_conntrack_standalone_init_proc()
457 proc_set_user(pde, root_uid, root_gid); in nf_conntrack_standalone_init_proc()
459 pde = proc_create_net("nf_conntrack", 0444, net->proc_net_stat, in nf_conntrack_standalone_init_proc()
461 if (!pde) in nf_conntrack_standalone_init_proc()
/Linux-v4.19/drivers/char/
Dtoshiba.c512 struct proc_dir_entry *pde; in toshiba_init() local
514 pde = proc_create_single("toshiba", 0, NULL, proc_toshiba_show); in toshiba_init()
515 if (!pde) { in toshiba_init()
/Linux-v4.19/fs/nilfs2/
Ddir.c544 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-v4.19/net/ipv4/netfilter/
Dipt_CLUSTERIP.c55 struct proc_dir_entry *pde; /* proc dir entry */ member
115 proc_remove(c->pde); in clusterip_config_entry_put()
151 if (!c->pde) in clusterip_config_find_get()
253 c->pde = proc_create_data(buffer, 0600, in clusterip_config_init()
256 if (!c->pde) { in clusterip_config_init()
271 proc_remove(c->pde); in clusterip_config_init()
/Linux-v4.19/fs/exofs/
Ddir.c528 struct exofs_dir_entry *pde = NULL; in exofs_delete_entry() local
540 pde = de; in exofs_delete_entry()
543 if (pde) in exofs_delete_entry()
544 from = (char *)pde - (char *)page_address(page); in exofs_delete_entry()
552 if (pde) in exofs_delete_entry()
553 pde->rec_len = cpu_to_le16(to - from); in exofs_delete_entry()
/Linux-v4.19/fs/ext2/
Ddir.c591 ext2_dirent * pde = NULL; in ext2_delete_entry() local
602 pde = de; in ext2_delete_entry()
605 if (pde) in ext2_delete_entry()
606 from = (char*)pde - (char*)page_address(page); in ext2_delete_entry()
611 if (pde) in ext2_delete_entry()
612 pde->rec_len = ext2_rec_len_to_disk(to - from); in ext2_delete_entry()
/Linux-v4.19/fs/ufs/
Ddir.c503 struct ufs_dir_entry *pde = NULL; in ufs_delete_entry() local
521 pde = de; in ufs_delete_entry()
524 if (pde) in ufs_delete_entry()
525 from = (char*)pde - (char*)page_address(page); in ufs_delete_entry()
531 if (pde) in ufs_delete_entry()
532 pde->d_reclen = cpu_to_fs16(sb, to - from); in ufs_delete_entry()
/Linux-v4.19/drivers/scsi/
Dscsi_proc.c458 struct proc_dir_entry *pde; in scsi_init_procfs() local
464 pde = proc_create("scsi/scsi", 0, NULL, &proc_scsi_operations); in scsi_init_procfs()
465 if (!pde) in scsi_init_procfs()
/Linux-v4.19/drivers/s390/block/
Ddasd.c232 struct dentry *pde; in dasd_debugfs_setup() local
236 pde = debugfs_create_dir(name, base_dentry); in dasd_debugfs_setup()
237 if (!pde || IS_ERR(pde)) in dasd_debugfs_setup()
239 return pde; in dasd_debugfs_setup()
1090 struct dentry *pde; in dasd_profile_init() local
1097 pde = debugfs_create_file("statistics", mode, base_dentry, in dasd_profile_init()
1099 if (pde && !IS_ERR(pde)) in dasd_profile_init()
1100 profile->dentry = pde; in dasd_profile_init()
1121 struct dentry *pde; in dasd_statistics_createroot() local
1124 pde = debugfs_create_dir("dasd", NULL); in dasd_statistics_createroot()
[all …]
/Linux-v4.19/ipc/
Dutil.c140 struct proc_dir_entry *pde; in ipc_init_proc_interface() local
151 pde = proc_create_data(path, in ipc_init_proc_interface()
156 if (!pde) in ipc_init_proc_interface()

12