Lines Matching refs:lsap

94 	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()
182 if (lsap->lsap_state == LSAP_DATA_TRANSFER_READY) in irlmp_link_data_indication()
183 irlmp_udata_indication(lsap, skb); in irlmp_link_data_indication()
185 irlmp_do_lsap_event(lsap, LM_UDATA_INDICATION, skb); in irlmp_link_data_indication()
188 if (lsap->lsap_state == LSAP_DATA_TRANSFER_READY) in irlmp_link_data_indication()
189 irlmp_data_indication(lsap, skb); in irlmp_link_data_indication()
191 irlmp_do_lsap_event(lsap, LM_DATA_INDICATION, skb); in irlmp_link_data_indication()
204 struct lsap_cb *lsap; in irlmp_link_unitdata_indication() local
241 lsap = (struct lsap_cb *) hashbin_get_first(irlmp->unconnected_lsaps); in irlmp_link_unitdata_indication()
242 while (lsap != NULL) { in irlmp_link_unitdata_indication()
246 if ((lsap->slsap_sel == slsap_sel) && in irlmp_link_unitdata_indication()
247 (lsap->dlsap_sel == dlsap_sel) && in irlmp_link_unitdata_indication()
248 (lsap->pid == pid)) in irlmp_link_unitdata_indication()
252 lsap = (struct lsap_cb *) hashbin_get_next(irlmp->unconnected_lsaps); in irlmp_link_unitdata_indication()
254 if (lsap) in irlmp_link_unitdata_indication()
255 irlmp_connless_data_indication(lsap, skb); in irlmp_link_unitdata_indication()
412 irlmp->cache.lsap = self; in irlmp_update_cache()
427 struct lsap_cb *lsap; in irlmp_find_lsap() local
439 return (irlmp->cache.lsap); in irlmp_find_lsap()
442 lsap = (struct lsap_cb *) hashbin_get_first(queue); in irlmp_find_lsap()
443 while (lsap != NULL) { in irlmp_find_lsap()
451 (lsap->slsap_sel == slsap_sel) && in irlmp_find_lsap()
452 (lsap->dlsap_sel == LSAP_ANY)) in irlmp_find_lsap()
454 lsap->dlsap_sel = dlsap_sel; in irlmp_find_lsap()
457 irlmp_update_cache(lsap); in irlmp_find_lsap()
459 return lsap; in irlmp_find_lsap()
464 if ((lsap->slsap_sel == slsap_sel) && in irlmp_find_lsap()
465 (lsap->dlsap_sel == dlsap_sel)) in irlmp_find_lsap()
468 irlmp_update_cache(lsap); in irlmp_find_lsap()
470 return lsap; in irlmp_find_lsap()
472 lsap = (struct lsap_cb *) hashbin_get_next(queue); in irlmp_find_lsap()