Lines Matching refs:sap
36 struct llc_sap *sap; in llc_get_sk_idx() local
40 list_for_each_entry_rcu(sap, &llc_sap_list, node) { in llc_get_sk_idx()
41 spin_lock_bh(&sap->sk_lock); in llc_get_sk_idx()
43 struct hlist_nulls_head *head = &sap->sk_laddr_hash[i]; in llc_get_sk_idx()
52 spin_unlock_bh(&sap->sk_lock); in llc_get_sk_idx()
67 static struct sock *laddr_hash_next(struct llc_sap *sap, int bucket) in laddr_hash_next() argument
73 sk_nulls_for_each(sk, node, &sap->sk_laddr_hash[bucket]) in laddr_hash_next()
84 struct llc_sap *sap; in llc_seq_next() local
98 sap = llc->sap; in llc_seq_next()
99 sk = laddr_hash_next(sap, llc_sk_laddr_hashfn(sap, &llc->laddr)); in llc_seq_next()
102 spin_unlock_bh(&sap->sk_lock); in llc_seq_next()
103 list_for_each_entry_continue_rcu(sap, &llc_sap_list, node) { in llc_seq_next()
104 spin_lock_bh(&sap->sk_lock); in llc_seq_next()
105 sk = laddr_hash_next(sap, -1); in llc_seq_next()
108 spin_unlock_bh(&sap->sk_lock); in llc_seq_next()
119 struct llc_sap *sap = llc->sap; in llc_seq_stop() local
121 spin_unlock_bh(&sap->sk_lock); in llc_seq_stop()
148 seq_printf(seq, "@%02X ", llc->sap->laddr.lsap); in llc_seq_socket_show()