Home
last modified time | relevance | path

Searched refs:lsap (Results 1 – 14 of 14) sorted by relevance

/linux-2.4.37.9/net/irda/
Dirlmp_frame.c94 struct lsap_cb *lsap; in irlmp_link_data_indication() local
124 lsap = irlmp_find_lsap(self, dlsap_sel, slsap_sel, CONNECT_CMD, in irlmp_link_data_indication()
128 if (!lsap) { in irlmp_link_data_indication()
130 lsap = irlmp_find_lsap(self, dlsap_sel, slsap_sel, 0, in irlmp_link_data_indication()
134 lsap = irlmp_find_lsap(self, dlsap_sel, slsap_sel, 0, in irlmp_link_data_indication()
137 if (lsap == NULL) { in irlmp_link_data_indication()
156 lsap->lap = self; in irlmp_link_data_indication()
157 irlmp_do_lsap_event(lsap, LM_CONNECT_INDICATION, skb); in irlmp_link_data_indication()
160 irlmp_do_lsap_event(lsap, LM_CONNECT_CONFIRM, skb); in irlmp_link_data_indication()
164 irlmp_do_lsap_event(lsap, LM_DISCONNECT_INDICATION, in irlmp_link_data_indication()
[all …]
Dirlmp_event.c275 struct lsap_cb *lsap; in irlmp_state_u_connect() local
291 lsap = (struct lsap_cb *) hashbin_get_first(self->lsaps); in irlmp_state_u_connect()
292 while (lsap != NULL) { in irlmp_state_u_connect()
293 irlmp_do_lsap_event(lsap, LM_LAP_CONNECT_CONFIRM, NULL); in irlmp_state_u_connect()
294 lsap = (struct lsap_cb*) hashbin_get_next(self->lsaps); in irlmp_state_u_connect()
311 lsap = (struct lsap_cb *) hashbin_get_first(self->lsaps); in irlmp_state_u_connect()
312 while (lsap != NULL) { in irlmp_state_u_connect()
313 irlmp_do_lsap_event(lsap, LM_LAP_CONNECT_CONFIRM, NULL); in irlmp_state_u_connect()
314 lsap = (struct lsap_cb*) hashbin_get_next(self->lsaps); in irlmp_state_u_connect()
329 lsap = (struct lsap_cb *) hashbin_get_first( self->lsaps); in irlmp_state_u_connect()
[all …]
Dirttp.c372 struct lsap_cb *lsap; in irttp_open_tsap() local
422 lsap = irlmp_open_lsap(stsap_sel, &ttp_notify, 0); in irttp_open_tsap()
423 if (lsap == NULL) { in irttp_open_tsap()
433 self->stsap_sel = lsap->slsap_sel; in irttp_open_tsap()
437 self->lsap = lsap; in irttp_open_tsap()
514 if (self->lsap) { in irttp_close_tsap()
515 irlmp_close_lsap(self->lsap); in irttp_close_tsap()
516 self->lsap = NULL; in irttp_close_tsap()
549 irlmp_udata_request(self->lsap, skb); in irttp_udata_request()
678 (!irlmp_lap_tx_queue_full(self->lsap)) && in irttp_run_tx_queue()
[all …]
Dirlmp.c227 struct lsap_cb *lsap = NULL; in irlmp_close_lsap() local
249 lsap = hashbin_remove(lap->lsaps, (int) self, NULL); in irlmp_close_lsap()
253 if (!lsap) { in irlmp_close_lsap()
254 lsap = hashbin_remove(irlmp->unconnected_lsaps, (int) self, in irlmp_close_lsap()
257 if (!lsap) { in irlmp_close_lsap()
350 struct lsap_cb *lsap; in irlmp_connect_request() local
439 lsap = hashbin_remove(irlmp->unconnected_lsaps, (int) self, NULL); in irlmp_connect_request()
441 ASSERT(lsap != NULL, return -1;); in irlmp_connect_request()
442 ASSERT(lsap->magic == LMP_LSAP_MAGIC, return -1;); in irlmp_connect_request()
443 ASSERT(lsap->lap != NULL, return -1;); in irlmp_connect_request()
[all …]
Diriap.c234 if (self->lsap) { in iriap_close()
235 irlmp_close_lsap(self->lsap); in iriap_close()
236 self->lsap = NULL; in iriap_close()
262 self->lsap = irlmp_open_lsap(slsap_sel, &notify, 0); in iriap_register_lsap()
263 if (self->lsap == NULL) { in iriap_register_lsap()
267 self->slsap_sel = self->lsap->slsap_sel; in iriap_register_lsap()
346 irlmp_disconnect_request(self->lsap, skb); in iriap_disconnect_request()
719 irlmp_data_request(self->lsap, skb); in iriap_send_ack()
729 ret = irlmp_connect_request(self->lsap, LSAP_IAS, in iriap_connect_request()
794 new->lsap = irlmp_dup(self->lsap, new); in iriap_connect_indication()
[all …]
Diriap_event.c263 irlmp_data_request(self->lsap, tx_skb); in state_s_make_call()
375 irlmp_connect_response(self->lsap, tx_skb); in state_r_disconnect()
491 irlmp_data_request(self->lsap, skb); in state_r_execute()
Daf_irda.c521 if (self->lsap) { in irda_open_lsap()
532 self->lsap = irlmp_open_lsap(LSAP_CONNLESS, &notify, pid); in irda_open_lsap()
533 if (self->lsap == NULL) { in irda_open_lsap()
1173 if (self->lsap) { in irda_destroy_socket()
1174 irlmp_close_lsap(self->lsap); in irda_destroy_socket()
1175 self->lsap = NULL; in irda_destroy_socket()
1616 err = irlmp_connless_data_request(self->lsap, skb); in irda_sendmsg_ultra()
/linux-2.4.37.9/include/net/irda/
Dirttp.h109 struct lsap_cb *lsap; /* Corresponding LSAP to this TSAP */ member
176 return irlmp_get_saddr(self->lsap); in irttp_get_saddr()
181 return irlmp_get_daddr(self->lsap); in irttp_get_daddr()
196 irlmp_listen(self->lsap); in irttp_listen()
205 (self->lsap == NULL) || in irttp_is_primary()
206 (self->lsap->lap == NULL) || in irttp_is_primary()
207 (self->lsap->lap->irlap == NULL)) in irttp_is_primary()
209 return(irlap_is_primary(self->lsap->lap->irlap)); in irttp_is_primary()
Diriap.h71 struct lsap_cb *lsap; member
Dircomm_core.h66 struct lsap_cb *lsap; member
Dirda.h133 struct lsap_cb *lsap; /* LSAP used by Ultra */ member
Dirlmp.h153 struct lsap_cb *lsap; member
/linux-2.4.37.9/net/irda/ircomm/
Dircomm_lmp.c63 self->lsap = irlmp_open_lsap(LSAP_ANY, &notify, 0); in ircomm_open_lsap()
64 if (!self->lsap) { in ircomm_open_lsap()
68 self->slsap_sel = self->lsap->slsap_sel; in ircomm_open_lsap()
95 ret = irlmp_connect_request(self->lsap, info->dlsap_sel, in ircomm_lmp_connect_request()
130 ret = irlmp_connect_response(self->lsap, skb); in ircomm_lmp_connect_response()
153 ret = irlmp_disconnect_request(self->lsap, userdata); in ircomm_lmp_disconnect_request()
228 ret = irlmp_data_request(self->lsap, skb); in ircomm_lmp_data_request()
Dircomm_core.c159 if (self->lsap) { in __ircomm_close()
160 irlmp_close_lsap(self->lsap); in __ircomm_close()
161 self->lsap = NULL; in __ircomm_close()