Lines Matching defs:llc
8 #include <net/nfc/llc.h>
10 #include "llc.h"
96 struct nfc_llc *llc;
102 llc = kzalloc(sizeof(struct nfc_llc), GFP_KERNEL);
103 if (llc == NULL)
106 llc->data = llc_engine->ops->init(hdev, xmit_to_drv, rcv_to_hci,
108 &llc->rx_headroom, &llc->rx_tailroom,
110 if (llc->data == NULL) {
111 kfree(llc);
114 llc->ops = llc_engine->ops;
116 return llc;
119 void nfc_llc_free(struct nfc_llc *llc)
121 llc->ops->deinit(llc);
122 kfree(llc);
125 int nfc_llc_start(struct nfc_llc *llc)
127 return llc->ops->start(llc);
131 int nfc_llc_stop(struct nfc_llc *llc)
133 return llc->ops->stop(llc);
137 void nfc_llc_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb)
139 llc->ops->rcv_from_drv(llc, skb);
142 int nfc_llc_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb)
144 return llc->ops->xmit_from_hci(llc, skb);
147 void *nfc_llc_get_data(struct nfc_llc *llc)
149 return llc->data;