Lines Matching refs:drc_name
43 static struct device_node *find_vio_slot_node(char *drc_name) in find_vio_slot_node() argument
55 if ((rc == 0) && (!strcmp(drc_name, name))) in find_vio_slot_node()
63 static struct device_node *find_php_slot_pci_node(char *drc_name, in find_php_slot_pci_node() argument
74 if (!strcmp(drc_name, name) && !strcmp(drc_type, type)) in find_php_slot_pci_node()
81 static struct device_node *find_dlpar_node(char *drc_name, int *node_type) in find_dlpar_node() argument
85 dn = find_php_slot_pci_node(drc_name, "SLOT"); in find_dlpar_node()
91 dn = find_php_slot_pci_node(drc_name, "PHB"); in find_dlpar_node()
97 dn = find_vio_slot_node(drc_name); in find_dlpar_node()
175 static int dlpar_add_pci_slot(char *drc_name, struct device_node *dn) in dlpar_add_pci_slot() argument
192 drc_name); in dlpar_add_pci_slot()
198 __func__, dev->hdr_type, drc_name); in dlpar_add_pci_slot()
205 __func__, drc_name); in dlpar_add_pci_slot()
211 static int dlpar_remove_phb(char *drc_name, struct device_node *dn) in dlpar_remove_phb() argument
224 __func__, drc_name); in dlpar_remove_phb()
239 static int dlpar_add_phb(char *drc_name, struct device_node *dn) in dlpar_add_phb() argument
254 __func__, drc_name); in dlpar_add_phb()
260 static int dlpar_add_vio_slot(char *drc_name, struct device_node *dn) in dlpar_add_vio_slot() argument
268 __func__, drc_name); in dlpar_add_vio_slot()
286 int dlpar_add_slot(char *drc_name) in dlpar_add_slot() argument
296 dn = find_dlpar_node(drc_name, &node_type); in dlpar_add_slot()
304 rc = dlpar_add_vio_slot(drc_name, dn); in dlpar_add_slot()
307 rc = dlpar_add_pci_slot(drc_name, dn); in dlpar_add_slot()
310 rc = dlpar_add_phb(drc_name, dn); in dlpar_add_slot()
314 printk(KERN_INFO "%s: slot %s added\n", DLPAR_MODULE_NAME, drc_name); in dlpar_add_slot()
330 static int dlpar_remove_vio_slot(char *drc_name, struct device_node *dn) in dlpar_remove_vio_slot() argument
353 int dlpar_remove_pci_slot(char *drc_name, struct device_node *dn) in dlpar_remove_pci_slot() argument
373 __func__, drc_name); in dlpar_remove_pci_slot()
409 int dlpar_remove_slot(char *drc_name) in dlpar_remove_slot() argument
418 dn = find_dlpar_node(drc_name, &node_type); in dlpar_remove_slot()
426 rc = dlpar_remove_vio_slot(drc_name, dn); in dlpar_remove_slot()
429 rc = dlpar_remove_phb(drc_name, dn); in dlpar_remove_slot()
432 rc = dlpar_remove_pci_slot(drc_name, dn); in dlpar_remove_slot()
437 printk(KERN_INFO "%s: slot %s removed\n", DLPAR_MODULE_NAME, drc_name); in dlpar_remove_slot()