diff options
Diffstat (limited to 'net/irda/irlmp_frame.c')
-rw-r--r-- | net/irda/irlmp_frame.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/net/irda/irlmp_frame.c b/net/irda/irlmp_frame.c index 0a79d9aeb08c..3750884094da 100644 --- a/net/irda/irlmp_frame.c +++ b/net/irda/irlmp_frame.c | |||
@@ -44,7 +44,7 @@ inline void irlmp_send_data_pdu(struct lap_cb *self, __u8 dlsap, __u8 slsap, | |||
44 | skb->data[1] = slsap; | 44 | skb->data[1] = slsap; |
45 | 45 | ||
46 | if (expedited) { | 46 | if (expedited) { |
47 | IRDA_DEBUG(4, "%s(), sending expedited data\n", __FUNCTION__); | 47 | IRDA_DEBUG(4, "%s(), sending expedited data\n", __func__); |
48 | irlap_data_request(self->irlap, skb, TRUE); | 48 | irlap_data_request(self->irlap, skb, TRUE); |
49 | } else | 49 | } else |
50 | irlap_data_request(self->irlap, skb, FALSE); | 50 | irlap_data_request(self->irlap, skb, FALSE); |
@@ -60,7 +60,7 @@ void irlmp_send_lcf_pdu(struct lap_cb *self, __u8 dlsap, __u8 slsap, | |||
60 | { | 60 | { |
61 | __u8 *frame; | 61 | __u8 *frame; |
62 | 62 | ||
63 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__); | 63 | IRDA_DEBUG(2, "%s()\n", __func__); |
64 | 64 | ||
65 | IRDA_ASSERT(self != NULL, return;); | 65 | IRDA_ASSERT(self != NULL, return;); |
66 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); | 66 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); |
@@ -95,7 +95,7 @@ void irlmp_link_data_indication(struct lap_cb *self, struct sk_buff *skb, | |||
95 | __u8 dlsap_sel; /* Destination LSAP address */ | 95 | __u8 dlsap_sel; /* Destination LSAP address */ |
96 | __u8 *fp; | 96 | __u8 *fp; |
97 | 97 | ||
98 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__); | 98 | IRDA_DEBUG(4, "%s()\n", __func__); |
99 | 99 | ||
100 | IRDA_ASSERT(self != NULL, return;); | 100 | IRDA_ASSERT(self != NULL, return;); |
101 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); | 101 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); |
@@ -117,7 +117,7 @@ void irlmp_link_data_indication(struct lap_cb *self, struct sk_buff *skb, | |||
117 | if ((fp[0] & CONTROL_BIT) && (fp[2] == CONNECT_CMD)) { | 117 | if ((fp[0] & CONTROL_BIT) && (fp[2] == CONNECT_CMD)) { |
118 | IRDA_DEBUG(3, "%s(), incoming connection, " | 118 | IRDA_DEBUG(3, "%s(), incoming connection, " |
119 | "source LSAP=%d, dest LSAP=%d\n", | 119 | "source LSAP=%d, dest LSAP=%d\n", |
120 | __FUNCTION__, slsap_sel, dlsap_sel); | 120 | __func__, slsap_sel, dlsap_sel); |
121 | 121 | ||
122 | /* Try to find LSAP among the unconnected LSAPs */ | 122 | /* Try to find LSAP among the unconnected LSAPs */ |
123 | lsap = irlmp_find_lsap(self, dlsap_sel, slsap_sel, CONNECT_CMD, | 123 | lsap = irlmp_find_lsap(self, dlsap_sel, slsap_sel, CONNECT_CMD, |
@@ -125,7 +125,7 @@ void irlmp_link_data_indication(struct lap_cb *self, struct sk_buff *skb, | |||
125 | 125 | ||
126 | /* Maybe LSAP was already connected, so try one more time */ | 126 | /* Maybe LSAP was already connected, so try one more time */ |
127 | if (!lsap) { | 127 | if (!lsap) { |
128 | IRDA_DEBUG(1, "%s(), incoming connection for LSAP already connected\n", __FUNCTION__); | 128 | IRDA_DEBUG(1, "%s(), incoming connection for LSAP already connected\n", __func__); |
129 | lsap = irlmp_find_lsap(self, dlsap_sel, slsap_sel, 0, | 129 | lsap = irlmp_find_lsap(self, dlsap_sel, slsap_sel, 0, |
130 | self->lsaps); | 130 | self->lsaps); |
131 | } | 131 | } |
@@ -136,12 +136,12 @@ void irlmp_link_data_indication(struct lap_cb *self, struct sk_buff *skb, | |||
136 | if (lsap == NULL) { | 136 | if (lsap == NULL) { |
137 | IRDA_DEBUG(2, "IrLMP, Sorry, no LSAP for received frame!\n"); | 137 | IRDA_DEBUG(2, "IrLMP, Sorry, no LSAP for received frame!\n"); |
138 | IRDA_DEBUG(2, "%s(), slsap_sel = %02x, dlsap_sel = %02x\n", | 138 | IRDA_DEBUG(2, "%s(), slsap_sel = %02x, dlsap_sel = %02x\n", |
139 | __FUNCTION__, slsap_sel, dlsap_sel); | 139 | __func__, slsap_sel, dlsap_sel); |
140 | if (fp[0] & CONTROL_BIT) { | 140 | if (fp[0] & CONTROL_BIT) { |
141 | IRDA_DEBUG(2, "%s(), received control frame %02x\n", | 141 | IRDA_DEBUG(2, "%s(), received control frame %02x\n", |
142 | __FUNCTION__, fp[2]); | 142 | __func__, fp[2]); |
143 | } else { | 143 | } else { |
144 | IRDA_DEBUG(2, "%s(), received data frame\n", __FUNCTION__); | 144 | IRDA_DEBUG(2, "%s(), received data frame\n", __func__); |
145 | } | 145 | } |
146 | return; | 146 | return; |
147 | } | 147 | } |
@@ -160,7 +160,7 @@ void irlmp_link_data_indication(struct lap_cb *self, struct sk_buff *skb, | |||
160 | break; | 160 | break; |
161 | case DISCONNECT: | 161 | case DISCONNECT: |
162 | IRDA_DEBUG(4, "%s(), Disconnect indication!\n", | 162 | IRDA_DEBUG(4, "%s(), Disconnect indication!\n", |
163 | __FUNCTION__); | 163 | __func__); |
164 | irlmp_do_lsap_event(lsap, LM_DISCONNECT_INDICATION, | 164 | irlmp_do_lsap_event(lsap, LM_DISCONNECT_INDICATION, |
165 | skb); | 165 | skb); |
166 | break; | 166 | break; |
@@ -172,7 +172,7 @@ void irlmp_link_data_indication(struct lap_cb *self, struct sk_buff *skb, | |||
172 | break; | 172 | break; |
173 | default: | 173 | default: |
174 | IRDA_DEBUG(0, "%s(), Unknown control frame %02x\n", | 174 | IRDA_DEBUG(0, "%s(), Unknown control frame %02x\n", |
175 | __FUNCTION__, fp[2]); | 175 | __func__, fp[2]); |
176 | break; | 176 | break; |
177 | } | 177 | } |
178 | } else if (unreliable) { | 178 | } else if (unreliable) { |
@@ -206,7 +206,7 @@ void irlmp_link_unitdata_indication(struct lap_cb *self, struct sk_buff *skb) | |||
206 | __u8 *fp; | 206 | __u8 *fp; |
207 | unsigned long flags; | 207 | unsigned long flags; |
208 | 208 | ||
209 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__); | 209 | IRDA_DEBUG(4, "%s()\n", __func__); |
210 | 210 | ||
211 | IRDA_ASSERT(self != NULL, return;); | 211 | IRDA_ASSERT(self != NULL, return;); |
212 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); | 212 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); |
@@ -224,13 +224,13 @@ void irlmp_link_unitdata_indication(struct lap_cb *self, struct sk_buff *skb) | |||
224 | 224 | ||
225 | if (pid & 0x80) { | 225 | if (pid & 0x80) { |
226 | IRDA_DEBUG(0, "%s(), extension in PID not supp!\n", | 226 | IRDA_DEBUG(0, "%s(), extension in PID not supp!\n", |
227 | __FUNCTION__); | 227 | __func__); |
228 | return; | 228 | return; |
229 | } | 229 | } |
230 | 230 | ||
231 | /* Check if frame is addressed to the connectionless LSAP */ | 231 | /* Check if frame is addressed to the connectionless LSAP */ |
232 | if ((slsap_sel != LSAP_CONNLESS) || (dlsap_sel != LSAP_CONNLESS)) { | 232 | if ((slsap_sel != LSAP_CONNLESS) || (dlsap_sel != LSAP_CONNLESS)) { |
233 | IRDA_DEBUG(0, "%s(), dropping frame!\n", __FUNCTION__); | 233 | IRDA_DEBUG(0, "%s(), dropping frame!\n", __func__); |
234 | return; | 234 | return; |
235 | } | 235 | } |
236 | 236 | ||
@@ -254,7 +254,7 @@ void irlmp_link_unitdata_indication(struct lap_cb *self, struct sk_buff *skb) | |||
254 | if (lsap) | 254 | if (lsap) |
255 | irlmp_connless_data_indication(lsap, skb); | 255 | irlmp_connless_data_indication(lsap, skb); |
256 | else { | 256 | else { |
257 | IRDA_DEBUG(0, "%s(), found no matching LSAP!\n", __FUNCTION__); | 257 | IRDA_DEBUG(0, "%s(), found no matching LSAP!\n", __func__); |
258 | } | 258 | } |
259 | } | 259 | } |
260 | #endif /* CONFIG_IRDA_ULTRA */ | 260 | #endif /* CONFIG_IRDA_ULTRA */ |
@@ -270,7 +270,7 @@ void irlmp_link_disconnect_indication(struct lap_cb *lap, | |||
270 | LAP_REASON reason, | 270 | LAP_REASON reason, |
271 | struct sk_buff *skb) | 271 | struct sk_buff *skb) |
272 | { | 272 | { |
273 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__); | 273 | IRDA_DEBUG(2, "%s()\n", __func__); |
274 | 274 | ||
275 | IRDA_ASSERT(lap != NULL, return;); | 275 | IRDA_ASSERT(lap != NULL, return;); |
276 | IRDA_ASSERT(lap->magic == LMP_LAP_MAGIC, return;); | 276 | IRDA_ASSERT(lap->magic == LMP_LAP_MAGIC, return;); |
@@ -296,7 +296,7 @@ void irlmp_link_connect_indication(struct lap_cb *self, __u32 saddr, | |||
296 | __u32 daddr, struct qos_info *qos, | 296 | __u32 daddr, struct qos_info *qos, |
297 | struct sk_buff *skb) | 297 | struct sk_buff *skb) |
298 | { | 298 | { |
299 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__); | 299 | IRDA_DEBUG(4, "%s()\n", __func__); |
300 | 300 | ||
301 | /* Copy QoS settings for this session */ | 301 | /* Copy QoS settings for this session */ |
302 | self->qos = qos; | 302 | self->qos = qos; |
@@ -317,7 +317,7 @@ void irlmp_link_connect_indication(struct lap_cb *self, __u32 saddr, | |||
317 | void irlmp_link_connect_confirm(struct lap_cb *self, struct qos_info *qos, | 317 | void irlmp_link_connect_confirm(struct lap_cb *self, struct qos_info *qos, |
318 | struct sk_buff *skb) | 318 | struct sk_buff *skb) |
319 | { | 319 | { |
320 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__); | 320 | IRDA_DEBUG(4, "%s()\n", __func__); |
321 | 321 | ||
322 | IRDA_ASSERT(self != NULL, return;); | 322 | IRDA_ASSERT(self != NULL, return;); |
323 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); | 323 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); |
@@ -383,7 +383,7 @@ void irlmp_link_discovery_indication(struct lap_cb *self, | |||
383 | */ | 383 | */ |
384 | void irlmp_link_discovery_confirm(struct lap_cb *self, hashbin_t *log) | 384 | void irlmp_link_discovery_confirm(struct lap_cb *self, hashbin_t *log) |
385 | { | 385 | { |
386 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__); | 386 | IRDA_DEBUG(4, "%s()\n", __func__); |
387 | 387 | ||
388 | IRDA_ASSERT(self != NULL, return;); | 388 | IRDA_ASSERT(self != NULL, return;); |
389 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); | 389 | IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); |