Lines Matching refs:tsap

130   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()
676 self->tsap = NULL; in irda_irnet_destroy()
757 self->daddr = irttp_get_daddr(self->tsap); in irnet_find_socket()
758 self->saddr = irttp_get_saddr(self->tsap); in irnet_find_socket()
842 new->tsap = irttp_dup(server->tsap, new); in irnet_connect_socket()
843 DABORT(new->tsap == NULL, -1, IRDA_SERV_ERROR, "dup failed!\n"); in irnet_connect_socket()
846 new->stsap_sel = new->tsap->stsap_sel; in irnet_connect_socket()
847 new->dtsap_sel = new->tsap->dtsap_sel; in irnet_connect_socket()
848 new->saddr = irttp_get_saddr(new->tsap); in irnet_connect_socket()
849 new->daddr = irttp_get_daddr(new->tsap); in irnet_connect_socket()
857 new->max_data_size = irttp_get_max_seg_size(new->tsap); in irnet_connect_socket()
861 irttp_listen(server->tsap); in irnet_connect_socket()
864 irttp_connect_response(new->tsap, new->max_sdu_size_rx, NULL); in irnet_connect_socket()
919 irttp_disconnect_request(self->tsap, NULL, P_NORMAL); in irnet_disconnect_server()
927 irttp_listen(self->tsap); in irnet_disconnect_server()
1140 if((self->tsap) && (self != &irnet_server.s)) in irnet_disconnect_indication()
1145 if((self->tsap) && (self != &irnet_server.s)) in irnet_disconnect_indication()
1148 irttp_close_tsap(self->tsap); in irnet_disconnect_indication()
1149 self->tsap = NULL; in irnet_disconnect_indication()
1211 self->max_data_size = irttp_get_max_seg_size(self->tsap); in irnet_connect_confirm()
1215 self->saddr = irttp_get_saddr(self->tsap); in irnet_connect_confirm()
1346 DASSERT(sap == irnet_server.s.tsap, , IRDA_CB_ERROR, "Invalid sap !!!\n"); in irnet_connect_indication()
1404 || ((irttp_is_primary(server->tsap) == 1) && /* primary */ in irnet_connect_indication()
1412 if(new->tsap != NULL) in irnet_connect_indication()
1417 irttp_close_tsap(new->tsap); in irnet_connect_indication()
1418 new->tsap = NULL; in irnet_connect_indication()
1433 if((test_bit(0, &new->ttp_connect)) || (new->tsap != NULL)) in irnet_connect_indication()
1451 irnet_data_indication(new, new->tsap, skb); in irnet_connect_indication()
1772 if(self->tsap != NULL) in irnet_proc_show()