diff options
Diffstat (limited to 'net/irda/irlan/irlan_client.c')
-rw-r--r-- | net/irda/irlan/irlan_client.c | 48 |
1 files changed, 24 insertions, 24 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); |