diff options
Diffstat (limited to 'net/irda/irlan')
-rw-r--r-- | net/irda/irlan/irlan_client.c | 48 | ||||
-rw-r--r-- | net/irda/irlan/irlan_client_event.c | 64 | ||||
-rw-r--r-- | net/irda/irlan/irlan_common.c | 72 | ||||
-rw-r--r-- | net/irda/irlan/irlan_eth.c | 18 | ||||
-rw-r--r-- | net/irda/irlan/irlan_event.c | 4 | ||||
-rw-r--r-- | net/irda/irlan/irlan_filter.c | 4 | ||||
-rw-r--r-- | net/irda/irlan/irlan_provider.c | 30 | ||||
-rw-r--r-- | net/irda/irlan/irlan_provider_event.c | 16 |
8 files changed, 128 insertions, 128 deletions
diff --git a/net/irda/irlan/irlan_client.c b/net/irda/irlan/irlan_client.c index fff52d57a200..6be1ec26b30c 100644 --- a/net/irda/irlan/irlan_client.c +++ b/net/irda/irlan/irlan_client.c | |||
@@ -72,7 +72,7 @@ static void irlan_client_kick_timer_expired(void *data) | |||
72 | { | 72 | { |
73 | struct irlan_cb *self = (struct irlan_cb *) data; | 73 | struct irlan_cb *self = (struct irlan_cb *) data; |
74 | 74 | ||
75 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 75 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
76 | 76 | ||
77 | IRDA_ASSERT(self != NULL, return;); | 77 | IRDA_ASSERT(self != NULL, return;); |
78 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 78 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -91,7 +91,7 @@ static void irlan_client_kick_timer_expired(void *data) | |||
91 | 91 | ||
92 | static void irlan_client_start_kick_timer(struct irlan_cb *self, int timeout) | 92 | static void irlan_client_start_kick_timer(struct irlan_cb *self, int timeout) |
93 | { | 93 | { |
94 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 94 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
95 | 95 | ||
96 | irda_start_timer(&self->client.kick_timer, timeout, (void *) self, | 96 | irda_start_timer(&self->client.kick_timer, timeout, (void *) self, |
97 | irlan_client_kick_timer_expired); | 97 | irlan_client_kick_timer_expired); |
@@ -105,7 +105,7 @@ static void irlan_client_start_kick_timer(struct irlan_cb *self, int timeout) | |||
105 | */ | 105 | */ |
106 | void irlan_client_wakeup(struct irlan_cb *self, __u32 saddr, __u32 daddr) | 106 | void irlan_client_wakeup(struct irlan_cb *self, __u32 saddr, __u32 daddr) |
107 | { | 107 | { |
108 | IRDA_DEBUG(1, "%s()\n", __FUNCTION__ ); | 108 | IRDA_DEBUG(1, "%s()\n", __func__ ); |
109 | 109 | ||
110 | IRDA_ASSERT(self != NULL, return;); | 110 | IRDA_ASSERT(self != NULL, return;); |
111 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 111 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -117,7 +117,7 @@ void irlan_client_wakeup(struct irlan_cb *self, __u32 saddr, __u32 daddr) | |||
117 | if ((self->client.state != IRLAN_IDLE) || | 117 | if ((self->client.state != IRLAN_IDLE) || |
118 | (self->provider.access_type == ACCESS_DIRECT)) | 118 | (self->provider.access_type == ACCESS_DIRECT)) |
119 | { | 119 | { |
120 | IRDA_DEBUG(0, "%s(), already awake!\n", __FUNCTION__ ); | 120 | IRDA_DEBUG(0, "%s(), already awake!\n", __func__ ); |
121 | return; | 121 | return; |
122 | } | 122 | } |
123 | 123 | ||
@@ -126,7 +126,7 @@ void irlan_client_wakeup(struct irlan_cb *self, __u32 saddr, __u32 daddr) | |||
126 | self->daddr = daddr; | 126 | self->daddr = daddr; |
127 | 127 | ||
128 | if (self->disconnect_reason == LM_USER_REQUEST) { | 128 | if (self->disconnect_reason == LM_USER_REQUEST) { |
129 | IRDA_DEBUG(0, "%s(), still stopped by user\n", __FUNCTION__ ); | 129 | IRDA_DEBUG(0, "%s(), still stopped by user\n", __func__ ); |
130 | return; | 130 | return; |
131 | } | 131 | } |
132 | 132 | ||
@@ -153,7 +153,7 @@ void irlan_client_discovery_indication(discinfo_t *discovery, | |||
153 | struct irlan_cb *self; | 153 | struct irlan_cb *self; |
154 | __u32 saddr, daddr; | 154 | __u32 saddr, daddr; |
155 | 155 | ||
156 | IRDA_DEBUG(1, "%s()\n", __FUNCTION__ ); | 156 | IRDA_DEBUG(1, "%s()\n", __func__ ); |
157 | 157 | ||
158 | IRDA_ASSERT(discovery != NULL, return;); | 158 | IRDA_ASSERT(discovery != NULL, return;); |
159 | 159 | ||
@@ -175,7 +175,7 @@ void irlan_client_discovery_indication(discinfo_t *discovery, | |||
175 | if (self) { | 175 | if (self) { |
176 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, goto out;); | 176 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, goto out;); |
177 | 177 | ||
178 | IRDA_DEBUG(1, "%s(), Found instance (%08x)!\n", __FUNCTION__ , | 178 | IRDA_DEBUG(1, "%s(), Found instance (%08x)!\n", __func__ , |
179 | daddr); | 179 | daddr); |
180 | 180 | ||
181 | irlan_client_wakeup(self, saddr, daddr); | 181 | irlan_client_wakeup(self, saddr, daddr); |
@@ -195,7 +195,7 @@ static int irlan_client_ctrl_data_indication(void *instance, void *sap, | |||
195 | { | 195 | { |
196 | struct irlan_cb *self; | 196 | struct irlan_cb *self; |
197 | 197 | ||
198 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 198 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
199 | 199 | ||
200 | self = (struct irlan_cb *) instance; | 200 | self = (struct irlan_cb *) instance; |
201 | 201 | ||
@@ -206,7 +206,7 @@ static int irlan_client_ctrl_data_indication(void *instance, void *sap, | |||
206 | irlan_do_client_event(self, IRLAN_DATA_INDICATION, skb); | 206 | irlan_do_client_event(self, IRLAN_DATA_INDICATION, skb); |
207 | 207 | ||
208 | /* Ready for a new command */ | 208 | /* Ready for a new command */ |
209 | IRDA_DEBUG(2, "%s(), clearing tx_busy\n", __FUNCTION__ ); | 209 | IRDA_DEBUG(2, "%s(), clearing tx_busy\n", __func__ ); |
210 | self->client.tx_busy = FALSE; | 210 | self->client.tx_busy = FALSE; |
211 | 211 | ||
212 | /* Check if we have some queued commands waiting to be sent */ | 212 | /* Check if we have some queued commands waiting to be sent */ |
@@ -223,7 +223,7 @@ static void irlan_client_ctrl_disconnect_indication(void *instance, void *sap, | |||
223 | struct tsap_cb *tsap; | 223 | struct tsap_cb *tsap; |
224 | struct sk_buff *skb; | 224 | struct sk_buff *skb; |
225 | 225 | ||
226 | IRDA_DEBUG(4, "%s(), reason=%d\n", __FUNCTION__ , reason); | 226 | IRDA_DEBUG(4, "%s(), reason=%d\n", __func__ , reason); |
227 | 227 | ||
228 | self = (struct irlan_cb *) instance; | 228 | self = (struct irlan_cb *) instance; |
229 | tsap = (struct tsap_cb *) sap; | 229 | tsap = (struct tsap_cb *) sap; |
@@ -255,7 +255,7 @@ static void irlan_client_open_ctrl_tsap(struct irlan_cb *self) | |||
255 | struct tsap_cb *tsap; | 255 | struct tsap_cb *tsap; |
256 | notify_t notify; | 256 | notify_t notify; |
257 | 257 | ||
258 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 258 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
259 | 259 | ||
260 | IRDA_ASSERT(self != NULL, return;); | 260 | IRDA_ASSERT(self != NULL, return;); |
261 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 261 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -275,7 +275,7 @@ static void irlan_client_open_ctrl_tsap(struct irlan_cb *self) | |||
275 | 275 | ||
276 | tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, ¬ify); | 276 | tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, ¬ify); |
277 | if (!tsap) { | 277 | if (!tsap) { |
278 | IRDA_DEBUG(2, "%s(), Got no tsap!\n", __FUNCTION__ ); | 278 | IRDA_DEBUG(2, "%s(), Got no tsap!\n", __func__ ); |
279 | return; | 279 | return; |
280 | } | 280 | } |
281 | self->client.tsap_ctrl = tsap; | 281 | self->client.tsap_ctrl = tsap; |
@@ -295,7 +295,7 @@ static void irlan_client_ctrl_connect_confirm(void *instance, void *sap, | |||
295 | { | 295 | { |
296 | struct irlan_cb *self; | 296 | struct irlan_cb *self; |
297 | 297 | ||
298 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 298 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
299 | 299 | ||
300 | self = (struct irlan_cb *) instance; | 300 | self = (struct irlan_cb *) instance; |
301 | 301 | ||
@@ -374,13 +374,13 @@ void irlan_client_parse_response(struct irlan_cb *self, struct sk_buff *skb) | |||
374 | 374 | ||
375 | IRDA_ASSERT(skb != NULL, return;); | 375 | IRDA_ASSERT(skb != NULL, return;); |
376 | 376 | ||
377 | IRDA_DEBUG(4, "%s() skb->len=%d\n", __FUNCTION__ , (int) skb->len); | 377 | IRDA_DEBUG(4, "%s() skb->len=%d\n", __func__ , (int) skb->len); |
378 | 378 | ||
379 | IRDA_ASSERT(self != NULL, return;); | 379 | IRDA_ASSERT(self != NULL, return;); |
380 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 380 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
381 | 381 | ||
382 | if (!skb) { | 382 | if (!skb) { |
383 | IRDA_ERROR("%s(), Got NULL skb!\n", __FUNCTION__); | 383 | IRDA_ERROR("%s(), Got NULL skb!\n", __func__); |
384 | return; | 384 | return; |
385 | } | 385 | } |
386 | frame = skb->data; | 386 | frame = skb->data; |
@@ -405,7 +405,7 @@ void irlan_client_parse_response(struct irlan_cb *self, struct sk_buff *skb) | |||
405 | /* How many parameters? */ | 405 | /* How many parameters? */ |
406 | count = frame[1]; | 406 | count = frame[1]; |
407 | 407 | ||
408 | IRDA_DEBUG(4, "%s(), got %d parameters\n", __FUNCTION__ , count); | 408 | IRDA_DEBUG(4, "%s(), got %d parameters\n", __func__ , count); |
409 | 409 | ||
410 | ptr = frame+2; | 410 | ptr = frame+2; |
411 | 411 | ||
@@ -413,7 +413,7 @@ void irlan_client_parse_response(struct irlan_cb *self, struct sk_buff *skb) | |||
413 | for (i=0; i<count;i++) { | 413 | for (i=0; i<count;i++) { |
414 | ret = irlan_extract_param(ptr, name, value, &val_len); | 414 | ret = irlan_extract_param(ptr, name, value, &val_len); |
415 | if (ret < 0) { | 415 | if (ret < 0) { |
416 | IRDA_DEBUG(2, "%s(), IrLAN, Error!\n", __FUNCTION__ ); | 416 | IRDA_DEBUG(2, "%s(), IrLAN, Error!\n", __func__ ); |
417 | break; | 417 | break; |
418 | } | 418 | } |
419 | ptr += ret; | 419 | ptr += ret; |
@@ -438,7 +438,7 @@ static void irlan_check_response_param(struct irlan_cb *self, char *param, | |||
438 | int i; | 438 | int i; |
439 | DECLARE_MAC_BUF(mac); | 439 | DECLARE_MAC_BUF(mac); |
440 | 440 | ||
441 | IRDA_DEBUG(4, "%s(), parm=%s\n", __FUNCTION__ , param); | 441 | IRDA_DEBUG(4, "%s(), parm=%s\n", __func__ , param); |
442 | 442 | ||
443 | IRDA_ASSERT(self != NULL, return;); | 443 | IRDA_ASSERT(self != NULL, return;); |
444 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 444 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -476,7 +476,7 @@ static void irlan_check_response_param(struct irlan_cb *self, char *param, | |||
476 | else if (strcmp(value, "HOSTED") == 0) | 476 | else if (strcmp(value, "HOSTED") == 0) |
477 | self->client.access_type = ACCESS_HOSTED; | 477 | self->client.access_type = ACCESS_HOSTED; |
478 | else { | 478 | else { |
479 | IRDA_DEBUG(2, "%s(), unknown access type!\n", __FUNCTION__ ); | 479 | IRDA_DEBUG(2, "%s(), unknown access type!\n", __func__ ); |
480 | } | 480 | } |
481 | } | 481 | } |
482 | /* IRLAN version */ | 482 | /* IRLAN version */ |
@@ -498,14 +498,14 @@ static void irlan_check_response_param(struct irlan_cb *self, char *param, | |||
498 | memcpy(&tmp_cpu, value, 2); /* Align value */ | 498 | memcpy(&tmp_cpu, value, 2); /* Align value */ |
499 | le16_to_cpus(&tmp_cpu); /* Convert to host order */ | 499 | le16_to_cpus(&tmp_cpu); /* Convert to host order */ |
500 | self->client.recv_arb_val = tmp_cpu; | 500 | self->client.recv_arb_val = tmp_cpu; |
501 | IRDA_DEBUG(2, "%s(), receive arb val=%d\n", __FUNCTION__ , | 501 | IRDA_DEBUG(2, "%s(), receive arb val=%d\n", __func__ , |
502 | self->client.recv_arb_val); | 502 | self->client.recv_arb_val); |
503 | } | 503 | } |
504 | if (strcmp(param, "MAX_FRAME") == 0) { | 504 | if (strcmp(param, "MAX_FRAME") == 0) { |
505 | memcpy(&tmp_cpu, value, 2); /* Align value */ | 505 | memcpy(&tmp_cpu, value, 2); /* Align value */ |
506 | le16_to_cpus(&tmp_cpu); /* Convert to host order */ | 506 | le16_to_cpus(&tmp_cpu); /* Convert to host order */ |
507 | self->client.max_frame = tmp_cpu; | 507 | self->client.max_frame = tmp_cpu; |
508 | IRDA_DEBUG(4, "%s(), max frame=%d\n", __FUNCTION__ , | 508 | IRDA_DEBUG(4, "%s(), max frame=%d\n", __func__ , |
509 | self->client.max_frame); | 509 | self->client.max_frame); |
510 | } | 510 | } |
511 | 511 | ||
@@ -539,7 +539,7 @@ void irlan_client_get_value_confirm(int result, __u16 obj_id, | |||
539 | { | 539 | { |
540 | struct irlan_cb *self; | 540 | struct irlan_cb *self; |
541 | 541 | ||
542 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 542 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
543 | 543 | ||
544 | IRDA_ASSERT(priv != NULL, return;); | 544 | IRDA_ASSERT(priv != NULL, return;); |
545 | 545 | ||
@@ -552,7 +552,7 @@ void irlan_client_get_value_confirm(int result, __u16 obj_id, | |||
552 | 552 | ||
553 | /* Check if request succeeded */ | 553 | /* Check if request succeeded */ |
554 | if (result != IAS_SUCCESS) { | 554 | if (result != IAS_SUCCESS) { |
555 | IRDA_DEBUG(2, "%s(), got NULL value!\n", __FUNCTION__ ); | 555 | IRDA_DEBUG(2, "%s(), got NULL value!\n", __func__ ); |
556 | irlan_do_client_event(self, IRLAN_IAS_PROVIDER_NOT_AVAIL, | 556 | irlan_do_client_event(self, IRLAN_IAS_PROVIDER_NOT_AVAIL, |
557 | NULL); | 557 | NULL); |
558 | return; | 558 | return; |
@@ -570,7 +570,7 @@ void irlan_client_get_value_confirm(int result, __u16 obj_id, | |||
570 | irias_delete_value(value); | 570 | irias_delete_value(value); |
571 | break; | 571 | break; |
572 | default: | 572 | default: |
573 | IRDA_DEBUG(2, "%s(), unknown type!\n", __FUNCTION__ ); | 573 | IRDA_DEBUG(2, "%s(), unknown type!\n", __func__ ); |
574 | break; | 574 | break; |
575 | } | 575 | } |
576 | irlan_do_client_event(self, IRLAN_IAS_PROVIDER_NOT_AVAIL, NULL); | 576 | irlan_do_client_event(self, IRLAN_IAS_PROVIDER_NOT_AVAIL, NULL); |
diff --git a/net/irda/irlan/irlan_client_event.c b/net/irda/irlan/irlan_client_event.c index 6afcee59e906..8d5a8ebc444f 100644 --- a/net/irda/irlan/irlan_client_event.c +++ b/net/irda/irlan/irlan_client_event.c | |||
@@ -92,7 +92,7 @@ void irlan_do_client_event(struct irlan_cb *self, IRLAN_EVENT event, | |||
92 | static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | 92 | static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, |
93 | struct sk_buff *skb) | 93 | struct sk_buff *skb) |
94 | { | 94 | { |
95 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 95 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
96 | 96 | ||
97 | IRDA_ASSERT(self != NULL, return -1;); | 97 | IRDA_ASSERT(self != NULL, return -1;); |
98 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); | 98 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); |
@@ -101,7 +101,7 @@ static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | |||
101 | case IRLAN_DISCOVERY_INDICATION: | 101 | case IRLAN_DISCOVERY_INDICATION: |
102 | if (self->client.iriap) { | 102 | if (self->client.iriap) { |
103 | IRDA_WARNING("%s(), busy with a previous query\n", | 103 | IRDA_WARNING("%s(), busy with a previous query\n", |
104 | __FUNCTION__); | 104 | __func__); |
105 | return -EBUSY; | 105 | return -EBUSY; |
106 | } | 106 | } |
107 | 107 | ||
@@ -114,10 +114,10 @@ static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | |||
114 | "IrLAN", "IrDA:TinyTP:LsapSel"); | 114 | "IrLAN", "IrDA:TinyTP:LsapSel"); |
115 | break; | 115 | break; |
116 | case IRLAN_WATCHDOG_TIMEOUT: | 116 | case IRLAN_WATCHDOG_TIMEOUT: |
117 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 117 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
118 | break; | 118 | break; |
119 | default: | 119 | default: |
120 | IRDA_DEBUG(4, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 120 | IRDA_DEBUG(4, "%s(), Unknown event %d\n", __func__ , event); |
121 | break; | 121 | break; |
122 | } | 122 | } |
123 | if (skb) | 123 | if (skb) |
@@ -136,7 +136,7 @@ static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | |||
136 | static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, | 136 | static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, |
137 | struct sk_buff *skb) | 137 | struct sk_buff *skb) |
138 | { | 138 | { |
139 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 139 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
140 | 140 | ||
141 | IRDA_ASSERT(self != NULL, return -1;); | 141 | IRDA_ASSERT(self != NULL, return -1;); |
142 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); | 142 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); |
@@ -154,7 +154,7 @@ static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, | |||
154 | irlan_next_client_state(self, IRLAN_CONN); | 154 | irlan_next_client_state(self, IRLAN_CONN); |
155 | break; | 155 | break; |
156 | case IRLAN_IAS_PROVIDER_NOT_AVAIL: | 156 | case IRLAN_IAS_PROVIDER_NOT_AVAIL: |
157 | IRDA_DEBUG(2, "%s(), IAS_PROVIDER_NOT_AVAIL\n", __FUNCTION__ ); | 157 | IRDA_DEBUG(2, "%s(), IAS_PROVIDER_NOT_AVAIL\n", __func__ ); |
158 | irlan_next_client_state(self, IRLAN_IDLE); | 158 | irlan_next_client_state(self, IRLAN_IDLE); |
159 | 159 | ||
160 | /* Give the client a kick! */ | 160 | /* Give the client a kick! */ |
@@ -167,10 +167,10 @@ static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, | |||
167 | irlan_next_client_state(self, IRLAN_IDLE); | 167 | irlan_next_client_state(self, IRLAN_IDLE); |
168 | break; | 168 | break; |
169 | case IRLAN_WATCHDOG_TIMEOUT: | 169 | case IRLAN_WATCHDOG_TIMEOUT: |
170 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 170 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
171 | break; | 171 | break; |
172 | default: | 172 | default: |
173 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 173 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
174 | break; | 174 | break; |
175 | } | 175 | } |
176 | if (skb) | 176 | if (skb) |
@@ -189,7 +189,7 @@ static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, | |||
189 | static int irlan_client_state_conn(struct irlan_cb *self, IRLAN_EVENT event, | 189 | static int irlan_client_state_conn(struct irlan_cb *self, IRLAN_EVENT event, |
190 | struct sk_buff *skb) | 190 | struct sk_buff *skb) |
191 | { | 191 | { |
192 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 192 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
193 | 193 | ||
194 | IRDA_ASSERT(self != NULL, return -1;); | 194 | IRDA_ASSERT(self != NULL, return -1;); |
195 | 195 | ||
@@ -204,10 +204,10 @@ static int irlan_client_state_conn(struct irlan_cb *self, IRLAN_EVENT event, | |||
204 | irlan_next_client_state(self, IRLAN_IDLE); | 204 | irlan_next_client_state(self, IRLAN_IDLE); |
205 | break; | 205 | break; |
206 | case IRLAN_WATCHDOG_TIMEOUT: | 206 | case IRLAN_WATCHDOG_TIMEOUT: |
207 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 207 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
208 | break; | 208 | break; |
209 | default: | 209 | default: |
210 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 210 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
211 | break; | 211 | break; |
212 | } | 212 | } |
213 | if (skb) | 213 | if (skb) |
@@ -224,7 +224,7 @@ static int irlan_client_state_conn(struct irlan_cb *self, IRLAN_EVENT event, | |||
224 | static int irlan_client_state_info(struct irlan_cb *self, IRLAN_EVENT event, | 224 | static int irlan_client_state_info(struct irlan_cb *self, IRLAN_EVENT event, |
225 | struct sk_buff *skb) | 225 | struct sk_buff *skb) |
226 | { | 226 | { |
227 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 227 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
228 | 228 | ||
229 | IRDA_ASSERT(self != NULL, return -1;); | 229 | IRDA_ASSERT(self != NULL, return -1;); |
230 | 230 | ||
@@ -244,10 +244,10 @@ static int irlan_client_state_info(struct irlan_cb *self, IRLAN_EVENT event, | |||
244 | irlan_next_client_state(self, IRLAN_IDLE); | 244 | irlan_next_client_state(self, IRLAN_IDLE); |
245 | break; | 245 | break; |
246 | case IRLAN_WATCHDOG_TIMEOUT: | 246 | case IRLAN_WATCHDOG_TIMEOUT: |
247 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 247 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
248 | break; | 248 | break; |
249 | default: | 249 | default: |
250 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 250 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
251 | break; | 251 | break; |
252 | } | 252 | } |
253 | if (skb) | 253 | if (skb) |
@@ -266,7 +266,7 @@ static int irlan_client_state_info(struct irlan_cb *self, IRLAN_EVENT event, | |||
266 | static int irlan_client_state_media(struct irlan_cb *self, IRLAN_EVENT event, | 266 | static int irlan_client_state_media(struct irlan_cb *self, IRLAN_EVENT event, |
267 | struct sk_buff *skb) | 267 | struct sk_buff *skb) |
268 | { | 268 | { |
269 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 269 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
270 | 270 | ||
271 | IRDA_ASSERT(self != NULL, return -1;); | 271 | IRDA_ASSERT(self != NULL, return -1;); |
272 | 272 | ||
@@ -281,10 +281,10 @@ static int irlan_client_state_media(struct irlan_cb *self, IRLAN_EVENT event, | |||
281 | irlan_next_client_state(self, IRLAN_IDLE); | 281 | irlan_next_client_state(self, IRLAN_IDLE); |
282 | break; | 282 | break; |
283 | case IRLAN_WATCHDOG_TIMEOUT: | 283 | case IRLAN_WATCHDOG_TIMEOUT: |
284 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 284 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
285 | break; | 285 | break; |
286 | default: | 286 | default: |
287 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 287 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
288 | break; | 288 | break; |
289 | } | 289 | } |
290 | if (skb) | 290 | if (skb) |
@@ -305,7 +305,7 @@ static int irlan_client_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
305 | { | 305 | { |
306 | struct qos_info qos; | 306 | struct qos_info qos; |
307 | 307 | ||
308 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 308 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
309 | 309 | ||
310 | IRDA_ASSERT(self != NULL, return -1;); | 310 | IRDA_ASSERT(self != NULL, return -1;); |
311 | 311 | ||
@@ -344,7 +344,7 @@ static int irlan_client_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
344 | irlan_next_client_state(self, IRLAN_DATA); | 344 | irlan_next_client_state(self, IRLAN_DATA); |
345 | break; | 345 | break; |
346 | default: | 346 | default: |
347 | IRDA_DEBUG(2, "%s(), unknown access type!\n", __FUNCTION__ ); | 347 | IRDA_DEBUG(2, "%s(), unknown access type!\n", __func__ ); |
348 | break; | 348 | break; |
349 | } | 349 | } |
350 | break; | 350 | break; |
@@ -353,10 +353,10 @@ static int irlan_client_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
353 | irlan_next_client_state(self, IRLAN_IDLE); | 353 | irlan_next_client_state(self, IRLAN_IDLE); |
354 | break; | 354 | break; |
355 | case IRLAN_WATCHDOG_TIMEOUT: | 355 | case IRLAN_WATCHDOG_TIMEOUT: |
356 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 356 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
357 | break; | 357 | break; |
358 | default: | 358 | default: |
359 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 359 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
360 | break; | 360 | break; |
361 | } | 361 | } |
362 | 362 | ||
@@ -376,7 +376,7 @@ static int irlan_client_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
376 | static int irlan_client_state_wait(struct irlan_cb *self, IRLAN_EVENT event, | 376 | static int irlan_client_state_wait(struct irlan_cb *self, IRLAN_EVENT event, |
377 | struct sk_buff *skb) | 377 | struct sk_buff *skb) |
378 | { | 378 | { |
379 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 379 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
380 | 380 | ||
381 | IRDA_ASSERT(self != NULL, return -1;); | 381 | IRDA_ASSERT(self != NULL, return -1;); |
382 | 382 | ||
@@ -390,10 +390,10 @@ static int irlan_client_state_wait(struct irlan_cb *self, IRLAN_EVENT event, | |||
390 | irlan_next_client_state(self, IRLAN_IDLE); | 390 | irlan_next_client_state(self, IRLAN_IDLE); |
391 | break; | 391 | break; |
392 | case IRLAN_WATCHDOG_TIMEOUT: | 392 | case IRLAN_WATCHDOG_TIMEOUT: |
393 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 393 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
394 | break; | 394 | break; |
395 | default: | 395 | default: |
396 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 396 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
397 | break; | 397 | break; |
398 | } | 398 | } |
399 | if (skb) | 399 | if (skb) |
@@ -407,7 +407,7 @@ static int irlan_client_state_arb(struct irlan_cb *self, IRLAN_EVENT event, | |||
407 | { | 407 | { |
408 | struct qos_info qos; | 408 | struct qos_info qos; |
409 | 409 | ||
410 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 410 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
411 | 411 | ||
412 | IRDA_ASSERT(self != NULL, return -1;); | 412 | IRDA_ASSERT(self != NULL, return -1;); |
413 | 413 | ||
@@ -429,7 +429,7 @@ static int irlan_client_state_arb(struct irlan_cb *self, IRLAN_EVENT event, | |||
429 | } else if (self->client.recv_arb_val > | 429 | } else if (self->client.recv_arb_val > |
430 | self->provider.send_arb_val) | 430 | self->provider.send_arb_val) |
431 | { | 431 | { |
432 | IRDA_DEBUG(2, "%s(), lost the battle :-(\n", __FUNCTION__ ); | 432 | IRDA_DEBUG(2, "%s(), lost the battle :-(\n", __func__ ); |
433 | } | 433 | } |
434 | break; | 434 | break; |
435 | case IRLAN_DATA_CONNECT_INDICATION: | 435 | case IRLAN_DATA_CONNECT_INDICATION: |
@@ -440,10 +440,10 @@ static int irlan_client_state_arb(struct irlan_cb *self, IRLAN_EVENT event, | |||
440 | irlan_next_client_state(self, IRLAN_IDLE); | 440 | irlan_next_client_state(self, IRLAN_IDLE); |
441 | break; | 441 | break; |
442 | case IRLAN_WATCHDOG_TIMEOUT: | 442 | case IRLAN_WATCHDOG_TIMEOUT: |
443 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 443 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
444 | break; | 444 | break; |
445 | default: | 445 | default: |
446 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 446 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
447 | break; | 447 | break; |
448 | } | 448 | } |
449 | if (skb) | 449 | if (skb) |
@@ -462,7 +462,7 @@ static int irlan_client_state_arb(struct irlan_cb *self, IRLAN_EVENT event, | |||
462 | static int irlan_client_state_data(struct irlan_cb *self, IRLAN_EVENT event, | 462 | static int irlan_client_state_data(struct irlan_cb *self, IRLAN_EVENT event, |
463 | struct sk_buff *skb) | 463 | struct sk_buff *skb) |
464 | { | 464 | { |
465 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 465 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
466 | 466 | ||
467 | IRDA_ASSERT(self != NULL, return -1;); | 467 | IRDA_ASSERT(self != NULL, return -1;); |
468 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); | 468 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); |
@@ -476,7 +476,7 @@ static int irlan_client_state_data(struct irlan_cb *self, IRLAN_EVENT event, | |||
476 | irlan_next_client_state(self, IRLAN_IDLE); | 476 | irlan_next_client_state(self, IRLAN_IDLE); |
477 | break; | 477 | break; |
478 | default: | 478 | default: |
479 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 479 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
480 | break; | 480 | break; |
481 | } | 481 | } |
482 | if (skb) | 482 | if (skb) |
@@ -494,7 +494,7 @@ static int irlan_client_state_data(struct irlan_cb *self, IRLAN_EVENT event, | |||
494 | static int irlan_client_state_close(struct irlan_cb *self, IRLAN_EVENT event, | 494 | static int irlan_client_state_close(struct irlan_cb *self, IRLAN_EVENT event, |
495 | struct sk_buff *skb) | 495 | struct sk_buff *skb) |
496 | { | 496 | { |
497 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 497 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
498 | 498 | ||
499 | if (skb) | 499 | if (skb) |
500 | dev_kfree_skb(skb); | 500 | dev_kfree_skb(skb); |
@@ -511,7 +511,7 @@ static int irlan_client_state_close(struct irlan_cb *self, IRLAN_EVENT event, | |||
511 | static int irlan_client_state_sync(struct irlan_cb *self, IRLAN_EVENT event, | 511 | static int irlan_client_state_sync(struct irlan_cb *self, IRLAN_EVENT event, |
512 | struct sk_buff *skb) | 512 | struct sk_buff *skb) |
513 | { | 513 | { |
514 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 514 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
515 | 515 | ||
516 | if (skb) | 516 | if (skb) |
517 | dev_kfree_skb(skb); | 517 | dev_kfree_skb(skb); |
diff --git a/net/irda/irlan/irlan_common.c b/net/irda/irlan/irlan_common.c index 1eb4bbcb1c9e..75bb6a9dcaaa 100644 --- a/net/irda/irlan/irlan_common.c +++ b/net/irda/irlan/irlan_common.c | |||
@@ -124,7 +124,7 @@ static int __init irlan_init(void) | |||
124 | struct irlan_cb *new; | 124 | struct irlan_cb *new; |
125 | __u16 hints; | 125 | __u16 hints; |
126 | 126 | ||
127 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 127 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
128 | 128 | ||
129 | #ifdef CONFIG_PROC_FS | 129 | #ifdef CONFIG_PROC_FS |
130 | { struct proc_dir_entry *proc; | 130 | { struct proc_dir_entry *proc; |
@@ -136,7 +136,7 @@ static int __init irlan_init(void) | |||
136 | } | 136 | } |
137 | #endif /* CONFIG_PROC_FS */ | 137 | #endif /* CONFIG_PROC_FS */ |
138 | 138 | ||
139 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 139 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
140 | hints = irlmp_service_to_hint(S_LAN); | 140 | hints = irlmp_service_to_hint(S_LAN); |
141 | 141 | ||
142 | /* Register with IrLMP as a client */ | 142 | /* Register with IrLMP as a client */ |
@@ -179,7 +179,7 @@ static void __exit irlan_cleanup(void) | |||
179 | { | 179 | { |
180 | struct irlan_cb *self, *next; | 180 | struct irlan_cb *self, *next; |
181 | 181 | ||
182 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 182 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
183 | 183 | ||
184 | irlmp_unregister_client(ckey); | 184 | irlmp_unregister_client(ckey); |
185 | irlmp_unregister_service(skey); | 185 | irlmp_unregister_service(skey); |
@@ -207,7 +207,7 @@ static struct irlan_cb *irlan_open(__u32 saddr, __u32 daddr) | |||
207 | struct net_device *dev; | 207 | struct net_device *dev; |
208 | struct irlan_cb *self; | 208 | struct irlan_cb *self; |
209 | 209 | ||
210 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 210 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
211 | 211 | ||
212 | /* Create network device with irlan */ | 212 | /* Create network device with irlan */ |
213 | dev = alloc_irlandev(eth ? "eth%d" : "irlan%d"); | 213 | dev = alloc_irlandev(eth ? "eth%d" : "irlan%d"); |
@@ -252,7 +252,7 @@ static struct irlan_cb *irlan_open(__u32 saddr, __u32 daddr) | |||
252 | 252 | ||
253 | if (register_netdev(dev)) { | 253 | if (register_netdev(dev)) { |
254 | IRDA_DEBUG(2, "%s(), register_netdev() failed!\n", | 254 | IRDA_DEBUG(2, "%s(), register_netdev() failed!\n", |
255 | __FUNCTION__ ); | 255 | __func__ ); |
256 | self = NULL; | 256 | self = NULL; |
257 | free_netdev(dev); | 257 | free_netdev(dev); |
258 | } else { | 258 | } else { |
@@ -272,7 +272,7 @@ static struct irlan_cb *irlan_open(__u32 saddr, __u32 daddr) | |||
272 | */ | 272 | */ |
273 | static void __irlan_close(struct irlan_cb *self) | 273 | static void __irlan_close(struct irlan_cb *self) |
274 | { | 274 | { |
275 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 275 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
276 | 276 | ||
277 | ASSERT_RTNL(); | 277 | ASSERT_RTNL(); |
278 | IRDA_ASSERT(self != NULL, return;); | 278 | IRDA_ASSERT(self != NULL, return;); |
@@ -320,7 +320,7 @@ static void irlan_connect_indication(void *instance, void *sap, | |||
320 | struct irlan_cb *self; | 320 | struct irlan_cb *self; |
321 | struct tsap_cb *tsap; | 321 | struct tsap_cb *tsap; |
322 | 322 | ||
323 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 323 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
324 | 324 | ||
325 | self = (struct irlan_cb *) instance; | 325 | self = (struct irlan_cb *) instance; |
326 | tsap = (struct tsap_cb *) sap; | 326 | tsap = (struct tsap_cb *) sap; |
@@ -332,7 +332,7 @@ static void irlan_connect_indication(void *instance, void *sap, | |||
332 | self->max_sdu_size = max_sdu_size; | 332 | self->max_sdu_size = max_sdu_size; |
333 | self->max_header_size = max_header_size; | 333 | self->max_header_size = max_header_size; |
334 | 334 | ||
335 | IRDA_DEBUG(0, "%s: We are now connected!\n", __FUNCTION__); | 335 | IRDA_DEBUG(0, "%s: We are now connected!\n", __func__); |
336 | 336 | ||
337 | del_timer(&self->watchdog_timer); | 337 | del_timer(&self->watchdog_timer); |
338 | 338 | ||
@@ -376,7 +376,7 @@ static void irlan_connect_confirm(void *instance, void *sap, | |||
376 | 376 | ||
377 | /* TODO: we could set the MTU depending on the max_sdu_size */ | 377 | /* TODO: we could set the MTU depending on the max_sdu_size */ |
378 | 378 | ||
379 | IRDA_DEBUG(0, "%s: We are now connected!\n", __FUNCTION__); | 379 | IRDA_DEBUG(0, "%s: We are now connected!\n", __func__); |
380 | del_timer(&self->watchdog_timer); | 380 | del_timer(&self->watchdog_timer); |
381 | 381 | ||
382 | /* | 382 | /* |
@@ -412,7 +412,7 @@ static void irlan_disconnect_indication(void *instance, | |||
412 | struct irlan_cb *self; | 412 | struct irlan_cb *self; |
413 | struct tsap_cb *tsap; | 413 | struct tsap_cb *tsap; |
414 | 414 | ||
415 | IRDA_DEBUG(0, "%s(), reason=%d\n", __FUNCTION__ , reason); | 415 | IRDA_DEBUG(0, "%s(), reason=%d\n", __func__ , reason); |
416 | 416 | ||
417 | self = (struct irlan_cb *) instance; | 417 | self = (struct irlan_cb *) instance; |
418 | tsap = (struct tsap_cb *) sap; | 418 | tsap = (struct tsap_cb *) sap; |
@@ -431,22 +431,22 @@ static void irlan_disconnect_indication(void *instance, | |||
431 | 431 | ||
432 | switch (reason) { | 432 | switch (reason) { |
433 | case LM_USER_REQUEST: /* User request */ | 433 | case LM_USER_REQUEST: /* User request */ |
434 | IRDA_DEBUG(2, "%s(), User requested\n", __FUNCTION__ ); | 434 | IRDA_DEBUG(2, "%s(), User requested\n", __func__ ); |
435 | break; | 435 | break; |
436 | case LM_LAP_DISCONNECT: /* Unexpected IrLAP disconnect */ | 436 | case LM_LAP_DISCONNECT: /* Unexpected IrLAP disconnect */ |
437 | IRDA_DEBUG(2, "%s(), Unexpected IrLAP disconnect\n", __FUNCTION__ ); | 437 | IRDA_DEBUG(2, "%s(), Unexpected IrLAP disconnect\n", __func__ ); |
438 | break; | 438 | break; |
439 | case LM_CONNECT_FAILURE: /* Failed to establish IrLAP connection */ | 439 | case LM_CONNECT_FAILURE: /* Failed to establish IrLAP connection */ |
440 | IRDA_DEBUG(2, "%s(), IrLAP connect failed\n", __FUNCTION__ ); | 440 | IRDA_DEBUG(2, "%s(), IrLAP connect failed\n", __func__ ); |
441 | break; | 441 | break; |
442 | case LM_LAP_RESET: /* IrLAP reset */ | 442 | case LM_LAP_RESET: /* IrLAP reset */ |
443 | IRDA_DEBUG(2, "%s(), IrLAP reset\n", __FUNCTION__ ); | 443 | IRDA_DEBUG(2, "%s(), IrLAP reset\n", __func__ ); |
444 | break; | 444 | break; |
445 | case LM_INIT_DISCONNECT: | 445 | case LM_INIT_DISCONNECT: |
446 | IRDA_DEBUG(2, "%s(), IrLMP connect failed\n", __FUNCTION__ ); | 446 | IRDA_DEBUG(2, "%s(), IrLMP connect failed\n", __func__ ); |
447 | break; | 447 | break; |
448 | default: | 448 | default: |
449 | IRDA_ERROR("%s(), Unknown disconnect reason\n", __FUNCTION__); | 449 | IRDA_ERROR("%s(), Unknown disconnect reason\n", __func__); |
450 | break; | 450 | break; |
451 | } | 451 | } |
452 | 452 | ||
@@ -468,7 +468,7 @@ void irlan_open_data_tsap(struct irlan_cb *self) | |||
468 | struct tsap_cb *tsap; | 468 | struct tsap_cb *tsap; |
469 | notify_t notify; | 469 | notify_t notify; |
470 | 470 | ||
471 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 471 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
472 | 472 | ||
473 | IRDA_ASSERT(self != NULL, return;); | 473 | IRDA_ASSERT(self != NULL, return;); |
474 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 474 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -490,7 +490,7 @@ void irlan_open_data_tsap(struct irlan_cb *self) | |||
490 | 490 | ||
491 | tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, ¬ify); | 491 | tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, ¬ify); |
492 | if (!tsap) { | 492 | if (!tsap) { |
493 | IRDA_DEBUG(2, "%s(), Got no tsap!\n", __FUNCTION__ ); | 493 | IRDA_DEBUG(2, "%s(), Got no tsap!\n", __func__ ); |
494 | return; | 494 | return; |
495 | } | 495 | } |
496 | self->tsap_data = tsap; | 496 | self->tsap_data = tsap; |
@@ -504,7 +504,7 @@ void irlan_open_data_tsap(struct irlan_cb *self) | |||
504 | 504 | ||
505 | void irlan_close_tsaps(struct irlan_cb *self) | 505 | void irlan_close_tsaps(struct irlan_cb *self) |
506 | { | 506 | { |
507 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 507 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
508 | 508 | ||
509 | IRDA_ASSERT(self != NULL, return;); | 509 | IRDA_ASSERT(self != NULL, return;); |
510 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 510 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -594,7 +594,7 @@ int irlan_run_ctrl_tx_queue(struct irlan_cb *self) | |||
594 | { | 594 | { |
595 | struct sk_buff *skb; | 595 | struct sk_buff *skb; |
596 | 596 | ||
597 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 597 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
598 | 598 | ||
599 | if (irda_lock(&self->client.tx_busy) == FALSE) | 599 | if (irda_lock(&self->client.tx_busy) == FALSE) |
600 | return -EBUSY; | 600 | return -EBUSY; |
@@ -613,7 +613,7 @@ int irlan_run_ctrl_tx_queue(struct irlan_cb *self) | |||
613 | dev_kfree_skb(skb); | 613 | dev_kfree_skb(skb); |
614 | return -1; | 614 | return -1; |
615 | } | 615 | } |
616 | IRDA_DEBUG(2, "%s(), sending ...\n", __FUNCTION__ ); | 616 | IRDA_DEBUG(2, "%s(), sending ...\n", __func__ ); |
617 | 617 | ||
618 | return irttp_data_request(self->client.tsap_ctrl, skb); | 618 | return irttp_data_request(self->client.tsap_ctrl, skb); |
619 | } | 619 | } |
@@ -626,7 +626,7 @@ int irlan_run_ctrl_tx_queue(struct irlan_cb *self) | |||
626 | */ | 626 | */ |
627 | static void irlan_ctrl_data_request(struct irlan_cb *self, struct sk_buff *skb) | 627 | static void irlan_ctrl_data_request(struct irlan_cb *self, struct sk_buff *skb) |
628 | { | 628 | { |
629 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 629 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
630 | 630 | ||
631 | /* Queue command */ | 631 | /* Queue command */ |
632 | skb_queue_tail(&self->client.txq, skb); | 632 | skb_queue_tail(&self->client.txq, skb); |
@@ -646,7 +646,7 @@ void irlan_get_provider_info(struct irlan_cb *self) | |||
646 | struct sk_buff *skb; | 646 | struct sk_buff *skb; |
647 | __u8 *frame; | 647 | __u8 *frame; |
648 | 648 | ||
649 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 649 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
650 | 650 | ||
651 | IRDA_ASSERT(self != NULL, return;); | 651 | IRDA_ASSERT(self != NULL, return;); |
652 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 652 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -679,7 +679,7 @@ void irlan_open_data_channel(struct irlan_cb *self) | |||
679 | struct sk_buff *skb; | 679 | struct sk_buff *skb; |
680 | __u8 *frame; | 680 | __u8 *frame; |
681 | 681 | ||
682 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 682 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
683 | 683 | ||
684 | IRDA_ASSERT(self != NULL, return;); | 684 | IRDA_ASSERT(self != NULL, return;); |
685 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 685 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -714,7 +714,7 @@ void irlan_close_data_channel(struct irlan_cb *self) | |||
714 | struct sk_buff *skb; | 714 | struct sk_buff *skb; |
715 | __u8 *frame; | 715 | __u8 *frame; |
716 | 716 | ||
717 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 717 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
718 | 718 | ||
719 | IRDA_ASSERT(self != NULL, return;); | 719 | IRDA_ASSERT(self != NULL, return;); |
720 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 720 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -755,7 +755,7 @@ static void irlan_open_unicast_addr(struct irlan_cb *self) | |||
755 | struct sk_buff *skb; | 755 | struct sk_buff *skb; |
756 | __u8 *frame; | 756 | __u8 *frame; |
757 | 757 | ||
758 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 758 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
759 | 759 | ||
760 | IRDA_ASSERT(self != NULL, return;); | 760 | IRDA_ASSERT(self != NULL, return;); |
761 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 761 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -797,7 +797,7 @@ void irlan_set_broadcast_filter(struct irlan_cb *self, int status) | |||
797 | struct sk_buff *skb; | 797 | struct sk_buff *skb; |
798 | __u8 *frame; | 798 | __u8 *frame; |
799 | 799 | ||
800 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 800 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
801 | 801 | ||
802 | IRDA_ASSERT(self != NULL, return;); | 802 | IRDA_ASSERT(self != NULL, return;); |
803 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 803 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -841,7 +841,7 @@ void irlan_set_multicast_filter(struct irlan_cb *self, int status) | |||
841 | struct sk_buff *skb; | 841 | struct sk_buff *skb; |
842 | __u8 *frame; | 842 | __u8 *frame; |
843 | 843 | ||
844 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 844 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
845 | 845 | ||
846 | IRDA_ASSERT(self != NULL, return;); | 846 | IRDA_ASSERT(self != NULL, return;); |
847 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 847 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -886,7 +886,7 @@ static void irlan_get_unicast_addr(struct irlan_cb *self) | |||
886 | struct sk_buff *skb; | 886 | struct sk_buff *skb; |
887 | __u8 *frame; | 887 | __u8 *frame; |
888 | 888 | ||
889 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 889 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
890 | 890 | ||
891 | IRDA_ASSERT(self != NULL, return;); | 891 | IRDA_ASSERT(self != NULL, return;); |
892 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 892 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -926,7 +926,7 @@ void irlan_get_media_char(struct irlan_cb *self) | |||
926 | struct sk_buff *skb; | 926 | struct sk_buff *skb; |
927 | __u8 *frame; | 927 | __u8 *frame; |
928 | 928 | ||
929 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 929 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
930 | 930 | ||
931 | IRDA_ASSERT(self != NULL, return;); | 931 | IRDA_ASSERT(self != NULL, return;); |
932 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 932 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -1014,7 +1014,7 @@ static int __irlan_insert_param(struct sk_buff *skb, char *param, int type, | |||
1014 | int n=0; | 1014 | int n=0; |
1015 | 1015 | ||
1016 | if (skb == NULL) { | 1016 | if (skb == NULL) { |
1017 | IRDA_DEBUG(2, "%s(), Got NULL skb\n", __FUNCTION__ ); | 1017 | IRDA_DEBUG(2, "%s(), Got NULL skb\n", __func__ ); |
1018 | return 0; | 1018 | return 0; |
1019 | } | 1019 | } |
1020 | 1020 | ||
@@ -1031,7 +1031,7 @@ static int __irlan_insert_param(struct sk_buff *skb, char *param, int type, | |||
1031 | IRDA_ASSERT(value_len > 0, return 0;); | 1031 | IRDA_ASSERT(value_len > 0, return 0;); |
1032 | break; | 1032 | break; |
1033 | default: | 1033 | default: |
1034 | IRDA_DEBUG(2, "%s(), Unknown parameter type!\n", __FUNCTION__ ); | 1034 | IRDA_DEBUG(2, "%s(), Unknown parameter type!\n", __func__ ); |
1035 | return 0; | 1035 | return 0; |
1036 | break; | 1036 | break; |
1037 | } | 1037 | } |
@@ -1041,7 +1041,7 @@ static int __irlan_insert_param(struct sk_buff *skb, char *param, int type, | |||
1041 | 1041 | ||
1042 | /* Make space for data */ | 1042 | /* Make space for data */ |
1043 | if (skb_tailroom(skb) < (param_len+value_len+3)) { | 1043 | if (skb_tailroom(skb) < (param_len+value_len+3)) { |
1044 | IRDA_DEBUG(2, "%s(), No more space at end of skb\n", __FUNCTION__ ); | 1044 | IRDA_DEBUG(2, "%s(), No more space at end of skb\n", __func__ ); |
1045 | return 0; | 1045 | return 0; |
1046 | } | 1046 | } |
1047 | skb_put(skb, param_len+value_len+3); | 1047 | skb_put(skb, param_len+value_len+3); |
@@ -1088,13 +1088,13 @@ int irlan_extract_param(__u8 *buf, char *name, char *value, __u16 *len) | |||
1088 | __u16 val_len; | 1088 | __u16 val_len; |
1089 | int n=0; | 1089 | int n=0; |
1090 | 1090 | ||
1091 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 1091 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
1092 | 1092 | ||
1093 | /* get length of parameter name (1 byte) */ | 1093 | /* get length of parameter name (1 byte) */ |
1094 | name_len = buf[n++]; | 1094 | name_len = buf[n++]; |
1095 | 1095 | ||
1096 | if (name_len > 254) { | 1096 | if (name_len > 254) { |
1097 | IRDA_DEBUG(2, "%s(), name_len > 254\n", __FUNCTION__ ); | 1097 | IRDA_DEBUG(2, "%s(), name_len > 254\n", __func__ ); |
1098 | return -RSP_INVALID_COMMAND_FORMAT; | 1098 | return -RSP_INVALID_COMMAND_FORMAT; |
1099 | } | 1099 | } |
1100 | 1100 | ||
@@ -1111,7 +1111,7 @@ int irlan_extract_param(__u8 *buf, char *name, char *value, __u16 *len) | |||
1111 | le16_to_cpus(&val_len); n+=2; | 1111 | le16_to_cpus(&val_len); n+=2; |
1112 | 1112 | ||
1113 | if (val_len > 1016) { | 1113 | if (val_len > 1016) { |
1114 | IRDA_DEBUG(2, "%s(), parameter length to long\n", __FUNCTION__ ); | 1114 | IRDA_DEBUG(2, "%s(), parameter length to long\n", __func__ ); |
1115 | return -RSP_INVALID_COMMAND_FORMAT; | 1115 | return -RSP_INVALID_COMMAND_FORMAT; |
1116 | } | 1116 | } |
1117 | *len = val_len; | 1117 | *len = val_len; |
diff --git a/net/irda/irlan/irlan_eth.c b/net/irda/irlan/irlan_eth.c index 1ab91f787cc1..7a6b14ab1e7f 100644 --- a/net/irda/irlan/irlan_eth.c +++ b/net/irda/irlan/irlan_eth.c | |||
@@ -103,7 +103,7 @@ static int irlan_eth_open(struct net_device *dev) | |||
103 | { | 103 | { |
104 | struct irlan_cb *self = netdev_priv(dev); | 104 | struct irlan_cb *self = netdev_priv(dev); |
105 | 105 | ||
106 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 106 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
107 | 107 | ||
108 | /* Ready to play! */ | 108 | /* Ready to play! */ |
109 | netif_stop_queue(dev); /* Wait until data link is ready */ | 109 | netif_stop_queue(dev); /* Wait until data link is ready */ |
@@ -130,7 +130,7 @@ static int irlan_eth_close(struct net_device *dev) | |||
130 | { | 130 | { |
131 | struct irlan_cb *self = netdev_priv(dev); | 131 | struct irlan_cb *self = netdev_priv(dev); |
132 | 132 | ||
133 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 133 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
134 | 134 | ||
135 | /* Stop device */ | 135 | /* Stop device */ |
136 | netif_stop_queue(dev); | 136 | netif_stop_queue(dev); |
@@ -221,7 +221,7 @@ int irlan_eth_receive(void *instance, void *sap, struct sk_buff *skb) | |||
221 | } | 221 | } |
222 | if (skb->len < ETH_HLEN) { | 222 | if (skb->len < ETH_HLEN) { |
223 | IRDA_DEBUG(0, "%s() : IrLAN frame too short (%d)\n", | 223 | IRDA_DEBUG(0, "%s() : IrLAN frame too short (%d)\n", |
224 | __FUNCTION__, skb->len); | 224 | __func__, skb->len); |
225 | ++self->stats.rx_dropped; | 225 | ++self->stats.rx_dropped; |
226 | dev_kfree_skb(skb); | 226 | dev_kfree_skb(skb); |
227 | return 0; | 227 | return 0; |
@@ -270,7 +270,7 @@ void irlan_eth_flow_indication(void *instance, void *sap, LOCAL_FLOW flow) | |||
270 | 270 | ||
271 | IRDA_ASSERT(dev != NULL, return;); | 271 | IRDA_ASSERT(dev != NULL, return;); |
272 | 272 | ||
273 | IRDA_DEBUG(0, "%s() : flow %s ; running %d\n", __FUNCTION__, | 273 | IRDA_DEBUG(0, "%s() : flow %s ; running %d\n", __func__, |
274 | flow == FLOW_STOP ? "FLOW_STOP" : "FLOW_START", | 274 | flow == FLOW_STOP ? "FLOW_STOP" : "FLOW_START", |
275 | netif_running(dev)); | 275 | netif_running(dev)); |
276 | 276 | ||
@@ -332,11 +332,11 @@ static void irlan_eth_set_multicast_list(struct net_device *dev) | |||
332 | { | 332 | { |
333 | struct irlan_cb *self = netdev_priv(dev); | 333 | struct irlan_cb *self = netdev_priv(dev); |
334 | 334 | ||
335 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 335 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
336 | 336 | ||
337 | /* Check if data channel has been connected yet */ | 337 | /* Check if data channel has been connected yet */ |
338 | if (self->client.state != IRLAN_DATA) { | 338 | if (self->client.state != IRLAN_DATA) { |
339 | IRDA_DEBUG(1, "%s(), delaying!\n", __FUNCTION__ ); | 339 | IRDA_DEBUG(1, "%s(), delaying!\n", __func__ ); |
340 | return; | 340 | return; |
341 | } | 341 | } |
342 | 342 | ||
@@ -346,20 +346,20 @@ static void irlan_eth_set_multicast_list(struct net_device *dev) | |||
346 | } | 346 | } |
347 | else if ((dev->flags & IFF_ALLMULTI) || dev->mc_count > HW_MAX_ADDRS) { | 347 | else if ((dev->flags & IFF_ALLMULTI) || dev->mc_count > HW_MAX_ADDRS) { |
348 | /* Disable promiscuous mode, use normal mode. */ | 348 | /* Disable promiscuous mode, use normal mode. */ |
349 | IRDA_DEBUG(4, "%s(), Setting multicast filter\n", __FUNCTION__ ); | 349 | IRDA_DEBUG(4, "%s(), Setting multicast filter\n", __func__ ); |
350 | /* hardware_set_filter(NULL); */ | 350 | /* hardware_set_filter(NULL); */ |
351 | 351 | ||
352 | irlan_set_multicast_filter(self, TRUE); | 352 | irlan_set_multicast_filter(self, TRUE); |
353 | } | 353 | } |
354 | else if (dev->mc_count) { | 354 | else if (dev->mc_count) { |
355 | IRDA_DEBUG(4, "%s(), Setting multicast filter\n", __FUNCTION__ ); | 355 | IRDA_DEBUG(4, "%s(), Setting multicast filter\n", __func__ ); |
356 | /* Walk the address list, and load the filter */ | 356 | /* Walk the address list, and load the filter */ |
357 | /* hardware_set_filter(dev->mc_list); */ | 357 | /* hardware_set_filter(dev->mc_list); */ |
358 | 358 | ||
359 | irlan_set_multicast_filter(self, TRUE); | 359 | irlan_set_multicast_filter(self, TRUE); |
360 | } | 360 | } |
361 | else { | 361 | else { |
362 | IRDA_DEBUG(4, "%s(), Clearing multicast filter\n", __FUNCTION__ ); | 362 | IRDA_DEBUG(4, "%s(), Clearing multicast filter\n", __func__ ); |
363 | irlan_set_multicast_filter(self, FALSE); | 363 | irlan_set_multicast_filter(self, FALSE); |
364 | } | 364 | } |
365 | 365 | ||
diff --git a/net/irda/irlan/irlan_event.c b/net/irda/irlan/irlan_event.c index a9750a801388..cbcb4eb54037 100644 --- a/net/irda/irlan/irlan_event.c +++ b/net/irda/irlan/irlan_event.c | |||
@@ -40,7 +40,7 @@ char *irlan_state[] = { | |||
40 | 40 | ||
41 | void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state) | 41 | void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state) |
42 | { | 42 | { |
43 | IRDA_DEBUG(2, "%s(), %s\n", __FUNCTION__ , irlan_state[state]); | 43 | IRDA_DEBUG(2, "%s(), %s\n", __func__ , irlan_state[state]); |
44 | 44 | ||
45 | IRDA_ASSERT(self != NULL, return;); | 45 | IRDA_ASSERT(self != NULL, return;); |
46 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 46 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -50,7 +50,7 @@ void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state) | |||
50 | 50 | ||
51 | void irlan_next_provider_state(struct irlan_cb *self, IRLAN_STATE state) | 51 | void irlan_next_provider_state(struct irlan_cb *self, IRLAN_STATE state) |
52 | { | 52 | { |
53 | IRDA_DEBUG(2, "%s(), %s\n", __FUNCTION__ , irlan_state[state]); | 53 | IRDA_DEBUG(2, "%s(), %s\n", __func__ , irlan_state[state]); |
54 | 54 | ||
55 | IRDA_ASSERT(self != NULL, return;); | 55 | IRDA_ASSERT(self != NULL, return;); |
56 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 56 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
diff --git a/net/irda/irlan/irlan_filter.c b/net/irda/irlan/irlan_filter.c index 4384be9a6888..9ff7823abec7 100644 --- a/net/irda/irlan/irlan_filter.c +++ b/net/irda/irlan/irlan_filter.c | |||
@@ -145,7 +145,7 @@ void irlan_check_command_param(struct irlan_cb *self, char *param, char *value) | |||
145 | { | 145 | { |
146 | __u8 *bytes; | 146 | __u8 *bytes; |
147 | 147 | ||
148 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 148 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
149 | 149 | ||
150 | bytes = value; | 150 | bytes = value; |
151 | 151 | ||
@@ -158,7 +158,7 @@ void irlan_check_command_param(struct irlan_cb *self, char *param, char *value) | |||
158 | * This is experimental!! DB. | 158 | * This is experimental!! DB. |
159 | */ | 159 | */ |
160 | if (strcmp(param, "MODE") == 0) { | 160 | if (strcmp(param, "MODE") == 0) { |
161 | IRDA_DEBUG(0, "%s()\n", __FUNCTION__ ); | 161 | IRDA_DEBUG(0, "%s()\n", __func__ ); |
162 | self->use_udata = TRUE; | 162 | self->use_udata = TRUE; |
163 | return; | 163 | return; |
164 | } | 164 | } |
diff --git a/net/irda/irlan/irlan_provider.c b/net/irda/irlan/irlan_provider.c index 13db942812e4..3f81f81b2dfa 100644 --- a/net/irda/irlan/irlan_provider.c +++ b/net/irda/irlan/irlan_provider.c | |||
@@ -70,7 +70,7 @@ static int irlan_provider_data_indication(void *instance, void *sap, | |||
70 | struct irlan_cb *self; | 70 | struct irlan_cb *self; |
71 | __u8 code; | 71 | __u8 code; |
72 | 72 | ||
73 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 73 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
74 | 74 | ||
75 | self = (struct irlan_cb *) instance; | 75 | self = (struct irlan_cb *) instance; |
76 | 76 | ||
@@ -99,15 +99,15 @@ static int irlan_provider_data_indication(void *instance, void *sap, | |||
99 | irlan_do_provider_event(self, IRLAN_FILTER_CONFIG_CMD, skb); | 99 | irlan_do_provider_event(self, IRLAN_FILTER_CONFIG_CMD, skb); |
100 | break; | 100 | break; |
101 | case CMD_RECONNECT_DATA_CHAN: | 101 | case CMD_RECONNECT_DATA_CHAN: |
102 | IRDA_DEBUG(2, "%s(), Got RECONNECT_DATA_CHAN command\n", __FUNCTION__ ); | 102 | IRDA_DEBUG(2, "%s(), Got RECONNECT_DATA_CHAN command\n", __func__ ); |
103 | IRDA_DEBUG(2, "%s(), NOT IMPLEMENTED\n", __FUNCTION__ ); | 103 | IRDA_DEBUG(2, "%s(), NOT IMPLEMENTED\n", __func__ ); |
104 | break; | 104 | break; |
105 | case CMD_CLOSE_DATA_CHAN: | 105 | case CMD_CLOSE_DATA_CHAN: |
106 | IRDA_DEBUG(2, "Got CLOSE_DATA_CHAN command!\n"); | 106 | IRDA_DEBUG(2, "Got CLOSE_DATA_CHAN command!\n"); |
107 | IRDA_DEBUG(2, "%s(), NOT IMPLEMENTED\n", __FUNCTION__ ); | 107 | IRDA_DEBUG(2, "%s(), NOT IMPLEMENTED\n", __func__ ); |
108 | break; | 108 | break; |
109 | default: | 109 | default: |
110 | IRDA_DEBUG(2, "%s(), Unknown command!\n", __FUNCTION__ ); | 110 | IRDA_DEBUG(2, "%s(), Unknown command!\n", __func__ ); |
111 | break; | 111 | break; |
112 | } | 112 | } |
113 | return 0; | 113 | return 0; |
@@ -129,7 +129,7 @@ static void irlan_provider_connect_indication(void *instance, void *sap, | |||
129 | struct tsap_cb *tsap; | 129 | struct tsap_cb *tsap; |
130 | __u32 saddr, daddr; | 130 | __u32 saddr, daddr; |
131 | 131 | ||
132 | IRDA_DEBUG(0, "%s()\n", __FUNCTION__ ); | 132 | IRDA_DEBUG(0, "%s()\n", __func__ ); |
133 | 133 | ||
134 | self = (struct irlan_cb *) instance; | 134 | self = (struct irlan_cb *) instance; |
135 | tsap = (struct tsap_cb *) sap; | 135 | tsap = (struct tsap_cb *) sap; |
@@ -182,7 +182,7 @@ static void irlan_provider_disconnect_indication(void *instance, void *sap, | |||
182 | struct irlan_cb *self; | 182 | struct irlan_cb *self; |
183 | struct tsap_cb *tsap; | 183 | struct tsap_cb *tsap; |
184 | 184 | ||
185 | IRDA_DEBUG(4, "%s(), reason=%d\n", __FUNCTION__ , reason); | 185 | IRDA_DEBUG(4, "%s(), reason=%d\n", __func__ , reason); |
186 | 186 | ||
187 | self = (struct irlan_cb *) instance; | 187 | self = (struct irlan_cb *) instance; |
188 | tsap = (struct tsap_cb *) sap; | 188 | tsap = (struct tsap_cb *) sap; |
@@ -236,7 +236,7 @@ int irlan_provider_parse_command(struct irlan_cb *self, int cmd, | |||
236 | 236 | ||
237 | IRDA_ASSERT(skb != NULL, return -RSP_PROTOCOL_ERROR;); | 237 | IRDA_ASSERT(skb != NULL, return -RSP_PROTOCOL_ERROR;); |
238 | 238 | ||
239 | IRDA_DEBUG(4, "%s(), skb->len=%d\n", __FUNCTION__ , (int)skb->len); | 239 | IRDA_DEBUG(4, "%s(), skb->len=%d\n", __func__ , (int)skb->len); |
240 | 240 | ||
241 | IRDA_ASSERT(self != NULL, return -RSP_PROTOCOL_ERROR;); | 241 | IRDA_ASSERT(self != NULL, return -RSP_PROTOCOL_ERROR;); |
242 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -RSP_PROTOCOL_ERROR;); | 242 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -RSP_PROTOCOL_ERROR;); |
@@ -266,7 +266,7 @@ int irlan_provider_parse_command(struct irlan_cb *self, int cmd, | |||
266 | for (i=0; i<count;i++) { | 266 | for (i=0; i<count;i++) { |
267 | ret = irlan_extract_param(ptr, name, value, &val_len); | 267 | ret = irlan_extract_param(ptr, name, value, &val_len); |
268 | if (ret < 0) { | 268 | if (ret < 0) { |
269 | IRDA_DEBUG(2, "%s(), IrLAN, Error!\n", __FUNCTION__ ); | 269 | IRDA_DEBUG(2, "%s(), IrLAN, Error!\n", __func__ ); |
270 | break; | 270 | break; |
271 | } | 271 | } |
272 | ptr+=ret; | 272 | ptr+=ret; |
@@ -291,7 +291,7 @@ void irlan_provider_send_reply(struct irlan_cb *self, int command, | |||
291 | { | 291 | { |
292 | struct sk_buff *skb; | 292 | struct sk_buff *skb; |
293 | 293 | ||
294 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 294 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
295 | 295 | ||
296 | IRDA_ASSERT(self != NULL, return;); | 296 | IRDA_ASSERT(self != NULL, return;); |
297 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); | 297 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); |
@@ -323,7 +323,7 @@ void irlan_provider_send_reply(struct irlan_cb *self, int command, | |||
323 | irlan_insert_string_param(skb, "MEDIA", "802.5"); | 323 | irlan_insert_string_param(skb, "MEDIA", "802.5"); |
324 | break; | 324 | break; |
325 | default: | 325 | default: |
326 | IRDA_DEBUG(2, "%s(), unknown media type!\n", __FUNCTION__ ); | 326 | IRDA_DEBUG(2, "%s(), unknown media type!\n", __func__ ); |
327 | break; | 327 | break; |
328 | } | 328 | } |
329 | irlan_insert_short_param(skb, "IRLAN_VER", 0x0101); | 329 | irlan_insert_short_param(skb, "IRLAN_VER", 0x0101); |
@@ -347,7 +347,7 @@ void irlan_provider_send_reply(struct irlan_cb *self, int command, | |||
347 | irlan_insert_string_param(skb, "ACCESS_TYPE", "HOSTED"); | 347 | irlan_insert_string_param(skb, "ACCESS_TYPE", "HOSTED"); |
348 | break; | 348 | break; |
349 | default: | 349 | default: |
350 | IRDA_DEBUG(2, "%s(), Unknown access type\n", __FUNCTION__ ); | 350 | IRDA_DEBUG(2, "%s(), Unknown access type\n", __func__ ); |
351 | break; | 351 | break; |
352 | } | 352 | } |
353 | irlan_insert_short_param(skb, "MAX_FRAME", 0x05ee); | 353 | irlan_insert_short_param(skb, "MAX_FRAME", 0x05ee); |
@@ -367,7 +367,7 @@ void irlan_provider_send_reply(struct irlan_cb *self, int command, | |||
367 | irlan_filter_request(self, skb); | 367 | irlan_filter_request(self, skb); |
368 | break; | 368 | break; |
369 | default: | 369 | default: |
370 | IRDA_DEBUG(2, "%s(), Unknown command!\n", __FUNCTION__ ); | 370 | IRDA_DEBUG(2, "%s(), Unknown command!\n", __func__ ); |
371 | break; | 371 | break; |
372 | } | 372 | } |
373 | 373 | ||
@@ -385,7 +385,7 @@ int irlan_provider_open_ctrl_tsap(struct irlan_cb *self) | |||
385 | struct tsap_cb *tsap; | 385 | struct tsap_cb *tsap; |
386 | notify_t notify; | 386 | notify_t notify; |
387 | 387 | ||
388 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 388 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
389 | 389 | ||
390 | IRDA_ASSERT(self != NULL, return -1;); | 390 | IRDA_ASSERT(self != NULL, return -1;); |
391 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); | 391 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); |
@@ -406,7 +406,7 @@ int irlan_provider_open_ctrl_tsap(struct irlan_cb *self) | |||
406 | 406 | ||
407 | tsap = irttp_open_tsap(LSAP_ANY, 1, ¬ify); | 407 | tsap = irttp_open_tsap(LSAP_ANY, 1, ¬ify); |
408 | if (!tsap) { | 408 | if (!tsap) { |
409 | IRDA_DEBUG(2, "%s(), Got no tsap!\n", __FUNCTION__ ); | 409 | IRDA_DEBUG(2, "%s(), Got no tsap!\n", __func__ ); |
410 | return -1; | 410 | return -1; |
411 | } | 411 | } |
412 | self->provider.tsap_ctrl = tsap; | 412 | self->provider.tsap_ctrl = tsap; |
diff --git a/net/irda/irlan/irlan_provider_event.c b/net/irda/irlan/irlan_provider_event.c index 10ece5a47522..01a9d7c993ee 100644 --- a/net/irda/irlan/irlan_provider_event.c +++ b/net/irda/irlan/irlan_provider_event.c | |||
@@ -72,7 +72,7 @@ void irlan_do_provider_event(struct irlan_cb *self, IRLAN_EVENT event, | |||
72 | static int irlan_provider_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | 72 | static int irlan_provider_state_idle(struct irlan_cb *self, IRLAN_EVENT event, |
73 | struct sk_buff *skb) | 73 | struct sk_buff *skb) |
74 | { | 74 | { |
75 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 75 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
76 | 76 | ||
77 | IRDA_ASSERT(self != NULL, return -1;); | 77 | IRDA_ASSERT(self != NULL, return -1;); |
78 | 78 | ||
@@ -82,7 +82,7 @@ static int irlan_provider_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | |||
82 | irlan_next_provider_state( self, IRLAN_INFO); | 82 | irlan_next_provider_state( self, IRLAN_INFO); |
83 | break; | 83 | break; |
84 | default: | 84 | default: |
85 | IRDA_DEBUG(4, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 85 | IRDA_DEBUG(4, "%s(), Unknown event %d\n", __func__ , event); |
86 | break; | 86 | break; |
87 | } | 87 | } |
88 | if (skb) | 88 | if (skb) |
@@ -101,7 +101,7 @@ static int irlan_provider_state_info(struct irlan_cb *self, IRLAN_EVENT event, | |||
101 | { | 101 | { |
102 | int ret; | 102 | int ret; |
103 | 103 | ||
104 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 104 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
105 | 105 | ||
106 | IRDA_ASSERT(self != NULL, return -1;); | 106 | IRDA_ASSERT(self != NULL, return -1;); |
107 | 107 | ||
@@ -147,7 +147,7 @@ static int irlan_provider_state_info(struct irlan_cb *self, IRLAN_EVENT event, | |||
147 | irlan_next_provider_state(self, IRLAN_IDLE); | 147 | irlan_next_provider_state(self, IRLAN_IDLE); |
148 | break; | 148 | break; |
149 | default: | 149 | default: |
150 | IRDA_DEBUG( 0, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 150 | IRDA_DEBUG( 0, "%s(), Unknown event %d\n", __func__ , event); |
151 | break; | 151 | break; |
152 | } | 152 | } |
153 | if (skb) | 153 | if (skb) |
@@ -166,7 +166,7 @@ static int irlan_provider_state_info(struct irlan_cb *self, IRLAN_EVENT event, | |||
166 | static int irlan_provider_state_open(struct irlan_cb *self, IRLAN_EVENT event, | 166 | static int irlan_provider_state_open(struct irlan_cb *self, IRLAN_EVENT event, |
167 | struct sk_buff *skb) | 167 | struct sk_buff *skb) |
168 | { | 168 | { |
169 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 169 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
170 | 170 | ||
171 | IRDA_ASSERT(self != NULL, return -1;); | 171 | IRDA_ASSERT(self != NULL, return -1;); |
172 | 172 | ||
@@ -186,7 +186,7 @@ static int irlan_provider_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
186 | irlan_next_provider_state(self, IRLAN_IDLE); | 186 | irlan_next_provider_state(self, IRLAN_IDLE); |
187 | break; | 187 | break; |
188 | default: | 188 | default: |
189 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 189 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
190 | break; | 190 | break; |
191 | } | 191 | } |
192 | if (skb) | 192 | if (skb) |
@@ -205,7 +205,7 @@ static int irlan_provider_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
205 | static int irlan_provider_state_data(struct irlan_cb *self, IRLAN_EVENT event, | 205 | static int irlan_provider_state_data(struct irlan_cb *self, IRLAN_EVENT event, |
206 | struct sk_buff *skb) | 206 | struct sk_buff *skb) |
207 | { | 207 | { |
208 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 208 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
209 | 209 | ||
210 | IRDA_ASSERT(self != NULL, return -1;); | 210 | IRDA_ASSERT(self != NULL, return -1;); |
211 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); | 211 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); |
@@ -221,7 +221,7 @@ static int irlan_provider_state_data(struct irlan_cb *self, IRLAN_EVENT event, | |||
221 | irlan_next_provider_state(self, IRLAN_IDLE); | 221 | irlan_next_provider_state(self, IRLAN_IDLE); |
222 | break; | 222 | break; |
223 | default: | 223 | default: |
224 | IRDA_DEBUG( 0, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 224 | IRDA_DEBUG( 0, "%s(), Unknown event %d\n", __func__ , event); |
225 | break; | 225 | break; |
226 | } | 226 | } |
227 | if (skb) | 227 | if (skb) |