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