Home
last modified time | relevance | path

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

123

/linux-3.4.99/fs/proc/
Dinode.c42 de = PROC_I(inode)->pde; in proc_evict_inode()
69 ei->pde = NULL; in proc_alloc_inode()
129 static void __pde_users_dec(struct proc_dir_entry *pde) in __pde_users_dec() argument
131 pde->pde_users--; in __pde_users_dec()
132 if (pde->pde_unload_completion && pde->pde_users == 0) in __pde_users_dec()
133 complete(pde->pde_unload_completion); in __pde_users_dec()
136 void pde_users_dec(struct proc_dir_entry *pde) in pde_users_dec() argument
138 spin_lock(&pde->pde_unload_lock); in pde_users_dec()
139 __pde_users_dec(pde); in pde_users_dec()
140 spin_unlock(&pde->pde_unload_lock); in pde_users_dec()
[all …]
Dgeneric.c191 struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); in proc_file_read() local
194 spin_lock(&pde->pde_unload_lock); in proc_file_read()
195 if (!pde->proc_fops) { in proc_file_read()
196 spin_unlock(&pde->pde_unload_lock); in proc_file_read()
199 pde->pde_users++; in proc_file_read()
200 spin_unlock(&pde->pde_unload_lock); in proc_file_read()
204 pde_users_dec(pde); in proc_file_read()
212 struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); in proc_file_write() local
215 if (pde->write_proc) { in proc_file_write()
216 spin_lock(&pde->pde_unload_lock); in proc_file_write()
[all …]
Dproc_devtree.c24 np->pde = de; in set_node_proc_entry()
87 void proc_device_tree_add_prop(struct proc_dir_entry *pde, struct property *prop) in proc_device_tree_add_prop() argument
89 __proc_device_tree_add_prop(pde, prop, prop->name); in proc_device_tree_add_prop()
92 void proc_device_tree_remove_prop(struct proc_dir_entry *pde, in proc_device_tree_remove_prop() argument
95 remove_proc_entry(prop->name, pde); in proc_device_tree_remove_prop()
98 void proc_device_tree_update_prop(struct proc_dir_entry *pde, in proc_device_tree_update_prop() argument
104 for (ent = pde->subdir; ent != NULL; ent = ent->next) in proc_device_tree_update_prop()
Dinternal.h106 void pde_users_dec(struct proc_dir_entry *pde);
117 static inline struct proc_dir_entry *pde_get(struct proc_dir_entry *pde) in pde_get() argument
119 atomic_inc(&pde->count); in pde_get()
120 return pde; in pde_get()
122 void pde_put(struct proc_dir_entry *pde);
/linux-3.4.99/drivers/gpu/drm/nouveau/
Dnouveau_vm.c38 u32 pde = (offset >> vm->pgt_bits) - vm->fpde; in nouveau_vm_map_at() local
49 struct nouveau_gpuobj *pgt = vm->pgt[pde].obj[big]; in nouveau_vm_map_at()
62 pde++; in nouveau_vm_map_at()
89 u32 pde = (offset >> vm->pgt_bits) - vm->fpde; in nouveau_vm_map_sg() local
95 struct nouveau_gpuobj *pgt = vm->pgt[pde].obj[big]; in nouveau_vm_map_sg()
108 pde++; in nouveau_vm_map_sg()
124 u32 pde = (offset >> vm->pgt_bits) - vm->fpde; in nouveau_vm_unmap_at() local
130 struct nouveau_gpuobj *pgt = vm->pgt[pde].obj[big]; in nouveau_vm_unmap_at()
142 pde++; in nouveau_vm_unmap_at()
162 u32 pde; in nouveau_vm_unmap_pgt() local
[all …]
Dnvc0_vm.c34 u32 pde[2] = { 0, 0 }; in nvc0_vm_map_pgt() local
37 pde[1] = 0x00000001 | (pgt[0]->vinst >> 8); in nvc0_vm_map_pgt()
39 pde[0] = 0x00000001 | (pgt[1]->vinst >> 8); in nvc0_vm_map_pgt()
41 nv_wo32(pgd, (index * 8) + 0, pde[0]); in nvc0_vm_map_pgt()
42 nv_wo32(pgd, (index * 8) + 4, pde[1]); in nvc0_vm_map_pgt()
Dnouveau_vm.h68 void (*map_pgt)(struct nouveau_gpuobj *pgd, u32 pde,
95 void nv50_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 pde,
106 void nvc0_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 pde,
Dnv50_vm.c31 nv50_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 pde, in nv50_vm_map_pgt() argument
55 nv_wo32(pgd, (pde * 8) + 0, lower_32_bits(phys)); in nv50_vm_map_pgt()
56 nv_wo32(pgd, (pde * 8) + 4, upper_32_bits(phys)); in nv50_vm_map_pgt()
/linux-3.4.99/include/linux/
Dproc_fs.h138 extern void proc_device_tree_add_prop(struct proc_dir_entry *pde, struct property *prop);
139 extern void proc_device_tree_remove_prop(struct proc_dir_entry *pde,
141 extern void proc_device_tree_update_prop(struct proc_dir_entry *pde,
270 struct proc_dir_entry *pde; member
285 return PROC_I(inode)->pde; in PDE()
288 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET() argument
290 return pde->parent->data; in PDE_NET()
/linux-3.4.99/arch/powerpc/kernel/
Dproc_powerpc.c83 struct proc_dir_entry *pde; in proc_ppc64_init() local
85 pde = proc_create_data("powerpc/systemcfg", S_IFREG|S_IRUGO, NULL, in proc_ppc64_init()
87 if (!pde) in proc_ppc64_init()
89 pde->size = PAGE_SIZE; in proc_ppc64_init()
/linux-3.4.99/net/netfilter/
Dxt_recent.c315 struct proc_dir_entry *pde; in recent_mt_check() local
369 pde = proc_create_data(t->name, ip_list_perms, recent_net->xt_recent, in recent_mt_check()
371 if (pde == NULL) { in recent_mt_check()
376 pde->uid = ip_list_uid; in recent_mt_check()
377 pde->gid = ip_list_gid; in recent_mt_check()
481 struct proc_dir_entry *pde = PDE(inode); in recent_seq_open() local
488 st->table = pde->data; in recent_seq_open()
496 const struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); in recent_mt_proc_write() local
497 struct recent_table *t = pde->data; in recent_mt_proc_write()
Dnf_conntrack_standalone.c367 struct proc_dir_entry *pde; in nf_conntrack_standalone_init_proc() local
369 pde = proc_net_fops_create(net, "nf_conntrack", 0440, &ct_file_ops); in nf_conntrack_standalone_init_proc()
370 if (!pde) in nf_conntrack_standalone_init_proc()
373 pde = proc_create("nf_conntrack", S_IRUGO, net->proc_net_stat, in nf_conntrack_standalone_init_proc()
375 if (!pde) in nf_conntrack_standalone_init_proc()
/linux-3.4.99/arch/powerpc/platforms/pseries/
Ddlpar.c279 ent = proc_mkdir(strrchr(dn->full_name, '/') + 1, dn->parent->pde); in dlpar_attach_node()
295 remove_proc_entry(prop->name, dn->pde); in dlpar_detach_node()
299 if (dn->pde) in dlpar_detach_node()
300 remove_proc_entry(dn->pde->name, parent->pde); in dlpar_detach_node()
Dreconfig.c39 ent = proc_mkdir(strrchr(np->full_name, '/') + 1, np->parent->pde); in add_node_proc_entries()
50 remove_proc_entry(pp->name, np->pde); in remove_node_proc_entries()
53 if (np->pde) in remove_node_proc_entries()
54 remove_proc_entry(np->pde->name, parent->pde); in remove_node_proc_entries()
/linux-3.4.99/drivers/isdn/hysdn/
Dhysdn_proclog.c184 struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); in hysdn_log_read() local
196 if (pd->log == pde) in hysdn_log_read()
330 struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); in hysdn_log_poll() local
341 if (pd->log == pde) in hysdn_log_poll()
/linux-3.4.99/drivers/char/
Dtoshiba.c525 struct proc_dir_entry *pde; in toshiba_init() local
527 pde = proc_create("toshiba", 0, NULL, &proc_toshiba_fops); in toshiba_init()
528 if (!pde) { in toshiba_init()
/linux-3.4.99/fs/nilfs2/
Ddir.c556 struct nilfs_dir_entry *pde = NULL; in nilfs_delete_entry() local
567 pde = de; in nilfs_delete_entry()
570 if (pde) in nilfs_delete_entry()
571 from = (char *)pde - (char *)page_address(page); in nilfs_delete_entry()
575 if (pde) in nilfs_delete_entry()
576 pde->rec_len = nilfs_rec_len_to_disk(to - from); in nilfs_delete_entry()
/linux-3.4.99/arch/blackfin/kernel/
Dcplbinfo.c119 struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); in cplbinfo_open() local
126 cpu = (unsigned int)pde->data; in cplbinfo_open()
/linux-3.4.99/fs/ufs/
Ddir.c523 struct ufs_dir_entry *pde = NULL; in ufs_delete_entry() local
541 pde = de; in ufs_delete_entry()
544 if (pde) in ufs_delete_entry()
545 from = (char*)pde - (char*)page_address(page); in ufs_delete_entry()
551 if (pde) in ufs_delete_entry()
552 pde->d_reclen = cpu_to_fs16(sb, to - from); in ufs_delete_entry()
/linux-3.4.99/fs/exofs/
Ddir.c540 struct exofs_dir_entry *pde = NULL; in exofs_delete_entry() local
552 pde = de; in exofs_delete_entry()
555 if (pde) in exofs_delete_entry()
556 from = (char *)pde - (char *)page_address(page); in exofs_delete_entry()
564 if (pde) in exofs_delete_entry()
565 pde->rec_len = cpu_to_le16(to - from); in exofs_delete_entry()
/linux-3.4.99/fs/ext2/
Ddir.c597 ext2_dirent * pde = NULL; in ext2_delete_entry() local
608 pde = de; in ext2_delete_entry()
611 if (pde) in ext2_delete_entry()
612 from = (char*)pde - (char*)page_address(page); in ext2_delete_entry()
617 if (pde) in ext2_delete_entry()
618 pde->rec_len = ext2_rec_len_to_disk(to - from); in ext2_delete_entry()
/linux-3.4.99/drivers/s390/block/
Ddasd.c233 struct dentry *pde; in dasd_debugfs_setup() local
237 pde = debugfs_create_dir(name, base_dentry); in dasd_debugfs_setup()
238 if (!pde || IS_ERR(pde)) in dasd_debugfs_setup()
240 return pde; in dasd_debugfs_setup()
1080 struct dentry *pde; in dasd_profile_init() local
1087 pde = debugfs_create_file("statistics", mode, base_dentry, in dasd_profile_init()
1089 if (pde && !IS_ERR(pde)) in dasd_profile_init()
1090 profile->dentry = pde; in dasd_profile_init()
1119 struct dentry *pde; in dasd_statistics_createroot() local
1124 pde = debugfs_create_dir("dasd", NULL); in dasd_statistics_createroot()
[all …]
/linux-3.4.99/net/ipv4/netfilter/
Dipt_CLUSTERIP.c53 struct proc_dir_entry *pde; /* proc dir entry */ member
108 remove_proc_entry(c->pde->name, c->pde->parent); in clusterip_config_entry_put()
182 c->pde = proc_create_data(buffer, S_IWUSR|S_IRUSR, in clusterip_config_init()
185 if (!c->pde) { in clusterip_config_init()
/linux-3.4.99/drivers/scsi/
Dscsi_proc.c467 struct proc_dir_entry *pde; in scsi_init_procfs() local
473 pde = proc_create("scsi/scsi", 0, NULL, &proc_scsi_operations); in scsi_init_procfs()
474 if (!pde) in scsi_init_procfs()
/linux-3.4.99/drivers/of/
Dbase.c1005 if (np->pde) in prom_add_property()
1006 proc_device_tree_add_prop(np->pde, prop); in prom_add_property()
1046 if (np->pde) in prom_remove_property()
1047 proc_device_tree_remove_prop(np->pde, prop); in prom_remove_property()
1090 if (np->pde) in prom_update_property()
1091 proc_device_tree_update_prop(np->pde, newprop, oldprop); in prom_update_property()

123