diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-17 17:46:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-22 12:56:32 -0400 |
commit | e88bd231e4f00f050c4cf385f7cb2fde12f2a101 (patch) | |
tree | 5f429f27bd0651fee699184d8d87f632195ee32a /drivers/staging | |
parent | 8b384e0c3f85065a4986013d74d5585ed595cfa0 (diff) |
Staging: sxg: replace __FUNCTION__ with __func__
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/sxg/sxg.c | 206 | ||||
-rw-r--r-- | drivers/staging/sxg/sxgdbg.h | 2 |
2 files changed, 104 insertions, 104 deletions
diff --git a/drivers/staging/sxg/sxg.c b/drivers/staging/sxg/sxg.c index 6ccbee875ab3..d8772e5bf2d8 100644 --- a/drivers/staging/sxg/sxg.c +++ b/drivers/staging/sxg/sxg.c | |||
@@ -202,7 +202,7 @@ static void sxg_init_driver(void) | |||
202 | { | 202 | { |
203 | if (sxg_first_init) { | 203 | if (sxg_first_init) { |
204 | DBG_ERROR("sxg: %s sxg_first_init set jiffies[%lx]\n", | 204 | DBG_ERROR("sxg: %s sxg_first_init set jiffies[%lx]\n", |
205 | __FUNCTION__, jiffies); | 205 | __func__, jiffies); |
206 | sxg_first_init = 0; | 206 | sxg_first_init = 0; |
207 | spin_lock_init(&sxg_global.driver_lock); | 207 | spin_lock_init(&sxg_global.driver_lock); |
208 | } | 208 | } |
@@ -259,7 +259,7 @@ static bool sxg_download_microcode(p_adapter_t adapter, SXG_UCODE_SEL UcodeSel) | |||
259 | 259 | ||
260 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "DnldUcod", | 260 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "DnldUcod", |
261 | adapter, 0, 0, 0); | 261 | adapter, 0, 0, 0); |
262 | DBG_ERROR("sxg: %s ENTER\n", __FUNCTION__); | 262 | DBG_ERROR("sxg: %s ENTER\n", __func__); |
263 | 263 | ||
264 | switch (UcodeSel) { | 264 | switch (UcodeSel) { |
265 | case SXG_UCODE_SAHARA: // Sahara operational ucode | 265 | case SXG_UCODE_SAHARA: // Sahara operational ucode |
@@ -345,7 +345,7 @@ static bool sxg_download_microcode(p_adapter_t adapter, SXG_UCODE_SEL UcodeSel) | |||
345 | READ_REG(HwRegs->UcodeAddr, ValueRead); | 345 | READ_REG(HwRegs->UcodeAddr, ValueRead); |
346 | if (ValueRead & MICROCODE_ADDRESS_PARITY) { | 346 | if (ValueRead & MICROCODE_ADDRESS_PARITY) { |
347 | DBG_ERROR("sxg: %s PARITY ERROR\n", | 347 | DBG_ERROR("sxg: %s PARITY ERROR\n", |
348 | __FUNCTION__); | 348 | __func__); |
349 | 349 | ||
350 | return (FALSE); // Parity error | 350 | return (FALSE); // Parity error |
351 | } | 351 | } |
@@ -354,19 +354,19 @@ static bool sxg_download_microcode(p_adapter_t adapter, SXG_UCODE_SEL UcodeSel) | |||
354 | READ_REG(HwRegs->UcodeDataLow, ValueRead); | 354 | READ_REG(HwRegs->UcodeDataLow, ValueRead); |
355 | if (ValueRead != *Instruction) { | 355 | if (ValueRead != *Instruction) { |
356 | DBG_ERROR("sxg: %s MISCOMPARE LOW\n", | 356 | DBG_ERROR("sxg: %s MISCOMPARE LOW\n", |
357 | __FUNCTION__); | 357 | __func__); |
358 | return (FALSE); // Miscompare | 358 | return (FALSE); // Miscompare |
359 | } | 359 | } |
360 | READ_REG(HwRegs->UcodeDataMiddle, ValueRead); | 360 | READ_REG(HwRegs->UcodeDataMiddle, ValueRead); |
361 | if (ValueRead != *(Instruction + 1)) { | 361 | if (ValueRead != *(Instruction + 1)) { |
362 | DBG_ERROR("sxg: %s MISCOMPARE MIDDLE\n", | 362 | DBG_ERROR("sxg: %s MISCOMPARE MIDDLE\n", |
363 | __FUNCTION__); | 363 | __func__); |
364 | return (FALSE); // Miscompare | 364 | return (FALSE); // Miscompare |
365 | } | 365 | } |
366 | READ_REG(HwRegs->UcodeDataHigh, ValueRead); | 366 | READ_REG(HwRegs->UcodeDataHigh, ValueRead); |
367 | if (ValueRead != *(Instruction + 2)) { | 367 | if (ValueRead != *(Instruction + 2)) { |
368 | DBG_ERROR("sxg: %s MISCOMPARE HIGH\n", | 368 | DBG_ERROR("sxg: %s MISCOMPARE HIGH\n", |
369 | __FUNCTION__); | 369 | __func__); |
370 | return (FALSE); // Miscompare | 370 | return (FALSE); // Miscompare |
371 | } | 371 | } |
372 | // Advance 3 u32S to start of next instruction | 372 | // Advance 3 u32S to start of next instruction |
@@ -383,12 +383,12 @@ static bool sxg_download_microcode(p_adapter_t adapter, SXG_UCODE_SEL UcodeSel) | |||
383 | udelay(50); | 383 | udelay(50); |
384 | READ_REG(adapter->UcodeRegs[0].CardUp, ValueRead); | 384 | READ_REG(adapter->UcodeRegs[0].CardUp, ValueRead); |
385 | if (ValueRead == 0xCAFE) { | 385 | if (ValueRead == 0xCAFE) { |
386 | DBG_ERROR("sxg: %s BOO YA 0xCAFE\n", __FUNCTION__); | 386 | DBG_ERROR("sxg: %s BOO YA 0xCAFE\n", __func__); |
387 | break; | 387 | break; |
388 | } | 388 | } |
389 | } | 389 | } |
390 | if (i == 10000) { | 390 | if (i == 10000) { |
391 | DBG_ERROR("sxg: %s TIMEOUT\n", __FUNCTION__); | 391 | DBG_ERROR("sxg: %s TIMEOUT\n", __func__); |
392 | 392 | ||
393 | return (FALSE); // Timeout | 393 | return (FALSE); // Timeout |
394 | } | 394 | } |
@@ -401,7 +401,7 @@ static bool sxg_download_microcode(p_adapter_t adapter, SXG_UCODE_SEL UcodeSel) | |||
401 | 401 | ||
402 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "XDnldUcd", | 402 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "XDnldUcd", |
403 | adapter, 0, 0, 0); | 403 | adapter, 0, 0, 0); |
404 | DBG_ERROR("sxg: %s EXIT\n", __FUNCTION__); | 404 | DBG_ERROR("sxg: %s EXIT\n", __func__); |
405 | 405 | ||
406 | return (TRUE); | 406 | return (TRUE); |
407 | } | 407 | } |
@@ -423,7 +423,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
423 | // PSXG_XMT_RING XmtRing; | 423 | // PSXG_XMT_RING XmtRing; |
424 | // PSXG_RCV_RING RcvRing; | 424 | // PSXG_RCV_RING RcvRing; |
425 | 425 | ||
426 | DBG_ERROR("%s ENTER\n", __FUNCTION__); | 426 | DBG_ERROR("%s ENTER\n", __func__); |
427 | 427 | ||
428 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "AllocRes", | 428 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "AllocRes", |
429 | adapter, 0, 0, 0); | 429 | adapter, 0, 0, 0); |
@@ -433,7 +433,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
433 | RssIds = SXG_RSS_CPU_COUNT(adapter); | 433 | RssIds = SXG_RSS_CPU_COUNT(adapter); |
434 | IsrCount = adapter->MsiEnabled ? RssIds : 1; | 434 | IsrCount = adapter->MsiEnabled ? RssIds : 1; |
435 | 435 | ||
436 | DBG_ERROR("%s Setup the spinlocks\n", __FUNCTION__); | 436 | DBG_ERROR("%s Setup the spinlocks\n", __func__); |
437 | 437 | ||
438 | // Allocate spinlocks and initialize listheads first. | 438 | // Allocate spinlocks and initialize listheads first. |
439 | spin_lock_init(&adapter->RcvQLock); | 439 | spin_lock_init(&adapter->RcvQLock); |
@@ -442,7 +442,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
442 | spin_lock_init(&adapter->Bit64RegLock); | 442 | spin_lock_init(&adapter->Bit64RegLock); |
443 | spin_lock_init(&adapter->AdapterLock); | 443 | spin_lock_init(&adapter->AdapterLock); |
444 | 444 | ||
445 | DBG_ERROR("%s Setup the lists\n", __FUNCTION__); | 445 | DBG_ERROR("%s Setup the lists\n", __func__); |
446 | 446 | ||
447 | InitializeListHead(&adapter->FreeRcvBuffers); | 447 | InitializeListHead(&adapter->FreeRcvBuffers); |
448 | InitializeListHead(&adapter->FreeRcvBlocks); | 448 | InitializeListHead(&adapter->FreeRcvBlocks); |
@@ -459,7 +459,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
459 | // fails. If we hit a minimum, fail. | 459 | // fails. If we hit a minimum, fail. |
460 | 460 | ||
461 | for (;;) { | 461 | for (;;) { |
462 | DBG_ERROR("%s Allocate XmtRings size[%lx]\n", __FUNCTION__, | 462 | DBG_ERROR("%s Allocate XmtRings size[%lx]\n", __func__, |
463 | (sizeof(SXG_XMT_RING) * 1)); | 463 | (sizeof(SXG_XMT_RING) * 1)); |
464 | 464 | ||
465 | // Start with big items first - receive and transmit rings. At the moment | 465 | // Start with big items first - receive and transmit rings. At the moment |
@@ -469,20 +469,20 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
469 | sizeof(SXG_XMT_RING) * | 469 | sizeof(SXG_XMT_RING) * |
470 | 1, | 470 | 1, |
471 | &adapter->PXmtRings); | 471 | &adapter->PXmtRings); |
472 | DBG_ERROR("%s XmtRings[%p]\n", __FUNCTION__, adapter->XmtRings); | 472 | DBG_ERROR("%s XmtRings[%p]\n", __func__, adapter->XmtRings); |
473 | 473 | ||
474 | if (!adapter->XmtRings) { | 474 | if (!adapter->XmtRings) { |
475 | goto per_tcb_allocation_failed; | 475 | goto per_tcb_allocation_failed; |
476 | } | 476 | } |
477 | memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1); | 477 | memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1); |
478 | 478 | ||
479 | DBG_ERROR("%s Allocate RcvRings size[%lx]\n", __FUNCTION__, | 479 | DBG_ERROR("%s Allocate RcvRings size[%lx]\n", __func__, |
480 | (sizeof(SXG_RCV_RING) * 1)); | 480 | (sizeof(SXG_RCV_RING) * 1)); |
481 | adapter->RcvRings = | 481 | adapter->RcvRings = |
482 | pci_alloc_consistent(adapter->pcidev, | 482 | pci_alloc_consistent(adapter->pcidev, |
483 | sizeof(SXG_RCV_RING) * 1, | 483 | sizeof(SXG_RCV_RING) * 1, |
484 | &adapter->PRcvRings); | 484 | &adapter->PRcvRings); |
485 | DBG_ERROR("%s RcvRings[%p]\n", __FUNCTION__, adapter->RcvRings); | 485 | DBG_ERROR("%s RcvRings[%p]\n", __func__, adapter->RcvRings); |
486 | if (!adapter->RcvRings) { | 486 | if (!adapter->RcvRings) { |
487 | goto per_tcb_allocation_failed; | 487 | goto per_tcb_allocation_failed; |
488 | } | 488 | } |
@@ -508,7 +508,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
508 | // Loop around and try again.... | 508 | // Loop around and try again.... |
509 | } | 509 | } |
510 | 510 | ||
511 | DBG_ERROR("%s Initialize RCV ZERO and XMT ZERO rings\n", __FUNCTION__); | 511 | DBG_ERROR("%s Initialize RCV ZERO and XMT ZERO rings\n", __func__); |
512 | // Initialize rcv zero and xmt zero rings | 512 | // Initialize rcv zero and xmt zero rings |
513 | SXG_INITIALIZE_RING(adapter->RcvRingZeroInfo, SXG_RCV_RING_SIZE); | 513 | SXG_INITIALIZE_RING(adapter->RcvRingZeroInfo, SXG_RCV_RING_SIZE); |
514 | SXG_INITIALIZE_RING(adapter->XmtRingZeroInfo, SXG_XMT_RING_SIZE); | 514 | SXG_INITIALIZE_RING(adapter->XmtRingZeroInfo, SXG_XMT_RING_SIZE); |
@@ -537,7 +537,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
537 | return (STATUS_RESOURCES); | 537 | return (STATUS_RESOURCES); |
538 | } | 538 | } |
539 | 539 | ||
540 | DBG_ERROR("%s Allocate EventRings size[%lx]\n", __FUNCTION__, | 540 | DBG_ERROR("%s Allocate EventRings size[%lx]\n", __func__, |
541 | (sizeof(SXG_EVENT_RING) * RssIds)); | 541 | (sizeof(SXG_EVENT_RING) * RssIds)); |
542 | 542 | ||
543 | // Allocate event queues. | 543 | // Allocate event queues. |
@@ -555,7 +555,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
555 | } | 555 | } |
556 | memset(adapter->EventRings, 0, sizeof(SXG_EVENT_RING) * RssIds); | 556 | memset(adapter->EventRings, 0, sizeof(SXG_EVENT_RING) * RssIds); |
557 | 557 | ||
558 | DBG_ERROR("%s Allocate ISR size[%x]\n", __FUNCTION__, IsrCount); | 558 | DBG_ERROR("%s Allocate ISR size[%x]\n", __func__, IsrCount); |
559 | // Allocate ISR | 559 | // Allocate ISR |
560 | adapter->Isr = pci_alloc_consistent(adapter->pcidev, | 560 | adapter->Isr = pci_alloc_consistent(adapter->pcidev, |
561 | IsrCount, &adapter->PIsr); | 561 | IsrCount, &adapter->PIsr); |
@@ -569,7 +569,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
569 | memset(adapter->Isr, 0, sizeof(u32) * IsrCount); | 569 | memset(adapter->Isr, 0, sizeof(u32) * IsrCount); |
570 | 570 | ||
571 | DBG_ERROR("%s Allocate shared XMT ring zero index location size[%lx]\n", | 571 | DBG_ERROR("%s Allocate shared XMT ring zero index location size[%lx]\n", |
572 | __FUNCTION__, sizeof(u32)); | 572 | __func__, sizeof(u32)); |
573 | 573 | ||
574 | // Allocate shared XMT ring zero index location | 574 | // Allocate shared XMT ring zero index location |
575 | adapter->XmtRingZeroIndex = pci_alloc_consistent(adapter->pcidev, | 575 | adapter->XmtRingZeroIndex = pci_alloc_consistent(adapter->pcidev, |
@@ -587,7 +587,7 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
587 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "XAlcResS", | 587 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "XAlcResS", |
588 | adapter, SXG_MAX_ENTRIES, 0, 0); | 588 | adapter, SXG_MAX_ENTRIES, 0, 0); |
589 | 589 | ||
590 | DBG_ERROR("%s EXIT\n", __FUNCTION__); | 590 | DBG_ERROR("%s EXIT\n", __func__); |
591 | return (STATUS_SUCCESS); | 591 | return (STATUS_SUCCESS); |
592 | } | 592 | } |
593 | 593 | ||
@@ -606,7 +606,7 @@ static void sxg_config_pci(struct pci_dev *pcidev) | |||
606 | u16 new_command; | 606 | u16 new_command; |
607 | 607 | ||
608 | pci_read_config_word(pcidev, PCI_COMMAND, &pci_command); | 608 | pci_read_config_word(pcidev, PCI_COMMAND, &pci_command); |
609 | DBG_ERROR("sxg: %s PCI command[%4.4x]\n", __FUNCTION__, pci_command); | 609 | DBG_ERROR("sxg: %s PCI command[%4.4x]\n", __func__, pci_command); |
610 | // Set the command register | 610 | // Set the command register |
611 | new_command = pci_command | (PCI_COMMAND_MEMORY | // Memory Space Enable | 611 | new_command = pci_command | (PCI_COMMAND_MEMORY | // Memory Space Enable |
612 | PCI_COMMAND_MASTER | // Bus master enable | 612 | PCI_COMMAND_MASTER | // Bus master enable |
@@ -616,7 +616,7 @@ static void sxg_config_pci(struct pci_dev *pcidev) | |||
616 | PCI_COMMAND_FAST_BACK); // Fast back-to-back | 616 | PCI_COMMAND_FAST_BACK); // Fast back-to-back |
617 | if (pci_command != new_command) { | 617 | if (pci_command != new_command) { |
618 | DBG_ERROR("%s -- Updating PCI COMMAND register %4.4x->%4.4x.\n", | 618 | DBG_ERROR("%s -- Updating PCI COMMAND register %4.4x->%4.4x.\n", |
619 | __FUNCTION__, pci_command, new_command); | 619 | __func__, pci_command, new_command); |
620 | pci_write_config_word(pcidev, PCI_COMMAND, new_command); | 620 | pci_write_config_word(pcidev, PCI_COMMAND, new_command); |
621 | } | 621 | } |
622 | } | 622 | } |
@@ -634,7 +634,7 @@ static int sxg_entry_probe(struct pci_dev *pcidev, | |||
634 | ulong mmio_len = 0; | 634 | ulong mmio_len = 0; |
635 | 635 | ||
636 | DBG_ERROR("sxg: %s 2.6 VERSION ENTER jiffies[%lx] cpu %d\n", | 636 | DBG_ERROR("sxg: %s 2.6 VERSION ENTER jiffies[%lx] cpu %d\n", |
637 | __FUNCTION__, jiffies, smp_processor_id()); | 637 | __func__, jiffies, smp_processor_id()); |
638 | 638 | ||
639 | // Initialize trace buffer | 639 | // Initialize trace buffer |
640 | #ifdef ATKDBG | 640 | #ifdef ATKDBG |
@@ -701,11 +701,11 @@ static int sxg_entry_probe(struct pci_dev *pcidev, | |||
701 | mmio_start, mmio_len); | 701 | mmio_start, mmio_len); |
702 | 702 | ||
703 | memmapped_ioaddr = ioremap(mmio_start, mmio_len); | 703 | memmapped_ioaddr = ioremap(mmio_start, mmio_len); |
704 | DBG_ERROR("sxg: %s MEMMAPPED_IOADDR [%p]\n", __FUNCTION__, | 704 | DBG_ERROR("sxg: %s MEMMAPPED_IOADDR [%p]\n", __func__, |
705 | memmapped_ioaddr); | 705 | memmapped_ioaddr); |
706 | if (!memmapped_ioaddr) { | 706 | if (!memmapped_ioaddr) { |
707 | DBG_ERROR("%s cannot remap MMIO region %lx @ %lx\n", | 707 | DBG_ERROR("%s cannot remap MMIO region %lx @ %lx\n", |
708 | __FUNCTION__, mmio_len, mmio_start); | 708 | __func__, mmio_len, mmio_start); |
709 | goto err_out_free_mmio_region; | 709 | goto err_out_free_mmio_region; |
710 | } | 710 | } |
711 | 711 | ||
@@ -727,7 +727,7 @@ static int sxg_entry_probe(struct pci_dev *pcidev, | |||
727 | memmapped_ioaddr); | 727 | memmapped_ioaddr); |
728 | if (!memmapped_ioaddr) { | 728 | if (!memmapped_ioaddr) { |
729 | DBG_ERROR("%s cannot remap MMIO region %lx @ %lx\n", | 729 | DBG_ERROR("%s cannot remap MMIO region %lx @ %lx\n", |
730 | __FUNCTION__, mmio_len, mmio_start); | 730 | __func__, mmio_len, mmio_start); |
731 | goto err_out_free_mmio_region; | 731 | goto err_out_free_mmio_region; |
732 | } | 732 | } |
733 | 733 | ||
@@ -762,13 +762,13 @@ static int sxg_entry_probe(struct pci_dev *pcidev, | |||
762 | // goto sxg_init_bad; | 762 | // goto sxg_init_bad; |
763 | // } | 763 | // } |
764 | 764 | ||
765 | DBG_ERROR("sxg: %s ENTER sxg_config_pci\n", __FUNCTION__); | 765 | DBG_ERROR("sxg: %s ENTER sxg_config_pci\n", __func__); |
766 | sxg_config_pci(pcidev); | 766 | sxg_config_pci(pcidev); |
767 | DBG_ERROR("sxg: %s EXIT sxg_config_pci\n", __FUNCTION__); | 767 | DBG_ERROR("sxg: %s EXIT sxg_config_pci\n", __func__); |
768 | 768 | ||
769 | DBG_ERROR("sxg: %s ENTER sxg_init_driver\n", __FUNCTION__); | 769 | DBG_ERROR("sxg: %s ENTER sxg_init_driver\n", __func__); |
770 | sxg_init_driver(); | 770 | sxg_init_driver(); |
771 | DBG_ERROR("sxg: %s EXIT sxg_init_driver\n", __FUNCTION__); | 771 | DBG_ERROR("sxg: %s EXIT sxg_init_driver\n", __func__); |
772 | 772 | ||
773 | adapter->vendid = pci_tbl_entry->vendor; | 773 | adapter->vendid = pci_tbl_entry->vendor; |
774 | adapter->devid = pci_tbl_entry->device; | 774 | adapter->devid = pci_tbl_entry->device; |
@@ -785,18 +785,18 @@ static int sxg_entry_probe(struct pci_dev *pcidev, | |||
785 | adapter->cardindex = adapter->port; | 785 | adapter->cardindex = adapter->port; |
786 | 786 | ||
787 | // Allocate memory and other resources | 787 | // Allocate memory and other resources |
788 | DBG_ERROR("sxg: %s ENTER sxg_allocate_resources\n", __FUNCTION__); | 788 | DBG_ERROR("sxg: %s ENTER sxg_allocate_resources\n", __func__); |
789 | status = sxg_allocate_resources(adapter); | 789 | status = sxg_allocate_resources(adapter); |
790 | DBG_ERROR("sxg: %s EXIT sxg_allocate_resources status %x\n", | 790 | DBG_ERROR("sxg: %s EXIT sxg_allocate_resources status %x\n", |
791 | __FUNCTION__, status); | 791 | __func__, status); |
792 | if (status != STATUS_SUCCESS) { | 792 | if (status != STATUS_SUCCESS) { |
793 | goto err_out_unmap; | 793 | goto err_out_unmap; |
794 | } | 794 | } |
795 | 795 | ||
796 | DBG_ERROR("sxg: %s ENTER sxg_download_microcode\n", __FUNCTION__); | 796 | DBG_ERROR("sxg: %s ENTER sxg_download_microcode\n", __func__); |
797 | if (sxg_download_microcode(adapter, SXG_UCODE_SAHARA)) { | 797 | if (sxg_download_microcode(adapter, SXG_UCODE_SAHARA)) { |
798 | DBG_ERROR("sxg: %s ENTER sxg_adapter_set_hwaddr\n", | 798 | DBG_ERROR("sxg: %s ENTER sxg_adapter_set_hwaddr\n", |
799 | __FUNCTION__); | 799 | __func__); |
800 | sxg_adapter_set_hwaddr(adapter); | 800 | sxg_adapter_set_hwaddr(adapter); |
801 | } else { | 801 | } else { |
802 | adapter->state = ADAPT_FAIL; | 802 | adapter->state = ADAPT_FAIL; |
@@ -836,7 +836,7 @@ static int sxg_entry_probe(struct pci_dev *pcidev, | |||
836 | ASSERT(status == FALSE); | 836 | ASSERT(status == FALSE); |
837 | // sxg_free_adapter(adapter); | 837 | // sxg_free_adapter(adapter); |
838 | 838 | ||
839 | DBG_ERROR("sxg: %s EXIT status[%x] jiffies[%lx] cpu %d\n", __FUNCTION__, | 839 | DBG_ERROR("sxg: %s EXIT status[%x] jiffies[%lx] cpu %d\n", __func__, |
840 | status, jiffies, smp_processor_id()); | 840 | status, jiffies, smp_processor_id()); |
841 | return status; | 841 | return status; |
842 | 842 | ||
@@ -848,7 +848,7 @@ static int sxg_entry_probe(struct pci_dev *pcidev, | |||
848 | 848 | ||
849 | err_out_exit_sxg_probe: | 849 | err_out_exit_sxg_probe: |
850 | 850 | ||
851 | DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __FUNCTION__, jiffies, | 851 | DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __func__, jiffies, |
852 | smp_processor_id()); | 852 | smp_processor_id()); |
853 | 853 | ||
854 | return -ENODEV; | 854 | return -ENODEV; |
@@ -1067,7 +1067,7 @@ static int sxg_process_isr(p_adapter_t adapter, u32 MessageId) | |||
1067 | if (Isr & SXG_ISR_ERR) { | 1067 | if (Isr & SXG_ISR_ERR) { |
1068 | if (Isr & SXG_ISR_PDQF) { | 1068 | if (Isr & SXG_ISR_PDQF) { |
1069 | adapter->Stats.PdqFull++; | 1069 | adapter->Stats.PdqFull++; |
1070 | DBG_ERROR("%s: SXG_ISR_ERR PDQF!!\n", __FUNCTION__); | 1070 | DBG_ERROR("%s: SXG_ISR_ERR PDQF!!\n", __func__); |
1071 | } | 1071 | } |
1072 | // No host buffer | 1072 | // No host buffer |
1073 | if (Isr & SXG_ISR_RMISS) { | 1073 | if (Isr & SXG_ISR_RMISS) { |
@@ -1080,7 +1080,7 @@ static int sxg_process_isr(p_adapter_t adapter, u32 MessageId) | |||
1080 | adapter->Stats.RcvNoBuffer++; | 1080 | adapter->Stats.RcvNoBuffer++; |
1081 | if (adapter->Stats.RcvNoBuffer < 5) { | 1081 | if (adapter->Stats.RcvNoBuffer < 5) { |
1082 | DBG_ERROR("%s: SXG_ISR_ERR RMISS!!\n", | 1082 | DBG_ERROR("%s: SXG_ISR_ERR RMISS!!\n", |
1083 | __FUNCTION__); | 1083 | __func__); |
1084 | } | 1084 | } |
1085 | } | 1085 | } |
1086 | // Card crash | 1086 | // Card crash |
@@ -1091,7 +1091,7 @@ static int sxg_process_isr(p_adapter_t adapter, u32 MessageId) | |||
1091 | SXG_ISR_CPU_SHIFT); | 1091 | SXG_ISR_CPU_SHIFT); |
1092 | adapter->CrashLocation = (ushort) (Isr & SXG_ISR_CRASH); | 1092 | adapter->CrashLocation = (ushort) (Isr & SXG_ISR_CRASH); |
1093 | adapter->Dead = TRUE; | 1093 | adapter->Dead = TRUE; |
1094 | DBG_ERROR("%s: ISR_DEAD %x, CPU: %d\n", __FUNCTION__, | 1094 | DBG_ERROR("%s: ISR_DEAD %x, CPU: %d\n", __func__, |
1095 | adapter->CrashLocation, adapter->CrashCpu); | 1095 | adapter->CrashLocation, adapter->CrashCpu); |
1096 | } | 1096 | } |
1097 | // Event ring full | 1097 | // Event ring full |
@@ -1102,13 +1102,13 @@ static int sxg_process_isr(p_adapter_t adapter, u32 MessageId) | |||
1102 | // and/or reduce/remove interrupt aggregation. | 1102 | // and/or reduce/remove interrupt aggregation. |
1103 | adapter->Stats.EventRingFull++; | 1103 | adapter->Stats.EventRingFull++; |
1104 | DBG_ERROR("%s: SXG_ISR_ERR EVENT RING FULL!!\n", | 1104 | DBG_ERROR("%s: SXG_ISR_ERR EVENT RING FULL!!\n", |
1105 | __FUNCTION__); | 1105 | __func__); |
1106 | } | 1106 | } |
1107 | // Transmit drop - no DRAM buffers or XMT error | 1107 | // Transmit drop - no DRAM buffers or XMT error |
1108 | if (Isr & SXG_ISR_XDROP) { | 1108 | if (Isr & SXG_ISR_XDROP) { |
1109 | adapter->Stats.XmtDrops++; | 1109 | adapter->Stats.XmtDrops++; |
1110 | adapter->Stats.XmtErrors++; | 1110 | adapter->Stats.XmtErrors++; |
1111 | DBG_ERROR("%s: SXG_ISR_ERR XDROP!!\n", __FUNCTION__); | 1111 | DBG_ERROR("%s: SXG_ISR_ERR XDROP!!\n", __func__); |
1112 | } | 1112 | } |
1113 | } | 1113 | } |
1114 | // Slowpath send completions | 1114 | // Slowpath send completions |
@@ -1218,7 +1218,7 @@ static u32 sxg_process_event_queue(p_adapter_t adapter, u32 RssId) | |||
1218 | break; | 1218 | break; |
1219 | default: | 1219 | default: |
1220 | DBG_ERROR("%s: ERROR Invalid EventCode %d\n", | 1220 | DBG_ERROR("%s: ERROR Invalid EventCode %d\n", |
1221 | __FUNCTION__, Event->Code); | 1221 | __func__, Event->Code); |
1222 | // ASSERT(0); | 1222 | // ASSERT(0); |
1223 | } | 1223 | } |
1224 | // See if we need to restock card receive buffers. | 1224 | // See if we need to restock card receive buffers. |
@@ -1606,7 +1606,7 @@ static int sxg_register_interrupt(p_adapter_t adapter) | |||
1606 | 1606 | ||
1607 | DBG_ERROR | 1607 | DBG_ERROR |
1608 | ("sxg: %s AllocAdaptRsrcs adapter[%p] dev->irq[%x] %x\n", | 1608 | ("sxg: %s AllocAdaptRsrcs adapter[%p] dev->irq[%x] %x\n", |
1609 | __FUNCTION__, adapter, adapter->netdev->irq, NR_IRQS); | 1609 | __func__, adapter, adapter->netdev->irq, NR_IRQS); |
1610 | 1610 | ||
1611 | spin_unlock_irqrestore(&sxg_global.driver_lock, | 1611 | spin_unlock_irqrestore(&sxg_global.driver_lock, |
1612 | sxg_global.flags); | 1612 | sxg_global.flags); |
@@ -1629,14 +1629,14 @@ static int sxg_register_interrupt(p_adapter_t adapter) | |||
1629 | adapter->MsiEnabled = FALSE; | 1629 | adapter->MsiEnabled = FALSE; |
1630 | adapter->RssEnabled = FALSE; | 1630 | adapter->RssEnabled = FALSE; |
1631 | DBG_ERROR("sxg: %s AllocAdaptRsrcs adapter[%p] dev->irq[%x]\n", | 1631 | DBG_ERROR("sxg: %s AllocAdaptRsrcs adapter[%p] dev->irq[%x]\n", |
1632 | __FUNCTION__, adapter, adapter->netdev->irq); | 1632 | __func__, adapter, adapter->netdev->irq); |
1633 | } | 1633 | } |
1634 | return (STATUS_SUCCESS); | 1634 | return (STATUS_SUCCESS); |
1635 | } | 1635 | } |
1636 | 1636 | ||
1637 | static void sxg_deregister_interrupt(p_adapter_t adapter) | 1637 | static void sxg_deregister_interrupt(p_adapter_t adapter) |
1638 | { | 1638 | { |
1639 | DBG_ERROR("sxg: %s ENTER adapter[%p]\n", __FUNCTION__, adapter); | 1639 | DBG_ERROR("sxg: %s ENTER adapter[%p]\n", __func__, adapter); |
1640 | #if XXXTODO | 1640 | #if XXXTODO |
1641 | slic_init_cleanup(adapter); | 1641 | slic_init_cleanup(adapter); |
1642 | #endif | 1642 | #endif |
@@ -1651,7 +1651,7 @@ static void sxg_deregister_interrupt(p_adapter_t adapter) | |||
1651 | adapter->rcv_broadcasts = 0; | 1651 | adapter->rcv_broadcasts = 0; |
1652 | adapter->rcv_multicasts = 0; | 1652 | adapter->rcv_multicasts = 0; |
1653 | adapter->rcv_unicasts = 0; | 1653 | adapter->rcv_unicasts = 0; |
1654 | DBG_ERROR("sxg: %s EXIT\n", __FUNCTION__); | 1654 | DBG_ERROR("sxg: %s EXIT\n", __func__); |
1655 | } | 1655 | } |
1656 | 1656 | ||
1657 | /* | 1657 | /* |
@@ -1666,7 +1666,7 @@ static int sxg_if_init(p_adapter_t adapter) | |||
1666 | int status = 0; | 1666 | int status = 0; |
1667 | 1667 | ||
1668 | DBG_ERROR("sxg: %s (%s) ENTER states[%d:%d:%d] flags[%x]\n", | 1668 | DBG_ERROR("sxg: %s (%s) ENTER states[%d:%d:%d] flags[%x]\n", |
1669 | __FUNCTION__, adapter->netdev->name, | 1669 | __func__, adapter->netdev->name, |
1670 | adapter->queues_initialized, adapter->state, | 1670 | adapter->queues_initialized, adapter->state, |
1671 | adapter->linkstate, dev->flags); | 1671 | adapter->linkstate, dev->flags); |
1672 | 1672 | ||
@@ -1680,7 +1680,7 @@ static int sxg_if_init(p_adapter_t adapter) | |||
1680 | adapter->devflags_prev = dev->flags; | 1680 | adapter->devflags_prev = dev->flags; |
1681 | adapter->macopts = MAC_DIRECTED; | 1681 | adapter->macopts = MAC_DIRECTED; |
1682 | if (dev->flags) { | 1682 | if (dev->flags) { |
1683 | DBG_ERROR("sxg: %s (%s) Set MAC options: ", __FUNCTION__, | 1683 | DBG_ERROR("sxg: %s (%s) Set MAC options: ", __func__, |
1684 | adapter->netdev->name); | 1684 | adapter->netdev->name); |
1685 | if (dev->flags & IFF_BROADCAST) { | 1685 | if (dev->flags & IFF_BROADCAST) { |
1686 | adapter->macopts |= MAC_BCAST; | 1686 | adapter->macopts |= MAC_BCAST; |
@@ -1713,7 +1713,7 @@ static int sxg_if_init(p_adapter_t adapter) | |||
1713 | /* | 1713 | /* |
1714 | * clear any pending events, then enable interrupts | 1714 | * clear any pending events, then enable interrupts |
1715 | */ | 1715 | */ |
1716 | DBG_ERROR("sxg: %s ENABLE interrupts(slic)\n", __FUNCTION__); | 1716 | DBG_ERROR("sxg: %s ENABLE interrupts(slic)\n", __func__); |
1717 | 1717 | ||
1718 | return (STATUS_SUCCESS); | 1718 | return (STATUS_SUCCESS); |
1719 | } | 1719 | } |
@@ -1724,11 +1724,11 @@ static int sxg_entry_open(p_net_device dev) | |||
1724 | int status; | 1724 | int status; |
1725 | 1725 | ||
1726 | ASSERT(adapter); | 1726 | ASSERT(adapter); |
1727 | DBG_ERROR("sxg: %s adapter->activated[%d]\n", __FUNCTION__, | 1727 | DBG_ERROR("sxg: %s adapter->activated[%d]\n", __func__, |
1728 | adapter->activated); | 1728 | adapter->activated); |
1729 | DBG_ERROR | 1729 | DBG_ERROR |
1730 | ("sxg: %s (%s): [jiffies[%lx] cpu %d] dev[%p] adapt[%p] port[%d]\n", | 1730 | ("sxg: %s (%s): [jiffies[%lx] cpu %d] dev[%p] adapt[%p] port[%d]\n", |
1731 | __FUNCTION__, adapter->netdev->name, jiffies, smp_processor_id(), | 1731 | __func__, adapter->netdev->name, jiffies, smp_processor_id(), |
1732 | adapter->netdev, adapter, adapter->port); | 1732 | adapter->netdev, adapter, adapter->port); |
1733 | 1733 | ||
1734 | netif_stop_queue(adapter->netdev); | 1734 | netif_stop_queue(adapter->netdev); |
@@ -1739,15 +1739,15 @@ static int sxg_entry_open(p_net_device dev) | |||
1739 | adapter->activated = 1; | 1739 | adapter->activated = 1; |
1740 | } | 1740 | } |
1741 | // Initialize the adapter | 1741 | // Initialize the adapter |
1742 | DBG_ERROR("sxg: %s ENTER sxg_initialize_adapter\n", __FUNCTION__); | 1742 | DBG_ERROR("sxg: %s ENTER sxg_initialize_adapter\n", __func__); |
1743 | status = sxg_initialize_adapter(adapter); | 1743 | status = sxg_initialize_adapter(adapter); |
1744 | DBG_ERROR("sxg: %s EXIT sxg_initialize_adapter status[%x]\n", | 1744 | DBG_ERROR("sxg: %s EXIT sxg_initialize_adapter status[%x]\n", |
1745 | __FUNCTION__, status); | 1745 | __func__, status); |
1746 | 1746 | ||
1747 | if (status == STATUS_SUCCESS) { | 1747 | if (status == STATUS_SUCCESS) { |
1748 | DBG_ERROR("sxg: %s ENTER sxg_if_init\n", __FUNCTION__); | 1748 | DBG_ERROR("sxg: %s ENTER sxg_if_init\n", __func__); |
1749 | status = sxg_if_init(adapter); | 1749 | status = sxg_if_init(adapter); |
1750 | DBG_ERROR("sxg: %s EXIT sxg_if_init status[%x]\n", __FUNCTION__, | 1750 | DBG_ERROR("sxg: %s EXIT sxg_if_init status[%x]\n", __func__, |
1751 | status); | 1751 | status); |
1752 | } | 1752 | } |
1753 | 1753 | ||
@@ -1760,12 +1760,12 @@ static int sxg_entry_open(p_net_device dev) | |||
1760 | sxg_global.flags); | 1760 | sxg_global.flags); |
1761 | return (status); | 1761 | return (status); |
1762 | } | 1762 | } |
1763 | DBG_ERROR("sxg: %s ENABLE ALL INTERRUPTS\n", __FUNCTION__); | 1763 | DBG_ERROR("sxg: %s ENABLE ALL INTERRUPTS\n", __func__); |
1764 | 1764 | ||
1765 | // Enable interrupts | 1765 | // Enable interrupts |
1766 | SXG_ENABLE_ALL_INTERRUPTS(adapter); | 1766 | SXG_ENABLE_ALL_INTERRUPTS(adapter); |
1767 | 1767 | ||
1768 | DBG_ERROR("sxg: %s EXIT\n", __FUNCTION__); | 1768 | DBG_ERROR("sxg: %s EXIT\n", __func__); |
1769 | 1769 | ||
1770 | spin_unlock_irqrestore(&sxg_global.driver_lock, sxg_global.flags); | 1770 | spin_unlock_irqrestore(&sxg_global.driver_lock, sxg_global.flags); |
1771 | return STATUS_SUCCESS; | 1771 | return STATUS_SUCCESS; |
@@ -1779,27 +1779,27 @@ static void __devexit sxg_entry_remove(struct pci_dev *pcidev) | |||
1779 | p_adapter_t adapter = (p_adapter_t) netdev_priv(dev); | 1779 | p_adapter_t adapter = (p_adapter_t) netdev_priv(dev); |
1780 | 1780 | ||
1781 | ASSERT(adapter); | 1781 | ASSERT(adapter); |
1782 | DBG_ERROR("sxg: %s ENTER dev[%p] adapter[%p]\n", __FUNCTION__, dev, | 1782 | DBG_ERROR("sxg: %s ENTER dev[%p] adapter[%p]\n", __func__, dev, |
1783 | adapter); | 1783 | adapter); |
1784 | sxg_deregister_interrupt(adapter); | 1784 | sxg_deregister_interrupt(adapter); |
1785 | sxg_unmap_mmio_space(adapter); | 1785 | sxg_unmap_mmio_space(adapter); |
1786 | DBG_ERROR("sxg: %s unregister_netdev\n", __FUNCTION__); | 1786 | DBG_ERROR("sxg: %s unregister_netdev\n", __func__); |
1787 | unregister_netdev(dev); | 1787 | unregister_netdev(dev); |
1788 | 1788 | ||
1789 | mmio_start = pci_resource_start(pcidev, 0); | 1789 | mmio_start = pci_resource_start(pcidev, 0); |
1790 | mmio_len = pci_resource_len(pcidev, 0); | 1790 | mmio_len = pci_resource_len(pcidev, 0); |
1791 | 1791 | ||
1792 | DBG_ERROR("sxg: %s rel_region(0) start[%x] len[%x]\n", __FUNCTION__, | 1792 | DBG_ERROR("sxg: %s rel_region(0) start[%x] len[%x]\n", __func__, |
1793 | mmio_start, mmio_len); | 1793 | mmio_start, mmio_len); |
1794 | release_mem_region(mmio_start, mmio_len); | 1794 | release_mem_region(mmio_start, mmio_len); |
1795 | 1795 | ||
1796 | DBG_ERROR("sxg: %s iounmap dev->base_addr[%x]\n", __FUNCTION__, | 1796 | DBG_ERROR("sxg: %s iounmap dev->base_addr[%x]\n", __func__, |
1797 | (unsigned int)dev->base_addr); | 1797 | (unsigned int)dev->base_addr); |
1798 | iounmap((char *)dev->base_addr); | 1798 | iounmap((char *)dev->base_addr); |
1799 | 1799 | ||
1800 | DBG_ERROR("sxg: %s deallocate device\n", __FUNCTION__); | 1800 | DBG_ERROR("sxg: %s deallocate device\n", __func__); |
1801 | kfree(dev); | 1801 | kfree(dev); |
1802 | DBG_ERROR("sxg: %s EXIT\n", __FUNCTION__); | 1802 | DBG_ERROR("sxg: %s EXIT\n", __func__); |
1803 | } | 1803 | } |
1804 | 1804 | ||
1805 | static int sxg_entry_halt(p_net_device dev) | 1805 | static int sxg_entry_halt(p_net_device dev) |
@@ -1807,17 +1807,17 @@ static int sxg_entry_halt(p_net_device dev) | |||
1807 | p_adapter_t adapter = (p_adapter_t) netdev_priv(dev); | 1807 | p_adapter_t adapter = (p_adapter_t) netdev_priv(dev); |
1808 | 1808 | ||
1809 | spin_lock_irqsave(&sxg_global.driver_lock, sxg_global.flags); | 1809 | spin_lock_irqsave(&sxg_global.driver_lock, sxg_global.flags); |
1810 | DBG_ERROR("sxg: %s (%s) ENTER\n", __FUNCTION__, dev->name); | 1810 | DBG_ERROR("sxg: %s (%s) ENTER\n", __func__, dev->name); |
1811 | 1811 | ||
1812 | netif_stop_queue(adapter->netdev); | 1812 | netif_stop_queue(adapter->netdev); |
1813 | adapter->state = ADAPT_DOWN; | 1813 | adapter->state = ADAPT_DOWN; |
1814 | adapter->linkstate = LINK_DOWN; | 1814 | adapter->linkstate = LINK_DOWN; |
1815 | adapter->devflags_prev = 0; | 1815 | adapter->devflags_prev = 0; |
1816 | DBG_ERROR("sxg: %s (%s) set adapter[%p] state to ADAPT_DOWN(%d)\n", | 1816 | DBG_ERROR("sxg: %s (%s) set adapter[%p] state to ADAPT_DOWN(%d)\n", |
1817 | __FUNCTION__, dev->name, adapter, adapter->state); | 1817 | __func__, dev->name, adapter, adapter->state); |
1818 | 1818 | ||
1819 | DBG_ERROR("sxg: %s (%s) EXIT\n", __FUNCTION__, dev->name); | 1819 | DBG_ERROR("sxg: %s (%s) EXIT\n", __func__, dev->name); |
1820 | DBG_ERROR("sxg: %s EXIT\n", __FUNCTION__); | 1820 | DBG_ERROR("sxg: %s EXIT\n", __func__); |
1821 | spin_unlock_irqrestore(&sxg_global.driver_lock, sxg_global.flags); | 1821 | spin_unlock_irqrestore(&sxg_global.driver_lock, sxg_global.flags); |
1822 | return (STATUS_SUCCESS); | 1822 | return (STATUS_SUCCESS); |
1823 | } | 1823 | } |
@@ -1825,7 +1825,7 @@ static int sxg_entry_halt(p_net_device dev) | |||
1825 | static int sxg_ioctl(p_net_device dev, struct ifreq *rq, int cmd) | 1825 | static int sxg_ioctl(p_net_device dev, struct ifreq *rq, int cmd) |
1826 | { | 1826 | { |
1827 | ASSERT(rq); | 1827 | ASSERT(rq); |
1828 | // DBG_ERROR("sxg: %s cmd[%x] rq[%p] dev[%p]\n", __FUNCTION__, cmd, rq, dev); | 1828 | // DBG_ERROR("sxg: %s cmd[%x] rq[%p] dev[%p]\n", __func__, cmd, rq, dev); |
1829 | switch (cmd) { | 1829 | switch (cmd) { |
1830 | case SIOCSLICSETINTAGG: | 1830 | case SIOCSLICSETINTAGG: |
1831 | { | 1831 | { |
@@ -1841,12 +1841,12 @@ static int sxg_ioctl(p_net_device dev, struct ifreq *rq, int cmd) | |||
1841 | intagg = data[0]; | 1841 | intagg = data[0]; |
1842 | printk(KERN_EMERG | 1842 | printk(KERN_EMERG |
1843 | "%s: set interrupt aggregation to %d\n", | 1843 | "%s: set interrupt aggregation to %d\n", |
1844 | __FUNCTION__, intagg); | 1844 | __func__, intagg); |
1845 | return 0; | 1845 | return 0; |
1846 | } | 1846 | } |
1847 | 1847 | ||
1848 | default: | 1848 | default: |
1849 | // DBG_ERROR("sxg: %s UNSUPPORTED[%x]\n", __FUNCTION__, cmd); | 1849 | // DBG_ERROR("sxg: %s UNSUPPORTED[%x]\n", __func__, cmd); |
1850 | return -EOPNOTSUPP; | 1850 | return -EOPNOTSUPP; |
1851 | } | 1851 | } |
1852 | return 0; | 1852 | return 0; |
@@ -1870,7 +1870,7 @@ static int sxg_send_packets(struct sk_buff *skb, p_net_device dev) | |||
1870 | p_adapter_t adapter = (p_adapter_t) netdev_priv(dev); | 1870 | p_adapter_t adapter = (p_adapter_t) netdev_priv(dev); |
1871 | u32 status = STATUS_SUCCESS; | 1871 | u32 status = STATUS_SUCCESS; |
1872 | 1872 | ||
1873 | DBG_ERROR("sxg: %s ENTER sxg_send_packets skb[%p]\n", __FUNCTION__, | 1873 | DBG_ERROR("sxg: %s ENTER sxg_send_packets skb[%p]\n", __func__, |
1874 | skb); | 1874 | skb); |
1875 | // Check the adapter state | 1875 | // Check the adapter state |
1876 | switch (adapter->State) { | 1876 | switch (adapter->State) { |
@@ -1914,7 +1914,7 @@ static int sxg_send_packets(struct sk_buff *skb, p_net_device dev) | |||
1914 | adapter->stats.tx_dropped++; | 1914 | adapter->stats.tx_dropped++; |
1915 | #endif | 1915 | #endif |
1916 | } | 1916 | } |
1917 | DBG_ERROR("sxg: %s EXIT sxg_send_packets status[%x]\n", __FUNCTION__, | 1917 | DBG_ERROR("sxg: %s EXIT sxg_send_packets status[%x]\n", __func__, |
1918 | status); | 1918 | status); |
1919 | 1919 | ||
1920 | xmit_done: | 1920 | xmit_done: |
@@ -2279,7 +2279,7 @@ static int sxg_phy_init(p_adapter_t adapter) | |||
2279 | PPHY_UCODE p; | 2279 | PPHY_UCODE p; |
2280 | int status; | 2280 | int status; |
2281 | 2281 | ||
2282 | DBG_ERROR("ENTER %s\n", __FUNCTION__); | 2282 | DBG_ERROR("ENTER %s\n", __func__); |
2283 | 2283 | ||
2284 | // Read a register to identify the PHY type | 2284 | // Read a register to identify the PHY type |
2285 | status = sxg_read_mdio_reg(adapter, MIIM_DEV_PHY_PMA, // PHY PMA/PMD module | 2285 | status = sxg_read_mdio_reg(adapter, MIIM_DEV_PHY_PMA, // PHY PMA/PMD module |
@@ -2307,7 +2307,7 @@ static int sxg_phy_init(p_adapter_t adapter) | |||
2307 | } | 2307 | } |
2308 | } | 2308 | } |
2309 | } | 2309 | } |
2310 | DBG_ERROR("EXIT %s\n", __FUNCTION__); | 2310 | DBG_ERROR("EXIT %s\n", __func__); |
2311 | 2311 | ||
2312 | return (STATUS_SUCCESS); | 2312 | return (STATUS_SUCCESS); |
2313 | } | 2313 | } |
@@ -2330,7 +2330,7 @@ static void sxg_link_event(p_adapter_t adapter) | |||
2330 | 2330 | ||
2331 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "LinkEvnt", | 2331 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "LinkEvnt", |
2332 | adapter, 0, 0, 0); | 2332 | adapter, 0, 0, 0); |
2333 | DBG_ERROR("ENTER %s\n", __FUNCTION__); | 2333 | DBG_ERROR("ENTER %s\n", __func__); |
2334 | 2334 | ||
2335 | // Check the Link Status register. We should have a Link Alarm. | 2335 | // Check the Link Status register. We should have a Link Alarm. |
2336 | READ_REG(HwRegs->LinkStatus, Value); | 2336 | READ_REG(HwRegs->LinkStatus, Value); |
@@ -2365,7 +2365,7 @@ static void sxg_link_event(p_adapter_t adapter) | |||
2365 | DBG_ERROR("SXG: Link Status == 0x%08X.\n", Value); | 2365 | DBG_ERROR("SXG: Link Status == 0x%08X.\n", Value); |
2366 | // ASSERT(0); | 2366 | // ASSERT(0); |
2367 | } | 2367 | } |
2368 | DBG_ERROR("EXIT %s\n", __FUNCTION__); | 2368 | DBG_ERROR("EXIT %s\n", __func__); |
2369 | 2369 | ||
2370 | } | 2370 | } |
2371 | 2371 | ||
@@ -2383,7 +2383,7 @@ static SXG_LINK_STATE sxg_get_link_state(p_adapter_t adapter) | |||
2383 | int status; | 2383 | int status; |
2384 | u32 Value; | 2384 | u32 Value; |
2385 | 2385 | ||
2386 | DBG_ERROR("ENTER %s\n", __FUNCTION__); | 2386 | DBG_ERROR("ENTER %s\n", __func__); |
2387 | 2387 | ||
2388 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "GetLink", | 2388 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "GetLink", |
2389 | adapter, 0, 0, 0); | 2389 | adapter, 0, 0, 0); |
@@ -2421,7 +2421,7 @@ static SXG_LINK_STATE sxg_get_link_state(p_adapter_t adapter) | |||
2421 | return (SXG_LINK_DOWN); | 2421 | return (SXG_LINK_DOWN); |
2422 | 2422 | ||
2423 | // All 3 bits are true, so the link is up | 2423 | // All 3 bits are true, so the link is up |
2424 | DBG_ERROR("EXIT %s\n", __FUNCTION__); | 2424 | DBG_ERROR("EXIT %s\n", __func__); |
2425 | 2425 | ||
2426 | return (SXG_LINK_UP); | 2426 | return (SXG_LINK_UP); |
2427 | 2427 | ||
@@ -2437,11 +2437,11 @@ static void sxg_indicate_link_state(p_adapter_t adapter, | |||
2437 | { | 2437 | { |
2438 | if (adapter->LinkState == SXG_LINK_UP) { | 2438 | if (adapter->LinkState == SXG_LINK_UP) { |
2439 | DBG_ERROR("%s: LINK now UP, call netif_start_queue\n", | 2439 | DBG_ERROR("%s: LINK now UP, call netif_start_queue\n", |
2440 | __FUNCTION__); | 2440 | __func__); |
2441 | netif_start_queue(adapter->netdev); | 2441 | netif_start_queue(adapter->netdev); |
2442 | } else { | 2442 | } else { |
2443 | DBG_ERROR("%s: LINK now DOWN, call netif_stop_queue\n", | 2443 | DBG_ERROR("%s: LINK now DOWN, call netif_stop_queue\n", |
2444 | __FUNCTION__); | 2444 | __func__); |
2445 | netif_stop_queue(adapter->netdev); | 2445 | netif_stop_queue(adapter->netdev); |
2446 | } | 2446 | } |
2447 | } | 2447 | } |
@@ -2464,7 +2464,7 @@ static void sxg_link_state(p_adapter_t adapter, SXG_LINK_STATE LinkState) | |||
2464 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_IMPORTANT, "LnkINDCT", | 2464 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_IMPORTANT, "LnkINDCT", |
2465 | adapter, LinkState, adapter->LinkState, adapter->State); | 2465 | adapter, LinkState, adapter->LinkState, adapter->State); |
2466 | 2466 | ||
2467 | DBG_ERROR("ENTER %s\n", __FUNCTION__); | 2467 | DBG_ERROR("ENTER %s\n", __func__); |
2468 | 2468 | ||
2469 | // Hold the adapter lock during this routine. Maybe move | 2469 | // Hold the adapter lock during this routine. Maybe move |
2470 | // the lock to the caller. | 2470 | // the lock to the caller. |
@@ -2472,7 +2472,7 @@ static void sxg_link_state(p_adapter_t adapter, SXG_LINK_STATE LinkState) | |||
2472 | if (LinkState == adapter->LinkState) { | 2472 | if (LinkState == adapter->LinkState) { |
2473 | // Nothing changed.. | 2473 | // Nothing changed.. |
2474 | spin_unlock(&adapter->AdapterLock); | 2474 | spin_unlock(&adapter->AdapterLock); |
2475 | DBG_ERROR("EXIT #0 %s\n", __FUNCTION__); | 2475 | DBG_ERROR("EXIT #0 %s\n", __func__); |
2476 | return; | 2476 | return; |
2477 | } | 2477 | } |
2478 | // Save the adapter state | 2478 | // Save the adapter state |
@@ -2480,7 +2480,7 @@ static void sxg_link_state(p_adapter_t adapter, SXG_LINK_STATE LinkState) | |||
2480 | 2480 | ||
2481 | // Drop the lock and indicate link state | 2481 | // Drop the lock and indicate link state |
2482 | spin_unlock(&adapter->AdapterLock); | 2482 | spin_unlock(&adapter->AdapterLock); |
2483 | DBG_ERROR("EXIT #1 %s\n", __FUNCTION__); | 2483 | DBG_ERROR("EXIT #1 %s\n", __func__); |
2484 | 2484 | ||
2485 | sxg_indicate_link_state(adapter, LinkState); | 2485 | sxg_indicate_link_state(adapter, LinkState); |
2486 | } | 2486 | } |
@@ -2507,7 +2507,7 @@ static int sxg_write_mdio_reg(p_adapter_t adapter, | |||
2507 | u32 ValueRead; | 2507 | u32 ValueRead; |
2508 | u32 Timeout; | 2508 | u32 Timeout; |
2509 | 2509 | ||
2510 | // DBG_ERROR("ENTER %s\n", __FUNCTION__); | 2510 | // DBG_ERROR("ENTER %s\n", __func__); |
2511 | 2511 | ||
2512 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "WrtMDIO", | 2512 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "WrtMDIO", |
2513 | adapter, 0, 0, 0); | 2513 | adapter, 0, 0, 0); |
@@ -2570,7 +2570,7 @@ static int sxg_write_mdio_reg(p_adapter_t adapter, | |||
2570 | } | 2570 | } |
2571 | } while (ValueRead & AXGMAC_AMIIM_INDC_BUSY); | 2571 | } while (ValueRead & AXGMAC_AMIIM_INDC_BUSY); |
2572 | 2572 | ||
2573 | // DBG_ERROR("EXIT %s\n", __FUNCTION__); | 2573 | // DBG_ERROR("EXIT %s\n", __func__); |
2574 | 2574 | ||
2575 | return (STATUS_SUCCESS); | 2575 | return (STATUS_SUCCESS); |
2576 | } | 2576 | } |
@@ -2599,7 +2599,7 @@ static int sxg_read_mdio_reg(p_adapter_t adapter, | |||
2599 | 2599 | ||
2600 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "WrtMDIO", | 2600 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_NOISY, "WrtMDIO", |
2601 | adapter, 0, 0, 0); | 2601 | adapter, 0, 0, 0); |
2602 | // DBG_ERROR("ENTER %s\n", __FUNCTION__); | 2602 | // DBG_ERROR("ENTER %s\n", __func__); |
2603 | 2603 | ||
2604 | // Ensure values don't exceed field width | 2604 | // Ensure values don't exceed field width |
2605 | DevAddr &= 0x001F; // 5-bit field | 2605 | DevAddr &= 0x001F; // 5-bit field |
@@ -2662,7 +2662,7 @@ static int sxg_read_mdio_reg(p_adapter_t adapter, | |||
2662 | READ_REG(HwRegs->MacAmiimField, *pValue); | 2662 | READ_REG(HwRegs->MacAmiimField, *pValue); |
2663 | *pValue &= 0xFFFF; // data is in the lower 16 bits | 2663 | *pValue &= 0xFFFF; // data is in the lower 16 bits |
2664 | 2664 | ||
2665 | // DBG_ERROR("EXIT %s\n", __FUNCTION__); | 2665 | // DBG_ERROR("EXIT %s\n", __func__); |
2666 | 2666 | ||
2667 | return (STATUS_SUCCESS); | 2667 | return (STATUS_SUCCESS); |
2668 | } | 2668 | } |
@@ -2809,7 +2809,7 @@ static void sxg_mcast_set_list(p_net_device dev) | |||
2809 | } | 2809 | } |
2810 | 2810 | ||
2811 | DBG_ERROR("%s a->devflags_prev[%x] dev->flags[%x] status[%x]\n", | 2811 | DBG_ERROR("%s a->devflags_prev[%x] dev->flags[%x] status[%x]\n", |
2812 | __FUNCTION__, adapter->devflags_prev, dev->flags, status); | 2812 | __func__, adapter->devflags_prev, dev->flags, status); |
2813 | if (adapter->devflags_prev != dev->flags) { | 2813 | if (adapter->devflags_prev != dev->flags) { |
2814 | adapter->macopts = MAC_DIRECTED; | 2814 | adapter->macopts = MAC_DIRECTED; |
2815 | if (dev->flags) { | 2815 | if (dev->flags) { |
@@ -2828,7 +2828,7 @@ static void sxg_mcast_set_list(p_net_device dev) | |||
2828 | } | 2828 | } |
2829 | adapter->devflags_prev = dev->flags; | 2829 | adapter->devflags_prev = dev->flags; |
2830 | DBG_ERROR("%s call sxg_config_set adapter->macopts[%x]\n", | 2830 | DBG_ERROR("%s call sxg_config_set adapter->macopts[%x]\n", |
2831 | __FUNCTION__, adapter->macopts); | 2831 | __func__, adapter->macopts); |
2832 | sxg_config_set(adapter, TRUE); | 2832 | sxg_config_set(adapter, TRUE); |
2833 | } else { | 2833 | } else { |
2834 | if (status == STATUS_SUCCESS) { | 2834 | if (status == STATUS_SUCCESS) { |
@@ -2843,7 +2843,7 @@ static void sxg_mcast_set_mask(p_adapter_t adapter) | |||
2843 | { | 2843 | { |
2844 | PSXG_UCODE_REGS sxg_regs = adapter->UcodeRegs; | 2844 | PSXG_UCODE_REGS sxg_regs = adapter->UcodeRegs; |
2845 | 2845 | ||
2846 | DBG_ERROR("%s ENTER (%s) macopts[%x] mask[%llx]\n", __FUNCTION__, | 2846 | DBG_ERROR("%s ENTER (%s) macopts[%x] mask[%llx]\n", __func__, |
2847 | adapter->netdev->name, (unsigned int)adapter->MacFilter, | 2847 | adapter->netdev->name, (unsigned int)adapter->MacFilter, |
2848 | adapter->MulticastMask); | 2848 | adapter->MulticastMask); |
2849 | 2849 | ||
@@ -2852,17 +2852,17 @@ static void sxg_mcast_set_mask(p_adapter_t adapter) | |||
2852 | * mode as well as ALLMCAST mode. It saves the Microcode from having | 2852 | * mode as well as ALLMCAST mode. It saves the Microcode from having |
2853 | * to keep state about the MAC configuration. | 2853 | * to keep state about the MAC configuration. |
2854 | */ | 2854 | */ |
2855 | // DBG_ERROR("sxg: %s macopts = MAC_ALLMCAST | MAC_PROMISC\n SLUT MODE!!!\n",__FUNCTION__); | 2855 | // DBG_ERROR("sxg: %s macopts = MAC_ALLMCAST | MAC_PROMISC\n SLUT MODE!!!\n",__func__); |
2856 | WRITE_REG(sxg_regs->McastLow, 0xFFFFFFFF, FLUSH); | 2856 | WRITE_REG(sxg_regs->McastLow, 0xFFFFFFFF, FLUSH); |
2857 | WRITE_REG(sxg_regs->McastHigh, 0xFFFFFFFF, FLUSH); | 2857 | WRITE_REG(sxg_regs->McastHigh, 0xFFFFFFFF, FLUSH); |
2858 | // DBG_ERROR("%s (%s) WRITE to slic_regs slic_mcastlow&high 0xFFFFFFFF\n",__FUNCTION__, adapter->netdev->name); | 2858 | // DBG_ERROR("%s (%s) WRITE to slic_regs slic_mcastlow&high 0xFFFFFFFF\n",__func__, adapter->netdev->name); |
2859 | 2859 | ||
2860 | } else { | 2860 | } else { |
2861 | /* Commit our multicast mast to the SLIC by writing to the multicast | 2861 | /* Commit our multicast mast to the SLIC by writing to the multicast |
2862 | * address mask registers | 2862 | * address mask registers |
2863 | */ | 2863 | */ |
2864 | DBG_ERROR("%s (%s) WRITE mcastlow[%lx] mcasthigh[%lx]\n", | 2864 | DBG_ERROR("%s (%s) WRITE mcastlow[%lx] mcasthigh[%lx]\n", |
2865 | __FUNCTION__, adapter->netdev->name, | 2865 | __func__, adapter->netdev->name, |
2866 | ((ulong) (adapter->MulticastMask & 0xFFFFFFFF)), | 2866 | ((ulong) (adapter->MulticastMask & 0xFFFFFFFF)), |
2867 | ((ulong) | 2867 | ((ulong) |
2868 | ((adapter->MulticastMask >> 32) & 0xFFFFFFFF))); | 2868 | ((adapter->MulticastMask >> 32) & 0xFFFFFFFF))); |
@@ -3200,7 +3200,7 @@ static void sxg_allocate_rcvblock_complete(p_adapter_t adapter, | |||
3200 | pci_free_consistent(adapter->pcidev, | 3200 | pci_free_consistent(adapter->pcidev, |
3201 | Length, RcvBlock, PhysicalAddress); | 3201 | Length, RcvBlock, PhysicalAddress); |
3202 | } | 3202 | } |
3203 | DBG_ERROR("%s: OUT OF RESOURCES\n", __FUNCTION__); | 3203 | DBG_ERROR("%s: OUT OF RESOURCES\n", __func__); |
3204 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_IMPORTANT, "RcvAFail", | 3204 | SXG_TRACE(TRACE_SXG, SxgTraceBuffer, TRACE_IMPORTANT, "RcvAFail", |
3205 | adapter, adapter->FreeRcvBufferCount, | 3205 | adapter, adapter->FreeRcvBufferCount, |
3206 | adapter->FreeRcvBlockCount, adapter->AllRcvBlockCount); | 3206 | adapter->FreeRcvBlockCount, adapter->AllRcvBlockCount); |
@@ -3244,13 +3244,13 @@ static unsigned char temp_mac_address[6] = | |||
3244 | 3244 | ||
3245 | static void sxg_adapter_set_hwaddr(p_adapter_t adapter) | 3245 | static void sxg_adapter_set_hwaddr(p_adapter_t adapter) |
3246 | { | 3246 | { |
3247 | // DBG_ERROR ("%s ENTER card->config_set[%x] port[%d] physport[%d] funct#[%d]\n", __FUNCTION__, | 3247 | // DBG_ERROR ("%s ENTER card->config_set[%x] port[%d] physport[%d] funct#[%d]\n", __func__, |
3248 | // card->config_set, adapter->port, adapter->physport, adapter->functionnumber); | 3248 | // card->config_set, adapter->port, adapter->physport, adapter->functionnumber); |
3249 | // | 3249 | // |
3250 | // sxg_dbg_macaddrs(adapter); | 3250 | // sxg_dbg_macaddrs(adapter); |
3251 | 3251 | ||
3252 | memcpy(adapter->macaddr, temp_mac_address, sizeof(SXG_CONFIG_MAC)); | 3252 | memcpy(adapter->macaddr, temp_mac_address, sizeof(SXG_CONFIG_MAC)); |
3253 | // DBG_ERROR ("%s AFTER copying from config.macinfo into currmacaddr\n", __FUNCTION__); | 3253 | // DBG_ERROR ("%s AFTER copying from config.macinfo into currmacaddr\n", __func__); |
3254 | // sxg_dbg_macaddrs(adapter); | 3254 | // sxg_dbg_macaddrs(adapter); |
3255 | if (!(adapter->currmacaddr[0] || | 3255 | if (!(adapter->currmacaddr[0] || |
3256 | adapter->currmacaddr[1] || | 3256 | adapter->currmacaddr[1] || |
@@ -3262,7 +3262,7 @@ static void sxg_adapter_set_hwaddr(p_adapter_t adapter) | |||
3262 | if (adapter->netdev) { | 3262 | if (adapter->netdev) { |
3263 | memcpy(adapter->netdev->dev_addr, adapter->currmacaddr, 6); | 3263 | memcpy(adapter->netdev->dev_addr, adapter->currmacaddr, 6); |
3264 | } | 3264 | } |
3265 | // DBG_ERROR ("%s EXIT port %d\n", __FUNCTION__, adapter->port); | 3265 | // DBG_ERROR ("%s EXIT port %d\n", __func__, adapter->port); |
3266 | sxg_dbg_macaddrs(adapter); | 3266 | sxg_dbg_macaddrs(adapter); |
3267 | 3267 | ||
3268 | } | 3268 | } |
@@ -3273,7 +3273,7 @@ static int sxg_mac_set_address(p_net_device dev, void *ptr) | |||
3273 | p_adapter_t adapter = (p_adapter_t) netdev_priv(dev); | 3273 | p_adapter_t adapter = (p_adapter_t) netdev_priv(dev); |
3274 | struct sockaddr *addr = ptr; | 3274 | struct sockaddr *addr = ptr; |
3275 | 3275 | ||
3276 | DBG_ERROR("%s ENTER (%s)\n", __FUNCTION__, adapter->netdev->name); | 3276 | DBG_ERROR("%s ENTER (%s)\n", __func__, adapter->netdev->name); |
3277 | 3277 | ||
3278 | if (netif_running(dev)) { | 3278 | if (netif_running(dev)) { |
3279 | return -EBUSY; | 3279 | return -EBUSY; |
@@ -3282,14 +3282,14 @@ static int sxg_mac_set_address(p_net_device dev, void *ptr) | |||
3282 | return -EBUSY; | 3282 | return -EBUSY; |
3283 | } | 3283 | } |
3284 | DBG_ERROR("sxg: %s (%s) curr %2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X\n", | 3284 | DBG_ERROR("sxg: %s (%s) curr %2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X\n", |
3285 | __FUNCTION__, adapter->netdev->name, adapter->currmacaddr[0], | 3285 | __func__, adapter->netdev->name, adapter->currmacaddr[0], |
3286 | adapter->currmacaddr[1], adapter->currmacaddr[2], | 3286 | adapter->currmacaddr[1], adapter->currmacaddr[2], |
3287 | adapter->currmacaddr[3], adapter->currmacaddr[4], | 3287 | adapter->currmacaddr[3], adapter->currmacaddr[4], |
3288 | adapter->currmacaddr[5]); | 3288 | adapter->currmacaddr[5]); |
3289 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); | 3289 | memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); |
3290 | memcpy(adapter->currmacaddr, addr->sa_data, dev->addr_len); | 3290 | memcpy(adapter->currmacaddr, addr->sa_data, dev->addr_len); |
3291 | DBG_ERROR("sxg: %s (%s) new %2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X\n", | 3291 | DBG_ERROR("sxg: %s (%s) new %2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X\n", |
3292 | __FUNCTION__, adapter->netdev->name, adapter->currmacaddr[0], | 3292 | __func__, adapter->netdev->name, adapter->currmacaddr[0], |
3293 | adapter->currmacaddr[1], adapter->currmacaddr[2], | 3293 | adapter->currmacaddr[1], adapter->currmacaddr[2], |
3294 | adapter->currmacaddr[3], adapter->currmacaddr[4], | 3294 | adapter->currmacaddr[3], adapter->currmacaddr[4], |
3295 | adapter->currmacaddr[5]); | 3295 | adapter->currmacaddr[5]); |
@@ -3383,9 +3383,9 @@ static int sxg_initialize_adapter(p_adapter_t adapter) | |||
3383 | SXG_RCV_TCP_CSUM_ENABLED | SXG_RCV_IP_CSUM_ENABLED, TRUE); | 3383 | SXG_RCV_TCP_CSUM_ENABLED | SXG_RCV_IP_CSUM_ENABLED, TRUE); |
3384 | 3384 | ||
3385 | // Initialize the MAC, XAUI | 3385 | // Initialize the MAC, XAUI |
3386 | DBG_ERROR("sxg: %s ENTER sxg_initialize_link\n", __FUNCTION__); | 3386 | DBG_ERROR("sxg: %s ENTER sxg_initialize_link\n", __func__); |
3387 | status = sxg_initialize_link(adapter); | 3387 | status = sxg_initialize_link(adapter); |
3388 | DBG_ERROR("sxg: %s EXIT sxg_initialize_link status[%x]\n", __FUNCTION__, | 3388 | DBG_ERROR("sxg: %s EXIT sxg_initialize_link status[%x]\n", __func__, |
3389 | status); | 3389 | status); |
3390 | if (status != STATUS_SUCCESS) { | 3390 | if (status != STATUS_SUCCESS) { |
3391 | return (status); | 3391 | return (status); |
diff --git a/drivers/staging/sxg/sxgdbg.h b/drivers/staging/sxg/sxgdbg.h index cfb6c7c77a9e..4522b8d71495 100644 --- a/drivers/staging/sxg/sxgdbg.h +++ b/drivers/staging/sxg/sxgdbg.h | |||
@@ -58,7 +58,7 @@ | |||
58 | { \ | 58 | { \ |
59 | if (!(a)) { \ | 59 | if (!(a)) { \ |
60 | DBG_ERROR("ASSERT() Failure: file %s, function %s line %d\n",\ | 60 | DBG_ERROR("ASSERT() Failure: file %s, function %s line %d\n",\ |
61 | __FILE__, __FUNCTION__, __LINE__); \ | 61 | __FILE__, __func__, __LINE__); \ |
62 | } \ | 62 | } \ |
63 | } | 63 | } |
64 | #endif | 64 | #endif |