diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-08-20 19:52:04 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 18:59:00 -0400 |
commit | b39d66a81fb4f5ab555f86a2e49f3714f8369a3d (patch) | |
tree | 20ffb096fe2781545ac3f77f07ebbb347234e111 /drivers/net | |
parent | b514f6b6da3aedcf4eb6f0c69e910ae89ef4632f (diff) |
drivers/net: replace __FUNCTION__ with __func__
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net')
31 files changed, 235 insertions, 235 deletions
diff --git a/drivers/net/3c505.c b/drivers/net/3c505.c index fdfb2b2cb734..a424869707a5 100644 --- a/drivers/net/3c505.c +++ b/drivers/net/3c505.c | |||
@@ -130,12 +130,12 @@ static const char filename[] = __FILE__; | |||
130 | 130 | ||
131 | static const char timeout_msg[] = "*** timeout at %s:%s (line %d) ***\n"; | 131 | static const char timeout_msg[] = "*** timeout at %s:%s (line %d) ***\n"; |
132 | #define TIMEOUT_MSG(lineno) \ | 132 | #define TIMEOUT_MSG(lineno) \ |
133 | printk(timeout_msg, filename,__FUNCTION__,(lineno)) | 133 | printk(timeout_msg, filename,__func__,(lineno)) |
134 | 134 | ||
135 | static const char invalid_pcb_msg[] = | 135 | static const char invalid_pcb_msg[] = |
136 | "*** invalid pcb length %d at %s:%s (line %d) ***\n"; | 136 | "*** invalid pcb length %d at %s:%s (line %d) ***\n"; |
137 | #define INVALID_PCB_MSG(len) \ | 137 | #define INVALID_PCB_MSG(len) \ |
138 | printk(invalid_pcb_msg, (len),filename,__FUNCTION__,__LINE__) | 138 | printk(invalid_pcb_msg, (len),filename,__func__,__LINE__) |
139 | 139 | ||
140 | static char search_msg[] __initdata = KERN_INFO "%s: Looking for 3c505 adapter at address %#x..."; | 140 | static char search_msg[] __initdata = KERN_INFO "%s: Looking for 3c505 adapter at address %#x..."; |
141 | 141 | ||
diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c index bdc4c0bb56d9..a5b07691e466 100644 --- a/drivers/net/arcnet/arcnet.c +++ b/drivers/net/arcnet/arcnet.c | |||
@@ -442,24 +442,24 @@ static int arcnet_open(struct net_device *dev) | |||
442 | BUGMSG(D_NORMAL, "WARNING! Station address FF may confuse " | 442 | BUGMSG(D_NORMAL, "WARNING! Station address FF may confuse " |
443 | "DOS networking programs!\n"); | 443 | "DOS networking programs!\n"); |
444 | 444 | ||
445 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 445 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
446 | if (ASTATUS() & RESETflag) { | 446 | if (ASTATUS() & RESETflag) { |
447 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 447 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
448 | ACOMMAND(CFLAGScmd | RESETclear); | 448 | ACOMMAND(CFLAGScmd | RESETclear); |
449 | } | 449 | } |
450 | 450 | ||
451 | 451 | ||
452 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 452 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
453 | /* make sure we're ready to receive IRQ's. */ | 453 | /* make sure we're ready to receive IRQ's. */ |
454 | AINTMASK(0); | 454 | AINTMASK(0); |
455 | udelay(1); /* give it time to set the mask before | 455 | udelay(1); /* give it time to set the mask before |
456 | * we reset it again. (may not even be | 456 | * we reset it again. (may not even be |
457 | * necessary) | 457 | * necessary) |
458 | */ | 458 | */ |
459 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 459 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
460 | lp->intmask = NORXflag | RECONflag; | 460 | lp->intmask = NORXflag | RECONflag; |
461 | AINTMASK(lp->intmask); | 461 | AINTMASK(lp->intmask); |
462 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 462 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
463 | 463 | ||
464 | netif_start_queue(dev); | 464 | netif_start_queue(dev); |
465 | 465 | ||
@@ -670,14 +670,14 @@ static int arcnet_send_packet(struct sk_buff *skb, struct net_device *dev) | |||
670 | freeskb = 0; | 670 | freeskb = 0; |
671 | } | 671 | } |
672 | 672 | ||
673 | BUGMSG(D_DEBUG, "%s: %d: %s, status: %x\n",__FILE__,__LINE__,__FUNCTION__,ASTATUS()); | 673 | BUGMSG(D_DEBUG, "%s: %d: %s, status: %x\n",__FILE__,__LINE__,__func__,ASTATUS()); |
674 | /* make sure we didn't ignore a TX IRQ while we were in here */ | 674 | /* make sure we didn't ignore a TX IRQ while we were in here */ |
675 | AINTMASK(0); | 675 | AINTMASK(0); |
676 | 676 | ||
677 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 677 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
678 | lp->intmask |= TXFREEflag|EXCNAKflag; | 678 | lp->intmask |= TXFREEflag|EXCNAKflag; |
679 | AINTMASK(lp->intmask); | 679 | AINTMASK(lp->intmask); |
680 | BUGMSG(D_DEBUG, "%s: %d: %s, status: %x\n",__FILE__,__LINE__,__FUNCTION__,ASTATUS()); | 680 | BUGMSG(D_DEBUG, "%s: %d: %s, status: %x\n",__FILE__,__LINE__,__func__,ASTATUS()); |
681 | 681 | ||
682 | spin_unlock_irqrestore(&lp->lock, flags); | 682 | spin_unlock_irqrestore(&lp->lock, flags); |
683 | if (freeskb) { | 683 | if (freeskb) { |
@@ -798,7 +798,7 @@ irqreturn_t arcnet_interrupt(int irq, void *dev_id) | |||
798 | diagstatus = (status >> 8) & 0xFF; | 798 | diagstatus = (status >> 8) & 0xFF; |
799 | 799 | ||
800 | BUGMSG(D_DEBUG, "%s: %d: %s: status=%x\n", | 800 | BUGMSG(D_DEBUG, "%s: %d: %s: status=%x\n", |
801 | __FILE__,__LINE__,__FUNCTION__,status); | 801 | __FILE__,__LINE__,__func__,status); |
802 | didsomething = 0; | 802 | didsomething = 0; |
803 | 803 | ||
804 | /* | 804 | /* |
diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c index 8b51313b1300..70124a944e7d 100644 --- a/drivers/net/arcnet/com20020.c +++ b/drivers/net/arcnet/com20020.c | |||
@@ -238,15 +238,15 @@ static int com20020_reset(struct net_device *dev, int really_reset) | |||
238 | u_char inbyte; | 238 | u_char inbyte; |
239 | 239 | ||
240 | BUGMSG(D_DEBUG, "%s: %d: %s: dev: %p, lp: %p, dev->name: %s\n", | 240 | BUGMSG(D_DEBUG, "%s: %d: %s: dev: %p, lp: %p, dev->name: %s\n", |
241 | __FILE__,__LINE__,__FUNCTION__,dev,lp,dev->name); | 241 | __FILE__,__LINE__,__func__,dev,lp,dev->name); |
242 | BUGMSG(D_INIT, "Resetting %s (status=%02Xh)\n", | 242 | BUGMSG(D_INIT, "Resetting %s (status=%02Xh)\n", |
243 | dev->name, ASTATUS()); | 243 | dev->name, ASTATUS()); |
244 | 244 | ||
245 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 245 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
246 | lp->config = TXENcfg | (lp->timeout << 3) | (lp->backplane << 2); | 246 | lp->config = TXENcfg | (lp->timeout << 3) | (lp->backplane << 2); |
247 | /* power-up defaults */ | 247 | /* power-up defaults */ |
248 | SETCONF; | 248 | SETCONF; |
249 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 249 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
250 | 250 | ||
251 | if (really_reset) { | 251 | if (really_reset) { |
252 | /* reset the card */ | 252 | /* reset the card */ |
@@ -254,22 +254,22 @@ static int com20020_reset(struct net_device *dev, int really_reset) | |||
254 | mdelay(RESETtime * 2); /* COM20020 seems to be slower sometimes */ | 254 | mdelay(RESETtime * 2); /* COM20020 seems to be slower sometimes */ |
255 | } | 255 | } |
256 | /* clear flags & end reset */ | 256 | /* clear flags & end reset */ |
257 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 257 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
258 | ACOMMAND(CFLAGScmd | RESETclear | CONFIGclear); | 258 | ACOMMAND(CFLAGScmd | RESETclear | CONFIGclear); |
259 | 259 | ||
260 | /* verify that the ARCnet signature byte is present */ | 260 | /* verify that the ARCnet signature byte is present */ |
261 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 261 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
262 | 262 | ||
263 | com20020_copy_from_card(dev, 0, 0, &inbyte, 1); | 263 | com20020_copy_from_card(dev, 0, 0, &inbyte, 1); |
264 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 264 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
265 | if (inbyte != TESTvalue) { | 265 | if (inbyte != TESTvalue) { |
266 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 266 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
267 | BUGMSG(D_NORMAL, "reset failed: TESTvalue not present.\n"); | 267 | BUGMSG(D_NORMAL, "reset failed: TESTvalue not present.\n"); |
268 | return 1; | 268 | return 1; |
269 | } | 269 | } |
270 | /* enable extended (512-byte) packets */ | 270 | /* enable extended (512-byte) packets */ |
271 | ACOMMAND(CONFIGcmd | EXTconf); | 271 | ACOMMAND(CONFIGcmd | EXTconf); |
272 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__); | 272 | BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__); |
273 | 273 | ||
274 | /* done! return success. */ | 274 | /* done! return success. */ |
275 | return 0; | 275 | return 0; |
diff --git a/drivers/net/ax88796.c b/drivers/net/ax88796.c index a886a4b9f7e5..4207d6efddc0 100644 --- a/drivers/net/ax88796.c +++ b/drivers/net/ax88796.c | |||
@@ -153,7 +153,7 @@ static void ax_reset_8390(struct net_device *dev) | |||
153 | while ((ei_inb(addr + EN0_ISR) & ENISR_RESET) == 0) { | 153 | while ((ei_inb(addr + EN0_ISR) & ENISR_RESET) == 0) { |
154 | if (jiffies - reset_start_time > 2*HZ/100) { | 154 | if (jiffies - reset_start_time > 2*HZ/100) { |
155 | dev_warn(&ax->dev->dev, "%s: %s did not complete.\n", | 155 | dev_warn(&ax->dev->dev, "%s: %s did not complete.\n", |
156 | __FUNCTION__, dev->name); | 156 | __func__, dev->name); |
157 | break; | 157 | break; |
158 | } | 158 | } |
159 | } | 159 | } |
@@ -173,7 +173,7 @@ static void ax_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, | |||
173 | if (ei_status.dmaing) { | 173 | if (ei_status.dmaing) { |
174 | dev_err(&ax->dev->dev, "%s: DMAing conflict in %s " | 174 | dev_err(&ax->dev->dev, "%s: DMAing conflict in %s " |
175 | "[DMAstat:%d][irqlock:%d].\n", | 175 | "[DMAstat:%d][irqlock:%d].\n", |
176 | dev->name, __FUNCTION__, | 176 | dev->name, __func__, |
177 | ei_status.dmaing, ei_status.irqlock); | 177 | ei_status.dmaing, ei_status.irqlock); |
178 | return; | 178 | return; |
179 | } | 179 | } |
@@ -215,7 +215,7 @@ static void ax_block_input(struct net_device *dev, int count, | |||
215 | dev_err(&ax->dev->dev, | 215 | dev_err(&ax->dev->dev, |
216 | "%s: DMAing conflict in %s " | 216 | "%s: DMAing conflict in %s " |
217 | "[DMAstat:%d][irqlock:%d].\n", | 217 | "[DMAstat:%d][irqlock:%d].\n", |
218 | dev->name, __FUNCTION__, | 218 | dev->name, __func__, |
219 | ei_status.dmaing, ei_status.irqlock); | 219 | ei_status.dmaing, ei_status.irqlock); |
220 | return; | 220 | return; |
221 | } | 221 | } |
@@ -260,7 +260,7 @@ static void ax_block_output(struct net_device *dev, int count, | |||
260 | if (ei_status.dmaing) { | 260 | if (ei_status.dmaing) { |
261 | dev_err(&ax->dev->dev, "%s: DMAing conflict in %s." | 261 | dev_err(&ax->dev->dev, "%s: DMAing conflict in %s." |
262 | "[DMAstat:%d][irqlock:%d]\n", | 262 | "[DMAstat:%d][irqlock:%d]\n", |
263 | dev->name, __FUNCTION__, | 263 | dev->name, __func__, |
264 | ei_status.dmaing, ei_status.irqlock); | 264 | ei_status.dmaing, ei_status.irqlock); |
265 | return; | 265 | return; |
266 | } | 266 | } |
@@ -396,7 +396,7 @@ ax_phy_issueaddr(struct net_device *dev, int phy_addr, int reg, int opc) | |||
396 | { | 396 | { |
397 | if (phy_debug) | 397 | if (phy_debug) |
398 | pr_debug("%s: dev %p, %04x, %04x, %d\n", | 398 | pr_debug("%s: dev %p, %04x, %04x, %d\n", |
399 | __FUNCTION__, dev, phy_addr, reg, opc); | 399 | __func__, dev, phy_addr, reg, opc); |
400 | 400 | ||
401 | ax_mii_ei_outbits(dev, 0x3f, 6); /* pre-amble */ | 401 | ax_mii_ei_outbits(dev, 0x3f, 6); /* pre-amble */ |
402 | ax_mii_ei_outbits(dev, 1, 2); /* frame-start */ | 402 | ax_mii_ei_outbits(dev, 1, 2); /* frame-start */ |
@@ -422,7 +422,7 @@ ax_phy_read(struct net_device *dev, int phy_addr, int reg) | |||
422 | spin_unlock_irqrestore(&ei_local->page_lock, flags); | 422 | spin_unlock_irqrestore(&ei_local->page_lock, flags); |
423 | 423 | ||
424 | if (phy_debug) | 424 | if (phy_debug) |
425 | pr_debug("%s: %04x.%04x => read %04x\n", __FUNCTION__, | 425 | pr_debug("%s: %04x.%04x => read %04x\n", __func__, |
426 | phy_addr, reg, result); | 426 | phy_addr, reg, result); |
427 | 427 | ||
428 | return result; | 428 | return result; |
@@ -436,7 +436,7 @@ ax_phy_write(struct net_device *dev, int phy_addr, int reg, int value) | |||
436 | unsigned long flags; | 436 | unsigned long flags; |
437 | 437 | ||
438 | dev_dbg(&ax->dev->dev, "%s: %p, %04x, %04x %04x\n", | 438 | dev_dbg(&ax->dev->dev, "%s: %p, %04x, %04x %04x\n", |
439 | __FUNCTION__, dev, phy_addr, reg, value); | 439 | __func__, dev, phy_addr, reg, value); |
440 | 440 | ||
441 | spin_lock_irqsave(&ei->page_lock, flags); | 441 | spin_lock_irqsave(&ei->page_lock, flags); |
442 | 442 | ||
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index 3db7db1828e7..df896e23e2c5 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c | |||
@@ -811,7 +811,7 @@ static void bfin_mac_enable(void) | |||
811 | { | 811 | { |
812 | u32 opmode; | 812 | u32 opmode; |
813 | 813 | ||
814 | pr_debug("%s: %s\n", DRV_NAME, __FUNCTION__); | 814 | pr_debug("%s: %s\n", DRV_NAME, __func__); |
815 | 815 | ||
816 | /* Set RX DMA */ | 816 | /* Set RX DMA */ |
817 | bfin_write_DMA1_NEXT_DESC_PTR(&(rx_list_head->desc_a)); | 817 | bfin_write_DMA1_NEXT_DESC_PTR(&(rx_list_head->desc_a)); |
@@ -847,7 +847,7 @@ static void bfin_mac_enable(void) | |||
847 | /* Our watchdog timed out. Called by the networking layer */ | 847 | /* Our watchdog timed out. Called by the networking layer */ |
848 | static void bfin_mac_timeout(struct net_device *dev) | 848 | static void bfin_mac_timeout(struct net_device *dev) |
849 | { | 849 | { |
850 | pr_debug("%s: %s\n", dev->name, __FUNCTION__); | 850 | pr_debug("%s: %s\n", dev->name, __func__); |
851 | 851 | ||
852 | bfin_mac_disable(); | 852 | bfin_mac_disable(); |
853 | 853 | ||
@@ -949,7 +949,7 @@ static int bfin_mac_open(struct net_device *dev) | |||
949 | { | 949 | { |
950 | struct bfin_mac_local *lp = netdev_priv(dev); | 950 | struct bfin_mac_local *lp = netdev_priv(dev); |
951 | int retval; | 951 | int retval; |
952 | pr_debug("%s: %s\n", dev->name, __FUNCTION__); | 952 | pr_debug("%s: %s\n", dev->name, __func__); |
953 | 953 | ||
954 | /* | 954 | /* |
955 | * Check that the address is valid. If its not, refuse | 955 | * Check that the address is valid. If its not, refuse |
@@ -989,7 +989,7 @@ static int bfin_mac_open(struct net_device *dev) | |||
989 | static int bfin_mac_close(struct net_device *dev) | 989 | static int bfin_mac_close(struct net_device *dev) |
990 | { | 990 | { |
991 | struct bfin_mac_local *lp = netdev_priv(dev); | 991 | struct bfin_mac_local *lp = netdev_priv(dev); |
992 | pr_debug("%s: %s\n", dev->name, __FUNCTION__); | 992 | pr_debug("%s: %s\n", dev->name, __func__); |
993 | 993 | ||
994 | netif_stop_queue(dev); | 994 | netif_stop_queue(dev); |
995 | netif_carrier_off(dev); | 995 | netif_carrier_off(dev); |
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index fb730ec0396f..f7b40edabfd8 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #ifdef BONDING_DEBUG | 32 | #ifdef BONDING_DEBUG |
33 | #define dprintk(fmt, args...) \ | 33 | #define dprintk(fmt, args...) \ |
34 | printk(KERN_DEBUG \ | 34 | printk(KERN_DEBUG \ |
35 | DRV_NAME ": %s() %d: " fmt, __FUNCTION__, __LINE__ , ## args ) | 35 | DRV_NAME ": %s() %d: " fmt, __func__, __LINE__ , ## args ) |
36 | #else | 36 | #else |
37 | #define dprintk(fmt, args...) | 37 | #define dprintk(fmt, args...) |
38 | #endif /* BONDING_DEBUG */ | 38 | #endif /* BONDING_DEBUG */ |
diff --git a/drivers/net/cxgb3/cxgb3_offload.c b/drivers/net/cxgb3/cxgb3_offload.c index c5b3de1bb456..0f6fd63b2847 100644 --- a/drivers/net/cxgb3/cxgb3_offload.c +++ b/drivers/net/cxgb3/cxgb3_offload.c | |||
@@ -1018,7 +1018,7 @@ static void set_l2t_ix(struct t3cdev *tdev, u32 tid, struct l2t_entry *e) | |||
1018 | 1018 | ||
1019 | skb = alloc_skb(sizeof(*req), GFP_ATOMIC); | 1019 | skb = alloc_skb(sizeof(*req), GFP_ATOMIC); |
1020 | if (!skb) { | 1020 | if (!skb) { |
1021 | printk(KERN_ERR "%s: cannot allocate skb!\n", __FUNCTION__); | 1021 | printk(KERN_ERR "%s: cannot allocate skb!\n", __func__); |
1022 | return; | 1022 | return; |
1023 | } | 1023 | } |
1024 | skb->priority = CPL_PRIORITY_CONTROL; | 1024 | skb->priority = CPL_PRIORITY_CONTROL; |
@@ -1049,14 +1049,14 @@ void cxgb_redirect(struct dst_entry *old, struct dst_entry *new) | |||
1049 | return; | 1049 | return; |
1050 | if (!is_offloading(newdev)) { | 1050 | if (!is_offloading(newdev)) { |
1051 | printk(KERN_WARNING "%s: Redirect to non-offload " | 1051 | printk(KERN_WARNING "%s: Redirect to non-offload " |
1052 | "device ignored.\n", __FUNCTION__); | 1052 | "device ignored.\n", __func__); |
1053 | return; | 1053 | return; |
1054 | } | 1054 | } |
1055 | tdev = dev2t3cdev(olddev); | 1055 | tdev = dev2t3cdev(olddev); |
1056 | BUG_ON(!tdev); | 1056 | BUG_ON(!tdev); |
1057 | if (tdev != dev2t3cdev(newdev)) { | 1057 | if (tdev != dev2t3cdev(newdev)) { |
1058 | printk(KERN_WARNING "%s: Redirect to different " | 1058 | printk(KERN_WARNING "%s: Redirect to different " |
1059 | "offload device ignored.\n", __FUNCTION__); | 1059 | "offload device ignored.\n", __func__); |
1060 | return; | 1060 | return; |
1061 | } | 1061 | } |
1062 | 1062 | ||
@@ -1064,7 +1064,7 @@ void cxgb_redirect(struct dst_entry *old, struct dst_entry *new) | |||
1064 | e = t3_l2t_get(tdev, new->neighbour, newdev); | 1064 | e = t3_l2t_get(tdev, new->neighbour, newdev); |
1065 | if (!e) { | 1065 | if (!e) { |
1066 | printk(KERN_ERR "%s: couldn't allocate new l2t entry!\n", | 1066 | printk(KERN_ERR "%s: couldn't allocate new l2t entry!\n", |
1067 | __FUNCTION__); | 1067 | __func__); |
1068 | return; | 1068 | return; |
1069 | } | 1069 | } |
1070 | 1070 | ||
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index 453115acaad2..7d7dfa512bfa 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -191,7 +191,7 @@ MODULE_PARM_DESC(use_io, "Force use of i/o access mode"); | |||
191 | #define DPRINTK(nlevel, klevel, fmt, args...) \ | 191 | #define DPRINTK(nlevel, klevel, fmt, args...) \ |
192 | (void)((NETIF_MSG_##nlevel & nic->msg_enable) && \ | 192 | (void)((NETIF_MSG_##nlevel & nic->msg_enable) && \ |
193 | printk(KERN_##klevel PFX "%s: %s: " fmt, nic->netdev->name, \ | 193 | printk(KERN_##klevel PFX "%s: %s: " fmt, nic->netdev->name, \ |
194 | __FUNCTION__ , ## args)) | 194 | __func__ , ## args)) |
195 | 195 | ||
196 | #define INTEL_8255X_ETHERNET_DEVICE(device_id, ich) {\ | 196 | #define INTEL_8255X_ETHERNET_DEVICE(device_id, ich) {\ |
197 | PCI_VENDOR_ID_INTEL, device_id, PCI_ANY_ID, PCI_ANY_ID, \ | 197 | PCI_VENDOR_ID_INTEL, device_id, PCI_ANY_ID, PCI_ANY_ID, \ |
diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index aa0bf6e1c694..e1b441effbbe 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c | |||
@@ -110,7 +110,7 @@ spi_read_buf(struct enc28j60_net *priv, int len, u8 *data) | |||
110 | } | 110 | } |
111 | if (ret && netif_msg_drv(priv)) | 111 | if (ret && netif_msg_drv(priv)) |
112 | printk(KERN_DEBUG DRV_NAME ": %s() failed: ret = %d\n", | 112 | printk(KERN_DEBUG DRV_NAME ": %s() failed: ret = %d\n", |
113 | __FUNCTION__, ret); | 113 | __func__, ret); |
114 | 114 | ||
115 | return ret; | 115 | return ret; |
116 | } | 116 | } |
@@ -131,7 +131,7 @@ static int spi_write_buf(struct enc28j60_net *priv, int len, | |||
131 | ret = spi_write(priv->spi, priv->spi_transfer_buf, len + 1); | 131 | ret = spi_write(priv->spi, priv->spi_transfer_buf, len + 1); |
132 | if (ret && netif_msg_drv(priv)) | 132 | if (ret && netif_msg_drv(priv)) |
133 | printk(KERN_DEBUG DRV_NAME ": %s() failed: ret = %d\n", | 133 | printk(KERN_DEBUG DRV_NAME ": %s() failed: ret = %d\n", |
134 | __FUNCTION__, ret); | 134 | __func__, ret); |
135 | } | 135 | } |
136 | return ret; | 136 | return ret; |
137 | } | 137 | } |
@@ -156,7 +156,7 @@ static u8 spi_read_op(struct enc28j60_net *priv, u8 op, | |||
156 | ret = spi_write_then_read(priv->spi, tx_buf, 1, rx_buf, slen); | 156 | ret = spi_write_then_read(priv->spi, tx_buf, 1, rx_buf, slen); |
157 | if (ret) | 157 | if (ret) |
158 | printk(KERN_DEBUG DRV_NAME ": %s() failed: ret = %d\n", | 158 | printk(KERN_DEBUG DRV_NAME ": %s() failed: ret = %d\n", |
159 | __FUNCTION__, ret); | 159 | __func__, ret); |
160 | else | 160 | else |
161 | val = rx_buf[slen - 1]; | 161 | val = rx_buf[slen - 1]; |
162 | 162 | ||
@@ -176,14 +176,14 @@ static int spi_write_op(struct enc28j60_net *priv, u8 op, | |||
176 | ret = spi_write(priv->spi, priv->spi_transfer_buf, 2); | 176 | ret = spi_write(priv->spi, priv->spi_transfer_buf, 2); |
177 | if (ret && netif_msg_drv(priv)) | 177 | if (ret && netif_msg_drv(priv)) |
178 | printk(KERN_DEBUG DRV_NAME ": %s() failed: ret = %d\n", | 178 | printk(KERN_DEBUG DRV_NAME ": %s() failed: ret = %d\n", |
179 | __FUNCTION__, ret); | 179 | __func__, ret); |
180 | return ret; | 180 | return ret; |
181 | } | 181 | } |
182 | 182 | ||
183 | static void enc28j60_soft_reset(struct enc28j60_net *priv) | 183 | static void enc28j60_soft_reset(struct enc28j60_net *priv) |
184 | { | 184 | { |
185 | if (netif_msg_hw(priv)) | 185 | if (netif_msg_hw(priv)) |
186 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __FUNCTION__); | 186 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __func__); |
187 | 187 | ||
188 | spi_write_op(priv, ENC28J60_SOFT_RESET, 0, ENC28J60_SOFT_RESET); | 188 | spi_write_op(priv, ENC28J60_SOFT_RESET, 0, ENC28J60_SOFT_RESET); |
189 | /* Errata workaround #1, CLKRDY check is unreliable, | 189 | /* Errata workaround #1, CLKRDY check is unreliable, |
@@ -357,7 +357,7 @@ static void enc28j60_mem_read(struct enc28j60_net *priv, | |||
357 | reg = nolock_regw_read(priv, ERDPTL); | 357 | reg = nolock_regw_read(priv, ERDPTL); |
358 | if (reg != addr) | 358 | if (reg != addr) |
359 | printk(KERN_DEBUG DRV_NAME ": %s() error writing ERDPT " | 359 | printk(KERN_DEBUG DRV_NAME ": %s() error writing ERDPT " |
360 | "(0x%04x - 0x%04x)\n", __FUNCTION__, reg, addr); | 360 | "(0x%04x - 0x%04x)\n", __func__, reg, addr); |
361 | } | 361 | } |
362 | #endif | 362 | #endif |
363 | spi_read_buf(priv, len, data); | 363 | spi_read_buf(priv, len, data); |
@@ -380,7 +380,7 @@ enc28j60_packet_write(struct enc28j60_net *priv, int len, const u8 *data) | |||
380 | if (reg != TXSTART_INIT) | 380 | if (reg != TXSTART_INIT) |
381 | printk(KERN_DEBUG DRV_NAME | 381 | printk(KERN_DEBUG DRV_NAME |
382 | ": %s() ERWPT:0x%04x != 0x%04x\n", | 382 | ": %s() ERWPT:0x%04x != 0x%04x\n", |
383 | __FUNCTION__, reg, TXSTART_INIT); | 383 | __func__, reg, TXSTART_INIT); |
384 | } | 384 | } |
385 | #endif | 385 | #endif |
386 | /* Set the TXND pointer to correspond to the packet size given */ | 386 | /* Set the TXND pointer to correspond to the packet size given */ |
@@ -390,13 +390,13 @@ enc28j60_packet_write(struct enc28j60_net *priv, int len, const u8 *data) | |||
390 | if (netif_msg_hw(priv)) | 390 | if (netif_msg_hw(priv)) |
391 | printk(KERN_DEBUG DRV_NAME | 391 | printk(KERN_DEBUG DRV_NAME |
392 | ": %s() after control byte ERWPT:0x%04x\n", | 392 | ": %s() after control byte ERWPT:0x%04x\n", |
393 | __FUNCTION__, nolock_regw_read(priv, EWRPTL)); | 393 | __func__, nolock_regw_read(priv, EWRPTL)); |
394 | /* copy the packet into the transmit buffer */ | 394 | /* copy the packet into the transmit buffer */ |
395 | spi_write_buf(priv, len, data); | 395 | spi_write_buf(priv, len, data); |
396 | if (netif_msg_hw(priv)) | 396 | if (netif_msg_hw(priv)) |
397 | printk(KERN_DEBUG DRV_NAME | 397 | printk(KERN_DEBUG DRV_NAME |
398 | ": %s() after write packet ERWPT:0x%04x, len=%d\n", | 398 | ": %s() after write packet ERWPT:0x%04x, len=%d\n", |
399 | __FUNCTION__, nolock_regw_read(priv, EWRPTL), len); | 399 | __func__, nolock_regw_read(priv, EWRPTL), len); |
400 | mutex_unlock(&priv->lock); | 400 | mutex_unlock(&priv->lock); |
401 | } | 401 | } |
402 | 402 | ||
@@ -495,7 +495,7 @@ static int enc28j60_set_hw_macaddr(struct net_device *ndev) | |||
495 | if (netif_msg_drv(priv)) | 495 | if (netif_msg_drv(priv)) |
496 | printk(KERN_DEBUG DRV_NAME | 496 | printk(KERN_DEBUG DRV_NAME |
497 | ": %s() Hardware must be disabled to set " | 497 | ": %s() Hardware must be disabled to set " |
498 | "Mac address\n", __FUNCTION__); | 498 | "Mac address\n", __func__); |
499 | ret = -EBUSY; | 499 | ret = -EBUSY; |
500 | } | 500 | } |
501 | mutex_unlock(&priv->lock); | 501 | mutex_unlock(&priv->lock); |
@@ -575,7 +575,7 @@ static void nolock_rxfifo_init(struct enc28j60_net *priv, u16 start, u16 end) | |||
575 | if (start > 0x1FFF || end > 0x1FFF || start > end) { | 575 | if (start > 0x1FFF || end > 0x1FFF || start > end) { |
576 | if (netif_msg_drv(priv)) | 576 | if (netif_msg_drv(priv)) |
577 | printk(KERN_ERR DRV_NAME ": %s(%d, %d) RXFIFO " | 577 | printk(KERN_ERR DRV_NAME ": %s(%d, %d) RXFIFO " |
578 | "bad parameters!\n", __FUNCTION__, start, end); | 578 | "bad parameters!\n", __func__, start, end); |
579 | return; | 579 | return; |
580 | } | 580 | } |
581 | /* set receive buffer start + end */ | 581 | /* set receive buffer start + end */ |
@@ -591,7 +591,7 @@ static void nolock_txfifo_init(struct enc28j60_net *priv, u16 start, u16 end) | |||
591 | if (start > 0x1FFF || end > 0x1FFF || start > end) { | 591 | if (start > 0x1FFF || end > 0x1FFF || start > end) { |
592 | if (netif_msg_drv(priv)) | 592 | if (netif_msg_drv(priv)) |
593 | printk(KERN_ERR DRV_NAME ": %s(%d, %d) TXFIFO " | 593 | printk(KERN_ERR DRV_NAME ": %s(%d, %d) TXFIFO " |
594 | "bad parameters!\n", __FUNCTION__, start, end); | 594 | "bad parameters!\n", __func__, start, end); |
595 | return; | 595 | return; |
596 | } | 596 | } |
597 | /* set transmit buffer start + end */ | 597 | /* set transmit buffer start + end */ |
@@ -630,7 +630,7 @@ static int enc28j60_hw_init(struct enc28j60_net *priv) | |||
630 | u8 reg; | 630 | u8 reg; |
631 | 631 | ||
632 | if (netif_msg_drv(priv)) | 632 | if (netif_msg_drv(priv)) |
633 | printk(KERN_DEBUG DRV_NAME ": %s() - %s\n", __FUNCTION__, | 633 | printk(KERN_DEBUG DRV_NAME ": %s() - %s\n", __func__, |
634 | priv->full_duplex ? "FullDuplex" : "HalfDuplex"); | 634 | priv->full_duplex ? "FullDuplex" : "HalfDuplex"); |
635 | 635 | ||
636 | mutex_lock(&priv->lock); | 636 | mutex_lock(&priv->lock); |
@@ -661,7 +661,7 @@ static int enc28j60_hw_init(struct enc28j60_net *priv) | |||
661 | if (reg == 0x00 || reg == 0xff) { | 661 | if (reg == 0x00 || reg == 0xff) { |
662 | if (netif_msg_drv(priv)) | 662 | if (netif_msg_drv(priv)) |
663 | printk(KERN_DEBUG DRV_NAME ": %s() Invalid RevId %d\n", | 663 | printk(KERN_DEBUG DRV_NAME ": %s() Invalid RevId %d\n", |
664 | __FUNCTION__, reg); | 664 | __func__, reg); |
665 | return 0; | 665 | return 0; |
666 | } | 666 | } |
667 | 667 | ||
@@ -724,7 +724,7 @@ static void enc28j60_hw_enable(struct enc28j60_net *priv) | |||
724 | /* enable interrupts */ | 724 | /* enable interrupts */ |
725 | if (netif_msg_hw(priv)) | 725 | if (netif_msg_hw(priv)) |
726 | printk(KERN_DEBUG DRV_NAME ": %s() enabling interrupts.\n", | 726 | printk(KERN_DEBUG DRV_NAME ": %s() enabling interrupts.\n", |
727 | __FUNCTION__); | 727 | __func__); |
728 | 728 | ||
729 | enc28j60_phy_write(priv, PHIE, PHIE_PGEIE | PHIE_PLNKIE); | 729 | enc28j60_phy_write(priv, PHIE, PHIE_PGEIE | PHIE_PLNKIE); |
730 | 730 | ||
@@ -888,7 +888,7 @@ static void enc28j60_hw_rx(struct net_device *ndev) | |||
888 | if (netif_msg_rx_err(priv)) | 888 | if (netif_msg_rx_err(priv)) |
889 | dev_err(&ndev->dev, | 889 | dev_err(&ndev->dev, |
890 | "%s() Invalid packet address!! 0x%04x\n", | 890 | "%s() Invalid packet address!! 0x%04x\n", |
891 | __FUNCTION__, priv->next_pk_ptr); | 891 | __func__, priv->next_pk_ptr); |
892 | /* packet address corrupted: reset RX logic */ | 892 | /* packet address corrupted: reset RX logic */ |
893 | mutex_lock(&priv->lock); | 893 | mutex_lock(&priv->lock); |
894 | nolock_reg_bfclr(priv, ECON1, ECON1_RXEN); | 894 | nolock_reg_bfclr(priv, ECON1, ECON1_RXEN); |
@@ -917,7 +917,7 @@ static void enc28j60_hw_rx(struct net_device *ndev) | |||
917 | rxstat |= rsv[4]; | 917 | rxstat |= rsv[4]; |
918 | 918 | ||
919 | if (netif_msg_rx_status(priv)) | 919 | if (netif_msg_rx_status(priv)) |
920 | enc28j60_dump_rsv(priv, __FUNCTION__, next_packet, len, rxstat); | 920 | enc28j60_dump_rsv(priv, __func__, next_packet, len, rxstat); |
921 | 921 | ||
922 | if (!RSV_GETBIT(rxstat, RSV_RXOK)) { | 922 | if (!RSV_GETBIT(rxstat, RSV_RXOK)) { |
923 | if (netif_msg_rx_err(priv)) | 923 | if (netif_msg_rx_err(priv)) |
@@ -941,7 +941,7 @@ static void enc28j60_hw_rx(struct net_device *ndev) | |||
941 | enc28j60_mem_read(priv, priv->next_pk_ptr + sizeof(rsv), | 941 | enc28j60_mem_read(priv, priv->next_pk_ptr + sizeof(rsv), |
942 | len, skb_put(skb, len)); | 942 | len, skb_put(skb, len)); |
943 | if (netif_msg_pktdata(priv)) | 943 | if (netif_msg_pktdata(priv)) |
944 | dump_packet(__FUNCTION__, skb->len, skb->data); | 944 | dump_packet(__func__, skb->len, skb->data); |
945 | skb->protocol = eth_type_trans(skb, ndev); | 945 | skb->protocol = eth_type_trans(skb, ndev); |
946 | /* update statistics */ | 946 | /* update statistics */ |
947 | ndev->stats.rx_packets++; | 947 | ndev->stats.rx_packets++; |
@@ -958,7 +958,7 @@ static void enc28j60_hw_rx(struct net_device *ndev) | |||
958 | erxrdpt = erxrdpt_workaround(next_packet, RXSTART_INIT, RXEND_INIT); | 958 | erxrdpt = erxrdpt_workaround(next_packet, RXSTART_INIT, RXEND_INIT); |
959 | if (netif_msg_hw(priv)) | 959 | if (netif_msg_hw(priv)) |
960 | printk(KERN_DEBUG DRV_NAME ": %s() ERXRDPT:0x%04x\n", | 960 | printk(KERN_DEBUG DRV_NAME ": %s() ERXRDPT:0x%04x\n", |
961 | __FUNCTION__, erxrdpt); | 961 | __func__, erxrdpt); |
962 | 962 | ||
963 | mutex_lock(&priv->lock); | 963 | mutex_lock(&priv->lock); |
964 | nolock_regw_write(priv, ERXRDPTL, erxrdpt); | 964 | nolock_regw_write(priv, ERXRDPTL, erxrdpt); |
@@ -968,7 +968,7 @@ static void enc28j60_hw_rx(struct net_device *ndev) | |||
968 | reg = nolock_regw_read(priv, ERXRDPTL); | 968 | reg = nolock_regw_read(priv, ERXRDPTL); |
969 | if (reg != erxrdpt) | 969 | if (reg != erxrdpt) |
970 | printk(KERN_DEBUG DRV_NAME ": %s() ERXRDPT verify " | 970 | printk(KERN_DEBUG DRV_NAME ": %s() ERXRDPT verify " |
971 | "error (0x%04x - 0x%04x)\n", __FUNCTION__, | 971 | "error (0x%04x - 0x%04x)\n", __func__, |
972 | reg, erxrdpt); | 972 | reg, erxrdpt); |
973 | } | 973 | } |
974 | #endif | 974 | #endif |
@@ -1006,7 +1006,7 @@ static int enc28j60_get_free_rxfifo(struct enc28j60_net *priv) | |||
1006 | mutex_unlock(&priv->lock); | 1006 | mutex_unlock(&priv->lock); |
1007 | if (netif_msg_rx_status(priv)) | 1007 | if (netif_msg_rx_status(priv)) |
1008 | printk(KERN_DEBUG DRV_NAME ": %s() free_space = %d\n", | 1008 | printk(KERN_DEBUG DRV_NAME ": %s() free_space = %d\n", |
1009 | __FUNCTION__, free_space); | 1009 | __func__, free_space); |
1010 | return free_space; | 1010 | return free_space; |
1011 | } | 1011 | } |
1012 | 1012 | ||
@@ -1022,7 +1022,7 @@ static void enc28j60_check_link_status(struct net_device *ndev) | |||
1022 | reg = enc28j60_phy_read(priv, PHSTAT2); | 1022 | reg = enc28j60_phy_read(priv, PHSTAT2); |
1023 | if (netif_msg_hw(priv)) | 1023 | if (netif_msg_hw(priv)) |
1024 | printk(KERN_DEBUG DRV_NAME ": %s() PHSTAT1: %04x, " | 1024 | printk(KERN_DEBUG DRV_NAME ": %s() PHSTAT1: %04x, " |
1025 | "PHSTAT2: %04x\n", __FUNCTION__, | 1025 | "PHSTAT2: %04x\n", __func__, |
1026 | enc28j60_phy_read(priv, PHSTAT1), reg); | 1026 | enc28j60_phy_read(priv, PHSTAT1), reg); |
1027 | duplex = reg & PHSTAT2_DPXSTAT; | 1027 | duplex = reg & PHSTAT2_DPXSTAT; |
1028 | 1028 | ||
@@ -1095,7 +1095,7 @@ static void enc28j60_irq_work_handler(struct work_struct *work) | |||
1095 | int intflags, loop; | 1095 | int intflags, loop; |
1096 | 1096 | ||
1097 | if (netif_msg_intr(priv)) | 1097 | if (netif_msg_intr(priv)) |
1098 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __FUNCTION__); | 1098 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __func__); |
1099 | /* disable further interrupts */ | 1099 | /* disable further interrupts */ |
1100 | locked_reg_bfclr(priv, EIE, EIE_INTIE); | 1100 | locked_reg_bfclr(priv, EIE, EIE_INTIE); |
1101 | 1101 | ||
@@ -1198,7 +1198,7 @@ static void enc28j60_irq_work_handler(struct work_struct *work) | |||
1198 | /* re-enable interrupts */ | 1198 | /* re-enable interrupts */ |
1199 | locked_reg_bfset(priv, EIE, EIE_INTIE); | 1199 | locked_reg_bfset(priv, EIE, EIE_INTIE); |
1200 | if (netif_msg_intr(priv)) | 1200 | if (netif_msg_intr(priv)) |
1201 | printk(KERN_DEBUG DRV_NAME ": %s() exit\n", __FUNCTION__); | 1201 | printk(KERN_DEBUG DRV_NAME ": %s() exit\n", __func__); |
1202 | } | 1202 | } |
1203 | 1203 | ||
1204 | /* | 1204 | /* |
@@ -1213,7 +1213,7 @@ static void enc28j60_hw_tx(struct enc28j60_net *priv) | |||
1213 | ": Tx Packet Len:%d\n", priv->tx_skb->len); | 1213 | ": Tx Packet Len:%d\n", priv->tx_skb->len); |
1214 | 1214 | ||
1215 | if (netif_msg_pktdata(priv)) | 1215 | if (netif_msg_pktdata(priv)) |
1216 | dump_packet(__FUNCTION__, | 1216 | dump_packet(__func__, |
1217 | priv->tx_skb->len, priv->tx_skb->data); | 1217 | priv->tx_skb->len, priv->tx_skb->data); |
1218 | enc28j60_packet_write(priv, priv->tx_skb->len, priv->tx_skb->data); | 1218 | enc28j60_packet_write(priv, priv->tx_skb->len, priv->tx_skb->data); |
1219 | 1219 | ||
@@ -1254,7 +1254,7 @@ static int enc28j60_send_packet(struct sk_buff *skb, struct net_device *dev) | |||
1254 | struct enc28j60_net *priv = netdev_priv(dev); | 1254 | struct enc28j60_net *priv = netdev_priv(dev); |
1255 | 1255 | ||
1256 | if (netif_msg_tx_queued(priv)) | 1256 | if (netif_msg_tx_queued(priv)) |
1257 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __FUNCTION__); | 1257 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __func__); |
1258 | 1258 | ||
1259 | /* If some error occurs while trying to transmit this | 1259 | /* If some error occurs while trying to transmit this |
1260 | * packet, you should return '1' from this function. | 1260 | * packet, you should return '1' from this function. |
@@ -1325,7 +1325,7 @@ static int enc28j60_net_open(struct net_device *dev) | |||
1325 | struct enc28j60_net *priv = netdev_priv(dev); | 1325 | struct enc28j60_net *priv = netdev_priv(dev); |
1326 | 1326 | ||
1327 | if (netif_msg_drv(priv)) | 1327 | if (netif_msg_drv(priv)) |
1328 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __FUNCTION__); | 1328 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __func__); |
1329 | 1329 | ||
1330 | if (!is_valid_ether_addr(dev->dev_addr)) { | 1330 | if (!is_valid_ether_addr(dev->dev_addr)) { |
1331 | if (netif_msg_ifup(priv)) { | 1331 | if (netif_msg_ifup(priv)) { |
@@ -1363,7 +1363,7 @@ static int enc28j60_net_close(struct net_device *dev) | |||
1363 | struct enc28j60_net *priv = netdev_priv(dev); | 1363 | struct enc28j60_net *priv = netdev_priv(dev); |
1364 | 1364 | ||
1365 | if (netif_msg_drv(priv)) | 1365 | if (netif_msg_drv(priv)) |
1366 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __FUNCTION__); | 1366 | printk(KERN_DEBUG DRV_NAME ": %s() enter\n", __func__); |
1367 | 1367 | ||
1368 | enc28j60_hw_disable(priv); | 1368 | enc28j60_hw_disable(priv); |
1369 | enc28j60_lowpower(priv, true); | 1369 | enc28j60_lowpower(priv, true); |
diff --git a/drivers/net/ibm_newemac/phy.c b/drivers/net/ibm_newemac/phy.c index 37bfeea8788a..9164abb72d9b 100644 --- a/drivers/net/ibm_newemac/phy.c +++ b/drivers/net/ibm_newemac/phy.c | |||
@@ -321,7 +321,7 @@ static struct mii_phy_def bcm5248_phy_def = { | |||
321 | 321 | ||
322 | static int m88e1111_init(struct mii_phy *phy) | 322 | static int m88e1111_init(struct mii_phy *phy) |
323 | { | 323 | { |
324 | pr_debug("%s: Marvell 88E1111 Ethernet\n", __FUNCTION__); | 324 | pr_debug("%s: Marvell 88E1111 Ethernet\n", __func__); |
325 | phy_write(phy, 0x14, 0x0ce3); | 325 | phy_write(phy, 0x14, 0x0ce3); |
326 | phy_write(phy, 0x18, 0x4101); | 326 | phy_write(phy, 0x18, 0x4101); |
327 | phy_write(phy, 0x09, 0x0e00); | 327 | phy_write(phy, 0x09, 0x0e00); |
diff --git a/drivers/net/ixgb/ixgb.h b/drivers/net/ixgb/ixgb.h index 804698fc6a8f..d85717e3022a 100644 --- a/drivers/net/ixgb/ixgb.h +++ b/drivers/net/ixgb/ixgb.h | |||
@@ -85,7 +85,7 @@ struct ixgb_adapter; | |||
85 | #define DPRINTK(nlevel, klevel, fmt, args...) \ | 85 | #define DPRINTK(nlevel, klevel, fmt, args...) \ |
86 | (void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \ | 86 | (void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \ |
87 | printk(KERN_##klevel PFX "%s: %s: " fmt, adapter->netdev->name, \ | 87 | printk(KERN_##klevel PFX "%s: %s: " fmt, adapter->netdev->name, \ |
88 | __FUNCTION__ , ## args)) | 88 | __func__ , ## args)) |
89 | 89 | ||
90 | 90 | ||
91 | /* TX/RX descriptor defines */ | 91 | /* TX/RX descriptor defines */ |
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h index 63f678931ad3..2198b77c53ed 100644 --- a/drivers/net/ixgbe/ixgbe.h +++ b/drivers/net/ixgbe/ixgbe.h | |||
@@ -44,7 +44,7 @@ | |||
44 | #define DPRINTK(nlevel, klevel, fmt, args...) \ | 44 | #define DPRINTK(nlevel, klevel, fmt, args...) \ |
45 | ((void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \ | 45 | ((void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \ |
46 | printk(KERN_##klevel PFX "%s: %s: " fmt, adapter->netdev->name, \ | 46 | printk(KERN_##klevel PFX "%s: %s: " fmt, adapter->netdev->name, \ |
47 | __FUNCTION__ , ## args))) | 47 | __func__ , ## args))) |
48 | 48 | ||
49 | /* TX/RX descriptor defines */ | 49 | /* TX/RX descriptor defines */ |
50 | #define IXGBE_DEFAULT_TXD 1024 | 50 | #define IXGBE_DEFAULT_TXD 1024 |
diff --git a/drivers/net/meth.c b/drivers/net/meth.c index 0a97c26df6ab..a1e22ed1f6ee 100644 --- a/drivers/net/meth.c +++ b/drivers/net/meth.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #if MFE_DEBUG>=1 | 43 | #if MFE_DEBUG>=1 |
44 | #define DPRINTK(str,args...) printk(KERN_DEBUG "meth: %s: " str, __FUNCTION__ , ## args) | 44 | #define DPRINTK(str,args...) printk(KERN_DEBUG "meth: %s: " str, __func__ , ## args) |
45 | #define MFE_RX_DEBUG 2 | 45 | #define MFE_RX_DEBUG 2 |
46 | #else | 46 | #else |
47 | #define DPRINTK(str,args...) | 47 | #define DPRINTK(str,args...) |
diff --git a/drivers/net/mipsnet.c b/drivers/net/mipsnet.c index 6d343efb2717..4e7a5faf0351 100644 --- a/drivers/net/mipsnet.c +++ b/drivers/net/mipsnet.c | |||
@@ -203,7 +203,7 @@ static irqreturn_t mipsnet_interrupt(int irq, void *dev_id) | |||
203 | 203 | ||
204 | out_badirq: | 204 | out_badirq: |
205 | printk(KERN_INFO "%s: %s(): irq %d for unknown device\n", | 205 | printk(KERN_INFO "%s: %s(): irq %d for unknown device\n", |
206 | dev->name, __FUNCTION__, irq); | 206 | dev->name, __func__, irq); |
207 | return ret; | 207 | return ret; |
208 | } | 208 | } |
209 | 209 | ||
diff --git a/drivers/net/netx-eth.c b/drivers/net/netx-eth.c index 3f9af759cb90..b9bed82e1d21 100644 --- a/drivers/net/netx-eth.c +++ b/drivers/net/netx-eth.c | |||
@@ -189,7 +189,7 @@ netx_eth_interrupt(int irq, void *dev_id) | |||
189 | 189 | ||
190 | if ((status & ISR_CON_HI) || (status & ISR_IND_HI)) | 190 | if ((status & ISR_CON_HI) || (status & ISR_IND_HI)) |
191 | printk("%s: unexpected status: 0x%08x\n", | 191 | printk("%s: unexpected status: 0x%08x\n", |
192 | __FUNCTION__, status); | 192 | __func__, status); |
193 | 193 | ||
194 | fill_level = | 194 | fill_level = |
195 | readl(NETX_PFIFO_FILL_LEVEL(IND_FIFO_PORT_LO(priv->id))); | 195 | readl(NETX_PFIFO_FILL_LEVEL(IND_FIFO_PORT_LO(priv->id))); |
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index 244ab49c4337..f8e601c51da7 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -742,7 +742,7 @@ extern char netxen_nic_driver_name[]; | |||
742 | } while (0) | 742 | } while (0) |
743 | #else | 743 | #else |
744 | #define DPRINTK(klevel, fmt, args...) do { \ | 744 | #define DPRINTK(klevel, fmt, args...) do { \ |
745 | printk(KERN_##klevel PFX "%s: %s: " fmt, __FUNCTION__,\ | 745 | printk(KERN_##klevel PFX "%s: %s: " fmt, __func__,\ |
746 | (adapter != NULL && adapter->netdev != NULL) ? \ | 746 | (adapter != NULL && adapter->netdev != NULL) ? \ |
747 | adapter->netdev->name : NULL, \ | 747 | adapter->netdev->name : NULL, \ |
748 | ## args); } while(0) | 748 | ## args); } while(0) |
diff --git a/drivers/net/pci-skeleton.c b/drivers/net/pci-skeleton.c index 53451c3b2c0d..0a575fef29e6 100644 --- a/drivers/net/pci-skeleton.c +++ b/drivers/net/pci-skeleton.c | |||
@@ -119,7 +119,7 @@ KERN_INFO " Support available from http://foo.com/bar/baz.html\n"; | |||
119 | 119 | ||
120 | #ifdef NETDRV_DEBUG | 120 | #ifdef NETDRV_DEBUG |
121 | /* note: prints function name for you */ | 121 | /* note: prints function name for you */ |
122 | # define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args) | 122 | # define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __func__ , ## args) |
123 | #else | 123 | #else |
124 | # define DPRINTK(fmt, args...) | 124 | # define DPRINTK(fmt, args...) |
125 | #endif | 125 | #endif |
@@ -130,7 +130,7 @@ KERN_INFO " Support available from http://foo.com/bar/baz.html\n"; | |||
130 | # define assert(expr) \ | 130 | # define assert(expr) \ |
131 | if(!(expr)) { \ | 131 | if(!(expr)) { \ |
132 | printk( "Assertion failed! %s,%s,%s,line=%d\n", \ | 132 | printk( "Assertion failed! %s,%s,%s,line=%d\n", \ |
133 | #expr,__FILE__,__FUNCTION__,__LINE__); \ | 133 | #expr,__FILE__,__func__,__LINE__); \ |
134 | } | 134 | } |
135 | #endif | 135 | #endif |
136 | 136 | ||
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index f28c2022f3b2..fb899c675f47 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #define assert(expr) \ | 36 | #define assert(expr) \ |
37 | if (!(expr)) { \ | 37 | if (!(expr)) { \ |
38 | printk( "Assertion failed! %s,%s,%s,line=%d\n", \ | 38 | printk( "Assertion failed! %s,%s,%s,line=%d\n", \ |
39 | #expr,__FILE__,__FUNCTION__,__LINE__); \ | 39 | #expr,__FILE__,__func__,__LINE__); \ |
40 | } | 40 | } |
41 | #define dprintk(fmt, args...) \ | 41 | #define dprintk(fmt, args...) \ |
42 | do { printk(KERN_DEBUG PFX fmt, ## args); } while (0) | 42 | do { printk(KERN_DEBUG PFX fmt, ## args); } while (0) |
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index a2d50fad61a1..6a1375f9cbb8 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -3133,7 +3133,7 @@ static void tx_intr_handler(struct fifo_info *fifo_data) | |||
3133 | if (skb == NULL) { | 3133 | if (skb == NULL) { |
3134 | spin_unlock_irqrestore(&fifo_data->tx_lock, flags); | 3134 | spin_unlock_irqrestore(&fifo_data->tx_lock, flags); |
3135 | DBG_PRINT(ERR_DBG, "%s: Null skb ", | 3135 | DBG_PRINT(ERR_DBG, "%s: Null skb ", |
3136 | __FUNCTION__); | 3136 | __func__); |
3137 | DBG_PRINT(ERR_DBG, "in Tx Free Intr\n"); | 3137 | DBG_PRINT(ERR_DBG, "in Tx Free Intr\n"); |
3138 | return; | 3138 | return; |
3139 | } | 3139 | } |
@@ -3493,7 +3493,7 @@ static void s2io_reset(struct s2io_nic * sp) | |||
3493 | unsigned long long mem_alloc_cnt, mem_free_cnt, watchdog_cnt; | 3493 | unsigned long long mem_alloc_cnt, mem_free_cnt, watchdog_cnt; |
3494 | 3494 | ||
3495 | DBG_PRINT(INIT_DBG,"%s - Resetting XFrame card %s\n", | 3495 | DBG_PRINT(INIT_DBG,"%s - Resetting XFrame card %s\n", |
3496 | __FUNCTION__, sp->dev->name); | 3496 | __func__, sp->dev->name); |
3497 | 3497 | ||
3498 | /* Back up the PCI-X CMD reg, dont want to lose MMRBC, OST settings */ | 3498 | /* Back up the PCI-X CMD reg, dont want to lose MMRBC, OST settings */ |
3499 | pci_read_config_word(sp->pdev, PCIX_COMMAND_REGISTER, &(pci_cmd)); | 3499 | pci_read_config_word(sp->pdev, PCIX_COMMAND_REGISTER, &(pci_cmd)); |
@@ -3515,7 +3515,7 @@ static void s2io_reset(struct s2io_nic * sp) | |||
3515 | } | 3515 | } |
3516 | 3516 | ||
3517 | if (check_pci_device_id(val16) == (u16)PCI_ANY_ID) { | 3517 | if (check_pci_device_id(val16) == (u16)PCI_ANY_ID) { |
3518 | DBG_PRINT(ERR_DBG,"%s SW_Reset failed!\n", __FUNCTION__); | 3518 | DBG_PRINT(ERR_DBG,"%s SW_Reset failed!\n", __func__); |
3519 | } | 3519 | } |
3520 | 3520 | ||
3521 | pci_write_config_word(sp->pdev, PCIX_COMMAND_REGISTER, pci_cmd); | 3521 | pci_write_config_word(sp->pdev, PCIX_COMMAND_REGISTER, pci_cmd); |
@@ -3765,7 +3765,7 @@ static void restore_xmsi_data(struct s2io_nic *nic) | |||
3765 | val64 = (s2BIT(7) | s2BIT(15) | vBIT(msix_index, 26, 6)); | 3765 | val64 = (s2BIT(7) | s2BIT(15) | vBIT(msix_index, 26, 6)); |
3766 | writeq(val64, &bar0->xmsi_access); | 3766 | writeq(val64, &bar0->xmsi_access); |
3767 | if (wait_for_msix_trans(nic, msix_index)) { | 3767 | if (wait_for_msix_trans(nic, msix_index)) { |
3768 | DBG_PRINT(ERR_DBG, "failed in %s\n", __FUNCTION__); | 3768 | DBG_PRINT(ERR_DBG, "failed in %s\n", __func__); |
3769 | continue; | 3769 | continue; |
3770 | } | 3770 | } |
3771 | } | 3771 | } |
@@ -3786,7 +3786,7 @@ static void store_xmsi_data(struct s2io_nic *nic) | |||
3786 | val64 = (s2BIT(15) | vBIT(msix_index, 26, 6)); | 3786 | val64 = (s2BIT(15) | vBIT(msix_index, 26, 6)); |
3787 | writeq(val64, &bar0->xmsi_access); | 3787 | writeq(val64, &bar0->xmsi_access); |
3788 | if (wait_for_msix_trans(nic, msix_index)) { | 3788 | if (wait_for_msix_trans(nic, msix_index)) { |
3789 | DBG_PRINT(ERR_DBG, "failed in %s\n", __FUNCTION__); | 3789 | DBG_PRINT(ERR_DBG, "failed in %s\n", __func__); |
3790 | continue; | 3790 | continue; |
3791 | } | 3791 | } |
3792 | addr = readq(&bar0->xmsi_address); | 3792 | addr = readq(&bar0->xmsi_address); |
@@ -3809,7 +3809,7 @@ static int s2io_enable_msi_x(struct s2io_nic *nic) | |||
3809 | GFP_KERNEL); | 3809 | GFP_KERNEL); |
3810 | if (!nic->entries) { | 3810 | if (!nic->entries) { |
3811 | DBG_PRINT(INFO_DBG, "%s: Memory allocation failed\n", \ | 3811 | DBG_PRINT(INFO_DBG, "%s: Memory allocation failed\n", \ |
3812 | __FUNCTION__); | 3812 | __func__); |
3813 | nic->mac_control.stats_info->sw_stat.mem_alloc_fail_cnt++; | 3813 | nic->mac_control.stats_info->sw_stat.mem_alloc_fail_cnt++; |
3814 | return -ENOMEM; | 3814 | return -ENOMEM; |
3815 | } | 3815 | } |
@@ -3823,7 +3823,7 @@ static int s2io_enable_msi_x(struct s2io_nic *nic) | |||
3823 | GFP_KERNEL); | 3823 | GFP_KERNEL); |
3824 | if (!nic->s2io_entries) { | 3824 | if (!nic->s2io_entries) { |
3825 | DBG_PRINT(INFO_DBG, "%s: Memory allocation failed\n", | 3825 | DBG_PRINT(INFO_DBG, "%s: Memory allocation failed\n", |
3826 | __FUNCTION__); | 3826 | __func__); |
3827 | nic->mac_control.stats_info->sw_stat.mem_alloc_fail_cnt++; | 3827 | nic->mac_control.stats_info->sw_stat.mem_alloc_fail_cnt++; |
3828 | kfree(nic->entries); | 3828 | kfree(nic->entries); |
3829 | nic->mac_control.stats_info->sw_stat.mem_freed | 3829 | nic->mac_control.stats_info->sw_stat.mem_freed |
@@ -6743,7 +6743,7 @@ static int s2io_change_mtu(struct net_device *dev, int new_mtu) | |||
6743 | ret = s2io_card_up(sp); | 6743 | ret = s2io_card_up(sp); |
6744 | if (ret) { | 6744 | if (ret) { |
6745 | DBG_PRINT(ERR_DBG, "%s: Device bring up failed\n", | 6745 | DBG_PRINT(ERR_DBG, "%s: Device bring up failed\n", |
6746 | __FUNCTION__); | 6746 | __func__); |
6747 | return ret; | 6747 | return ret; |
6748 | } | 6748 | } |
6749 | s2io_wake_all_tx_queue(sp); | 6749 | s2io_wake_all_tx_queue(sp); |
@@ -7527,7 +7527,7 @@ static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp) | |||
7527 | default: | 7527 | default: |
7528 | DBG_PRINT(ERR_DBG, | 7528 | DBG_PRINT(ERR_DBG, |
7529 | "%s: Samadhana!!\n", | 7529 | "%s: Samadhana!!\n", |
7530 | __FUNCTION__); | 7530 | __func__); |
7531 | BUG(); | 7531 | BUG(); |
7532 | } | 7532 | } |
7533 | } | 7533 | } |
@@ -7778,7 +7778,7 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre) | |||
7778 | return -ENOMEM; | 7778 | return -ENOMEM; |
7779 | } | 7779 | } |
7780 | if ((ret = pci_request_regions(pdev, s2io_driver_name))) { | 7780 | if ((ret = pci_request_regions(pdev, s2io_driver_name))) { |
7781 | DBG_PRINT(ERR_DBG, "%s: Request Regions failed - %x \n", __FUNCTION__, ret); | 7781 | DBG_PRINT(ERR_DBG, "%s: Request Regions failed - %x \n", __func__, ret); |
7782 | pci_disable_device(pdev); | 7782 | pci_disable_device(pdev); |
7783 | return -ENODEV; | 7783 | return -ENODEV; |
7784 | } | 7784 | } |
@@ -7995,7 +7995,7 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre) | |||
7995 | if (sp->device_type & XFRAME_II_DEVICE) { | 7995 | if (sp->device_type & XFRAME_II_DEVICE) { |
7996 | mode = s2io_verify_pci_mode(sp); | 7996 | mode = s2io_verify_pci_mode(sp); |
7997 | if (mode < 0) { | 7997 | if (mode < 0) { |
7998 | DBG_PRINT(ERR_DBG, "%s: ", __FUNCTION__); | 7998 | DBG_PRINT(ERR_DBG, "%s: ", __func__); |
7999 | DBG_PRINT(ERR_DBG, " Unsupported PCI bus mode\n"); | 7999 | DBG_PRINT(ERR_DBG, " Unsupported PCI bus mode\n"); |
8000 | ret = -EBADSLT; | 8000 | ret = -EBADSLT; |
8001 | goto set_swap_failed; | 8001 | goto set_swap_failed; |
@@ -8301,7 +8301,7 @@ static int check_L2_lro_capable(u8 *buffer, struct iphdr **ip, | |||
8301 | 8301 | ||
8302 | if (!(rxdp->Control_1 & RXD_FRAME_PROTO_TCP)) { | 8302 | if (!(rxdp->Control_1 & RXD_FRAME_PROTO_TCP)) { |
8303 | DBG_PRINT(INIT_DBG,"%s: Non-TCP frames not supported for LRO\n", | 8303 | DBG_PRINT(INIT_DBG,"%s: Non-TCP frames not supported for LRO\n", |
8304 | __FUNCTION__); | 8304 | __func__); |
8305 | return -1; | 8305 | return -1; |
8306 | } | 8306 | } |
8307 | 8307 | ||
@@ -8332,7 +8332,7 @@ static int check_L2_lro_capable(u8 *buffer, struct iphdr **ip, | |||
8332 | static int check_for_socket_match(struct lro *lro, struct iphdr *ip, | 8332 | static int check_for_socket_match(struct lro *lro, struct iphdr *ip, |
8333 | struct tcphdr *tcp) | 8333 | struct tcphdr *tcp) |
8334 | { | 8334 | { |
8335 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __FUNCTION__); | 8335 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __func__); |
8336 | if ((lro->iph->saddr != ip->saddr) || (lro->iph->daddr != ip->daddr) || | 8336 | if ((lro->iph->saddr != ip->saddr) || (lro->iph->daddr != ip->daddr) || |
8337 | (lro->tcph->source != tcp->source) || (lro->tcph->dest != tcp->dest)) | 8337 | (lro->tcph->source != tcp->source) || (lro->tcph->dest != tcp->dest)) |
8338 | return -1; | 8338 | return -1; |
@@ -8347,7 +8347,7 @@ static inline int get_l4_pyld_length(struct iphdr *ip, struct tcphdr *tcp) | |||
8347 | static void initiate_new_session(struct lro *lro, u8 *l2h, | 8347 | static void initiate_new_session(struct lro *lro, u8 *l2h, |
8348 | struct iphdr *ip, struct tcphdr *tcp, u32 tcp_pyld_len, u16 vlan_tag) | 8348 | struct iphdr *ip, struct tcphdr *tcp, u32 tcp_pyld_len, u16 vlan_tag) |
8349 | { | 8349 | { |
8350 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __FUNCTION__); | 8350 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __func__); |
8351 | lro->l2h = l2h; | 8351 | lro->l2h = l2h; |
8352 | lro->iph = ip; | 8352 | lro->iph = ip; |
8353 | lro->tcph = tcp; | 8353 | lro->tcph = tcp; |
@@ -8377,7 +8377,7 @@ static void update_L3L4_header(struct s2io_nic *sp, struct lro *lro) | |||
8377 | struct tcphdr *tcp = lro->tcph; | 8377 | struct tcphdr *tcp = lro->tcph; |
8378 | __sum16 nchk; | 8378 | __sum16 nchk; |
8379 | struct stat_block *statinfo = sp->mac_control.stats_info; | 8379 | struct stat_block *statinfo = sp->mac_control.stats_info; |
8380 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __FUNCTION__); | 8380 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __func__); |
8381 | 8381 | ||
8382 | /* Update L3 header */ | 8382 | /* Update L3 header */ |
8383 | ip->tot_len = htons(lro->total_len); | 8383 | ip->tot_len = htons(lro->total_len); |
@@ -8405,7 +8405,7 @@ static void update_L3L4_header(struct s2io_nic *sp, struct lro *lro) | |||
8405 | static void aggregate_new_rx(struct lro *lro, struct iphdr *ip, | 8405 | static void aggregate_new_rx(struct lro *lro, struct iphdr *ip, |
8406 | struct tcphdr *tcp, u32 l4_pyld) | 8406 | struct tcphdr *tcp, u32 l4_pyld) |
8407 | { | 8407 | { |
8408 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __FUNCTION__); | 8408 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __func__); |
8409 | lro->total_len += l4_pyld; | 8409 | lro->total_len += l4_pyld; |
8410 | lro->frags_len += l4_pyld; | 8410 | lro->frags_len += l4_pyld; |
8411 | lro->tcp_next_seq += l4_pyld; | 8411 | lro->tcp_next_seq += l4_pyld; |
@@ -8429,7 +8429,7 @@ static int verify_l3_l4_lro_capable(struct lro *l_lro, struct iphdr *ip, | |||
8429 | { | 8429 | { |
8430 | u8 *ptr; | 8430 | u8 *ptr; |
8431 | 8431 | ||
8432 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __FUNCTION__); | 8432 | DBG_PRINT(INFO_DBG,"%s: Been here...\n", __func__); |
8433 | 8433 | ||
8434 | if (!tcp_pyld_len) { | 8434 | if (!tcp_pyld_len) { |
8435 | /* Runt frame or a pure ack */ | 8435 | /* Runt frame or a pure ack */ |
@@ -8511,7 +8511,7 @@ s2io_club_tcp_session(struct ring_info *ring_data, u8 *buffer, u8 **tcp, | |||
8511 | 8511 | ||
8512 | if ((*lro)->tcp_next_seq != ntohl(tcph->seq)) { | 8512 | if ((*lro)->tcp_next_seq != ntohl(tcph->seq)) { |
8513 | DBG_PRINT(INFO_DBG, "%s:Out of order. expected " | 8513 | DBG_PRINT(INFO_DBG, "%s:Out of order. expected " |
8514 | "0x%x, actual 0x%x\n", __FUNCTION__, | 8514 | "0x%x, actual 0x%x\n", __func__, |
8515 | (*lro)->tcp_next_seq, | 8515 | (*lro)->tcp_next_seq, |
8516 | ntohl(tcph->seq)); | 8516 | ntohl(tcph->seq)); |
8517 | 8517 | ||
@@ -8551,7 +8551,7 @@ s2io_club_tcp_session(struct ring_info *ring_data, u8 *buffer, u8 **tcp, | |||
8551 | 8551 | ||
8552 | if (ret == 0) { /* sessions exceeded */ | 8552 | if (ret == 0) { /* sessions exceeded */ |
8553 | DBG_PRINT(INFO_DBG,"%s:All LRO sessions already in use\n", | 8553 | DBG_PRINT(INFO_DBG,"%s:All LRO sessions already in use\n", |
8554 | __FUNCTION__); | 8554 | __func__); |
8555 | *lro = NULL; | 8555 | *lro = NULL; |
8556 | return ret; | 8556 | return ret; |
8557 | } | 8557 | } |
@@ -8573,7 +8573,7 @@ s2io_club_tcp_session(struct ring_info *ring_data, u8 *buffer, u8 **tcp, | |||
8573 | break; | 8573 | break; |
8574 | default: | 8574 | default: |
8575 | DBG_PRINT(ERR_DBG,"%s:Dont know, can't say!!\n", | 8575 | DBG_PRINT(ERR_DBG,"%s:Dont know, can't say!!\n", |
8576 | __FUNCTION__); | 8576 | __func__); |
8577 | break; | 8577 | break; |
8578 | } | 8578 | } |
8579 | 8579 | ||
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index e15abc3606cd..02cc064c2c8b 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c | |||
@@ -183,7 +183,7 @@ static void smc911x_reset(struct net_device *dev) | |||
183 | unsigned int reg, timeout=0, resets=1; | 183 | unsigned int reg, timeout=0, resets=1; |
184 | unsigned long flags; | 184 | unsigned long flags; |
185 | 185 | ||
186 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 186 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
187 | 187 | ||
188 | /* Take out of PM setting first */ | 188 | /* Take out of PM setting first */ |
189 | if ((SMC_GET_PMT_CTRL(lp) & PMT_CTRL_READY_) == 0) { | 189 | if ((SMC_GET_PMT_CTRL(lp) & PMT_CTRL_READY_) == 0) { |
@@ -272,7 +272,7 @@ static void smc911x_enable(struct net_device *dev) | |||
272 | unsigned mask, cfg, cr; | 272 | unsigned mask, cfg, cr; |
273 | unsigned long flags; | 273 | unsigned long flags; |
274 | 274 | ||
275 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 275 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
276 | 276 | ||
277 | SMC_SET_MAC_ADDR(lp, dev->dev_addr); | 277 | SMC_SET_MAC_ADDR(lp, dev->dev_addr); |
278 | 278 | ||
@@ -329,7 +329,7 @@ static void smc911x_shutdown(struct net_device *dev) | |||
329 | unsigned cr; | 329 | unsigned cr; |
330 | unsigned long flags; | 330 | unsigned long flags; |
331 | 331 | ||
332 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", CARDNAME, __FUNCTION__); | 332 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", CARDNAME, __func__); |
333 | 333 | ||
334 | /* Disable IRQ's */ | 334 | /* Disable IRQ's */ |
335 | SMC_SET_INT_EN(lp, 0); | 335 | SMC_SET_INT_EN(lp, 0); |
@@ -348,7 +348,7 @@ static inline void smc911x_drop_pkt(struct net_device *dev) | |||
348 | struct smc911x_local *lp = netdev_priv(dev); | 348 | struct smc911x_local *lp = netdev_priv(dev); |
349 | unsigned int fifo_count, timeout, reg; | 349 | unsigned int fifo_count, timeout, reg; |
350 | 350 | ||
351 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_RX, "%s: --> %s\n", CARDNAME, __FUNCTION__); | 351 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_RX, "%s: --> %s\n", CARDNAME, __func__); |
352 | fifo_count = SMC_GET_RX_FIFO_INF(lp) & 0xFFFF; | 352 | fifo_count = SMC_GET_RX_FIFO_INF(lp) & 0xFFFF; |
353 | if (fifo_count <= 4) { | 353 | if (fifo_count <= 4) { |
354 | /* Manually dump the packet data */ | 354 | /* Manually dump the packet data */ |
@@ -382,7 +382,7 @@ static inline void smc911x_rcv(struct net_device *dev) | |||
382 | unsigned char *data; | 382 | unsigned char *data; |
383 | 383 | ||
384 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_RX, "%s: --> %s\n", | 384 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_RX, "%s: --> %s\n", |
385 | dev->name, __FUNCTION__); | 385 | dev->name, __func__); |
386 | status = SMC_GET_RX_STS_FIFO(lp); | 386 | status = SMC_GET_RX_STS_FIFO(lp); |
387 | DBG(SMC_DEBUG_RX, "%s: Rx pkt len %d status 0x%08x \n", | 387 | DBG(SMC_DEBUG_RX, "%s: Rx pkt len %d status 0x%08x \n", |
388 | dev->name, (status & 0x3fff0000) >> 16, status & 0xc000ffff); | 388 | dev->name, (status & 0x3fff0000) >> 16, status & 0xc000ffff); |
@@ -460,7 +460,7 @@ static void smc911x_hardware_send_pkt(struct net_device *dev) | |||
460 | unsigned char *buf; | 460 | unsigned char *buf; |
461 | unsigned long flags; | 461 | unsigned long flags; |
462 | 462 | ||
463 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_TX, "%s: --> %s\n", dev->name, __FUNCTION__); | 463 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_TX, "%s: --> %s\n", dev->name, __func__); |
464 | BUG_ON(lp->pending_tx_skb == NULL); | 464 | BUG_ON(lp->pending_tx_skb == NULL); |
465 | 465 | ||
466 | skb = lp->pending_tx_skb; | 466 | skb = lp->pending_tx_skb; |
@@ -524,7 +524,7 @@ static int smc911x_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
524 | unsigned long flags; | 524 | unsigned long flags; |
525 | 525 | ||
526 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_TX, "%s: --> %s\n", | 526 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_TX, "%s: --> %s\n", |
527 | dev->name, __FUNCTION__); | 527 | dev->name, __func__); |
528 | 528 | ||
529 | BUG_ON(lp->pending_tx_skb != NULL); | 529 | BUG_ON(lp->pending_tx_skb != NULL); |
530 | 530 | ||
@@ -596,7 +596,7 @@ static void smc911x_tx(struct net_device *dev) | |||
596 | unsigned int tx_status; | 596 | unsigned int tx_status; |
597 | 597 | ||
598 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_TX, "%s: --> %s\n", | 598 | DBG(SMC_DEBUG_FUNC | SMC_DEBUG_TX, "%s: --> %s\n", |
599 | dev->name, __FUNCTION__); | 599 | dev->name, __func__); |
600 | 600 | ||
601 | /* Collect the TX status */ | 601 | /* Collect the TX status */ |
602 | while (((SMC_GET_TX_FIFO_INF(lp) & TX_FIFO_INF_TSUSED_) >> 16) != 0) { | 602 | while (((SMC_GET_TX_FIFO_INF(lp) & TX_FIFO_INF_TSUSED_) >> 16) != 0) { |
@@ -647,7 +647,7 @@ static int smc911x_phy_read(struct net_device *dev, int phyaddr, int phyreg) | |||
647 | SMC_GET_MII(lp, phyreg, phyaddr, phydata); | 647 | SMC_GET_MII(lp, phyreg, phyaddr, phydata); |
648 | 648 | ||
649 | DBG(SMC_DEBUG_MISC, "%s: phyaddr=0x%x, phyreg=0x%02x, phydata=0x%04x\n", | 649 | DBG(SMC_DEBUG_MISC, "%s: phyaddr=0x%x, phyreg=0x%02x, phydata=0x%04x\n", |
650 | __FUNCTION__, phyaddr, phyreg, phydata); | 650 | __func__, phyaddr, phyreg, phydata); |
651 | return phydata; | 651 | return phydata; |
652 | } | 652 | } |
653 | 653 | ||
@@ -661,7 +661,7 @@ static void smc911x_phy_write(struct net_device *dev, int phyaddr, int phyreg, | |||
661 | struct smc911x_local *lp = netdev_priv(dev); | 661 | struct smc911x_local *lp = netdev_priv(dev); |
662 | 662 | ||
663 | DBG(SMC_DEBUG_MISC, "%s: phyaddr=0x%x, phyreg=0x%x, phydata=0x%x\n", | 663 | DBG(SMC_DEBUG_MISC, "%s: phyaddr=0x%x, phyreg=0x%x, phydata=0x%x\n", |
664 | __FUNCTION__, phyaddr, phyreg, phydata); | 664 | __func__, phyaddr, phyreg, phydata); |
665 | 665 | ||
666 | SMC_SET_MII(lp, phyreg, phyaddr, phydata); | 666 | SMC_SET_MII(lp, phyreg, phyaddr, phydata); |
667 | } | 667 | } |
@@ -676,7 +676,7 @@ static void smc911x_phy_detect(struct net_device *dev) | |||
676 | int phyaddr; | 676 | int phyaddr; |
677 | unsigned int cfg, id1, id2; | 677 | unsigned int cfg, id1, id2; |
678 | 678 | ||
679 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 679 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
680 | 680 | ||
681 | lp->phy_type = 0; | 681 | lp->phy_type = 0; |
682 | 682 | ||
@@ -746,7 +746,7 @@ static int smc911x_phy_fixed(struct net_device *dev) | |||
746 | int phyaddr = lp->mii.phy_id; | 746 | int phyaddr = lp->mii.phy_id; |
747 | int bmcr; | 747 | int bmcr; |
748 | 748 | ||
749 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 749 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
750 | 750 | ||
751 | /* Enter Link Disable state */ | 751 | /* Enter Link Disable state */ |
752 | SMC_GET_PHY_BMCR(lp, phyaddr, bmcr); | 752 | SMC_GET_PHY_BMCR(lp, phyaddr, bmcr); |
@@ -793,7 +793,7 @@ static int smc911x_phy_reset(struct net_device *dev, int phy) | |||
793 | unsigned long flags; | 793 | unsigned long flags; |
794 | unsigned int reg; | 794 | unsigned int reg; |
795 | 795 | ||
796 | DBG(SMC_DEBUG_FUNC, "%s: --> %s()\n", dev->name, __FUNCTION__); | 796 | DBG(SMC_DEBUG_FUNC, "%s: --> %s()\n", dev->name, __func__); |
797 | 797 | ||
798 | spin_lock_irqsave(&lp->lock, flags); | 798 | spin_lock_irqsave(&lp->lock, flags); |
799 | reg = SMC_GET_PMT_CTRL(lp); | 799 | reg = SMC_GET_PMT_CTRL(lp); |
@@ -852,7 +852,7 @@ static void smc911x_phy_check_media(struct net_device *dev, int init) | |||
852 | int phyaddr = lp->mii.phy_id; | 852 | int phyaddr = lp->mii.phy_id; |
853 | unsigned int bmcr, cr; | 853 | unsigned int bmcr, cr; |
854 | 854 | ||
855 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 855 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
856 | 856 | ||
857 | if (mii_check_media(&lp->mii, netif_msg_link(lp), init)) { | 857 | if (mii_check_media(&lp->mii, netif_msg_link(lp), init)) { |
858 | /* duplex state has changed */ | 858 | /* duplex state has changed */ |
@@ -892,7 +892,7 @@ static void smc911x_phy_configure(struct work_struct *work) | |||
892 | int status; | 892 | int status; |
893 | unsigned long flags; | 893 | unsigned long flags; |
894 | 894 | ||
895 | DBG(SMC_DEBUG_FUNC, "%s: --> %s()\n", dev->name, __FUNCTION__); | 895 | DBG(SMC_DEBUG_FUNC, "%s: --> %s()\n", dev->name, __func__); |
896 | 896 | ||
897 | /* | 897 | /* |
898 | * We should not be called if phy_type is zero. | 898 | * We should not be called if phy_type is zero. |
@@ -985,7 +985,7 @@ static void smc911x_phy_interrupt(struct net_device *dev) | |||
985 | int phyaddr = lp->mii.phy_id; | 985 | int phyaddr = lp->mii.phy_id; |
986 | int status; | 986 | int status; |
987 | 987 | ||
988 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 988 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
989 | 989 | ||
990 | if (lp->phy_type == 0) | 990 | if (lp->phy_type == 0) |
991 | return; | 991 | return; |
@@ -1013,7 +1013,7 @@ static irqreturn_t smc911x_interrupt(int irq, void *dev_id) | |||
1013 | unsigned int rx_overrun=0, cr, pkts; | 1013 | unsigned int rx_overrun=0, cr, pkts; |
1014 | unsigned long flags; | 1014 | unsigned long flags; |
1015 | 1015 | ||
1016 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 1016 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
1017 | 1017 | ||
1018 | spin_lock_irqsave(&lp->lock, flags); | 1018 | spin_lock_irqsave(&lp->lock, flags); |
1019 | 1019 | ||
@@ -1186,7 +1186,7 @@ smc911x_tx_dma_irq(int dma, void *data) | |||
1186 | struct sk_buff *skb = lp->current_tx_skb; | 1186 | struct sk_buff *skb = lp->current_tx_skb; |
1187 | unsigned long flags; | 1187 | unsigned long flags; |
1188 | 1188 | ||
1189 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 1189 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
1190 | 1190 | ||
1191 | DBG(SMC_DEBUG_TX | SMC_DEBUG_DMA, "%s: TX DMA irq handler\n", dev->name); | 1191 | DBG(SMC_DEBUG_TX | SMC_DEBUG_DMA, "%s: TX DMA irq handler\n", dev->name); |
1192 | /* Clear the DMA interrupt sources */ | 1192 | /* Clear the DMA interrupt sources */ |
@@ -1222,7 +1222,7 @@ smc911x_rx_dma_irq(int dma, void *data) | |||
1222 | unsigned long flags; | 1222 | unsigned long flags; |
1223 | unsigned int pkts; | 1223 | unsigned int pkts; |
1224 | 1224 | ||
1225 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 1225 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
1226 | DBG(SMC_DEBUG_RX | SMC_DEBUG_DMA, "%s: RX DMA irq handler\n", dev->name); | 1226 | DBG(SMC_DEBUG_RX | SMC_DEBUG_DMA, "%s: RX DMA irq handler\n", dev->name); |
1227 | /* Clear the DMA interrupt sources */ | 1227 | /* Clear the DMA interrupt sources */ |
1228 | SMC_DMA_ACK_IRQ(dev, dma); | 1228 | SMC_DMA_ACK_IRQ(dev, dma); |
@@ -1270,7 +1270,7 @@ static void smc911x_timeout(struct net_device *dev) | |||
1270 | int status, mask; | 1270 | int status, mask; |
1271 | unsigned long flags; | 1271 | unsigned long flags; |
1272 | 1272 | ||
1273 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 1273 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
1274 | 1274 | ||
1275 | spin_lock_irqsave(&lp->lock, flags); | 1275 | spin_lock_irqsave(&lp->lock, flags); |
1276 | status = SMC_GET_INT(lp); | 1276 | status = SMC_GET_INT(lp); |
@@ -1308,7 +1308,7 @@ static void smc911x_set_multicast_list(struct net_device *dev) | |||
1308 | unsigned int mcr, update_multicast = 0; | 1308 | unsigned int mcr, update_multicast = 0; |
1309 | unsigned long flags; | 1309 | unsigned long flags; |
1310 | 1310 | ||
1311 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 1311 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
1312 | 1312 | ||
1313 | spin_lock_irqsave(&lp->lock, flags); | 1313 | spin_lock_irqsave(&lp->lock, flags); |
1314 | SMC_GET_MAC_CR(lp, mcr); | 1314 | SMC_GET_MAC_CR(lp, mcr); |
@@ -1410,7 +1410,7 @@ smc911x_open(struct net_device *dev) | |||
1410 | { | 1410 | { |
1411 | struct smc911x_local *lp = netdev_priv(dev); | 1411 | struct smc911x_local *lp = netdev_priv(dev); |
1412 | 1412 | ||
1413 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 1413 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
1414 | 1414 | ||
1415 | /* | 1415 | /* |
1416 | * Check that the address is valid. If its not, refuse | 1416 | * Check that the address is valid. If its not, refuse |
@@ -1418,7 +1418,7 @@ smc911x_open(struct net_device *dev) | |||
1418 | * address using ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx | 1418 | * address using ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx |
1419 | */ | 1419 | */ |
1420 | if (!is_valid_ether_addr(dev->dev_addr)) { | 1420 | if (!is_valid_ether_addr(dev->dev_addr)) { |
1421 | PRINTK("%s: no valid ethernet hw addr\n", __FUNCTION__); | 1421 | PRINTK("%s: no valid ethernet hw addr\n", __func__); |
1422 | return -EINVAL; | 1422 | return -EINVAL; |
1423 | } | 1423 | } |
1424 | 1424 | ||
@@ -1447,7 +1447,7 @@ static int smc911x_close(struct net_device *dev) | |||
1447 | { | 1447 | { |
1448 | struct smc911x_local *lp = netdev_priv(dev); | 1448 | struct smc911x_local *lp = netdev_priv(dev); |
1449 | 1449 | ||
1450 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 1450 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
1451 | 1451 | ||
1452 | netif_stop_queue(dev); | 1452 | netif_stop_queue(dev); |
1453 | netif_carrier_off(dev); | 1453 | netif_carrier_off(dev); |
@@ -1481,7 +1481,7 @@ smc911x_ethtool_getsettings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
1481 | int ret, status; | 1481 | int ret, status; |
1482 | unsigned long flags; | 1482 | unsigned long flags; |
1483 | 1483 | ||
1484 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 1484 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
1485 | cmd->maxtxpkt = 1; | 1485 | cmd->maxtxpkt = 1; |
1486 | cmd->maxrxpkt = 1; | 1486 | cmd->maxrxpkt = 1; |
1487 | 1487 | ||
@@ -1619,7 +1619,7 @@ static int smc911x_ethtool_wait_eeprom_ready(struct net_device *dev) | |||
1619 | for(timeout=10;(e2p_cmd & E2P_CMD_EPC_BUSY_) && timeout; timeout--) { | 1619 | for(timeout=10;(e2p_cmd & E2P_CMD_EPC_BUSY_) && timeout; timeout--) { |
1620 | if (e2p_cmd & E2P_CMD_EPC_TIMEOUT_) { | 1620 | if (e2p_cmd & E2P_CMD_EPC_TIMEOUT_) { |
1621 | PRINTK("%s: %s timeout waiting for EEPROM to respond\n", | 1621 | PRINTK("%s: %s timeout waiting for EEPROM to respond\n", |
1622 | dev->name, __FUNCTION__); | 1622 | dev->name, __func__); |
1623 | return -EFAULT; | 1623 | return -EFAULT; |
1624 | } | 1624 | } |
1625 | mdelay(1); | 1625 | mdelay(1); |
@@ -1627,7 +1627,7 @@ static int smc911x_ethtool_wait_eeprom_ready(struct net_device *dev) | |||
1627 | } | 1627 | } |
1628 | if (timeout == 0) { | 1628 | if (timeout == 0) { |
1629 | PRINTK("%s: %s timeout waiting for EEPROM CMD not busy\n", | 1629 | PRINTK("%s: %s timeout waiting for EEPROM CMD not busy\n", |
1630 | dev->name, __FUNCTION__); | 1630 | dev->name, __func__); |
1631 | return -ETIMEDOUT; | 1631 | return -ETIMEDOUT; |
1632 | } | 1632 | } |
1633 | return 0; | 1633 | return 0; |
@@ -1740,7 +1740,7 @@ static int __init smc911x_findirq(struct net_device *dev) | |||
1740 | int timeout = 20; | 1740 | int timeout = 20; |
1741 | unsigned long cookie; | 1741 | unsigned long cookie; |
1742 | 1742 | ||
1743 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __FUNCTION__); | 1743 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __func__); |
1744 | 1744 | ||
1745 | cookie = probe_irq_on(); | 1745 | cookie = probe_irq_on(); |
1746 | 1746 | ||
@@ -1806,7 +1806,7 @@ static int __init smc911x_probe(struct net_device *dev) | |||
1806 | const char *version_string; | 1806 | const char *version_string; |
1807 | unsigned long irq_flags; | 1807 | unsigned long irq_flags; |
1808 | 1808 | ||
1809 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __FUNCTION__); | 1809 | DBG(SMC_DEBUG_FUNC, "%s: --> %s\n", dev->name, __func__); |
1810 | 1810 | ||
1811 | /* First, see if the endian word is recognized */ | 1811 | /* First, see if the endian word is recognized */ |
1812 | val = SMC_GET_BYTE_TEST(lp); | 1812 | val = SMC_GET_BYTE_TEST(lp); |
@@ -2056,7 +2056,7 @@ static int smc911x_drv_probe(struct platform_device *pdev) | |||
2056 | unsigned int *addr; | 2056 | unsigned int *addr; |
2057 | int ret; | 2057 | int ret; |
2058 | 2058 | ||
2059 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __FUNCTION__); | 2059 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __func__); |
2060 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 2060 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
2061 | if (!res) { | 2061 | if (!res) { |
2062 | ret = -ENODEV; | 2062 | ret = -ENODEV; |
@@ -2127,7 +2127,7 @@ static int smc911x_drv_remove(struct platform_device *pdev) | |||
2127 | struct smc911x_local *lp = netdev_priv(ndev); | 2127 | struct smc911x_local *lp = netdev_priv(ndev); |
2128 | struct resource *res; | 2128 | struct resource *res; |
2129 | 2129 | ||
2130 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __FUNCTION__); | 2130 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __func__); |
2131 | platform_set_drvdata(pdev, NULL); | 2131 | platform_set_drvdata(pdev, NULL); |
2132 | 2132 | ||
2133 | unregister_netdev(ndev); | 2133 | unregister_netdev(ndev); |
@@ -2157,7 +2157,7 @@ static int smc911x_drv_suspend(struct platform_device *dev, pm_message_t state) | |||
2157 | struct net_device *ndev = platform_get_drvdata(dev); | 2157 | struct net_device *ndev = platform_get_drvdata(dev); |
2158 | struct smc911x_local *lp = netdev_priv(ndev); | 2158 | struct smc911x_local *lp = netdev_priv(ndev); |
2159 | 2159 | ||
2160 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __FUNCTION__); | 2160 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __func__); |
2161 | if (ndev) { | 2161 | if (ndev) { |
2162 | if (netif_running(ndev)) { | 2162 | if (netif_running(ndev)) { |
2163 | netif_device_detach(ndev); | 2163 | netif_device_detach(ndev); |
@@ -2175,7 +2175,7 @@ static int smc911x_drv_resume(struct platform_device *dev) | |||
2175 | { | 2175 | { |
2176 | struct net_device *ndev = platform_get_drvdata(dev); | 2176 | struct net_device *ndev = platform_get_drvdata(dev); |
2177 | 2177 | ||
2178 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __FUNCTION__); | 2178 | DBG(SMC_DEBUG_FUNC, "--> %s\n", __func__); |
2179 | if (ndev) { | 2179 | if (ndev) { |
2180 | struct smc911x_local *lp = netdev_priv(ndev); | 2180 | struct smc911x_local *lp = netdev_priv(ndev); |
2181 | 2181 | ||
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index 53c2dda1dc89..ef5ce8845c9d 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -270,7 +270,7 @@ static void smc_reset(struct net_device *dev) | |||
270 | unsigned int ctl, cfg; | 270 | unsigned int ctl, cfg; |
271 | struct sk_buff *pending_skb; | 271 | struct sk_buff *pending_skb; |
272 | 272 | ||
273 | DBG(2, "%s: %s\n", dev->name, __FUNCTION__); | 273 | DBG(2, "%s: %s\n", dev->name, __func__); |
274 | 274 | ||
275 | /* Disable all interrupts, block TX tasklet */ | 275 | /* Disable all interrupts, block TX tasklet */ |
276 | spin_lock_irq(&lp->lock); | 276 | spin_lock_irq(&lp->lock); |
@@ -363,7 +363,7 @@ static void smc_enable(struct net_device *dev) | |||
363 | void __iomem *ioaddr = lp->base; | 363 | void __iomem *ioaddr = lp->base; |
364 | int mask; | 364 | int mask; |
365 | 365 | ||
366 | DBG(2, "%s: %s\n", dev->name, __FUNCTION__); | 366 | DBG(2, "%s: %s\n", dev->name, __func__); |
367 | 367 | ||
368 | /* see the header file for options in TCR/RCR DEFAULT */ | 368 | /* see the header file for options in TCR/RCR DEFAULT */ |
369 | SMC_SELECT_BANK(lp, 0); | 369 | SMC_SELECT_BANK(lp, 0); |
@@ -397,7 +397,7 @@ static void smc_shutdown(struct net_device *dev) | |||
397 | void __iomem *ioaddr = lp->base; | 397 | void __iomem *ioaddr = lp->base; |
398 | struct sk_buff *pending_skb; | 398 | struct sk_buff *pending_skb; |
399 | 399 | ||
400 | DBG(2, "%s: %s\n", CARDNAME, __FUNCTION__); | 400 | DBG(2, "%s: %s\n", CARDNAME, __func__); |
401 | 401 | ||
402 | /* no more interrupts for me */ | 402 | /* no more interrupts for me */ |
403 | spin_lock_irq(&lp->lock); | 403 | spin_lock_irq(&lp->lock); |
@@ -430,7 +430,7 @@ static inline void smc_rcv(struct net_device *dev) | |||
430 | void __iomem *ioaddr = lp->base; | 430 | void __iomem *ioaddr = lp->base; |
431 | unsigned int packet_number, status, packet_len; | 431 | unsigned int packet_number, status, packet_len; |
432 | 432 | ||
433 | DBG(3, "%s: %s\n", dev->name, __FUNCTION__); | 433 | DBG(3, "%s: %s\n", dev->name, __func__); |
434 | 434 | ||
435 | packet_number = SMC_GET_RXFIFO(lp); | 435 | packet_number = SMC_GET_RXFIFO(lp); |
436 | if (unlikely(packet_number & RXFIFO_REMPTY)) { | 436 | if (unlikely(packet_number & RXFIFO_REMPTY)) { |
@@ -577,7 +577,7 @@ static void smc_hardware_send_pkt(unsigned long data) | |||
577 | unsigned int packet_no, len; | 577 | unsigned int packet_no, len; |
578 | unsigned char *buf; | 578 | unsigned char *buf; |
579 | 579 | ||
580 | DBG(3, "%s: %s\n", dev->name, __FUNCTION__); | 580 | DBG(3, "%s: %s\n", dev->name, __func__); |
581 | 581 | ||
582 | if (!smc_special_trylock(&lp->lock)) { | 582 | if (!smc_special_trylock(&lp->lock)) { |
583 | netif_stop_queue(dev); | 583 | netif_stop_queue(dev); |
@@ -662,7 +662,7 @@ static int smc_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
662 | void __iomem *ioaddr = lp->base; | 662 | void __iomem *ioaddr = lp->base; |
663 | unsigned int numPages, poll_count, status; | 663 | unsigned int numPages, poll_count, status; |
664 | 664 | ||
665 | DBG(3, "%s: %s\n", dev->name, __FUNCTION__); | 665 | DBG(3, "%s: %s\n", dev->name, __func__); |
666 | 666 | ||
667 | BUG_ON(lp->pending_tx_skb != NULL); | 667 | BUG_ON(lp->pending_tx_skb != NULL); |
668 | 668 | ||
@@ -734,7 +734,7 @@ static void smc_tx(struct net_device *dev) | |||
734 | void __iomem *ioaddr = lp->base; | 734 | void __iomem *ioaddr = lp->base; |
735 | unsigned int saved_packet, packet_no, tx_status, pkt_len; | 735 | unsigned int saved_packet, packet_no, tx_status, pkt_len; |
736 | 736 | ||
737 | DBG(3, "%s: %s\n", dev->name, __FUNCTION__); | 737 | DBG(3, "%s: %s\n", dev->name, __func__); |
738 | 738 | ||
739 | /* If the TX FIFO is empty then nothing to do */ | 739 | /* If the TX FIFO is empty then nothing to do */ |
740 | packet_no = SMC_GET_TXFIFO(lp); | 740 | packet_no = SMC_GET_TXFIFO(lp); |
@@ -856,7 +856,7 @@ static int smc_phy_read(struct net_device *dev, int phyaddr, int phyreg) | |||
856 | SMC_SET_MII(lp, SMC_GET_MII(lp) & ~(MII_MCLK|MII_MDOE|MII_MDO)); | 856 | SMC_SET_MII(lp, SMC_GET_MII(lp) & ~(MII_MCLK|MII_MDOE|MII_MDO)); |
857 | 857 | ||
858 | DBG(3, "%s: phyaddr=0x%x, phyreg=0x%x, phydata=0x%x\n", | 858 | DBG(3, "%s: phyaddr=0x%x, phyreg=0x%x, phydata=0x%x\n", |
859 | __FUNCTION__, phyaddr, phyreg, phydata); | 859 | __func__, phyaddr, phyreg, phydata); |
860 | 860 | ||
861 | SMC_SELECT_BANK(lp, 2); | 861 | SMC_SELECT_BANK(lp, 2); |
862 | return phydata; | 862 | return phydata; |
@@ -883,7 +883,7 @@ static void smc_phy_write(struct net_device *dev, int phyaddr, int phyreg, | |||
883 | SMC_SET_MII(lp, SMC_GET_MII(lp) & ~(MII_MCLK|MII_MDOE|MII_MDO)); | 883 | SMC_SET_MII(lp, SMC_GET_MII(lp) & ~(MII_MCLK|MII_MDOE|MII_MDO)); |
884 | 884 | ||
885 | DBG(3, "%s: phyaddr=0x%x, phyreg=0x%x, phydata=0x%x\n", | 885 | DBG(3, "%s: phyaddr=0x%x, phyreg=0x%x, phydata=0x%x\n", |
886 | __FUNCTION__, phyaddr, phyreg, phydata); | 886 | __func__, phyaddr, phyreg, phydata); |
887 | 887 | ||
888 | SMC_SELECT_BANK(lp, 2); | 888 | SMC_SELECT_BANK(lp, 2); |
889 | } | 889 | } |
@@ -896,7 +896,7 @@ static void smc_phy_detect(struct net_device *dev) | |||
896 | struct smc_local *lp = netdev_priv(dev); | 896 | struct smc_local *lp = netdev_priv(dev); |
897 | int phyaddr; | 897 | int phyaddr; |
898 | 898 | ||
899 | DBG(2, "%s: %s\n", dev->name, __FUNCTION__); | 899 | DBG(2, "%s: %s\n", dev->name, __func__); |
900 | 900 | ||
901 | lp->phy_type = 0; | 901 | lp->phy_type = 0; |
902 | 902 | ||
@@ -935,7 +935,7 @@ static int smc_phy_fixed(struct net_device *dev) | |||
935 | int phyaddr = lp->mii.phy_id; | 935 | int phyaddr = lp->mii.phy_id; |
936 | int bmcr, cfg1; | 936 | int bmcr, cfg1; |
937 | 937 | ||
938 | DBG(3, "%s: %s\n", dev->name, __FUNCTION__); | 938 | DBG(3, "%s: %s\n", dev->name, __func__); |
939 | 939 | ||
940 | /* Enter Link Disable state */ | 940 | /* Enter Link Disable state */ |
941 | cfg1 = smc_phy_read(dev, phyaddr, PHY_CFG1_REG); | 941 | cfg1 = smc_phy_read(dev, phyaddr, PHY_CFG1_REG); |
@@ -1168,7 +1168,7 @@ static void smc_phy_interrupt(struct net_device *dev) | |||
1168 | int phyaddr = lp->mii.phy_id; | 1168 | int phyaddr = lp->mii.phy_id; |
1169 | int phy18; | 1169 | int phy18; |
1170 | 1170 | ||
1171 | DBG(2, "%s: %s\n", dev->name, __FUNCTION__); | 1171 | DBG(2, "%s: %s\n", dev->name, __func__); |
1172 | 1172 | ||
1173 | if (lp->phy_type == 0) | 1173 | if (lp->phy_type == 0) |
1174 | return; | 1174 | return; |
@@ -1236,7 +1236,7 @@ static irqreturn_t smc_interrupt(int irq, void *dev_id) | |||
1236 | int status, mask, timeout, card_stats; | 1236 | int status, mask, timeout, card_stats; |
1237 | int saved_pointer; | 1237 | int saved_pointer; |
1238 | 1238 | ||
1239 | DBG(3, "%s: %s\n", dev->name, __FUNCTION__); | 1239 | DBG(3, "%s: %s\n", dev->name, __func__); |
1240 | 1240 | ||
1241 | spin_lock(&lp->lock); | 1241 | spin_lock(&lp->lock); |
1242 | 1242 | ||
@@ -1358,7 +1358,7 @@ static void smc_timeout(struct net_device *dev) | |||
1358 | void __iomem *ioaddr = lp->base; | 1358 | void __iomem *ioaddr = lp->base; |
1359 | int status, mask, eph_st, meminfo, fifo; | 1359 | int status, mask, eph_st, meminfo, fifo; |
1360 | 1360 | ||
1361 | DBG(2, "%s: %s\n", dev->name, __FUNCTION__); | 1361 | DBG(2, "%s: %s\n", dev->name, __func__); |
1362 | 1362 | ||
1363 | spin_lock_irq(&lp->lock); | 1363 | spin_lock_irq(&lp->lock); |
1364 | status = SMC_GET_INT(lp); | 1364 | status = SMC_GET_INT(lp); |
@@ -1402,7 +1402,7 @@ static void smc_set_multicast_list(struct net_device *dev) | |||
1402 | unsigned char multicast_table[8]; | 1402 | unsigned char multicast_table[8]; |
1403 | int update_multicast = 0; | 1403 | int update_multicast = 0; |
1404 | 1404 | ||
1405 | DBG(2, "%s: %s\n", dev->name, __FUNCTION__); | 1405 | DBG(2, "%s: %s\n", dev->name, __func__); |
1406 | 1406 | ||
1407 | if (dev->flags & IFF_PROMISC) { | 1407 | if (dev->flags & IFF_PROMISC) { |
1408 | DBG(2, "%s: RCR_PRMS\n", dev->name); | 1408 | DBG(2, "%s: RCR_PRMS\n", dev->name); |
@@ -1505,7 +1505,7 @@ smc_open(struct net_device *dev) | |||
1505 | { | 1505 | { |
1506 | struct smc_local *lp = netdev_priv(dev); | 1506 | struct smc_local *lp = netdev_priv(dev); |
1507 | 1507 | ||
1508 | DBG(2, "%s: %s\n", dev->name, __FUNCTION__); | 1508 | DBG(2, "%s: %s\n", dev->name, __func__); |
1509 | 1509 | ||
1510 | /* | 1510 | /* |
1511 | * Check that the address is valid. If its not, refuse | 1511 | * Check that the address is valid. If its not, refuse |
@@ -1513,7 +1513,7 @@ smc_open(struct net_device *dev) | |||
1513 | * address using ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx | 1513 | * address using ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx |
1514 | */ | 1514 | */ |
1515 | if (!is_valid_ether_addr(dev->dev_addr)) { | 1515 | if (!is_valid_ether_addr(dev->dev_addr)) { |
1516 | PRINTK("%s: no valid ethernet hw addr\n", __FUNCTION__); | 1516 | PRINTK("%s: no valid ethernet hw addr\n", __func__); |
1517 | return -EINVAL; | 1517 | return -EINVAL; |
1518 | } | 1518 | } |
1519 | 1519 | ||
@@ -1557,7 +1557,7 @@ static int smc_close(struct net_device *dev) | |||
1557 | { | 1557 | { |
1558 | struct smc_local *lp = netdev_priv(dev); | 1558 | struct smc_local *lp = netdev_priv(dev); |
1559 | 1559 | ||
1560 | DBG(2, "%s: %s\n", dev->name, __FUNCTION__); | 1560 | DBG(2, "%s: %s\n", dev->name, __func__); |
1561 | 1561 | ||
1562 | netif_stop_queue(dev); | 1562 | netif_stop_queue(dev); |
1563 | netif_carrier_off(dev); | 1563 | netif_carrier_off(dev); |
@@ -1700,7 +1700,7 @@ static int __init smc_findirq(struct smc_local *lp) | |||
1700 | int timeout = 20; | 1700 | int timeout = 20; |
1701 | unsigned long cookie; | 1701 | unsigned long cookie; |
1702 | 1702 | ||
1703 | DBG(2, "%s: %s\n", CARDNAME, __FUNCTION__); | 1703 | DBG(2, "%s: %s\n", CARDNAME, __func__); |
1704 | 1704 | ||
1705 | cookie = probe_irq_on(); | 1705 | cookie = probe_irq_on(); |
1706 | 1706 | ||
@@ -1778,7 +1778,7 @@ static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr, | |||
1778 | const char *version_string; | 1778 | const char *version_string; |
1779 | DECLARE_MAC_BUF(mac); | 1779 | DECLARE_MAC_BUF(mac); |
1780 | 1780 | ||
1781 | DBG(2, "%s: %s\n", CARDNAME, __FUNCTION__); | 1781 | DBG(2, "%s: %s\n", CARDNAME, __func__); |
1782 | 1782 | ||
1783 | /* First, see if the high byte is 0x33 */ | 1783 | /* First, see if the high byte is 0x33 */ |
1784 | val = SMC_CURRENT_BANK(lp); | 1784 | val = SMC_CURRENT_BANK(lp); |
diff --git a/drivers/net/tehuti.h b/drivers/net/tehuti.h index 7db48f1cd949..efaf84d9757d 100644 --- a/drivers/net/tehuti.h +++ b/drivers/net/tehuti.h | |||
@@ -539,22 +539,22 @@ struct txd_desc { | |||
539 | 539 | ||
540 | #define ERR(fmt, args...) printk(KERN_ERR fmt, ## args) | 540 | #define ERR(fmt, args...) printk(KERN_ERR fmt, ## args) |
541 | #define DBG2(fmt, args...) \ | 541 | #define DBG2(fmt, args...) \ |
542 | printk(KERN_ERR "%s:%-5d: " fmt, __FUNCTION__, __LINE__, ## args) | 542 | printk(KERN_ERR "%s:%-5d: " fmt, __func__, __LINE__, ## args) |
543 | 543 | ||
544 | #define BDX_ASSERT(x) BUG_ON(x) | 544 | #define BDX_ASSERT(x) BUG_ON(x) |
545 | 545 | ||
546 | #ifdef DEBUG | 546 | #ifdef DEBUG |
547 | 547 | ||
548 | #define ENTER do { \ | 548 | #define ENTER do { \ |
549 | printk(KERN_ERR "%s:%-5d: ENTER\n", __FUNCTION__, __LINE__); \ | 549 | printk(KERN_ERR "%s:%-5d: ENTER\n", __func__, __LINE__); \ |
550 | } while (0) | 550 | } while (0) |
551 | 551 | ||
552 | #define RET(args...) do { \ | 552 | #define RET(args...) do { \ |
553 | printk(KERN_ERR "%s:%-5d: RETURN\n", __FUNCTION__, __LINE__); \ | 553 | printk(KERN_ERR "%s:%-5d: RETURN\n", __func__, __LINE__); \ |
554 | return args; } while (0) | 554 | return args; } while (0) |
555 | 555 | ||
556 | #define DBG(fmt, args...) \ | 556 | #define DBG(fmt, args...) \ |
557 | printk(KERN_ERR "%s:%-5d: " fmt, __FUNCTION__, __LINE__, ## args) | 557 | printk(KERN_ERR "%s:%-5d: " fmt, __func__, __LINE__, ## args) |
558 | #else | 558 | #else |
559 | #define ENTER do { } while (0) | 559 | #define ENTER do { } while (0) |
560 | #define RET(args...) return args | 560 | #define RET(args...) return args |
diff --git a/drivers/net/tsi108_eth.c b/drivers/net/tsi108_eth.c index 43fde99b24ac..eb1da6f0b086 100644 --- a/drivers/net/tsi108_eth.c +++ b/drivers/net/tsi108_eth.c | |||
@@ -263,7 +263,7 @@ static inline void tsi108_write_tbi(struct tsi108_prv_data *data, | |||
263 | return; | 263 | return; |
264 | udelay(10); | 264 | udelay(10); |
265 | } | 265 | } |
266 | printk(KERN_ERR "%s function time out \n", __FUNCTION__); | 266 | printk(KERN_ERR "%s function time out \n", __func__); |
267 | } | 267 | } |
268 | 268 | ||
269 | static int mii_speed(struct mii_if_info *mii) | 269 | static int mii_speed(struct mii_if_info *mii) |
@@ -1059,7 +1059,7 @@ static void tsi108_stop_ethernet(struct net_device *dev) | |||
1059 | return; | 1059 | return; |
1060 | udelay(10); | 1060 | udelay(10); |
1061 | } | 1061 | } |
1062 | printk(KERN_ERR "%s function time out \n", __FUNCTION__); | 1062 | printk(KERN_ERR "%s function time out \n", __func__); |
1063 | } | 1063 | } |
1064 | 1064 | ||
1065 | static void tsi108_reset_ether(struct tsi108_prv_data * data) | 1065 | static void tsi108_reset_ether(struct tsi108_prv_data * data) |
@@ -1244,7 +1244,7 @@ static void tsi108_init_phy(struct net_device *dev) | |||
1244 | udelay(10); | 1244 | udelay(10); |
1245 | } | 1245 | } |
1246 | if (i == 0) | 1246 | if (i == 0) |
1247 | printk(KERN_ERR "%s function time out \n", __FUNCTION__); | 1247 | printk(KERN_ERR "%s function time out \n", __func__); |
1248 | 1248 | ||
1249 | if (data->phy_type == TSI108_PHY_BCM54XX) { | 1249 | if (data->phy_type == TSI108_PHY_BCM54XX) { |
1250 | tsi108_write_mii(data, 0x09, 0x0300); | 1250 | tsi108_write_mii(data, 0x09, 0x0300); |
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 8f944e57fd55..c87747bb24c5 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -400,7 +400,7 @@ static struct enet_addr_container *get_enet_addr_container(void) | |||
400 | enet_addr_cont = kmalloc(sizeof(struct enet_addr_container), GFP_KERNEL); | 400 | enet_addr_cont = kmalloc(sizeof(struct enet_addr_container), GFP_KERNEL); |
401 | if (!enet_addr_cont) { | 401 | if (!enet_addr_cont) { |
402 | ugeth_err("%s: No memory for enet_addr_container object.", | 402 | ugeth_err("%s: No memory for enet_addr_container object.", |
403 | __FUNCTION__); | 403 | __func__); |
404 | return NULL; | 404 | return NULL; |
405 | } | 405 | } |
406 | 406 | ||
@@ -427,7 +427,7 @@ static int hw_add_addr_in_paddr(struct ucc_geth_private *ugeth, | |||
427 | struct ucc_geth_82xx_address_filtering_pram *p_82xx_addr_filt; | 427 | struct ucc_geth_82xx_address_filtering_pram *p_82xx_addr_filt; |
428 | 428 | ||
429 | if (!(paddr_num < NUM_OF_PADDRS)) { | 429 | if (!(paddr_num < NUM_OF_PADDRS)) { |
430 | ugeth_warn("%s: Illegal paddr_num.", __FUNCTION__); | 430 | ugeth_warn("%s: Illegal paddr_num.", __func__); |
431 | return -EINVAL; | 431 | return -EINVAL; |
432 | } | 432 | } |
433 | 433 | ||
@@ -447,7 +447,7 @@ static int hw_clear_addr_in_paddr(struct ucc_geth_private *ugeth, u8 paddr_num) | |||
447 | struct ucc_geth_82xx_address_filtering_pram __iomem *p_82xx_addr_filt; | 447 | struct ucc_geth_82xx_address_filtering_pram __iomem *p_82xx_addr_filt; |
448 | 448 | ||
449 | if (!(paddr_num < NUM_OF_PADDRS)) { | 449 | if (!(paddr_num < NUM_OF_PADDRS)) { |
450 | ugeth_warn("%s: Illagel paddr_num.", __FUNCTION__); | 450 | ugeth_warn("%s: Illagel paddr_num.", __func__); |
451 | return -EINVAL; | 451 | return -EINVAL; |
452 | } | 452 | } |
453 | 453 | ||
@@ -1441,7 +1441,7 @@ static int adjust_enet_interface(struct ucc_geth_private *ugeth) | |||
1441 | u32 upsmr, maccfg2, tbiBaseAddress; | 1441 | u32 upsmr, maccfg2, tbiBaseAddress; |
1442 | u16 value; | 1442 | u16 value; |
1443 | 1443 | ||
1444 | ugeth_vdbg("%s: IN", __FUNCTION__); | 1444 | ugeth_vdbg("%s: IN", __func__); |
1445 | 1445 | ||
1446 | ug_info = ugeth->ug_info; | 1446 | ug_info = ugeth->ug_info; |
1447 | ug_regs = ugeth->ug_regs; | 1447 | ug_regs = ugeth->ug_regs; |
@@ -1504,7 +1504,7 @@ static int adjust_enet_interface(struct ucc_geth_private *ugeth) | |||
1504 | if (ret_val != 0) { | 1504 | if (ret_val != 0) { |
1505 | if (netif_msg_probe(ugeth)) | 1505 | if (netif_msg_probe(ugeth)) |
1506 | ugeth_err("%s: Preamble length must be between 3 and 7 inclusive.", | 1506 | ugeth_err("%s: Preamble length must be between 3 and 7 inclusive.", |
1507 | __FUNCTION__); | 1507 | __func__); |
1508 | return ret_val; | 1508 | return ret_val; |
1509 | } | 1509 | } |
1510 | 1510 | ||
@@ -1744,7 +1744,7 @@ static int ugeth_enable(struct ucc_geth_private *ugeth, enum comm_dir mode) | |||
1744 | /* check if the UCC number is in range. */ | 1744 | /* check if the UCC number is in range. */ |
1745 | if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { | 1745 | if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { |
1746 | if (netif_msg_probe(ugeth)) | 1746 | if (netif_msg_probe(ugeth)) |
1747 | ugeth_err("%s: ucc_num out of range.", __FUNCTION__); | 1747 | ugeth_err("%s: ucc_num out of range.", __func__); |
1748 | return -EINVAL; | 1748 | return -EINVAL; |
1749 | } | 1749 | } |
1750 | 1750 | ||
@@ -1773,7 +1773,7 @@ static int ugeth_disable(struct ucc_geth_private * ugeth, enum comm_dir mode) | |||
1773 | /* check if the UCC number is in range. */ | 1773 | /* check if the UCC number is in range. */ |
1774 | if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { | 1774 | if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { |
1775 | if (netif_msg_probe(ugeth)) | 1775 | if (netif_msg_probe(ugeth)) |
1776 | ugeth_err("%s: ucc_num out of range.", __FUNCTION__); | 1776 | ugeth_err("%s: ucc_num out of range.", __func__); |
1777 | return -EINVAL; | 1777 | return -EINVAL; |
1778 | } | 1778 | } |
1779 | 1779 | ||
@@ -2062,7 +2062,7 @@ static int ugeth_82xx_filtering_add_addr_in_paddr(struct ucc_geth_private *ugeth | |||
2062 | ugeth_warn | 2062 | ugeth_warn |
2063 | ("%s: multicast address added to paddr will have no " | 2063 | ("%s: multicast address added to paddr will have no " |
2064 | "effect - is this what you wanted?", | 2064 | "effect - is this what you wanted?", |
2065 | __FUNCTION__); | 2065 | __func__); |
2066 | 2066 | ||
2067 | ugeth->indAddrRegUsed[paddr_num] = 1; /* mark this paddr as used */ | 2067 | ugeth->indAddrRegUsed[paddr_num] = 1; /* mark this paddr as used */ |
2068 | /* store address in our database */ | 2068 | /* store address in our database */ |
@@ -2278,7 +2278,7 @@ static void ucc_geth_stop(struct ucc_geth_private *ugeth) | |||
2278 | struct phy_device *phydev = ugeth->phydev; | 2278 | struct phy_device *phydev = ugeth->phydev; |
2279 | u32 tempval; | 2279 | u32 tempval; |
2280 | 2280 | ||
2281 | ugeth_vdbg("%s: IN", __FUNCTION__); | 2281 | ugeth_vdbg("%s: IN", __func__); |
2282 | 2282 | ||
2283 | /* Disable the controller */ | 2283 | /* Disable the controller */ |
2284 | ugeth_disable(ugeth, COMM_DIR_RX_AND_TX); | 2284 | ugeth_disable(ugeth, COMM_DIR_RX_AND_TX); |
@@ -2315,7 +2315,7 @@ static int ucc_struct_init(struct ucc_geth_private *ugeth) | |||
2315 | (uf_info->bd_mem_part == MEM_PART_MURAM))) { | 2315 | (uf_info->bd_mem_part == MEM_PART_MURAM))) { |
2316 | if (netif_msg_probe(ugeth)) | 2316 | if (netif_msg_probe(ugeth)) |
2317 | ugeth_err("%s: Bad memory partition value.", | 2317 | ugeth_err("%s: Bad memory partition value.", |
2318 | __FUNCTION__); | 2318 | __func__); |
2319 | return -EINVAL; | 2319 | return -EINVAL; |
2320 | } | 2320 | } |
2321 | 2321 | ||
@@ -2327,7 +2327,7 @@ static int ucc_struct_init(struct ucc_geth_private *ugeth) | |||
2327 | if (netif_msg_probe(ugeth)) | 2327 | if (netif_msg_probe(ugeth)) |
2328 | ugeth_err | 2328 | ugeth_err |
2329 | ("%s: Rx BD ring length must be multiple of 4, no smaller than 8.", | 2329 | ("%s: Rx BD ring length must be multiple of 4, no smaller than 8.", |
2330 | __FUNCTION__); | 2330 | __func__); |
2331 | return -EINVAL; | 2331 | return -EINVAL; |
2332 | } | 2332 | } |
2333 | } | 2333 | } |
@@ -2338,7 +2338,7 @@ static int ucc_struct_init(struct ucc_geth_private *ugeth) | |||
2338 | if (netif_msg_probe(ugeth)) | 2338 | if (netif_msg_probe(ugeth)) |
2339 | ugeth_err | 2339 | ugeth_err |
2340 | ("%s: Tx BD ring length must be no smaller than 2.", | 2340 | ("%s: Tx BD ring length must be no smaller than 2.", |
2341 | __FUNCTION__); | 2341 | __func__); |
2342 | return -EINVAL; | 2342 | return -EINVAL; |
2343 | } | 2343 | } |
2344 | } | 2344 | } |
@@ -2349,21 +2349,21 @@ static int ucc_struct_init(struct ucc_geth_private *ugeth) | |||
2349 | if (netif_msg_probe(ugeth)) | 2349 | if (netif_msg_probe(ugeth)) |
2350 | ugeth_err | 2350 | ugeth_err |
2351 | ("%s: max_rx_buf_length must be non-zero multiple of 128.", | 2351 | ("%s: max_rx_buf_length must be non-zero multiple of 128.", |
2352 | __FUNCTION__); | 2352 | __func__); |
2353 | return -EINVAL; | 2353 | return -EINVAL; |
2354 | } | 2354 | } |
2355 | 2355 | ||
2356 | /* num Tx queues */ | 2356 | /* num Tx queues */ |
2357 | if (ug_info->numQueuesTx > NUM_TX_QUEUES) { | 2357 | if (ug_info->numQueuesTx > NUM_TX_QUEUES) { |
2358 | if (netif_msg_probe(ugeth)) | 2358 | if (netif_msg_probe(ugeth)) |
2359 | ugeth_err("%s: number of tx queues too large.", __FUNCTION__); | 2359 | ugeth_err("%s: number of tx queues too large.", __func__); |
2360 | return -EINVAL; | 2360 | return -EINVAL; |
2361 | } | 2361 | } |
2362 | 2362 | ||
2363 | /* num Rx queues */ | 2363 | /* num Rx queues */ |
2364 | if (ug_info->numQueuesRx > NUM_RX_QUEUES) { | 2364 | if (ug_info->numQueuesRx > NUM_RX_QUEUES) { |
2365 | if (netif_msg_probe(ugeth)) | 2365 | if (netif_msg_probe(ugeth)) |
2366 | ugeth_err("%s: number of rx queues too large.", __FUNCTION__); | 2366 | ugeth_err("%s: number of rx queues too large.", __func__); |
2367 | return -EINVAL; | 2367 | return -EINVAL; |
2368 | } | 2368 | } |
2369 | 2369 | ||
@@ -2374,7 +2374,7 @@ static int ucc_struct_init(struct ucc_geth_private *ugeth) | |||
2374 | ugeth_err | 2374 | ugeth_err |
2375 | ("%s: VLAN priority table entry must not be" | 2375 | ("%s: VLAN priority table entry must not be" |
2376 | " larger than number of Rx queues.", | 2376 | " larger than number of Rx queues.", |
2377 | __FUNCTION__); | 2377 | __func__); |
2378 | return -EINVAL; | 2378 | return -EINVAL; |
2379 | } | 2379 | } |
2380 | } | 2380 | } |
@@ -2386,7 +2386,7 @@ static int ucc_struct_init(struct ucc_geth_private *ugeth) | |||
2386 | ugeth_err | 2386 | ugeth_err |
2387 | ("%s: IP priority table entry must not be" | 2387 | ("%s: IP priority table entry must not be" |
2388 | " larger than number of Rx queues.", | 2388 | " larger than number of Rx queues.", |
2389 | __FUNCTION__); | 2389 | __func__); |
2390 | return -EINVAL; | 2390 | return -EINVAL; |
2391 | } | 2391 | } |
2392 | } | 2392 | } |
@@ -2394,7 +2394,7 @@ static int ucc_struct_init(struct ucc_geth_private *ugeth) | |||
2394 | if (ug_info->cam && !ug_info->ecamptr) { | 2394 | if (ug_info->cam && !ug_info->ecamptr) { |
2395 | if (netif_msg_probe(ugeth)) | 2395 | if (netif_msg_probe(ugeth)) |
2396 | ugeth_err("%s: If cam mode is chosen, must supply cam ptr.", | 2396 | ugeth_err("%s: If cam mode is chosen, must supply cam ptr.", |
2397 | __FUNCTION__); | 2397 | __func__); |
2398 | return -EINVAL; | 2398 | return -EINVAL; |
2399 | } | 2399 | } |
2400 | 2400 | ||
@@ -2404,7 +2404,7 @@ static int ucc_struct_init(struct ucc_geth_private *ugeth) | |||
2404 | if (netif_msg_probe(ugeth)) | 2404 | if (netif_msg_probe(ugeth)) |
2405 | ugeth_err("%s: Number of station addresses greater than 1 " | 2405 | ugeth_err("%s: Number of station addresses greater than 1 " |
2406 | "not allowed in extended parsing mode.", | 2406 | "not allowed in extended parsing mode.", |
2407 | __FUNCTION__); | 2407 | __func__); |
2408 | return -EINVAL; | 2408 | return -EINVAL; |
2409 | } | 2409 | } |
2410 | 2410 | ||
@@ -2418,7 +2418,7 @@ static int ucc_struct_init(struct ucc_geth_private *ugeth) | |||
2418 | /* Initialize the general fast UCC block. */ | 2418 | /* Initialize the general fast UCC block. */ |
2419 | if (ucc_fast_init(uf_info, &ugeth->uccf)) { | 2419 | if (ucc_fast_init(uf_info, &ugeth->uccf)) { |
2420 | if (netif_msg_probe(ugeth)) | 2420 | if (netif_msg_probe(ugeth)) |
2421 | ugeth_err("%s: Failed to init uccf.", __FUNCTION__); | 2421 | ugeth_err("%s: Failed to init uccf.", __func__); |
2422 | ucc_geth_memclean(ugeth); | 2422 | ucc_geth_memclean(ugeth); |
2423 | return -ENOMEM; | 2423 | return -ENOMEM; |
2424 | } | 2424 | } |
@@ -2448,7 +2448,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2448 | u8 __iomem *endOfRing; | 2448 | u8 __iomem *endOfRing; |
2449 | u8 numThreadsRxNumerical, numThreadsTxNumerical; | 2449 | u8 numThreadsRxNumerical, numThreadsTxNumerical; |
2450 | 2450 | ||
2451 | ugeth_vdbg("%s: IN", __FUNCTION__); | 2451 | ugeth_vdbg("%s: IN", __func__); |
2452 | uccf = ugeth->uccf; | 2452 | uccf = ugeth->uccf; |
2453 | ug_info = ugeth->ug_info; | 2453 | ug_info = ugeth->ug_info; |
2454 | uf_info = &ug_info->uf_info; | 2454 | uf_info = &ug_info->uf_info; |
@@ -2474,7 +2474,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2474 | default: | 2474 | default: |
2475 | if (netif_msg_ifup(ugeth)) | 2475 | if (netif_msg_ifup(ugeth)) |
2476 | ugeth_err("%s: Bad number of Rx threads value.", | 2476 | ugeth_err("%s: Bad number of Rx threads value.", |
2477 | __FUNCTION__); | 2477 | __func__); |
2478 | ucc_geth_memclean(ugeth); | 2478 | ucc_geth_memclean(ugeth); |
2479 | return -EINVAL; | 2479 | return -EINVAL; |
2480 | break; | 2480 | break; |
@@ -2499,7 +2499,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2499 | default: | 2499 | default: |
2500 | if (netif_msg_ifup(ugeth)) | 2500 | if (netif_msg_ifup(ugeth)) |
2501 | ugeth_err("%s: Bad number of Tx threads value.", | 2501 | ugeth_err("%s: Bad number of Tx threads value.", |
2502 | __FUNCTION__); | 2502 | __func__); |
2503 | ucc_geth_memclean(ugeth); | 2503 | ucc_geth_memclean(ugeth); |
2504 | return -EINVAL; | 2504 | return -EINVAL; |
2505 | break; | 2505 | break; |
@@ -2553,7 +2553,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2553 | if (ret_val != 0) { | 2553 | if (ret_val != 0) { |
2554 | if (netif_msg_ifup(ugeth)) | 2554 | if (netif_msg_ifup(ugeth)) |
2555 | ugeth_err("%s: IPGIFG initialization parameter too large.", | 2555 | ugeth_err("%s: IPGIFG initialization parameter too large.", |
2556 | __FUNCTION__); | 2556 | __func__); |
2557 | ucc_geth_memclean(ugeth); | 2557 | ucc_geth_memclean(ugeth); |
2558 | return ret_val; | 2558 | return ret_val; |
2559 | } | 2559 | } |
@@ -2571,7 +2571,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2571 | if (ret_val != 0) { | 2571 | if (ret_val != 0) { |
2572 | if (netif_msg_ifup(ugeth)) | 2572 | if (netif_msg_ifup(ugeth)) |
2573 | ugeth_err("%s: Half Duplex initialization parameter too large.", | 2573 | ugeth_err("%s: Half Duplex initialization parameter too large.", |
2574 | __FUNCTION__); | 2574 | __func__); |
2575 | ucc_geth_memclean(ugeth); | 2575 | ucc_geth_memclean(ugeth); |
2576 | return ret_val; | 2576 | return ret_val; |
2577 | } | 2577 | } |
@@ -2626,7 +2626,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2626 | if (netif_msg_ifup(ugeth)) | 2626 | if (netif_msg_ifup(ugeth)) |
2627 | ugeth_err | 2627 | ugeth_err |
2628 | ("%s: Can not allocate memory for Tx bd rings.", | 2628 | ("%s: Can not allocate memory for Tx bd rings.", |
2629 | __FUNCTION__); | 2629 | __func__); |
2630 | ucc_geth_memclean(ugeth); | 2630 | ucc_geth_memclean(ugeth); |
2631 | return -ENOMEM; | 2631 | return -ENOMEM; |
2632 | } | 2632 | } |
@@ -2662,7 +2662,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2662 | if (netif_msg_ifup(ugeth)) | 2662 | if (netif_msg_ifup(ugeth)) |
2663 | ugeth_err | 2663 | ugeth_err |
2664 | ("%s: Can not allocate memory for Rx bd rings.", | 2664 | ("%s: Can not allocate memory for Rx bd rings.", |
2665 | __FUNCTION__); | 2665 | __func__); |
2666 | ucc_geth_memclean(ugeth); | 2666 | ucc_geth_memclean(ugeth); |
2667 | return -ENOMEM; | 2667 | return -ENOMEM; |
2668 | } | 2668 | } |
@@ -2678,7 +2678,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2678 | if (ugeth->tx_skbuff[j] == NULL) { | 2678 | if (ugeth->tx_skbuff[j] == NULL) { |
2679 | if (netif_msg_ifup(ugeth)) | 2679 | if (netif_msg_ifup(ugeth)) |
2680 | ugeth_err("%s: Could not allocate tx_skbuff", | 2680 | ugeth_err("%s: Could not allocate tx_skbuff", |
2681 | __FUNCTION__); | 2681 | __func__); |
2682 | ucc_geth_memclean(ugeth); | 2682 | ucc_geth_memclean(ugeth); |
2683 | return -ENOMEM; | 2683 | return -ENOMEM; |
2684 | } | 2684 | } |
@@ -2710,7 +2710,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2710 | if (ugeth->rx_skbuff[j] == NULL) { | 2710 | if (ugeth->rx_skbuff[j] == NULL) { |
2711 | if (netif_msg_ifup(ugeth)) | 2711 | if (netif_msg_ifup(ugeth)) |
2712 | ugeth_err("%s: Could not allocate rx_skbuff", | 2712 | ugeth_err("%s: Could not allocate rx_skbuff", |
2713 | __FUNCTION__); | 2713 | __func__); |
2714 | ucc_geth_memclean(ugeth); | 2714 | ucc_geth_memclean(ugeth); |
2715 | return -ENOMEM; | 2715 | return -ENOMEM; |
2716 | } | 2716 | } |
@@ -2744,7 +2744,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2744 | if (netif_msg_ifup(ugeth)) | 2744 | if (netif_msg_ifup(ugeth)) |
2745 | ugeth_err | 2745 | ugeth_err |
2746 | ("%s: Can not allocate DPRAM memory for p_tx_glbl_pram.", | 2746 | ("%s: Can not allocate DPRAM memory for p_tx_glbl_pram.", |
2747 | __FUNCTION__); | 2747 | __func__); |
2748 | ucc_geth_memclean(ugeth); | 2748 | ucc_geth_memclean(ugeth); |
2749 | return -ENOMEM; | 2749 | return -ENOMEM; |
2750 | } | 2750 | } |
@@ -2767,7 +2767,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2767 | if (netif_msg_ifup(ugeth)) | 2767 | if (netif_msg_ifup(ugeth)) |
2768 | ugeth_err | 2768 | ugeth_err |
2769 | ("%s: Can not allocate DPRAM memory for p_thread_data_tx.", | 2769 | ("%s: Can not allocate DPRAM memory for p_thread_data_tx.", |
2770 | __FUNCTION__); | 2770 | __func__); |
2771 | ucc_geth_memclean(ugeth); | 2771 | ucc_geth_memclean(ugeth); |
2772 | return -ENOMEM; | 2772 | return -ENOMEM; |
2773 | } | 2773 | } |
@@ -2797,7 +2797,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2797 | if (netif_msg_ifup(ugeth)) | 2797 | if (netif_msg_ifup(ugeth)) |
2798 | ugeth_err | 2798 | ugeth_err |
2799 | ("%s: Can not allocate DPRAM memory for p_send_q_mem_reg.", | 2799 | ("%s: Can not allocate DPRAM memory for p_send_q_mem_reg.", |
2800 | __FUNCTION__); | 2800 | __func__); |
2801 | ucc_geth_memclean(ugeth); | 2801 | ucc_geth_memclean(ugeth); |
2802 | return -ENOMEM; | 2802 | return -ENOMEM; |
2803 | } | 2803 | } |
@@ -2841,7 +2841,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2841 | if (netif_msg_ifup(ugeth)) | 2841 | if (netif_msg_ifup(ugeth)) |
2842 | ugeth_err | 2842 | ugeth_err |
2843 | ("%s: Can not allocate DPRAM memory for p_scheduler.", | 2843 | ("%s: Can not allocate DPRAM memory for p_scheduler.", |
2844 | __FUNCTION__); | 2844 | __func__); |
2845 | ucc_geth_memclean(ugeth); | 2845 | ucc_geth_memclean(ugeth); |
2846 | return -ENOMEM; | 2846 | return -ENOMEM; |
2847 | } | 2847 | } |
@@ -2892,7 +2892,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2892 | ugeth_err | 2892 | ugeth_err |
2893 | ("%s: Can not allocate DPRAM memory for" | 2893 | ("%s: Can not allocate DPRAM memory for" |
2894 | " p_tx_fw_statistics_pram.", | 2894 | " p_tx_fw_statistics_pram.", |
2895 | __FUNCTION__); | 2895 | __func__); |
2896 | ucc_geth_memclean(ugeth); | 2896 | ucc_geth_memclean(ugeth); |
2897 | return -ENOMEM; | 2897 | return -ENOMEM; |
2898 | } | 2898 | } |
@@ -2932,7 +2932,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2932 | if (netif_msg_ifup(ugeth)) | 2932 | if (netif_msg_ifup(ugeth)) |
2933 | ugeth_err | 2933 | ugeth_err |
2934 | ("%s: Can not allocate DPRAM memory for p_rx_glbl_pram.", | 2934 | ("%s: Can not allocate DPRAM memory for p_rx_glbl_pram.", |
2935 | __FUNCTION__); | 2935 | __func__); |
2936 | ucc_geth_memclean(ugeth); | 2936 | ucc_geth_memclean(ugeth); |
2937 | return -ENOMEM; | 2937 | return -ENOMEM; |
2938 | } | 2938 | } |
@@ -2954,7 +2954,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2954 | if (netif_msg_ifup(ugeth)) | 2954 | if (netif_msg_ifup(ugeth)) |
2955 | ugeth_err | 2955 | ugeth_err |
2956 | ("%s: Can not allocate DPRAM memory for p_thread_data_rx.", | 2956 | ("%s: Can not allocate DPRAM memory for p_thread_data_rx.", |
2957 | __FUNCTION__); | 2957 | __func__); |
2958 | ucc_geth_memclean(ugeth); | 2958 | ucc_geth_memclean(ugeth); |
2959 | return -ENOMEM; | 2959 | return -ENOMEM; |
2960 | } | 2960 | } |
@@ -2978,7 +2978,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
2978 | if (netif_msg_ifup(ugeth)) | 2978 | if (netif_msg_ifup(ugeth)) |
2979 | ugeth_err | 2979 | ugeth_err |
2980 | ("%s: Can not allocate DPRAM memory for" | 2980 | ("%s: Can not allocate DPRAM memory for" |
2981 | " p_rx_fw_statistics_pram.", __FUNCTION__); | 2981 | " p_rx_fw_statistics_pram.", __func__); |
2982 | ucc_geth_memclean(ugeth); | 2982 | ucc_geth_memclean(ugeth); |
2983 | return -ENOMEM; | 2983 | return -ENOMEM; |
2984 | } | 2984 | } |
@@ -3001,7 +3001,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3001 | if (netif_msg_ifup(ugeth)) | 3001 | if (netif_msg_ifup(ugeth)) |
3002 | ugeth_err | 3002 | ugeth_err |
3003 | ("%s: Can not allocate DPRAM memory for" | 3003 | ("%s: Can not allocate DPRAM memory for" |
3004 | " p_rx_irq_coalescing_tbl.", __FUNCTION__); | 3004 | " p_rx_irq_coalescing_tbl.", __func__); |
3005 | ucc_geth_memclean(ugeth); | 3005 | ucc_geth_memclean(ugeth); |
3006 | return -ENOMEM; | 3006 | return -ENOMEM; |
3007 | } | 3007 | } |
@@ -3070,7 +3070,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3070 | if (netif_msg_ifup(ugeth)) | 3070 | if (netif_msg_ifup(ugeth)) |
3071 | ugeth_err | 3071 | ugeth_err |
3072 | ("%s: Can not allocate DPRAM memory for p_rx_bd_qs_tbl.", | 3072 | ("%s: Can not allocate DPRAM memory for p_rx_bd_qs_tbl.", |
3073 | __FUNCTION__); | 3073 | __func__); |
3074 | ucc_geth_memclean(ugeth); | 3074 | ucc_geth_memclean(ugeth); |
3075 | return -ENOMEM; | 3075 | return -ENOMEM; |
3076 | } | 3076 | } |
@@ -3147,7 +3147,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3147 | if (!ug_info->extendedFilteringChainPointer) { | 3147 | if (!ug_info->extendedFilteringChainPointer) { |
3148 | if (netif_msg_ifup(ugeth)) | 3148 | if (netif_msg_ifup(ugeth)) |
3149 | ugeth_err("%s: Null Extended Filtering Chain Pointer.", | 3149 | ugeth_err("%s: Null Extended Filtering Chain Pointer.", |
3150 | __FUNCTION__); | 3150 | __func__); |
3151 | ucc_geth_memclean(ugeth); | 3151 | ucc_geth_memclean(ugeth); |
3152 | return -EINVAL; | 3152 | return -EINVAL; |
3153 | } | 3153 | } |
@@ -3161,7 +3161,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3161 | if (netif_msg_ifup(ugeth)) | 3161 | if (netif_msg_ifup(ugeth)) |
3162 | ugeth_err | 3162 | ugeth_err |
3163 | ("%s: Can not allocate DPRAM memory for" | 3163 | ("%s: Can not allocate DPRAM memory for" |
3164 | " p_exf_glbl_param.", __FUNCTION__); | 3164 | " p_exf_glbl_param.", __func__); |
3165 | ucc_geth_memclean(ugeth); | 3165 | ucc_geth_memclean(ugeth); |
3166 | return -ENOMEM; | 3166 | return -ENOMEM; |
3167 | } | 3167 | } |
@@ -3209,7 +3209,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3209 | if (netif_msg_ifup(ugeth)) | 3209 | if (netif_msg_ifup(ugeth)) |
3210 | ugeth_err | 3210 | ugeth_err |
3211 | ("%s: Can not allocate memory for" | 3211 | ("%s: Can not allocate memory for" |
3212 | " p_UccInitEnetParamShadows.", __FUNCTION__); | 3212 | " p_UccInitEnetParamShadows.", __func__); |
3213 | ucc_geth_memclean(ugeth); | 3213 | ucc_geth_memclean(ugeth); |
3214 | return -ENOMEM; | 3214 | return -ENOMEM; |
3215 | } | 3215 | } |
@@ -3244,7 +3244,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3244 | QE_FLTR_LARGEST_EXTERNAL_TABLE_LOOKUP_KEY_SIZE_16_BYTES)) { | 3244 | QE_FLTR_LARGEST_EXTERNAL_TABLE_LOOKUP_KEY_SIZE_16_BYTES)) { |
3245 | if (netif_msg_ifup(ugeth)) | 3245 | if (netif_msg_ifup(ugeth)) |
3246 | ugeth_err("%s: Invalid largest External Lookup Key Size.", | 3246 | ugeth_err("%s: Invalid largest External Lookup Key Size.", |
3247 | __FUNCTION__); | 3247 | __func__); |
3248 | ucc_geth_memclean(ugeth); | 3248 | ucc_geth_memclean(ugeth); |
3249 | return -EINVAL; | 3249 | return -EINVAL; |
3250 | } | 3250 | } |
@@ -3271,7 +3271,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3271 | ug_info->riscRx, 1)) != 0) { | 3271 | ug_info->riscRx, 1)) != 0) { |
3272 | if (netif_msg_ifup(ugeth)) | 3272 | if (netif_msg_ifup(ugeth)) |
3273 | ugeth_err("%s: Can not fill p_init_enet_param_shadow.", | 3273 | ugeth_err("%s: Can not fill p_init_enet_param_shadow.", |
3274 | __FUNCTION__); | 3274 | __func__); |
3275 | ucc_geth_memclean(ugeth); | 3275 | ucc_geth_memclean(ugeth); |
3276 | return ret_val; | 3276 | return ret_val; |
3277 | } | 3277 | } |
@@ -3287,7 +3287,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3287 | ug_info->riscTx, 0)) != 0) { | 3287 | ug_info->riscTx, 0)) != 0) { |
3288 | if (netif_msg_ifup(ugeth)) | 3288 | if (netif_msg_ifup(ugeth)) |
3289 | ugeth_err("%s: Can not fill p_init_enet_param_shadow.", | 3289 | ugeth_err("%s: Can not fill p_init_enet_param_shadow.", |
3290 | __FUNCTION__); | 3290 | __func__); |
3291 | ucc_geth_memclean(ugeth); | 3291 | ucc_geth_memclean(ugeth); |
3292 | return ret_val; | 3292 | return ret_val; |
3293 | } | 3293 | } |
@@ -3297,7 +3297,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3297 | if ((ret_val = rx_bd_buffer_set(ugeth, (u8) i)) != 0) { | 3297 | if ((ret_val = rx_bd_buffer_set(ugeth, (u8) i)) != 0) { |
3298 | if (netif_msg_ifup(ugeth)) | 3298 | if (netif_msg_ifup(ugeth)) |
3299 | ugeth_err("%s: Can not fill Rx bds with buffers.", | 3299 | ugeth_err("%s: Can not fill Rx bds with buffers.", |
3300 | __FUNCTION__); | 3300 | __func__); |
3301 | ucc_geth_memclean(ugeth); | 3301 | ucc_geth_memclean(ugeth); |
3302 | return ret_val; | 3302 | return ret_val; |
3303 | } | 3303 | } |
@@ -3309,7 +3309,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth) | |||
3309 | if (netif_msg_ifup(ugeth)) | 3309 | if (netif_msg_ifup(ugeth)) |
3310 | ugeth_err | 3310 | ugeth_err |
3311 | ("%s: Can not allocate DPRAM memory for p_init_enet_pram.", | 3311 | ("%s: Can not allocate DPRAM memory for p_init_enet_pram.", |
3312 | __FUNCTION__); | 3312 | __func__); |
3313 | ucc_geth_memclean(ugeth); | 3313 | ucc_geth_memclean(ugeth); |
3314 | return -ENOMEM; | 3314 | return -ENOMEM; |
3315 | } | 3315 | } |
@@ -3360,7 +3360,7 @@ static void ucc_geth_timeout(struct net_device *dev) | |||
3360 | { | 3360 | { |
3361 | struct ucc_geth_private *ugeth = netdev_priv(dev); | 3361 | struct ucc_geth_private *ugeth = netdev_priv(dev); |
3362 | 3362 | ||
3363 | ugeth_vdbg("%s: IN", __FUNCTION__); | 3363 | ugeth_vdbg("%s: IN", __func__); |
3364 | 3364 | ||
3365 | dev->stats.tx_errors++; | 3365 | dev->stats.tx_errors++; |
3366 | 3366 | ||
@@ -3386,7 +3386,7 @@ static int ucc_geth_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
3386 | u32 bd_status; | 3386 | u32 bd_status; |
3387 | u8 txQ = 0; | 3387 | u8 txQ = 0; |
3388 | 3388 | ||
3389 | ugeth_vdbg("%s: IN", __FUNCTION__); | 3389 | ugeth_vdbg("%s: IN", __func__); |
3390 | 3390 | ||
3391 | spin_lock_irq(&ugeth->lock); | 3391 | spin_lock_irq(&ugeth->lock); |
3392 | 3392 | ||
@@ -3459,7 +3459,7 @@ static int ucc_geth_rx(struct ucc_geth_private *ugeth, u8 rxQ, int rx_work_limit | |||
3459 | u8 *bdBuffer; | 3459 | u8 *bdBuffer; |
3460 | struct net_device *dev; | 3460 | struct net_device *dev; |
3461 | 3461 | ||
3462 | ugeth_vdbg("%s: IN", __FUNCTION__); | 3462 | ugeth_vdbg("%s: IN", __func__); |
3463 | 3463 | ||
3464 | dev = ugeth->dev; | 3464 | dev = ugeth->dev; |
3465 | 3465 | ||
@@ -3481,7 +3481,7 @@ static int ucc_geth_rx(struct ucc_geth_private *ugeth, u8 rxQ, int rx_work_limit | |||
3481 | (bd_status & R_ERRORS_FATAL)) { | 3481 | (bd_status & R_ERRORS_FATAL)) { |
3482 | if (netif_msg_rx_err(ugeth)) | 3482 | if (netif_msg_rx_err(ugeth)) |
3483 | ugeth_err("%s, %d: ERROR!!! skb - 0x%08x", | 3483 | ugeth_err("%s, %d: ERROR!!! skb - 0x%08x", |
3484 | __FUNCTION__, __LINE__, (u32) skb); | 3484 | __func__, __LINE__, (u32) skb); |
3485 | if (skb) | 3485 | if (skb) |
3486 | dev_kfree_skb_any(skb); | 3486 | dev_kfree_skb_any(skb); |
3487 | 3487 | ||
@@ -3507,7 +3507,7 @@ static int ucc_geth_rx(struct ucc_geth_private *ugeth, u8 rxQ, int rx_work_limit | |||
3507 | skb = get_new_skb(ugeth, bd); | 3507 | skb = get_new_skb(ugeth, bd); |
3508 | if (!skb) { | 3508 | if (!skb) { |
3509 | if (netif_msg_rx_err(ugeth)) | 3509 | if (netif_msg_rx_err(ugeth)) |
3510 | ugeth_warn("%s: No Rx Data Buffer", __FUNCTION__); | 3510 | ugeth_warn("%s: No Rx Data Buffer", __func__); |
3511 | dev->stats.rx_dropped++; | 3511 | dev->stats.rx_dropped++; |
3512 | break; | 3512 | break; |
3513 | } | 3513 | } |
@@ -3613,7 +3613,7 @@ static irqreturn_t ucc_geth_irq_handler(int irq, void *info) | |||
3613 | register u32 tx_mask; | 3613 | register u32 tx_mask; |
3614 | u8 i; | 3614 | u8 i; |
3615 | 3615 | ||
3616 | ugeth_vdbg("%s: IN", __FUNCTION__); | 3616 | ugeth_vdbg("%s: IN", __func__); |
3617 | 3617 | ||
3618 | uccf = ugeth->uccf; | 3618 | uccf = ugeth->uccf; |
3619 | ug_info = ugeth->ug_info; | 3619 | ug_info = ugeth->ug_info; |
@@ -3683,13 +3683,13 @@ static int ucc_geth_open(struct net_device *dev) | |||
3683 | struct ucc_geth_private *ugeth = netdev_priv(dev); | 3683 | struct ucc_geth_private *ugeth = netdev_priv(dev); |
3684 | int err; | 3684 | int err; |
3685 | 3685 | ||
3686 | ugeth_vdbg("%s: IN", __FUNCTION__); | 3686 | ugeth_vdbg("%s: IN", __func__); |
3687 | 3687 | ||
3688 | /* Test station address */ | 3688 | /* Test station address */ |
3689 | if (dev->dev_addr[0] & ENET_GROUP_ADDR) { | 3689 | if (dev->dev_addr[0] & ENET_GROUP_ADDR) { |
3690 | if (netif_msg_ifup(ugeth)) | 3690 | if (netif_msg_ifup(ugeth)) |
3691 | ugeth_err("%s: Multicast address used for station address" | 3691 | ugeth_err("%s: Multicast address used for station address" |
3692 | " - is this what you wanted?", __FUNCTION__); | 3692 | " - is this what you wanted?", __func__); |
3693 | return -EINVAL; | 3693 | return -EINVAL; |
3694 | } | 3694 | } |
3695 | 3695 | ||
@@ -3772,7 +3772,7 @@ static int ucc_geth_close(struct net_device *dev) | |||
3772 | { | 3772 | { |
3773 | struct ucc_geth_private *ugeth = netdev_priv(dev); | 3773 | struct ucc_geth_private *ugeth = netdev_priv(dev); |
3774 | 3774 | ||
3775 | ugeth_vdbg("%s: IN", __FUNCTION__); | 3775 | ugeth_vdbg("%s: IN", __func__); |
3776 | 3776 | ||
3777 | napi_disable(&ugeth->napi); | 3777 | napi_disable(&ugeth->napi); |
3778 | 3778 | ||
@@ -3840,7 +3840,7 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma | |||
3840 | PHY_INTERFACE_MODE_TBI, PHY_INTERFACE_MODE_RTBI, | 3840 | PHY_INTERFACE_MODE_TBI, PHY_INTERFACE_MODE_RTBI, |
3841 | }; | 3841 | }; |
3842 | 3842 | ||
3843 | ugeth_vdbg("%s: IN", __FUNCTION__); | 3843 | ugeth_vdbg("%s: IN", __func__); |
3844 | 3844 | ||
3845 | prop = of_get_property(np, "cell-index", NULL); | 3845 | prop = of_get_property(np, "cell-index", NULL); |
3846 | if (!prop) { | 3846 | if (!prop) { |
@@ -3857,7 +3857,7 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma | |||
3857 | if (ug_info == NULL) { | 3857 | if (ug_info == NULL) { |
3858 | if (netif_msg_probe(&debug)) | 3858 | if (netif_msg_probe(&debug)) |
3859 | ugeth_err("%s: [%d] Missing additional data!", | 3859 | ugeth_err("%s: [%d] Missing additional data!", |
3860 | __FUNCTION__, ucc_num); | 3860 | __func__, ucc_num); |
3861 | return -ENODEV; | 3861 | return -ENODEV; |
3862 | } | 3862 | } |
3863 | 3863 | ||
diff --git a/drivers/net/usb/mcs7830.c b/drivers/net/usb/mcs7830.c index ca9d00c1194e..b5143509e8be 100644 --- a/drivers/net/usb/mcs7830.c +++ b/drivers/net/usb/mcs7830.c | |||
@@ -118,7 +118,7 @@ static void mcs7830_async_cmd_callback(struct urb *urb) | |||
118 | 118 | ||
119 | if (urb->status < 0) | 119 | if (urb->status < 0) |
120 | printk(KERN_DEBUG "%s() failed with %d\n", | 120 | printk(KERN_DEBUG "%s() failed with %d\n", |
121 | __FUNCTION__, urb->status); | 121 | __func__, urb->status); |
122 | 122 | ||
123 | kfree(req); | 123 | kfree(req); |
124 | usb_free_urb(urb); | 124 | usb_free_urb(urb); |
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 8c19307e5040..38b90e7a7ed3 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c | |||
@@ -119,7 +119,7 @@ static void ctrl_callback(struct urb *urb) | |||
119 | default: | 119 | default: |
120 | if (netif_msg_drv(pegasus) && printk_ratelimit()) | 120 | if (netif_msg_drv(pegasus) && printk_ratelimit()) |
121 | dev_dbg(&pegasus->intf->dev, "%s, status %d\n", | 121 | dev_dbg(&pegasus->intf->dev, "%s, status %d\n", |
122 | __FUNCTION__, urb->status); | 122 | __func__, urb->status); |
123 | } | 123 | } |
124 | pegasus->flags &= ~ETH_REGS_CHANGED; | 124 | pegasus->flags &= ~ETH_REGS_CHANGED; |
125 | wake_up(&pegasus->ctrl_wait); | 125 | wake_up(&pegasus->ctrl_wait); |
@@ -136,7 +136,7 @@ static int get_registers(pegasus_t * pegasus, __u16 indx, __u16 size, | |||
136 | if (!buffer) { | 136 | if (!buffer) { |
137 | if (netif_msg_drv(pegasus)) | 137 | if (netif_msg_drv(pegasus)) |
138 | dev_warn(&pegasus->intf->dev, "out of memory in %s\n", | 138 | dev_warn(&pegasus->intf->dev, "out of memory in %s\n", |
139 | __FUNCTION__); | 139 | __func__); |
140 | return -ENOMEM; | 140 | return -ENOMEM; |
141 | } | 141 | } |
142 | add_wait_queue(&pegasus->ctrl_wait, &wait); | 142 | add_wait_queue(&pegasus->ctrl_wait, &wait); |
@@ -224,7 +224,7 @@ static int set_registers(pegasus_t * pegasus, __u16 indx, __u16 size, | |||
224 | netif_device_detach(pegasus->net); | 224 | netif_device_detach(pegasus->net); |
225 | if (netif_msg_drv(pegasus)) | 225 | if (netif_msg_drv(pegasus)) |
226 | dev_err(&pegasus->intf->dev, "%s, status %d\n", | 226 | dev_err(&pegasus->intf->dev, "%s, status %d\n", |
227 | __FUNCTION__, ret); | 227 | __func__, ret); |
228 | goto out; | 228 | goto out; |
229 | } | 229 | } |
230 | 230 | ||
@@ -246,7 +246,7 @@ static int set_register(pegasus_t * pegasus, __u16 indx, __u8 data) | |||
246 | if (!tmp) { | 246 | if (!tmp) { |
247 | if (netif_msg_drv(pegasus)) | 247 | if (netif_msg_drv(pegasus)) |
248 | dev_warn(&pegasus->intf->dev, "out of memory in %s\n", | 248 | dev_warn(&pegasus->intf->dev, "out of memory in %s\n", |
249 | __FUNCTION__); | 249 | __func__); |
250 | return -ENOMEM; | 250 | return -ENOMEM; |
251 | } | 251 | } |
252 | memcpy(tmp, &data, 1); | 252 | memcpy(tmp, &data, 1); |
@@ -277,7 +277,7 @@ static int set_register(pegasus_t * pegasus, __u16 indx, __u8 data) | |||
277 | netif_device_detach(pegasus->net); | 277 | netif_device_detach(pegasus->net); |
278 | if (netif_msg_drv(pegasus) && printk_ratelimit()) | 278 | if (netif_msg_drv(pegasus) && printk_ratelimit()) |
279 | dev_err(&pegasus->intf->dev, "%s, status %d\n", | 279 | dev_err(&pegasus->intf->dev, "%s, status %d\n", |
280 | __FUNCTION__, ret); | 280 | __func__, ret); |
281 | goto out; | 281 | goto out; |
282 | } | 282 | } |
283 | 283 | ||
@@ -310,7 +310,7 @@ static int update_eth_regs_async(pegasus_t * pegasus) | |||
310 | netif_device_detach(pegasus->net); | 310 | netif_device_detach(pegasus->net); |
311 | if (netif_msg_drv(pegasus)) | 311 | if (netif_msg_drv(pegasus)) |
312 | dev_err(&pegasus->intf->dev, "%s, status %d\n", | 312 | dev_err(&pegasus->intf->dev, "%s, status %d\n", |
313 | __FUNCTION__, ret); | 313 | __func__, ret); |
314 | } | 314 | } |
315 | 315 | ||
316 | return ret; | 316 | return ret; |
@@ -341,7 +341,7 @@ static int read_mii_word(pegasus_t * pegasus, __u8 phy, __u8 indx, __u16 * regd) | |||
341 | } | 341 | } |
342 | fail: | 342 | fail: |
343 | if (netif_msg_drv(pegasus)) | 343 | if (netif_msg_drv(pegasus)) |
344 | dev_warn(&pegasus->intf->dev, "%s failed\n", __FUNCTION__); | 344 | dev_warn(&pegasus->intf->dev, "%s failed\n", __func__); |
345 | 345 | ||
346 | return ret; | 346 | return ret; |
347 | } | 347 | } |
@@ -378,7 +378,7 @@ static int write_mii_word(pegasus_t * pegasus, __u8 phy, __u8 indx, __u16 regd) | |||
378 | 378 | ||
379 | fail: | 379 | fail: |
380 | if (netif_msg_drv(pegasus)) | 380 | if (netif_msg_drv(pegasus)) |
381 | dev_warn(&pegasus->intf->dev, "%s failed\n", __FUNCTION__); | 381 | dev_warn(&pegasus->intf->dev, "%s failed\n", __func__); |
382 | return -ETIMEDOUT; | 382 | return -ETIMEDOUT; |
383 | } | 383 | } |
384 | 384 | ||
@@ -415,7 +415,7 @@ static int read_eprom_word(pegasus_t * pegasus, __u8 index, __u16 * retdata) | |||
415 | 415 | ||
416 | fail: | 416 | fail: |
417 | if (netif_msg_drv(pegasus)) | 417 | if (netif_msg_drv(pegasus)) |
418 | dev_warn(&pegasus->intf->dev, "%s failed\n", __FUNCTION__); | 418 | dev_warn(&pegasus->intf->dev, "%s failed\n", __func__); |
419 | return -ETIMEDOUT; | 419 | return -ETIMEDOUT; |
420 | } | 420 | } |
421 | 421 | ||
@@ -463,7 +463,7 @@ static int write_eprom_word(pegasus_t * pegasus, __u8 index, __u16 data) | |||
463 | return ret; | 463 | return ret; |
464 | fail: | 464 | fail: |
465 | if (netif_msg_drv(pegasus)) | 465 | if (netif_msg_drv(pegasus)) |
466 | dev_warn(&pegasus->intf->dev, "%s failed\n", __FUNCTION__); | 466 | dev_warn(&pegasus->intf->dev, "%s failed\n", __func__); |
467 | return -ETIMEDOUT; | 467 | return -ETIMEDOUT; |
468 | } | 468 | } |
469 | #endif /* PEGASUS_WRITE_EEPROM */ | 469 | #endif /* PEGASUS_WRITE_EEPROM */ |
diff --git a/drivers/net/via-velocity.h b/drivers/net/via-velocity.h index 1b95b04c9257..29a33090d3d4 100644 --- a/drivers/net/via-velocity.h +++ b/drivers/net/via-velocity.h | |||
@@ -1381,7 +1381,7 @@ enum velocity_msg_level { | |||
1381 | #define ASSERT(x) { \ | 1381 | #define ASSERT(x) { \ |
1382 | if (!(x)) { \ | 1382 | if (!(x)) { \ |
1383 | printk(KERN_ERR "assertion %s failed: file %s line %d\n", #x,\ | 1383 | printk(KERN_ERR "assertion %s failed: file %s line %d\n", #x,\ |
1384 | __FUNCTION__, __LINE__);\ | 1384 | __func__, __LINE__);\ |
1385 | BUG(); \ | 1385 | BUG(); \ |
1386 | }\ | 1386 | }\ |
1387 | } | 1387 | } |
diff --git a/drivers/net/wan/cycx_drv.c b/drivers/net/wan/cycx_drv.c index d14e6678deed..a5ddc6c8963e 100644 --- a/drivers/net/wan/cycx_drv.c +++ b/drivers/net/wan/cycx_drv.c | |||
@@ -407,7 +407,7 @@ static int load_cyc2x(struct cycx_hw *hw, struct cycx_firmware *cfm, u32 len) | |||
407 | if (cfm->version != CFM_VERSION) { | 407 | if (cfm->version != CFM_VERSION) { |
408 | printk(KERN_ERR "%s:%s: firmware format %u rejected! " | 408 | printk(KERN_ERR "%s:%s: firmware format %u rejected! " |
409 | "Expecting %u.\n", | 409 | "Expecting %u.\n", |
410 | modname, __FUNCTION__, cfm->version, CFM_VERSION); | 410 | modname, __func__, cfm->version, CFM_VERSION); |
411 | return -EINVAL; | 411 | return -EINVAL; |
412 | } | 412 | } |
413 | 413 | ||
@@ -420,7 +420,7 @@ static int load_cyc2x(struct cycx_hw *hw, struct cycx_firmware *cfm, u32 len) | |||
420 | */ | 420 | */ |
421 | if (cksum != cfm->checksum) { | 421 | if (cksum != cfm->checksum) { |
422 | printk(KERN_ERR "%s:%s: firmware corrupted!\n", | 422 | printk(KERN_ERR "%s:%s: firmware corrupted!\n", |
423 | modname, __FUNCTION__); | 423 | modname, __func__); |
424 | printk(KERN_ERR " cdsize = 0x%x (expected 0x%lx)\n", | 424 | printk(KERN_ERR " cdsize = 0x%x (expected 0x%lx)\n", |
425 | len - (int)sizeof(struct cycx_firmware) - 1, | 425 | len - (int)sizeof(struct cycx_firmware) - 1, |
426 | cfm->info.codesize); | 426 | cfm->info.codesize); |
@@ -432,7 +432,7 @@ static int load_cyc2x(struct cycx_hw *hw, struct cycx_firmware *cfm, u32 len) | |||
432 | /* If everything is ok, set reset, data and code pointers */ | 432 | /* If everything is ok, set reset, data and code pointers */ |
433 | img_hdr = (struct cycx_fw_header *)&cfm->image; | 433 | img_hdr = (struct cycx_fw_header *)&cfm->image; |
434 | #ifdef FIRMWARE_DEBUG | 434 | #ifdef FIRMWARE_DEBUG |
435 | printk(KERN_INFO "%s:%s: image sizes\n", __FUNCTION__, modname); | 435 | printk(KERN_INFO "%s:%s: image sizes\n", __func__, modname); |
436 | printk(KERN_INFO " reset=%lu\n", img_hdr->reset_size); | 436 | printk(KERN_INFO " reset=%lu\n", img_hdr->reset_size); |
437 | printk(KERN_INFO " data=%lu\n", img_hdr->data_size); | 437 | printk(KERN_INFO " data=%lu\n", img_hdr->data_size); |
438 | printk(KERN_INFO " code=%lu\n", img_hdr->code_size); | 438 | printk(KERN_INFO " code=%lu\n", img_hdr->code_size); |
diff --git a/drivers/net/wan/cycx_x25.c b/drivers/net/wan/cycx_x25.c index d3b28b01b9f9..5a7303dc0965 100644 --- a/drivers/net/wan/cycx_x25.c +++ b/drivers/net/wan/cycx_x25.c | |||
@@ -874,7 +874,7 @@ static void cycx_x25_irq_connect(struct cycx_device *card, | |||
874 | nibble_to_byte(d + (sizeloc >> 1), rem, sizerem, sizeloc & 1); | 874 | nibble_to_byte(d + (sizeloc >> 1), rem, sizerem, sizeloc & 1); |
875 | 875 | ||
876 | dprintk(1, KERN_INFO "%s:lcn=%d, local=%s, remote=%s\n", | 876 | dprintk(1, KERN_INFO "%s:lcn=%d, local=%s, remote=%s\n", |
877 | __FUNCTION__, lcn, loc, rem); | 877 | __func__, lcn, loc, rem); |
878 | 878 | ||
879 | dev = cycx_x25_get_dev_by_dte_addr(wandev, rem); | 879 | dev = cycx_x25_get_dev_by_dte_addr(wandev, rem); |
880 | if (!dev) { | 880 | if (!dev) { |
@@ -902,7 +902,7 @@ static void cycx_x25_irq_connect_confirm(struct cycx_device *card, | |||
902 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); | 902 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); |
903 | cycx_peek(&card->hw, cmd->buf + 1, &key, sizeof(key)); | 903 | cycx_peek(&card->hw, cmd->buf + 1, &key, sizeof(key)); |
904 | dprintk(1, KERN_INFO "%s: %s:lcn=%d, key=%d\n", | 904 | dprintk(1, KERN_INFO "%s: %s:lcn=%d, key=%d\n", |
905 | card->devname, __FUNCTION__, lcn, key); | 905 | card->devname, __func__, lcn, key); |
906 | 906 | ||
907 | dev = cycx_x25_get_dev_by_lcn(wandev, -key); | 907 | dev = cycx_x25_get_dev_by_lcn(wandev, -key); |
908 | if (!dev) { | 908 | if (!dev) { |
@@ -929,7 +929,7 @@ static void cycx_x25_irq_disconnect_confirm(struct cycx_device *card, | |||
929 | 929 | ||
930 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); | 930 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); |
931 | dprintk(1, KERN_INFO "%s: %s:lcn=%d\n", | 931 | dprintk(1, KERN_INFO "%s: %s:lcn=%d\n", |
932 | card->devname, __FUNCTION__, lcn); | 932 | card->devname, __func__, lcn); |
933 | dev = cycx_x25_get_dev_by_lcn(wandev, lcn); | 933 | dev = cycx_x25_get_dev_by_lcn(wandev, lcn); |
934 | if (!dev) { | 934 | if (!dev) { |
935 | /* Invalid channel, discard packet */ | 935 | /* Invalid channel, discard packet */ |
@@ -950,7 +950,7 @@ static void cycx_x25_irq_disconnect(struct cycx_device *card, | |||
950 | u8 lcn; | 950 | u8 lcn; |
951 | 951 | ||
952 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); | 952 | cycx_peek(&card->hw, cmd->buf, &lcn, sizeof(lcn)); |
953 | dprintk(1, KERN_INFO "%s:lcn=%d\n", __FUNCTION__, lcn); | 953 | dprintk(1, KERN_INFO "%s:lcn=%d\n", __func__, lcn); |
954 | 954 | ||
955 | dev = cycx_x25_get_dev_by_lcn(wandev, lcn); | 955 | dev = cycx_x25_get_dev_by_lcn(wandev, lcn); |
956 | if (dev) { | 956 | if (dev) { |
@@ -1381,7 +1381,7 @@ static void cycx_x25_chan_timer(unsigned long d) | |||
1381 | cycx_x25_chan_disconnect(dev); | 1381 | cycx_x25_chan_disconnect(dev); |
1382 | else | 1382 | else |
1383 | printk(KERN_ERR "%s: %s for svc (%s) not connected!\n", | 1383 | printk(KERN_ERR "%s: %s for svc (%s) not connected!\n", |
1384 | chan->card->devname, __FUNCTION__, dev->name); | 1384 | chan->card->devname, __func__, dev->name); |
1385 | } | 1385 | } |
1386 | 1386 | ||
1387 | /* Set logical channel state. */ | 1387 | /* Set logical channel state. */ |
@@ -1485,7 +1485,7 @@ static void cycx_x25_chan_send_event(struct net_device *dev, u8 event) | |||
1485 | unsigned char *ptr; | 1485 | unsigned char *ptr; |
1486 | 1486 | ||
1487 | if ((skb = dev_alloc_skb(1)) == NULL) { | 1487 | if ((skb = dev_alloc_skb(1)) == NULL) { |
1488 | printk(KERN_ERR "%s: out of memory\n", __FUNCTION__); | 1488 | printk(KERN_ERR "%s: out of memory\n", __func__); |
1489 | return; | 1489 | return; |
1490 | } | 1490 | } |
1491 | 1491 | ||
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index f5d55ad02267..5f1ccb2b08b1 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c | |||
@@ -647,7 +647,7 @@ static inline void dscc4_rx_skb(struct dscc4_dev_priv *dpriv, | |||
647 | 647 | ||
648 | skb = dpriv->rx_skbuff[dpriv->rx_current++%RX_RING_SIZE]; | 648 | skb = dpriv->rx_skbuff[dpriv->rx_current++%RX_RING_SIZE]; |
649 | if (!skb) { | 649 | if (!skb) { |
650 | printk(KERN_DEBUG "%s: skb=0 (%s)\n", dev->name, __FUNCTION__); | 650 | printk(KERN_DEBUG "%s: skb=0 (%s)\n", dev->name, __func__); |
651 | goto refill; | 651 | goto refill; |
652 | } | 652 | } |
653 | pkt_len = TO_SIZE(le32_to_cpu(rx_fd->state2)); | 653 | pkt_len = TO_SIZE(le32_to_cpu(rx_fd->state2)); |
diff --git a/drivers/net/wan/pc300_tty.c b/drivers/net/wan/pc300_tty.c index 4518d0aa2480..4917a94943bd 100644 --- a/drivers/net/wan/pc300_tty.c +++ b/drivers/net/wan/pc300_tty.c | |||
@@ -548,7 +548,7 @@ static int pc300_tiocmset(struct tty_struct *tty, struct file *file, | |||
548 | { | 548 | { |
549 | st_cpc_tty_area *cpc_tty; | 549 | st_cpc_tty_area *cpc_tty; |
550 | 550 | ||
551 | CPC_TTY_DBG("%s: set:%x clear:%x\n", __FUNCTION__, set, clear); | 551 | CPC_TTY_DBG("%s: set:%x clear:%x\n", __func__, set, clear); |
552 | 552 | ||
553 | if (!tty || !tty->driver_data ) { | 553 | if (!tty || !tty->driver_data ) { |
554 | CPC_TTY_DBG("hdlcX-tty: no TTY to chars in buffer\n"); | 554 | CPC_TTY_DBG("hdlcX-tty: no TTY to chars in buffer\n"); |