Home
last modified time | relevance | path

Searched refs:tsap (Results 1 – 10 of 10) sorted by relevance

/net/irda/irlan/
Dirlan_provider.c129 struct tsap_cb *tsap; in irlan_provider_connect_indication() local
134 tsap = sap; in irlan_provider_connect_indication()
139 IRDA_ASSERT(tsap == self->provider.tsap_ctrl,return;); in irlan_provider_connect_indication()
166 struct tsap_cb *tsap) in irlan_provider_connect_response() argument
172 irttp_connect_response(tsap, IRLAN_MTU, NULL); in irlan_provider_connect_response()
180 struct tsap_cb *tsap; in irlan_provider_disconnect_indication() local
185 tsap = sap; in irlan_provider_disconnect_indication()
189 IRDA_ASSERT(tsap != NULL, return;); in irlan_provider_disconnect_indication()
190 IRDA_ASSERT(tsap->magic == TTP_TSAP_MAGIC, return;); in irlan_provider_disconnect_indication()
192 IRDA_ASSERT(tsap == self->provider.tsap_ctrl, return;); in irlan_provider_disconnect_indication()
[all …]
Dirlan_client.c223 struct tsap_cb *tsap; in irlan_client_ctrl_disconnect_indication() local
229 tsap = sap; in irlan_client_ctrl_disconnect_indication()
233 IRDA_ASSERT(tsap != NULL, return;); in irlan_client_ctrl_disconnect_indication()
234 IRDA_ASSERT(tsap->magic == TTP_TSAP_MAGIC, return;); in irlan_client_ctrl_disconnect_indication()
236 IRDA_ASSERT(tsap == self->client.tsap_ctrl, return;); in irlan_client_ctrl_disconnect_indication()
255 struct tsap_cb *tsap; in irlan_client_open_ctrl_tsap() local
276 tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, &notify); in irlan_client_open_ctrl_tsap()
277 if (!tsap) { in irlan_client_open_ctrl_tsap()
281 self->client.tsap_ctrl = tsap; in irlan_client_open_ctrl_tsap()
Dirlan_common.c315 struct tsap_cb *tsap; in irlan_connect_indication() local
320 tsap = sap; in irlan_connect_indication()
324 IRDA_ASSERT(tsap == self->tsap_data,return;); in irlan_connect_indication()
404 struct tsap_cb *tsap; in irlan_disconnect_indication() local
409 tsap = sap; in irlan_disconnect_indication()
413 IRDA_ASSERT(tsap != NULL, return;); in irlan_disconnect_indication()
414 IRDA_ASSERT(tsap->magic == TTP_TSAP_MAGIC, return;); in irlan_disconnect_indication()
416 IRDA_ASSERT(tsap == self->tsap_data, return;); in irlan_disconnect_indication()
459 struct tsap_cb *tsap; in irlan_open_data_tsap() local
482 tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, &notify); in irlan_open_data_tsap()
[all …]
/net/irda/irnet/
Dirnet_irda.c130 DABORT(self->tsap != NULL, -EBUSY, IRDA_SR_ERROR, "Already busy !\n"); in irnet_open_tsap()
145 self->tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, in irnet_open_tsap()
147 DABORT(self->tsap == NULL, -ENOMEM, in irnet_open_tsap()
151 self->stsap_sel = self->tsap->stsap_sel; in irnet_open_tsap()
154 self->tsap, self->stsap_sel); in irnet_open_tsap()
308 err = irttp_connect_request(self->tsap, self->dtsap_sel, in irnet_connect_tsap()
559 if((self->iriap != NULL) || (self->tsap != NULL)) in irda_irnet_connect()
671 if(self->tsap) in irda_irnet_destroy()
674 irttp_disconnect_request(self->tsap, NULL, P_NORMAL); in irda_irnet_destroy()
675 irttp_close_tsap(self->tsap); in irda_irnet_destroy()
[all …]
Dirnet.h428 struct tsap_cb * tsap; /* IrTTP instance (the connection) */ member
Dirnet_ppp.c981 skb_queue_len(&self->tsap->tx_queue)); in ppp_irnet_send()
988 ret = irttp_data_request(self->tsap, skb); in ppp_irnet_send()
/net/irda/ircomm/
Dircomm_ttp.c91 self->tsap = irttp_open_tsap(LSAP_ANY, DEFAULT_INITIAL_CREDIT, in ircomm_open_tsap()
93 if (!self->tsap) { in ircomm_open_tsap()
97 self->slsap_sel = self->tsap->stsap_sel; in ircomm_open_tsap()
128 ret = irttp_connect_request(self->tsap, info->dlsap_sel, in ircomm_ttp_connect_request()
152 ret = irttp_connect_response(self->tsap, TTP_SAR_DISABLE, userdata); in ircomm_ttp_connect_response()
189 ret = irttp_data_request(self->tsap, skb); in ircomm_ttp_data_request()
245 info.max_data_size = irttp_get_max_seg_size(self->tsap) in ircomm_ttp_connect_confirm()
286 info.max_data_size = irttp_get_max_seg_size(self->tsap) in ircomm_ttp_connect_indication()
314 ret = irttp_disconnect_request(self->tsap, userdata, P_NORMAL); in ircomm_ttp_disconnect_request()
Dircomm_core.c163 if (self->tsap) { in __ircomm_close()
164 irttp_close_tsap(self->tsap); in __ircomm_close()
165 self->tsap = NULL; in __ircomm_close()
508 irttp_flow_request(self->tsap, flow); in ircomm_flow_request()
/net/irda/
Daf_irda.c152 if (self->tsap) { in irda_disconnect_indication()
153 irttp_close_tsap(self->tsap); in irda_disconnect_indication()
154 self->tsap = NULL; in irda_disconnect_indication()
208 self->max_data_size = irttp_get_max_seg_size(self->tsap); in irda_connect_confirm()
219 self->max_data_size = irttp_get_max_seg_size(self->tsap); in irda_connect_confirm()
270 self->max_data_size = irttp_get_max_seg_size(self->tsap); in irda_connect_indication()
282 self->max_data_size = irttp_get_max_seg_size(self->tsap); in irda_connect_indication()
316 irttp_connect_response(self->tsap, self->max_sdu_size_rx, skb); in irda_connect_response()
467 if (self->tsap) { in irda_open_tsap()
483 self->tsap = irttp_open_tsap(tsap_sel, DEFAULT_INITIAL_CREDIT, in irda_open_tsap()
[all …]
Dirttp.c377 static void irttp_init_tsap(struct tsap_cb *tsap) in irttp_init_tsap() argument
379 spin_lock_init(&tsap->lock); in irttp_init_tsap()
380 init_timer(&tsap->todo_timer); in irttp_init_tsap()
382 skb_queue_head_init(&tsap->rx_queue); in irttp_init_tsap()
383 skb_queue_head_init(&tsap->tx_queue); in irttp_init_tsap()
384 skb_queue_head_init(&tsap->rx_fragments); in irttp_init_tsap()
510 struct tsap_cb *tsap; in irttp_close_tsap() local
531 tsap = hashbin_remove(irttp->tsaps, (long) self, NULL); in irttp_close_tsap()
533 IRDA_ASSERT(tsap == self, return -1;); in irttp_close_tsap()