diff options
Diffstat (limited to 'net/irda/qos.c')
-rw-r--r-- | net/irda/qos.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/net/irda/qos.c b/net/irda/qos.c index aeb18cf1dcae..2b00974e5bae 100644 --- a/net/irda/qos.c +++ b/net/irda/qos.c | |||
@@ -201,7 +201,7 @@ static int msb_index (__u16 word) | |||
201 | * it's very likely the peer. - Jean II */ | 201 | * it's very likely the peer. - Jean II */ |
202 | if (word == 0) { | 202 | if (word == 0) { |
203 | IRDA_WARNING("%s(), Detected buggy peer, adjust null PV to 0x1!\n", | 203 | IRDA_WARNING("%s(), Detected buggy peer, adjust null PV to 0x1!\n", |
204 | __FUNCTION__); | 204 | __func__); |
205 | /* The only safe choice (we don't know the array size) */ | 205 | /* The only safe choice (we don't know the array size) */ |
206 | word = 0x1; | 206 | word = 0x1; |
207 | } | 207 | } |
@@ -342,7 +342,7 @@ static void irlap_adjust_qos_settings(struct qos_info *qos) | |||
342 | __u32 line_capacity; | 342 | __u32 line_capacity; |
343 | int index; | 343 | int index; |
344 | 344 | ||
345 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__); | 345 | IRDA_DEBUG(2, "%s()\n", __func__); |
346 | 346 | ||
347 | /* | 347 | /* |
348 | * Make sure the mintt is sensible. | 348 | * Make sure the mintt is sensible. |
@@ -352,7 +352,7 @@ static void irlap_adjust_qos_settings(struct qos_info *qos) | |||
352 | int i; | 352 | int i; |
353 | 353 | ||
354 | IRDA_WARNING("%s(), Detected buggy peer, adjust mtt to %dus!\n", | 354 | IRDA_WARNING("%s(), Detected buggy peer, adjust mtt to %dus!\n", |
355 | __FUNCTION__, sysctl_min_tx_turn_time); | 355 | __func__, sysctl_min_tx_turn_time); |
356 | 356 | ||
357 | /* We don't really need bits, but easier this way */ | 357 | /* We don't really need bits, but easier this way */ |
358 | i = value_highest_bit(sysctl_min_tx_turn_time, min_turn_times, | 358 | i = value_highest_bit(sysctl_min_tx_turn_time, min_turn_times, |
@@ -370,7 +370,7 @@ static void irlap_adjust_qos_settings(struct qos_info *qos) | |||
370 | { | 370 | { |
371 | IRDA_DEBUG(0, | 371 | IRDA_DEBUG(0, |
372 | "%s(), adjusting max turn time from %d to 500 ms\n", | 372 | "%s(), adjusting max turn time from %d to 500 ms\n", |
373 | __FUNCTION__, qos->max_turn_time.value); | 373 | __func__, qos->max_turn_time.value); |
374 | qos->max_turn_time.value = 500; | 374 | qos->max_turn_time.value = 500; |
375 | } | 375 | } |
376 | 376 | ||
@@ -386,7 +386,7 @@ static void irlap_adjust_qos_settings(struct qos_info *qos) | |||
386 | while ((qos->data_size.value > line_capacity) && (index > 0)) { | 386 | while ((qos->data_size.value > line_capacity) && (index > 0)) { |
387 | qos->data_size.value = data_sizes[index--]; | 387 | qos->data_size.value = data_sizes[index--]; |
388 | IRDA_DEBUG(2, "%s(), reducing data size to %d\n", | 388 | IRDA_DEBUG(2, "%s(), reducing data size to %d\n", |
389 | __FUNCTION__, qos->data_size.value); | 389 | __func__, qos->data_size.value); |
390 | } | 390 | } |
391 | #else /* Use method described in section 6.6.11 of IrLAP */ | 391 | #else /* Use method described in section 6.6.11 of IrLAP */ |
392 | while (irlap_requested_line_capacity(qos) > line_capacity) { | 392 | while (irlap_requested_line_capacity(qos) > line_capacity) { |
@@ -396,14 +396,14 @@ static void irlap_adjust_qos_settings(struct qos_info *qos) | |||
396 | if (qos->window_size.value > 1) { | 396 | if (qos->window_size.value > 1) { |
397 | qos->window_size.value--; | 397 | qos->window_size.value--; |
398 | IRDA_DEBUG(2, "%s(), reducing window size to %d\n", | 398 | IRDA_DEBUG(2, "%s(), reducing window size to %d\n", |
399 | __FUNCTION__, qos->window_size.value); | 399 | __func__, qos->window_size.value); |
400 | } else if (index > 1) { | 400 | } else if (index > 1) { |
401 | qos->data_size.value = data_sizes[index--]; | 401 | qos->data_size.value = data_sizes[index--]; |
402 | IRDA_DEBUG(2, "%s(), reducing data size to %d\n", | 402 | IRDA_DEBUG(2, "%s(), reducing data size to %d\n", |
403 | __FUNCTION__, qos->data_size.value); | 403 | __func__, qos->data_size.value); |
404 | } else { | 404 | } else { |
405 | IRDA_WARNING("%s(), nothing more we can do!\n", | 405 | IRDA_WARNING("%s(), nothing more we can do!\n", |
406 | __FUNCTION__); | 406 | __func__); |
407 | } | 407 | } |
408 | } | 408 | } |
409 | #endif /* CONFIG_IRDA_DYNAMIC_WINDOW */ | 409 | #endif /* CONFIG_IRDA_DYNAMIC_WINDOW */ |
@@ -538,7 +538,7 @@ static int irlap_param_baud_rate(void *instance, irda_param_t *param, int get) | |||
538 | if (get) { | 538 | if (get) { |
539 | param->pv.i = self->qos_rx.baud_rate.bits; | 539 | param->pv.i = self->qos_rx.baud_rate.bits; |
540 | IRDA_DEBUG(2, "%s(), baud rate = 0x%02x\n", | 540 | IRDA_DEBUG(2, "%s(), baud rate = 0x%02x\n", |
541 | __FUNCTION__, param->pv.i); | 541 | __func__, param->pv.i); |
542 | } else { | 542 | } else { |
543 | /* | 543 | /* |
544 | * Stations must agree on baud rate, so calculate | 544 | * Stations must agree on baud rate, so calculate |
@@ -711,7 +711,7 @@ __u32 irlap_max_line_capacity(__u32 speed, __u32 max_turn_time) | |||
711 | int i,j; | 711 | int i,j; |
712 | 712 | ||
713 | IRDA_DEBUG(2, "%s(), speed=%d, max_turn_time=%d\n", | 713 | IRDA_DEBUG(2, "%s(), speed=%d, max_turn_time=%d\n", |
714 | __FUNCTION__, speed, max_turn_time); | 714 | __func__, speed, max_turn_time); |
715 | 715 | ||
716 | i = value_index(speed, baud_rates, 10); | 716 | i = value_index(speed, baud_rates, 10); |
717 | j = value_index(max_turn_time, max_turn_times, 4); | 717 | j = value_index(max_turn_time, max_turn_times, 4); |
@@ -722,7 +722,7 @@ __u32 irlap_max_line_capacity(__u32 speed, __u32 max_turn_time) | |||
722 | line_capacity = max_line_capacities[i][j]; | 722 | line_capacity = max_line_capacities[i][j]; |
723 | 723 | ||
724 | IRDA_DEBUG(2, "%s(), line capacity=%d bytes\n", | 724 | IRDA_DEBUG(2, "%s(), line capacity=%d bytes\n", |
725 | __FUNCTION__, line_capacity); | 725 | __func__, line_capacity); |
726 | 726 | ||
727 | return line_capacity; | 727 | return line_capacity; |
728 | } | 728 | } |
@@ -738,7 +738,7 @@ static __u32 irlap_requested_line_capacity(struct qos_info *qos) | |||
738 | qos->min_turn_time.value); | 738 | qos->min_turn_time.value); |
739 | 739 | ||
740 | IRDA_DEBUG(2, "%s(), requested line capacity=%d\n", | 740 | IRDA_DEBUG(2, "%s(), requested line capacity=%d\n", |
741 | __FUNCTION__, line_capacity); | 741 | __func__, line_capacity); |
742 | 742 | ||
743 | return line_capacity; | 743 | return line_capacity; |
744 | } | 744 | } |