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