Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 67) sorted by relevance

123

/drivers/acpi/
Dpci_root.c89 struct acpi_pci_root *root; in acpi_pci_register_driver() local
90 root = list_entry(entry, struct acpi_pci_root, node); in acpi_pci_register_driver()
91 driver->add(root->device->handle); in acpi_pci_register_driver()
117 struct acpi_pci_root *root; in acpi_pci_unregister_driver() local
118 root = list_entry(entry, struct acpi_pci_root, node); in acpi_pci_unregister_driver()
119 driver->remove(root->device->handle); in acpi_pci_unregister_driver()
191 struct acpi_pci_root *root = NULL; in acpi_pci_root_add() local
203 root = kzalloc(sizeof(struct acpi_pci_root), GFP_KERNEL); in acpi_pci_root_add()
204 if (!root) in acpi_pci_root_add()
206 INIT_LIST_HEAD(&root->node); in acpi_pci_root_add()
[all …]
/drivers/eisa/
Deisa-bus.c44 struct eisa_root_device *root, in is_forced_dev() argument
50 x = (root->bus_nr << 8) | edev->slot; in is_forced_dev()
180 static int __init eisa_init_device (struct eisa_root_device *root, in eisa_init_device() argument
188 sig_addr = SLOT_ADDRESS (root, slot) + EISA_VENDOR_ID_OFFSET; in eisa_init_device()
195 edev->state = inb (SLOT_ADDRESS (root, slot) + EISA_CONFIG_OFFSET) & EISA_CONFIG_ENABLED; in eisa_init_device()
196 edev->base_addr = SLOT_ADDRESS (root, slot); in eisa_init_device()
197 edev->dma_mask = root->dma_mask; /* Default DMA mask */ in eisa_init_device()
199 edev->dev.parent = root->dev; in eisa_init_device()
203 sprintf (edev->dev.bus_id, "%02X:%02X", root->bus_nr, slot); in eisa_init_device()
213 if (is_forced_dev (enable_dev, enable_dev_count, root, edev)) in eisa_init_device()
[all …]
/drivers/mmc/core/
Ddebugfs.c138 struct dentry *root; in mmc_add_host_debugfs() local
140 root = debugfs_create_dir(mmc_hostname(host), NULL); in mmc_add_host_debugfs()
141 if (IS_ERR(root)) in mmc_add_host_debugfs()
144 if (!root) in mmc_add_host_debugfs()
149 host->debugfs_root = root; in mmc_add_host_debugfs()
151 if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops)) in mmc_add_host_debugfs()
157 debugfs_remove_recursive(root); in mmc_add_host_debugfs()
252 struct dentry *root; in mmc_add_card_debugfs() local
257 root = debugfs_create_dir(mmc_card_id(card), host->debugfs_root); in mmc_add_card_debugfs()
258 if (IS_ERR(root)) in mmc_add_card_debugfs()
[all …]
/drivers/oprofile/
Doprofile_files.c126 void oprofile_create_files(struct super_block *sb, struct dentry *root) in oprofile_create_files() argument
133 oprofilefs_create_file(sb, root, "enable", &enable_fops); in oprofile_create_files()
134 oprofilefs_create_file_perm(sb, root, "dump", &dump_fops, 0666); in oprofile_create_files()
135 oprofilefs_create_file(sb, root, "buffer", &event_buffer_fops); in oprofile_create_files()
136 oprofilefs_create_ulong(sb, root, "buffer_size", &oprofile_buffer_size); in oprofile_create_files()
137 oprofilefs_create_ulong(sb, root, "buffer_watershed", &oprofile_buffer_watershed); in oprofile_create_files()
138 oprofilefs_create_ulong(sb, root, "cpu_buffer_size", &oprofile_cpu_buffer_size); in oprofile_create_files()
139 oprofilefs_create_file(sb, root, "cpu_type", &cpu_type_fops); in oprofile_create_files()
140 oprofilefs_create_file(sb, root, "backtrace_depth", &depth_fops); in oprofile_create_files()
141 oprofilefs_create_file(sb, root, "pointer_size", &pointer_size_fops); in oprofile_create_files()
[all …]
Doprofilefs.c130 struct dentry *root, char const *name, const struct file_operations *fops, in __oprofilefs_create_file() argument
136 dentry = d_alloc_name(root, name); in __oprofilefs_create_file()
150 int oprofilefs_create_ulong(struct super_block *sb, struct dentry *root, in oprofilefs_create_ulong() argument
153 struct dentry *d = __oprofilefs_create_file(sb, root, name, in oprofilefs_create_ulong()
163 int oprofilefs_create_ro_ulong(struct super_block *sb, struct dentry *root, in oprofilefs_create_ro_ulong() argument
166 struct dentry *d = __oprofilefs_create_file(sb, root, name, in oprofilefs_create_ro_ulong()
189 int oprofilefs_create_ro_atomic(struct super_block *sb, struct dentry *root, in oprofilefs_create_ro_atomic() argument
192 struct dentry *d = __oprofilefs_create_file(sb, root, name, in oprofilefs_create_ro_atomic()
202 int oprofilefs_create_file(struct super_block *sb, struct dentry *root, in oprofilefs_create_file() argument
205 if (!__oprofilefs_create_file(sb, root, name, fops, 0644)) in oprofilefs_create_file()
[all …]
Doprofile_stats.c39 void oprofile_create_stats_files(struct super_block *sb, struct dentry *root) in oprofile_create_stats_files() argument
47 dir = oprofilefs_mkdir(sb, root, "stats"); in oprofile_create_stats_files()
/drivers/infiniband/hw/amso1100/
Dc2_alloc.c73 struct sp_chunk **root) in c2_init_mqsp_pool() argument
75 return c2_alloc_mqsp_chunk(c2dev, gfp_mask, root); in c2_init_mqsp_pool()
78 void c2_free_mqsp_pool(struct c2_dev *c2dev, struct sp_chunk *root) in c2_free_mqsp_pool() argument
82 while (root) { in c2_free_mqsp_pool()
83 next = root->next; in c2_free_mqsp_pool()
84 dma_free_coherent(&c2dev->pcidev->dev, PAGE_SIZE, root, in c2_free_mqsp_pool()
85 pci_unmap_addr(root, mapping)); in c2_free_mqsp_pool()
86 root = next; in c2_free_mqsp_pool()
/drivers/net/wan/
Ddscc4.c190 struct dscc4_dev_priv *root; member
688 struct dscc4_dev_priv *root; in dscc4_free1() local
692 root = ppriv->root; in dscc4_free1()
695 unregister_hdlc_device(dscc4_to_dev(root + i)); in dscc4_free1()
700 free_netdev(root[i].dev); in dscc4_free1()
701 kfree(root); in dscc4_free1()
754 rc = request_irq(pdev->irq, dscc4_irq, IRQF_SHARED, DRV_NAME, priv->root); in dscc4_init_one()
787 dpriv = priv->root + i; in dscc4_init_one()
795 dpriv = priv->root + i; in dscc4_init_one()
820 dpriv = priv->root + i; in dscc4_init_one()
[all …]
/drivers/parisc/
Deisa.c67 struct eisa_root_device root; member
375 eisa_dev.root.dev = &dev->dev; in eisa_probe()
376 dev->dev.driver_data = &eisa_dev.root; in eisa_probe()
377 eisa_dev.root.bus_base_addr = 0; in eisa_probe()
378 eisa_dev.root.res = &eisa_dev.hba.io_space; in eisa_probe()
379 eisa_dev.root.slots = result; in eisa_probe()
380 eisa_dev.root.dma_mask = 0xffffffff; /* wild guess */ in eisa_probe()
381 if (eisa_root_register (&eisa_dev.root)) { in eisa_probe()
/drivers/nubus/
Dproc.c86 struct nubus_dir* root) in nubus_proc_populate() argument
92 while (nubus_readdir(root, &ent) != -1) { in nubus_proc_populate()
116 struct nubus_dir root; in nubus_proc_attach_device() local
139 nubus_get_root_dir(dev->board, &root); in nubus_proc_attach_device()
140 nubus_proc_populate(dev, e, &root); in nubus_proc_attach_device()
/drivers/misc/ibmasm/
Dibmasmfs.c89 static void ibmasmfs_create_files (struct super_block *sb, struct dentry *root);
116 struct inode *root; in ibmasmfs_fill_super() local
125 root = ibmasmfs_make_inode (sb, S_IFDIR | 0500); in ibmasmfs_fill_super()
126 if (!root) in ibmasmfs_fill_super()
129 root->i_op = &simple_dir_inode_operations; in ibmasmfs_fill_super()
130 root->i_fop = ibmasmfs_dir_ops; in ibmasmfs_fill_super()
132 root_dentry = d_alloc_root(root); in ibmasmfs_fill_super()
134 iput(root); in ibmasmfs_fill_super()
610 static void ibmasmfs_create_files (struct super_block *sb, struct dentry *root) in ibmasmfs_create_files() argument
619 dir = ibmasmfs_create_dir(sb, root, sp->dirname); in ibmasmfs_create_files()
/drivers/input/serio/
Di8042-sparcio.h107 struct device_node *root = of_find_node_by_path("/"); in i8042_platform_init() local
109 if (!strcmp(root->name, "SUNW,JavaStation-1")) { in i8042_platform_init()
138 struct device_node *root = of_find_node_by_path("/"); in i8042_platform_exit() local
140 if (strcmp(root->name, "SUNW,JavaStation-1")) in i8042_platform_exit()
/drivers/infiniband/hw/ipath/
Dipath_fs.c300 struct dentry *dir, *root; in remove_device_files() local
304 root = dget(sb->s_root); in remove_device_files()
305 mutex_lock(&root->d_inode->i_mutex); in remove_device_files()
307 dir = lookup_one_len(unit, root, strlen(unit)); in remove_device_files()
318 ret = simple_rmdir(root->d_inode, dir); in remove_device_files()
321 mutex_unlock(&root->d_inode->i_mutex); in remove_device_files()
322 dput(root); in remove_device_files()
/drivers/pci/hotplug/
Dcpqphp_sysfs.c213 static struct dentry *root; variable
217 if (!root) in cpqhp_initialize_debugfs()
218 root = debugfs_create_dir("cpqhp", NULL); in cpqhp_initialize_debugfs()
223 debugfs_remove(root); in cpqhp_shutdown_debugfs()
228 ctrl->dentry = debugfs_create_file(ctrl->pci_dev->dev.bus_id, S_IRUGO, root, ctrl, &debug_ops); in cpqhp_create_debugfs_files()
/drivers/mtd/ubi/
Dwl.c165 struct rb_root *root);
169 #define paranoid_check_in_wl_tree(e, root) argument
181 static void wl_tree_add(struct ubi_wl_entry *e, struct rb_root *root) in wl_tree_add() argument
185 p = &root->rb_node; in wl_tree_add()
206 rb_insert_color(&e->u.rb, root); in wl_tree_add()
293 static int in_wl_tree(struct ubi_wl_entry *e, struct rb_root *root) in in_wl_tree() argument
297 p = root->rb_node; in in_wl_tree()
353 static struct ubi_wl_entry *find_wl_entry(struct rb_root *root, int max) in find_wl_entry() argument
358 e = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); in find_wl_entry()
361 p = root->rb_node; in find_wl_entry()
[all …]
Dscan.c204 sv->root = RB_ROOT; in add_volume()
400 p = &sv->root.rb_node; in ubi_scan_add_used()
517 rb_insert_color(&seb->u.rb, &sv->root); in ubi_scan_add_used()
562 struct rb_node *p = sv->root.rb_node; in ubi_scan_find_seb()
591 while ((rb = rb_first(&sv->root))) { in ubi_scan_rm_volume()
593 rb_erase(&seb->u.rb, &sv->root); in ubi_scan_rm_volume()
918 ubi_rb_for_each_entry(rb2, seb, &sv->root, u.rb) in ubi_scan()
967 struct rb_node *this = sv->root.rb_node; in destroy_sv()
1106 ubi_rb_for_each_entry(rb2, seb, &sv->root, u.rb) { in paranoid_check_si()
1179 ubi_rb_for_each_entry(rb2, seb, &sv->root, u.rb) { in paranoid_check_si()
[all …]
/drivers/pci/
Dsetup-res.c102 struct resource *root = NULL; in pci_claim_resource() local
106 root = pcibios_select_root(dev, res); in pci_claim_resource()
109 if (root != NULL) in pci_claim_resource()
110 err = insert_resource(root, res); in pci_claim_resource()
115 root ? "address space collision on" : in pci_claim_resource()
Dintel-iommu.c77 static inline bool root_present(struct root_entry *root) in root_present() argument
79 return (root->val & 1); in root_present()
81 static inline void set_root_present(struct root_entry *root) in set_root_present() argument
83 root->val |= 1; in set_root_present()
85 static inline void set_root_value(struct root_entry *root, unsigned long value) in set_root_value() argument
87 root->val |= value & VTD_PAGE_MASK; in set_root_value()
91 get_context_addr_from_root(struct root_entry *root) in get_context_addr_from_root() argument
94 (root_present(root)?phys_to_virt( in get_context_addr_from_root()
95 root->val & VTD_PAGE_MASK) : in get_context_addr_from_root()
474 struct root_entry *root; in device_to_context_entry() local
[all …]
/drivers/char/
Dbriq_panel.c200 struct device_node *root = of_find_node_by_path("/"); in briq_panel_init() local
204 machine = of_get_property(root, "model", NULL); in briq_panel_init()
206 of_node_put(root); in briq_panel_init()
209 of_node_put(root); in briq_panel_init()
/drivers/usb/core/
Dinode.c225 struct dentry *root = sb->s_root; in update_sb() local
228 if (!root) in update_sb()
231 mutex_lock_nested(&root->d_inode->i_mutex, I_MUTEX_PARENT); in update_sb()
233 list_for_each_entry(bus, &root->d_subdirs, d_u.d_child) { in update_sb()
251 mutex_unlock(&root->d_inode->i_mutex); in update_sb()
457 struct dentry *root; in usbfs_fill_super() local
471 root = d_alloc_root(inode); in usbfs_fill_super()
472 if (!root) { in usbfs_fill_super()
477 sb->s_root = root; in usbfs_fill_super()
/drivers/base/
Dcore.c1243 struct root_device *root; in __root_device_register() local
1246 root = kzalloc(sizeof(struct root_device), GFP_KERNEL); in __root_device_register()
1247 if (!root) in __root_device_register()
1250 err = dev_set_name(&root->dev, name); in __root_device_register()
1252 kfree(root); in __root_device_register()
1256 root->dev.release = root_device_release; in __root_device_register()
1258 err = device_register(&root->dev); in __root_device_register()
1260 put_device(&root->dev); in __root_device_register()
1268 err = sysfs_create_link(&root->dev.kobj, &mk->kobj, "module"); in __root_device_register()
1270 device_unregister(&root->dev); in __root_device_register()
[all …]
/drivers/xen/xenbus/
Dxenbus_probe.c179 .root = "device",
548 xenbus_frontend.root, type, name); in xenbus_probe_frontend()
566 dir = xenbus_directory(XBT_NIL, bus->root, type, &dir_n); in xenbus_probe_device_type()
585 dir = xenbus_directory(XBT_NIL, bus->root, "", &dir_n); in xenbus_probe_devices()
626 const char *p, *root; in xenbus_dev_changed() local
645 root = kasprintf(GFP_KERNEL, "%.*s", rootlen, node); in xenbus_dev_changed()
646 if (!root) in xenbus_dev_changed()
649 dev = xenbus_device_find(root, &bus->bus); in xenbus_dev_changed()
651 xenbus_probe_node(bus, type, root); in xenbus_dev_changed()
655 kfree(root); in xenbus_dev_changed()
/drivers/mtd/devices/
Ddocecc.c197 gf root[NN-KK], reg[NN-KK + 1], loc[NN-KK]; in eras_dec_rs() local
266 root[count] = i; in eras_dec_rs()
355 root[count] = i; in eras_dec_rs()
397 num1 ^= Alpha_to[modnn(omega[i] + i * root[j])]; in eras_dec_rs()
399 num2 = Alpha_to[modnn(root[j] * (B0 - 1) + NN)]; in eras_dec_rs()
405 den ^= Alpha_to[modnn(lambda[i+1] + i * root[j])]; in eras_dec_rs()
/drivers/ieee1394/
Dconfig_roms.c39 struct csr1212_keyval *root; in hpsb_default_host_entry() local
46 root = host->csr.rom->root_kv; in hpsb_default_host_entry()
62 ret = csr1212_attach_keyval_to_directory(root, vend_id); in hpsb_default_host_entry()
/drivers/message/i2o/
Diop.c667 struct resource *root; in i2o_iop_systab_set() local
677 root = pci_find_parent_resource(c->pdev, res); in i2o_iop_systab_set()
678 if (root == NULL) in i2o_iop_systab_set()
680 …if (root && allocate_resource(root, res, sb->desired_mem_size, sb->desired_mem_size, sb->desired_m… in i2o_iop_systab_set()
699 root = pci_find_parent_resource(c->pdev, res); in i2o_iop_systab_set()
700 if (root == NULL) in i2o_iop_systab_set()
702 …if (root && allocate_resource(root, res, sb->desired_io_size, sb->desired_io_size, sb->desired_io_… in i2o_iop_systab_set()

123