Lines Matching refs:sap
46 * @station - station this sap belongs to
47 * @state - sap state
73 struct hlist_head *llc_sk_dev_hash(struct llc_sap *sap, int ifindex)
77 return &sap->sk_dev_hash[bucket];
81 u32 llc_sk_laddr_hashfn(struct llc_sap *sap, const struct llc_addr *laddr)
88 struct hlist_nulls_head *llc_sk_laddr_hash(struct llc_sap *sap,
91 return &sap->sk_laddr_hash[llc_sk_laddr_hashfn(sap, laddr)];
107 void (*handler)(struct llc_sap *sap, struct sk_buff *skb));
117 static inline void llc_sap_hold(struct llc_sap *sap)
119 refcount_inc(&sap->refcnt);
122 static inline bool llc_sap_hold_safe(struct llc_sap *sap)
124 return refcount_inc_not_zero(&sap->refcnt);
127 void llc_sap_close(struct llc_sap *sap);
129 static inline void llc_sap_put(struct llc_sap *sap)
131 if (refcount_dec_and_test(&sap->refcnt))
132 llc_sap_close(sap);
137 int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb,
140 void llc_sap_handler(struct llc_sap *sap, struct sk_buff *skb);
141 void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb);