···737737738738 for (node = *head; node; node = node->next) {739739 dbg("%s: req_size =%x node=%p, base=%x, length=%x\n",740740- __FUNCTION__, size, node, node->base, node->length);740740+ __func__, size, node, node->base, node->length);741741 if (node->length < size)742742 continue;743743744744 if (node->base & (size - 1)) {745745- dbg("%s: not aligned\n", __FUNCTION__);745745+ dbg("%s: not aligned\n", __func__);746746 /* this one isn't base aligned properly747747 * so we'll make a new entry and split it up */748748 temp_dword = (node->base | (size-1)) + 1;···767767768768 /* Don't need to check if too small since we already did */769769 if (node->length > size) {770770- dbg("%s: too big\n", __FUNCTION__);770770+ dbg("%s: too big\n", __func__);771771 /* this one is longer than we need772772 * so we'll make a new entry and split it up */773773 split_node = kmalloc(sizeof(*split_node), GFP_KERNEL);···784784 node->next = split_node;785785 } /* End of too big on top end */786786787787- dbg("%s: got one!!!\n", __FUNCTION__);787787+ dbg("%s: got one!!!\n", __func__);788788 /* If we got here, then it is the right size789789 * Now take it out of the list */790790 if (*head == node) {···819819 struct pci_resource *node2;820820 int out_of_order = 1;821821822822- dbg("%s: head = %p, *head = %p\n", __FUNCTION__, head, *head);822822+ dbg("%s: head = %p, *head = %p\n", __func__, head, *head);823823824824 if (!(*head))825825 return 1;···907907 /* Read to clear posted writes */908908 misc = readw(ctrl->hpc_reg + MISC);909909910910- dbg ("%s - waking up\n", __FUNCTION__);910910+ dbg ("%s - waking up\n", __func__);911911 wake_up_interruptible(&ctrl->queue);912912 }913913···1421142114221422 hp_slot = func->device - ctrl->slot_device_offset;14231423 dbg("%s: func->device, slot_offset, hp_slot = %d, %d ,%d\n",14241424- __FUNCTION__, func->device, ctrl->slot_device_offset, hp_slot);14241424+ __func__, func->device, ctrl->slot_device_offset, hp_slot);1425142514261426 mutex_lock(&ctrl->crit_sect);14271427···1466146614671467 /* turn on board and blink green LED */1468146814691469- dbg("%s: before down\n", __FUNCTION__);14691469+ dbg("%s: before down\n", __func__);14701470 mutex_lock(&ctrl->crit_sect);14711471- dbg("%s: after down\n", __FUNCTION__);14711471+ dbg("%s: after down\n", __func__);1472147214731473- dbg("%s: before slot_enable\n", __FUNCTION__);14731473+ dbg("%s: before slot_enable\n", __func__);14741474 slot_enable (ctrl, hp_slot);1475147514761476- dbg("%s: before green_LED_blink\n", __FUNCTION__);14761476+ dbg("%s: before green_LED_blink\n", __func__);14771477 green_LED_blink (ctrl, hp_slot);1478147814791479- dbg("%s: before amber_LED_blink\n", __FUNCTION__);14791479+ dbg("%s: before amber_LED_blink\n", __func__);14801480 amber_LED_off (ctrl, hp_slot);1481148114821482- dbg("%s: before set_SOGO\n", __FUNCTION__);14821482+ dbg("%s: before set_SOGO\n", __func__);14831483 set_SOGO(ctrl);1484148414851485 /* Wait for SOBS to be unset */14861486- dbg("%s: before wait_for_ctrl_irq\n", __FUNCTION__);14861486+ dbg("%s: before wait_for_ctrl_irq\n", __func__);14871487 wait_for_ctrl_irq (ctrl);14881488- dbg("%s: after wait_for_ctrl_irq\n", __FUNCTION__);14881488+ dbg("%s: after wait_for_ctrl_irq\n", __func__);1489148914901490- dbg("%s: before up\n", __FUNCTION__);14901490+ dbg("%s: before up\n", __func__);14911491 mutex_unlock(&ctrl->crit_sect);14921492- dbg("%s: after up\n", __FUNCTION__);14921492+ dbg("%s: after up\n", __func__);1493149314941494 /* Wait for ~1 second because of hot plug spec */14951495- dbg("%s: before long_delay\n", __FUNCTION__);14951495+ dbg("%s: before long_delay\n", __func__);14961496 long_delay(1*HZ);14971497- dbg("%s: after long_delay\n", __FUNCTION__);14971497+ dbg("%s: after long_delay\n", __func__);1498149814991499- dbg("%s: func status = %x\n", __FUNCTION__, func->status);14991499+ dbg("%s: func status = %x\n", __func__, func->status);15001500 /* Check for a power fault */15011501 if (func->status == 0xFF) {15021502 /* power fault occurred, but it was benign */15031503 temp_register = 0xFFFFFFFF;15041504- dbg("%s: temp register set to %x by power fault\n", __FUNCTION__, temp_register);15041504+ dbg("%s: temp register set to %x by power fault\n", __func__, temp_register);15051505 rc = POWER_FAILURE;15061506 func->status = 0;15071507 } else {15081508 /* Get vendor/device ID u32 */15091509 ctrl->pci_bus->number = func->bus;15101510 rc = pci_bus_read_config_dword (ctrl->pci_bus, PCI_DEVFN(func->device, func->function), PCI_VENDOR_ID, &temp_register);15111511- dbg("%s: pci_read_config_dword returns %d\n", __FUNCTION__, rc);15121512- dbg("%s: temp_register is %x\n", __FUNCTION__, temp_register);15111511+ dbg("%s: pci_read_config_dword returns %d\n", __func__, rc);15121512+ dbg("%s: temp_register is %x\n", __func__, temp_register);1513151315141514 if (rc != 0) {15151515 /* Something's wrong here */15161516 temp_register = 0xFFFFFFFF;15171517- dbg("%s: temp register set to %x by error\n", __FUNCTION__, temp_register);15171517+ dbg("%s: temp register set to %x by error\n", __func__, temp_register);15181518 }15191519 /* Preset return code. It will be changed later if things go okay. */15201520 rc = NO_ADAPTER_PRESENT;···1530153015311531 rc = configure_new_device(ctrl, func, 0, &res_lists);1532153215331533- dbg("%s: back from configure_new_device\n", __FUNCTION__);15331533+ dbg("%s: back from configure_new_device\n", __func__);15341534 ctrl->io_head = res_lists.io_head;15351535 ctrl->mem_head = res_lists.mem_head;15361536 ctrl->p_mem_head = res_lists.p_mem_head;···1566156615671567 /* next, we will instantiate the linux pci_dev structures (with15681568 * appropriate driver notification, if already present) */15691569- dbg("%s: configure linux pci_dev structure\n", __FUNCTION__);15691569+ dbg("%s: configure linux pci_dev structure\n", __func__);15701570 index = 0;15711571 do {15721572 new_slot = cpqhp_slot_find(ctrl->bus, func->device, index++);···16281628 device = func->device;1629162916301630 hp_slot = func->device - ctrl->slot_device_offset;16311631- dbg("In %s, hp_slot = %d\n", __FUNCTION__, hp_slot);16311631+ dbg("In %s, hp_slot = %d\n", __func__, hp_slot);1632163216331633 /* When we get here, it is safe to change base address registers.16341634 * We will attempt to save the base address register lengths */···19281928 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0);19291929 dbg("In power_down_board, func = %p, ctrl = %p\n", func, ctrl);19301930 if (!func) {19311931- dbg("Error! func NULL in %s\n", __FUNCTION__);19311931+ dbg("Error! func NULL in %s\n", __func__);19321932 return ;19331933 }19341934···19501950 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0);19511951 dbg("In add_board, func = %p, ctrl = %p\n", func, ctrl);19521952 if (!func) {19531953- dbg("Error! func NULL in %s\n", __FUNCTION__);19531953+ dbg("Error! func NULL in %s\n", __func__);19541954 return ;19551955 }19561956···20582058 }2059205920602060 if (rc) {20612061- dbg("%s: rc = %d\n", __FUNCTION__, rc);20612061+ dbg("%s: rc = %d\n", __func__, rc);20622062 }2063206320642064 if (p_slot)···2269226922702270 new_slot = func;2271227122722272- dbg("%s\n", __FUNCTION__);22722272+ dbg("%s\n", __func__);22732273 /* Check for Multi-function device */22742274 ctrl->pci_bus->number = func->bus;22752275 rc = pci_bus_read_config_byte (ctrl->pci_bus, PCI_DEVFN(func->device, func->function), 0x0E, &temp_byte);22762276 if (rc) {22772277- dbg("%s: rc = %d\n", __FUNCTION__, rc);22772277+ dbg("%s: rc = %d\n", __func__, rc);22782278 return rc;22792279 }22802280
+1-1
drivers/pci/hotplug/cpqphp_nvram.c
···160160 (temp6 == 'Q')) {161161 result = 1;162162 }163163- dbg ("%s - returned %d\n", __FUNCTION__, result);163163+ dbg ("%s - returned %d\n", __func__, result);164164 return result;165165}166166
···40404141 if (hpp->revision > 1) {4242 printk(KERN_WARNING "%s: Rev.%d type0 record not supported\n",4343- __FUNCTION__, hpp->revision);4343+ __func__, hpp->revision);4444 return;4545 }4646···82828383 if (hpp->revision > 1) {8484 printk(KERN_WARNING "%s: Rev.%d type2 record not supported\n",8585- __FUNCTION__, hpp->revision);8585+ __func__, hpp->revision);8686 return;8787 }8888···150150151151 if (pciehp_get_hp_params_from_firmware(dev, &hpp)) {152152 printk(KERN_WARNING "%s: Could not get hotplug parameters\n",153153- __FUNCTION__);153153+ __func__);154154 return;155155 }156156···245245 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate;246246 u16 command;247247248248- dbg("%s: bus/dev = %x/%x\n", __FUNCTION__, p_slot->bus,248248+ dbg("%s: bus/dev = %x/%x\n", __func__, p_slot->bus,249249 p_slot->device);250250 ret = p_slot->hpc_ops->get_adapter_status(p_slot, &presence);251251 if (ret)
+9-9
drivers/pci/hotplug/pcihp_skeleton.c
···9898 struct slot *slot = hotplug_slot->private;9999 int retval = 0;100100101101- dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);101101+ dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);102102103103 /*104104 * Fill in code here to enable the specified slot···112112 struct slot *slot = hotplug_slot->private;113113 int retval = 0;114114115115- dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);115115+ dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);116116117117 /*118118 * Fill in code here to disable the specified slot···126126 struct slot *slot = hotplug_slot->private;127127 int retval = 0;128128129129- dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);129129+ dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);130130131131 switch (status) {132132 case 0:···151151 struct slot *slot = hotplug_slot->private;152152 int retval = 0;153153154154- dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);154154+ dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);155155156156 switch (value) {157157 case 0:···170170 struct slot *slot = hotplug_slot->private;171171 int retval = 0;172172173173- dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);173173+ dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);174174175175 /*176176 * Fill in logic to get the current power status of the specific···185185 struct slot *slot = hotplug_slot->private;186186 int retval = 0;187187188188- dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);188188+ dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);189189190190 /*191191 * Fill in logic to get the current attention status of the specific···200200 struct slot *slot = hotplug_slot->private;201201 int retval = 0;202202203203- dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);203203+ dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);204204205205 /*206206 * Fill in logic to get the current latch status of the specific···215215 struct slot *slot = hotplug_slot->private;216216 int retval = 0;217217218218- dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);218218+ dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);219219220220 /*221221 * Fill in logic to get the current adapter status of the specific···229229{230230 struct slot *slot = hotplug_slot->private;231231232232- dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);232232+ dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);233233 kfree(slot->hotplug_slot->info);234234 kfree(slot->hotplug_slot);235235 kfree(slot);
+10-10
drivers/pci/hotplug/rpadlpar_core.c
···147147 dev = of_create_pci_dev(dn, phb->bus, pdn->devfn);148148 if (!dev) {149149 printk(KERN_ERR "%s: failed to create pci dev for %s\n",150150- __FUNCTION__, dn->full_name);150150+ __func__, dn->full_name);151151 return;152152 }153153···183183 dev = dlpar_find_new_dev(phb->bus, dn);184184185185 if (!dev) {186186- printk(KERN_ERR "%s: unable to add bus %s\n", __FUNCTION__,186186+ printk(KERN_ERR "%s: unable to add bus %s\n", __func__,187187 drc_name);188188 return -EIO;189189 }190190191191 if (dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) {192192 printk(KERN_ERR "%s: unexpected header type %d, unable to add bus %s\n",193193- __FUNCTION__, dev->hdr_type, drc_name);193193+ __func__, dev->hdr_type, drc_name);194194 return -EIO;195195 }196196197197 /* Add hotplug slot */198198 if (rpaphp_add_slot(dn)) {199199 printk(KERN_ERR "%s: unable to add hotplug slot %s\n",200200- __FUNCTION__, drc_name);200200+ __func__, drc_name);201201 return -EIO;202202 }203203 return 0;···239239 if (rpaphp_deregister_slot(slot)) {240240 printk(KERN_ERR241241 "%s: unable to remove hotplug slot %s\n",242242- __FUNCTION__, drc_name);242242+ __func__, drc_name);243243 return -EIO;244244 }245245 }···270270271271 if (rpaphp_add_slot(dn)) {272272 printk(KERN_ERR "%s: unable to add hotplug slot %s\n",273273- __FUNCTION__, drc_name);273273+ __func__, drc_name);274274 return -EIO;275275 }276276 return 0;···284284 if (!vio_register_device_node(dn)) {285285 printk(KERN_ERR286286 "%s: failed to register vio node %s\n",287287- __FUNCTION__, drc_name);287287+ __func__, drc_name);288288 return -EIO;289289 }290290 return 0;···384384 if (rpaphp_deregister_slot(slot)) {385385 printk(KERN_ERR386386 "%s: unable to remove hotplug slot %s\n",387387- __FUNCTION__, drc_name);387387+ __func__, drc_name);388388 return -EIO;389389 }390390 } else···392392393393 if (pcibios_unmap_io_space(bus)) {394394 printk(KERN_ERR "%s: failed to unmap bus range\n",395395- __FUNCTION__);395395+ __func__);396396 return -ERANGE;397397 }398398···458458459459 if (!is_dlpar_capable()) {460460 printk(KERN_WARNING "%s: partition not DLPAR capable\n",461461- __FUNCTION__);461461+ __func__);462462 return -EPERM;463463 }464464
+3-3
drivers/pci/hotplug/rpaphp_core.c
···317317 if (!is_php_dn(dn, &indexes, &names, &types, &power_domains))318318 return 0;319319320320- dbg("Entry %s: dn->full_name=%s\n", __FUNCTION__, dn->full_name);320320+ dbg("Entry %s: dn->full_name=%s\n", __func__, dn->full_name);321321322322 /* register PCI devices */323323 name = (char *) &names[1];···343343 name += strlen(name) + 1;344344 type += strlen(type) + 1;345345 }346346- dbg("%s - Exit: rc[%d]\n", __FUNCTION__, retval);346346+ dbg("%s - Exit: rc[%d]\n", __func__, retval);347347348348 /* XXX FIXME: reports a failure only if last entry in loop failed */349349 return retval;···404404 } else if (state == EMPTY) {405405 slot->state = EMPTY;406406 } else {407407- err("%s: slot[%s] is in invalid state\n", __FUNCTION__, slot->name);407407+ err("%s: slot[%s] is in invalid state\n", __func__, slot->name);408408 slot->state = NOT_VALID;409409 return -EINVAL;410410 }
+7-7
drivers/pci/hotplug/rpaphp_pci.c
···4242 if (rc < 0) {4343 if (rc == -EFAULT || rc == -EEXIST) {4444 dbg("%s: slot must be power up to get sensor-state\n",4545- __FUNCTION__);4545+ __func__);46464747 /* some slots have to be powered up 4848 * before get-sensor will succeed.···5151 &setlevel);5252 if (rc < 0) {5353 dbg("%s: power on slot[%s] failed rc=%d.\n",5454- __FUNCTION__, slot->name, rc);5454+ __func__, slot->name, rc);5555 } else {5656 rc = rtas_get_sensor(DR_ENTITY_SENSE,5757 slot->index, state);5858 }5959 } else if (rc == -ENODEV)6060- info("%s: slot is unusable\n", __FUNCTION__);6060+ info("%s: slot is unusable\n", __func__);6161 else6262- err("%s failed to get sensor state\n", __FUNCTION__);6262+ err("%s failed to get sensor state\n", __func__);6363 }6464 return rc;6565}···95959696 bus = pcibios_find_pci_bus(slot->dn);9797 if (!bus) {9898- err("%s: no pci_bus for dn %s\n", __FUNCTION__, slot->dn->full_name);9898+ err("%s: no pci_bus for dn %s\n", __func__, slot->dn->full_name);9999 return -EINVAL;100100 }101101···111111 /* non-empty slot has to have child */112112 if (!slot->dn->child) {113113 err("%s: slot[%s]'s device_node doesn't have child for adapter\n",114114- __FUNCTION__, slot->name);114114+ __func__, slot->name);115115 return -EINVAL;116116 }117117···125125126126 if (debug) {127127 struct pci_dev *dev;128128- dbg("%s: pci_devs of slot[%s]\n", __FUNCTION__, slot->dn->full_name);128128+ dbg("%s: pci_devs of slot[%s]\n", __func__, slot->dn->full_name);129129 list_for_each_entry (dev, &bus->devices, bus_list)130130 dbg("\t%s\n", pci_name(dev));131131 }
+3-3
drivers/pci/hotplug/rpaphp_slot.c
···131131 struct hotplug_slot *php_slot = slot->hotplug_slot;132132133133 dbg("%s - Entry: deregistering slot=%s\n",134134- __FUNCTION__, slot->name);134134+ __func__, slot->name);135135136136 list_del(&slot->rpaphp_slot_list);137137···142142 if (retval)143143 err("Problem unregistering a slot %s\n", slot->name);144144145145- dbg("%s - Exit: rc[%d]\n", __FUNCTION__, retval);145145+ dbg("%s - Exit: rc[%d]\n", __func__, retval);146146 return retval;147147}148148EXPORT_SYMBOL_GPL(rpaphp_deregister_slot);···153153 int retval;154154155155 dbg("%s registering slot:path[%s] index[%x], name[%s] pdomain[%x] type[%d]\n", 156156- __FUNCTION__, slot->dn->full_name, slot->index, slot->name, 156156+ __func__, slot->dn->full_name, slot->index, slot->name,157157 slot->power_domain, slot->type);158158159159 /* should not try to register the same slot twice */
+4-4
drivers/pci/hotplug/sgi_hotplug.c
···367367 ret = acpi_load_table((struct acpi_table_header *)ssdt);368368 if (ACPI_FAILURE(ret)) {369369 printk(KERN_ERR "%s: acpi_load_table failed (0x%x)\n",370370- __FUNCTION__, ret);370370+ __func__, ret);371371 /* try to continue on */372372 }373373 }···459459 if (ACPI_FAILURE(ret)) {460460 printk(KERN_ERR "%s: acpi_bus_add "461461 "failed (0x%x) for slot %d "462462- "func %d\n", __FUNCTION__,462462+ "func %d\n", __func__,463463 ret, (int)(adr>>16),464464 (int)(adr&0xffff));465465 /* try to continue on */···570570 if (ACPI_FAILURE(ret)) {571571 printk(KERN_ERR "%s: acpi_unload_table_id "572572 "failed (0x%x) for id %d\n",573573- __FUNCTION__, ret, ssdt_id);573573+ __func__, ret, ssdt_id);574574 /* try to continue on */575575 }576576 }···689689690690 if (!sn_prom_feature_available(PRF_HOTPLUG_SUPPORT)) {691691 printk(KERN_ERR "%s: PROM version does not support hotplug.\n",692692- __FUNCTION__);692692+ __func__);693693 return -EPERM;694694 }695695