Lines Matching refs:llc

107 	struct nfc_llc *llc;  in nfc_llc_allocate()  local
113 llc = kzalloc(sizeof(struct nfc_llc), GFP_KERNEL); in nfc_llc_allocate()
114 if (llc == NULL) in nfc_llc_allocate()
117 llc->data = llc_engine->ops->init(hdev, xmit_to_drv, rcv_to_hci, in nfc_llc_allocate()
119 &llc->rx_headroom, &llc->rx_tailroom, in nfc_llc_allocate()
121 if (llc->data == NULL) { in nfc_llc_allocate()
122 kfree(llc); in nfc_llc_allocate()
125 llc->ops = llc_engine->ops; in nfc_llc_allocate()
127 return llc; in nfc_llc_allocate()
130 void nfc_llc_free(struct nfc_llc *llc) in nfc_llc_free() argument
132 llc->ops->deinit(llc); in nfc_llc_free()
133 kfree(llc); in nfc_llc_free()
136 inline void nfc_llc_get_rx_head_tail_room(struct nfc_llc *llc, int *rx_headroom, in nfc_llc_get_rx_head_tail_room() argument
139 *rx_headroom = llc->rx_headroom; in nfc_llc_get_rx_head_tail_room()
140 *rx_tailroom = llc->rx_tailroom; in nfc_llc_get_rx_head_tail_room()
143 inline int nfc_llc_start(struct nfc_llc *llc) in nfc_llc_start() argument
145 return llc->ops->start(llc); in nfc_llc_start()
148 inline int nfc_llc_stop(struct nfc_llc *llc) in nfc_llc_stop() argument
150 return llc->ops->stop(llc); in nfc_llc_stop()
153 inline void nfc_llc_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb) in nfc_llc_rcv_from_drv() argument
155 llc->ops->rcv_from_drv(llc, skb); in nfc_llc_rcv_from_drv()
158 inline int nfc_llc_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb) in nfc_llc_xmit_from_hci() argument
160 return llc->ops->xmit_from_hci(llc, skb); in nfc_llc_xmit_from_hci()
163 inline void *nfc_llc_get_data(struct nfc_llc *llc) in nfc_llc_get_data() argument
165 return llc->data; in nfc_llc_get_data()