Lines Matching refs:sap
61 static inline u16 llc_ui_next_link_no(int sap) in llc_ui_next_link_no() argument
63 return llc_ui_sap_link_no_max[sap]++; in llc_ui_next_link_no()
213 struct llc_sap *sap = llc->sap; in llc_ui_release() local
218 llc_sap_hold(sap); in llc_ui_release()
219 llc_sap_remove_socket(llc->sap, sk); in llc_ui_release()
221 llc_sap_put(sap); in llc_ui_release()
242 struct llc_sap *sap; in llc_ui_autoport() local
248 sap = llc_sap_find(i); in llc_ui_autoport()
249 if (!sap) { in llc_ui_autoport()
253 llc_sap_put(sap); in llc_ui_autoport()
277 struct llc_sap *sap; in llc_ui_autobind() local
302 sap = llc_sap_open(llc->laddr.lsap, NULL); in llc_ui_autobind()
303 if (!sap) in llc_ui_autobind()
308 llc_sap_add_socket(sap, sk); in llc_ui_autobind()
334 struct llc_sap *sap; in llc_ui_bind() local
376 sap = llc_sap_find(addr->sllc_sap); in llc_ui_bind()
377 if (!sap) { in llc_ui_bind()
378 sap = llc_sap_open(addr->sllc_sap, NULL); in llc_ui_bind()
380 if (!sap) in llc_ui_bind()
395 ask = llc_lookup_established(sap, &daddr, &laddr); in llc_ui_bind()
405 llc_sap_add_socket(sap, sk); in llc_ui_bind()
409 llc_sap_put(sap); in llc_ui_bind()
491 llc->link = llc_ui_next_link_no(llc->sap->laddr.lsap); in llc_ui_connect()
957 llc_build_and_send_ui_pkt(llc->sap, skb, addr->sllc_mac, in llc_ui_sendmsg()
963 llc_build_and_send_test_pkt(llc->sap, skb, addr->sllc_mac, in llc_ui_sendmsg()
969 llc_build_and_send_xid_pkt(llc->sap, skb, addr->sllc_mac, in llc_ui_sendmsg()
1020 if (!llc->sap) in llc_ui_getname()
1022 sllc.sllc_sap = llc->sap->laddr.lsap; in llc_ui_getname()