Lines Matching refs:root

43 			 struct eisa_root_device *root,  in is_forced_dev()  argument
49 x = (root->bus_nr << 8) | edev->slot; in is_forced_dev()
182 static int __init eisa_init_device(struct eisa_root_device *root, in eisa_init_device() argument
190 sig_addr = SLOT_ADDRESS(root, slot) + EISA_VENDOR_ID_OFFSET; in eisa_init_device()
198 edev->state = inb(SLOT_ADDRESS(root, slot) + EISA_CONFIG_OFFSET) in eisa_init_device()
200 edev->base_addr = SLOT_ADDRESS(root, slot); in eisa_init_device()
201 edev->dma_mask = root->dma_mask; /* Default DMA mask */ in eisa_init_device()
203 edev->dev.parent = root->dev; in eisa_init_device()
207 dev_set_name(&edev->dev, "%02X:%02X", root->bus_nr, slot); in eisa_init_device()
217 if (is_forced_dev(enable_dev, enable_dev_count, root, edev)) in eisa_init_device()
220 if (is_forced_dev(disable_dev, disable_dev_count, root, edev)) in eisa_init_device()
255 static int __init eisa_request_resources(struct eisa_root_device *root, in eisa_request_resources() argument
275 edev->res[i].start = SLOT_ADDRESS(root, slot) in eisa_request_resources()
281 edev->res[i].start = SLOT_ADDRESS(root, slot) in eisa_request_resources()
287 if (request_resource(root->res, &edev->res[i])) in eisa_request_resources()
309 static int __init eisa_probe(struct eisa_root_device *root) in eisa_probe() argument
315 dev_info(root->dev, "Probing EISA bus %d\n", root->bus_nr); in eisa_probe()
324 if (eisa_request_resources(root, edev, 0)) { in eisa_probe()
325 dev_warn(root->dev, in eisa_probe()
328 if (!root->force_probe) in eisa_probe()
333 if (eisa_init_device(root, edev, 0)) { in eisa_probe()
336 if (!root->force_probe) in eisa_probe()
352 for (c = 0, i = 1; i <= root->slots; i++) { in eisa_probe()
355 dev_err(root->dev, "EISA: Out of memory for slot %d\n", in eisa_probe()
360 if (eisa_request_resources(root, edev, i)) { in eisa_probe()
361 dev_warn(root->dev, in eisa_probe()
368 if (eisa_init_device(root, edev, i)) { in eisa_probe()
396 dev_info(root->dev, "EISA: Detected %d card%s\n", c, c == 1 ? "" : "s"); in eisa_probe()
409 int __init eisa_root_register(struct eisa_root_device *root) in eisa_root_register() argument
418 root->eisa_root_res.name = eisa_root_res.name; in eisa_root_register()
419 root->eisa_root_res.start = root->res->start; in eisa_root_register()
420 root->eisa_root_res.end = root->res->end; in eisa_root_register()
421 root->eisa_root_res.flags = IORESOURCE_BUSY; in eisa_root_register()
423 err = request_resource(&eisa_root_res, &root->eisa_root_res); in eisa_root_register()
427 root->bus_nr = eisa_bus_count++; in eisa_root_register()
429 err = eisa_probe(root); in eisa_root_register()
431 release_resource(&root->eisa_root_res); in eisa_root_register()