Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/linux-2.4.37.9/lib/
Drbtree.c67 rb_node_t * parent, * gparent; in rb_insert_color() local
69 while ((parent = node->rb_parent) && parent->rb_color == RB_RED) in rb_insert_color()
71 gparent = parent->rb_parent; in rb_insert_color()
73 if (parent == gparent->rb_left) in rb_insert_color()
80 parent->rb_color = RB_BLACK; in rb_insert_color()
87 if (parent->rb_right == node) in rb_insert_color()
90 __rb_rotate_left(parent, root); in rb_insert_color()
91 tmp = parent; in rb_insert_color()
92 parent = node; in rb_insert_color()
96 parent->rb_color = RB_BLACK; in rb_insert_color()
[all …]
/linux-2.4.37.9/drivers/acpi/parser/
Dpswalk.c74 union acpi_parse_object *parent; in acpi_ps_get_next_walk_op() local
103 parent = op->common.parent; in acpi_ps_get_next_walk_op()
149 parent = op; in acpi_ps_get_next_walk_op()
157 while (parent) { in acpi_ps_get_next_walk_op()
160 grand_parent = parent->common.parent; in acpi_ps_get_next_walk_op()
161 next = parent->common.next; in acpi_ps_get_next_walk_op()
163 walk_state->op = parent; in acpi_ps_get_next_walk_op()
164 walk_state->op_info = acpi_ps_get_opcode_info (parent->common.aml_opcode); in acpi_ps_get_next_walk_op()
165 walk_state->opcode = parent->common.aml_opcode; in acpi_ps_get_next_walk_op()
172 if (parent == walk_state->origin) { in acpi_ps_get_next_walk_op()
[all …]
Dpstree.c178 arg->common.parent = op; in acpi_ps_append_arg()
271 union acpi_parse_object *parent; in acpi_ps_get_depth_next() local
298 parent = op->common.parent; in acpi_ps_get_depth_next()
300 while (parent) { in acpi_ps_get_depth_next()
301 arg = acpi_ps_get_arg (parent, 0); in acpi_ps_get_depth_next()
312 if (parent->common.next) { in acpi_ps_get_depth_next()
315 return (parent->common.next); in acpi_ps_get_depth_next()
318 op = parent; in acpi_ps_get_depth_next()
319 parent = parent->common.parent; in acpi_ps_get_depth_next()
/linux-2.4.37.9/arch/parisc/kernel/
Ddrivers.c65 dev = dev->parent; in next_dev()
232 dev = dev->parent; in find_pa_parent_type()
245 dev = dev->parent; in get_node_path()
274 get_node_path(dev->parent, &path); in print_pa_hwpath()
299 for (bus = dev->bus; bus->parent; bus = bus->parent) { in get_pci_node_path()
307 padev = padev->parent; in get_pci_node_path()
330 struct parisc_device * create_tree_node(char id, struct parisc_device *parent, in create_tree_node() argument
339 dev->parent = parent; in create_tree_node()
354 alloc_tree_node(struct parisc_device *parent, char id) in alloc_tree_node() argument
357 if ((!parent->child) || (parent->child->hw_path > id)) { in alloc_tree_node()
[all …]
/linux-2.4.37.9/fs/
Ddcache.c151 struct dentry *parent; in dput() local
156 parent = dentry->d_parent; in dput()
158 if (dentry == parent) in dput()
160 dentry = parent; in dput()
299 struct dentry * parent; in prune_one_dentry() local
305 parent = dentry->d_parent; in prune_one_dentry()
307 if (parent != dentry) in prune_one_dentry()
308 dput(parent); in prune_one_dentry()
436 int have_submounts(struct dentry *parent) in have_submounts() argument
438 struct dentry *this_parent = parent; in have_submounts()
[all …]
/linux-2.4.37.9/include/linux/
Ddnotify.h32 struct dentry *parent; in dnotify_parent() local
34 parent = dentry->d_parent; in dnotify_parent()
35 if (parent->d_inode->i_dnotify_mask & event) { in dnotify_parent()
36 dget(parent); in dnotify_parent()
38 __inode_dir_notify(parent->d_inode, event); in dnotify_parent()
39 dput(parent); in dnotify_parent()
Dproc_fs.h66 struct proc_dir_entry *next, *parent, *subdir; member
96 struct proc_dir_entry *parent);
97 extern void remove_proc_entry(const char *name, struct proc_dir_entry *parent);
149 struct proc_dir_entry *parent);
201 mode_t mode, struct proc_dir_entry *parent) { return NULL; } in create_proc_entry() argument
203 static inline void remove_proc_entry(const char *name, struct proc_dir_entry *parent) {}; in remove_proc_entry() argument
205 struct proc_dir_entry *parent,char *dest) {return NULL;} in proc_symlink() argument
207 struct proc_dir_entry *parent,kdev_t rdev) {return NULL;} in proc_mknod() argument
209 struct proc_dir_entry *parent) {return NULL;} in proc_mkdir() argument
/linux-2.4.37.9/fs/nfsd/
Dnfsfh.c183 int len, int fhtype, int parent) in nfsd_get_dentry() argument
186 return sb->s_op->fh_to_dentry(sb, fh, len, fhtype, parent); in nfsd_get_dentry()
191 if (parent) in nfsd_get_dentry()
198 if (parent) in nfsd_get_dentry()
211 int d_splice(struct dentry *target, struct dentry *parent, struct qstr *name) in d_splice() argument
216 printk("nfsd: d_splice with no-root target: %s/%s\n", parent->d_name.name, name->name); in d_splice()
218 printk("nfsd: d_splice with non-DISCONNECTED target: %s/%s\n", parent->d_name.name, name->name); in d_splice()
220 tdentry = d_alloc(parent, name); in d_splice()
239 if (!(parent->d_flags & DCACHE_NFSD_DISCONNECTED)) { in d_splice()
242 parent = target; in d_splice()
[all …]
/linux-2.4.37.9/fs/proc/
Dgeneric.c375 dp->parent = dir; in proc_register()
423 static struct proc_dir_entry *proc_create(struct proc_dir_entry **parent, in proc_create() argument
435 if (!(*parent) && xlate_proc_name(name, parent, &fn) != 0) in proc_create()
453 struct proc_dir_entry *parent, const char *dest) in proc_symlink() argument
457 ent = proc_create(&parent,name, in proc_symlink()
464 if (proc_register(parent, ent) < 0) { in proc_symlink()
478 struct proc_dir_entry *parent, kdev_t rdev) in proc_mknod() argument
482 ent = proc_create(&parent,name,mode,1); in proc_mknod()
485 if (proc_register(parent, ent) < 0) { in proc_mknod()
494 struct proc_dir_entry *parent) in proc_mkdir_mode() argument
[all …]
/linux-2.4.37.9/kernel/
Dresource.c32 while (!p->sibling && p->parent) in r_next()
33 p = p->parent; in r_next()
59 for (depth = 0, p = r; depth < MAX_IORES_LEVEL; depth++, p = p->parent) in r_show()
60 if (p->parent == root) in r_show()
130 new->parent = root; in __request_resource()
144 p = &old->parent->child; in __release_resource()
151 old->parent = NULL; in __release_resource()
264 struct resource * __request_region(struct resource *parent, unsigned long start, unsigned long n, c… in __request_region() argument
280 conflict = __request_resource(parent, res); in __request_region()
283 if (conflict != parent) { in __request_region()
[all …]
/linux-2.4.37.9/fs/umsdos/
Demd.c56 struct dentry *umsdos_get_emd_dentry(struct dentry *parent) in umsdos_get_emd_dentry() argument
60 demd = umsdos_lookup_dentry(parent, UMSDOS_EMD_FILE, in umsdos_get_emd_dentry()
89 int umsdos_make_emd(struct dentry *parent) in umsdos_make_emd() argument
91 struct dentry *demd = umsdos_get_emd_dentry(parent); in umsdos_make_emd()
96 parent->d_name.name, err); in umsdos_make_emd()
106 parent->d_name.name, demd->d_name.name)); in umsdos_make_emd()
108 err = msdos_create(parent->d_inode, demd, S_IFREG | 0777); in umsdos_make_emd()
112 parent->d_name.name, demd->d_name.name, err); in umsdos_make_emd()
200 int umsdos_writeentry (struct dentry *parent, struct umsdos_info *info, in umsdos_writeentry() argument
203 struct inode *dir = parent->d_inode; in umsdos_writeentry()
[all …]
/linux-2.4.37.9/net/bluetooth/
Daf_bluetooth.c136 void bluez_accept_enqueue(struct sock *parent, struct sock *sk) in bluez_accept_enqueue() argument
138 BT_DBG("parent %p, sk %p", parent, sk); in bluez_accept_enqueue()
141 list_add_tail(&bluez_pi(sk)->accept_q, &bluez_pi(parent)->accept_q); in bluez_accept_enqueue()
142 bluez_pi(sk)->parent = parent; in bluez_accept_enqueue()
143 parent->ack_backlog++; in bluez_accept_enqueue()
151 bluez_pi(sk)->parent->ack_backlog--; in bluez_accept_unlink()
152 bluez_pi(sk)->parent = NULL; in bluez_accept_unlink()
156 struct sock *bluez_accept_dequeue(struct sock *parent, struct socket *newsock) in bluez_accept_dequeue() argument
162 BT_DBG("parent %p", parent); in bluez_accept_dequeue()
164 list_for_each_safe(p, n, &bluez_pi(parent)->accept_q) { in bluez_accept_dequeue()
Dsco.c70 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent);
187 static inline int sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) in sco_chan_add() argument
195 __sco_chan_add(conn, sk, parent); in sco_chan_add()
350 static void sco_sock_cleanup_listen(struct sock *parent) in sco_sock_cleanup_listen() argument
354 BT_DBG("parent %p", parent); in sco_sock_cleanup_listen()
357 while ((sk = bluez_accept_dequeue(parent, NULL))) { in sco_sock_cleanup_listen()
362 parent->state = BT_CLOSED; in sco_sock_cleanup_listen()
363 parent->zapped = 1; in sco_sock_cleanup_listen()
417 static void sco_sock_init(struct sock *sk, struct sock *parent) in sco_sock_init() argument
421 if (parent) in sco_sock_init()
[all …]
/linux-2.4.37.9/fs/devfs/
Dbase.c803 struct devfs_entry *parent; /* The parent directory */ member
918 de->name, de, de->parent, in devfs_put()
919 de->parent ? de->parent->name : "no parent"); in devfs_put()
1049 de->parent = dir; in _devfs_append_entry()
1135 return devfs_get (dir->parent); in _devfs_descend()
1180 if (de == dir->parent) in _devfs_make_parent_for_leaf()
1492 for (curr = de; curr != NULL; curr = curr->parent) devfs_get (curr); in devfsd_notify_de()
1636 name, de, dir, dir->name, dir->parent); in devfs_register()
1654 struct devfs_entry *parent; in _devfs_unhook() local
1657 parent = de->parent; in _devfs_unhook()
[all …]
/linux-2.4.37.9/drivers/acpi/dispatcher/
Ddsutils.c97 if (!op->common.parent) { in acpi_ds_is_result_used()
104 parent_info = acpi_ps_get_opcode_info (op->common.parent->common.aml_opcode); in acpi_ds_is_result_used()
119 switch (op->common.parent->common.aml_opcode) { in acpi_ds_is_result_used()
160 if ((op->common.parent->common.aml_opcode == AML_REGION_OP) || in acpi_ds_is_result_used()
161 (op->common.parent->common.aml_opcode == AML_DATA_REGION_OP) || in acpi_ds_is_result_used()
162 (op->common.parent->common.aml_opcode == AML_PACKAGE_OP) || in acpi_ds_is_result_used()
163 (op->common.parent->common.aml_opcode == AML_VAR_PACKAGE_OP) || in acpi_ds_is_result_used()
164 (op->common.parent->common.aml_opcode == AML_BUFFER_OP) || in acpi_ds_is_result_used()
165 (op->common.parent->common.aml_opcode == AML_INT_EVAL_SUBTREE_OP)) { in acpi_ds_is_result_used()
189 acpi_ps_get_opcode_name (op->common.parent->common.aml_opcode), op)); in acpi_ds_is_result_used()
[all …]
/linux-2.4.37.9/net/bluetooth/rfcomm/
Dsock.c89 struct sock *sk = d->owner, *parent; in rfcomm_sk_state_change() local
101 parent = bluez_pi(sk)->parent; in rfcomm_sk_state_change()
102 if (!parent) { in rfcomm_sk_state_change()
107 parent->data_ready(parent, 0); in rfcomm_sk_state_change()
184 static void rfcomm_sock_cleanup_listen(struct sock *parent) in rfcomm_sock_cleanup_listen() argument
188 BT_DBG("parent %p", parent); in rfcomm_sock_cleanup_listen()
191 while ((sk = bluez_accept_dequeue(parent, NULL))) { in rfcomm_sock_cleanup_listen()
196 parent->state = BT_CLOSED; in rfcomm_sock_cleanup_listen()
197 parent->zapped = 1; in rfcomm_sock_cleanup_listen()
249 static void rfcomm_sock_init(struct sock *sk, struct sock *parent) in rfcomm_sock_init() argument
[all …]
/linux-2.4.37.9/arch/sparc64/kernel/
Debus.c125 if (rnum >= dev->parent->num_addrs) { in fill_ebus_child()
127 dev->prom_name, len, dev->parent->num_addrs); in fill_ebus_child()
130 dev->resource[i].start = dev->parent->resource[i].start; in fill_ebus_child()
131 dev->resource[i].end = dev->parent->resource[i].end; in fill_ebus_child()
149 if (!strcmp(dev->parent->prom_name, "8042")) { in fill_ebus_child()
152 dev->irqs[0] = dev->parent->irqs[0]; in fill_ebus_child()
155 dev->irqs[0] = dev->parent->irqs[1]; in fill_ebus_child()
161 struct pci_pbm_info *pbm = dev->bus->parent; in fill_ebus_child()
162 struct pci_controller_info *p = pbm->parent; in fill_ebus_child()
238 struct pci_pbm_info *pbm = dev->bus->parent; in fill_ebus_device()
[all …]
/linux-2.4.37.9/drivers/sbus/
Dsbus.c181 struct sbus_dev *parent, in sbus_do_child_siblings() argument
189 child->parent = parent; in sbus_do_child_siblings()
194 this_dev->parent = parent; in sbus_do_child_siblings()
283 struct sbus_dev *parent = sdev->parent; in __fixup_regs_sdev() local
286 while (parent != NULL) { in __fixup_regs_sdev()
287 __apply_ranges_to_regs(parent->device_ranges, in __fixup_regs_sdev()
288 parent->num_device_ranges, in __fixup_regs_sdev()
292 parent = parent->parent; in __fixup_regs_sdev()
445 this_dev->parent = NULL; in sbus_init()
475 this_dev->parent = NULL; in sbus_init()
/linux-2.4.37.9/drivers/acpi/
Dbus.c186 struct acpi_device *parent) in acpi_device_register() argument
199 if (parent) in acpi_device_register()
200 device->dev.parent = &parent->dev; in acpi_device_register()
295 else if (device->parent) in acpi_bus_get_status()
296 device->status = device->parent->status; in acpi_bus_get_status()
382 if (device->parent) in acpi_bus_get_power()
383 *state = device->parent->power.state; in acpi_bus_get_power()
448 if (device->parent && (state < device->parent->power.state)) { in acpi_bus_set_power()
711 #define HAS_SIBLINGS(d) (((d)->parent) && ((d)->node.next != &(d)->parent->children))
779 while ((device = device->parent)) { in acpi_bus_walk()
[all …]
/linux-2.4.37.9/fs/hfsplus/
Dbnode.c338 new_node->parent = 0; in hfsplus_btree_add_level()
356 node->parent = tree->root; in hfsplus_btree_add_level()
392 new_node->parent = node->parent; in hfsplus_bnode_split()
556 if (!new_node->parent) { in hfsplus_bnode_insert_rec()
558 new_node->parent = tree->root; in hfsplus_bnode_insert_rec()
560 fd->bnode = hfsplus_find_bnode(tree, new_node->parent); in hfsplus_bnode_insert_rec()
585 hfsplus_bnode *node, *new_node, *parent; in hfsplus_update_idx_rec() local
593 if (!node->parent) in hfsplus_update_idx_rec()
597 parent = hfsplus_find_bnode(tree, node->parent); in hfsplus_update_idx_rec()
598 hfsplus_find_rec(parent, fd); in hfsplus_update_idx_rec()
[all …]
/linux-2.4.37.9/arch/mips/jmr3927/rbhma3100/
Dpci_fixup.c64 if (dev->bus->parent == NULL && in pci_get_irq()
70 } else if (dev->bus->parent == NULL && in pci_get_irq()
80 for (bus = dev->bus; bus->parent != NULL; bus = bus->parent) { in pci_get_irq()
105 if (dev->bus->parent == NULL && in pci_get_irq()
/linux-2.4.37.9/net/sched/
Dsch_htb.c158 struct htb_class *parent; /* parent class */ member
398 rb_node_t **p = &root->rb_node, *parent = NULL; in htb_add_to_id_tree() local
409 struct htb_class *c; parent = *p; in htb_add_to_id_tree()
410 c = rb_entry(parent, struct htb_class, node[prio]); in htb_add_to_id_tree()
413 p = &parent->rb_right; in htb_add_to_id_tree()
415 p = &parent->rb_left; in htb_add_to_id_tree()
417 rb_link_node(&cl->node[prio], parent, p); in htb_add_to_id_tree()
431 rb_node_t **p = &q->wait_pq[cl->level].rb_node, *parent = NULL; in htb_add_to_wait_tree() local
448 struct htb_class *c; parent = *p; in htb_add_to_wait_tree()
449 c = rb_entry(parent, struct htb_class, pq_node); in htb_add_to_wait_tree()
[all …]
/linux-2.4.37.9/fs/smbfs/
Dcache.c59 smb_invalidate_dircache_entries(struct dentry *parent) in smb_invalidate_dircache_entries() argument
61 struct smb_sb_info *server = server_from_dentry(parent); in smb_invalidate_dircache_entries()
66 next = parent->d_subdirs.next; in smb_invalidate_dircache_entries()
67 while (next != &parent->d_subdirs) { in smb_invalidate_dircache_entries()
81 smb_dget_fpos(struct dentry *dentry, struct dentry *parent, unsigned long fpos) in smb_dget_fpos() argument
86 if (d_validate(dent, parent)) { in smb_dget_fpos()
100 next = parent->d_subdirs.next; in smb_dget_fpos()
101 while (next != &parent->d_subdirs) { in smb_dget_fpos()
/linux-2.4.37.9/fs/ncpfs/
Dncplib_kernel.h155 ncp_renew_dentries(struct dentry *parent) in ncp_renew_dentries() argument
157 struct ncp_server *server = NCP_SERVER(parent->d_inode); in ncp_renew_dentries()
162 next = parent->d_subdirs.next; in ncp_renew_dentries()
163 while (next != &parent->d_subdirs) { in ncp_renew_dentries()
177 ncp_invalidate_dircache_entries(struct dentry *parent) in ncp_invalidate_dircache_entries() argument
179 struct ncp_server *server = NCP_SERVER(parent->d_inode); in ncp_invalidate_dircache_entries()
184 next = parent->d_subdirs.next; in ncp_invalidate_dircache_entries()
185 while (next != &parent->d_subdirs) { in ncp_invalidate_dircache_entries()
/linux-2.4.37.9/arch/ppc/kernel/
Dprom.c196 if (np->parent == NULL) in finish_node()
248 return p->parent; in intr_parent()
463 ADDBASE(np->parent); in relocate_nodes()
480 if (np->parent) in prom_n_addr_cells()
481 np = np->parent; in prom_n_addr_cells()
485 } while (np->parent); in prom_n_addr_cells()
495 if (np->parent) in prom_n_size_cells()
496 np = np->parent; in prom_n_size_cells()
500 } while (np->parent); in prom_n_size_cells()
517 while ((np = np->parent) != NULL) { in map_addr()
[all …]

12345678910>>...13