Lines Matching refs:llc
8 #include <net/nfc/llc.h>
10 #include "llc.h"
98 struct nfc_llc *llc;
104 llc = kzalloc(sizeof(struct nfc_llc), GFP_KERNEL);
105 if (llc == NULL)
108 llc->data = llc_engine->ops->init(hdev, xmit_to_drv, rcv_to_hci,
110 &llc->rx_headroom, &llc->rx_tailroom,
112 if (llc->data == NULL) {
113 kfree(llc);
116 llc->ops = llc_engine->ops;
118 return llc;
121 void nfc_llc_free(struct nfc_llc *llc)
123 llc->ops->deinit(llc);
124 kfree(llc);
127 int nfc_llc_start(struct nfc_llc *llc)
129 return llc->ops->start(llc);
133 int nfc_llc_stop(struct nfc_llc *llc)
135 return llc->ops->stop(llc);
139 void nfc_llc_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb)
141 llc->ops->rcv_from_drv(llc, skb);
144 int nfc_llc_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb)
146 return llc->ops->xmit_from_hci(llc, skb);
149 void *nfc_llc_get_data(struct nfc_llc *llc)
151 return llc->data;