Lines Matching full:pdu
283 static struct sk_buff *llcp_add_header(struct sk_buff *pdu, in llcp_add_header() argument
295 skb_put_data(pdu, header, LLCP_HEADER_SIZE); in llcp_add_header()
297 return pdu; in llcp_add_header()
300 static struct sk_buff *llcp_add_tlv(struct sk_buff *pdu, const u8 *tlv, in llcp_add_tlv() argument
308 skb_put_data(pdu, tlv, tlv_length); in llcp_add_tlv()
310 return pdu; in llcp_add_tlv()
325 pr_err("Could not allocate PDU\n"); in llcp_allocate_pdu()
649 struct sk_buff *pdu; in nfc_llcp_send_i_frame() local
700 pdu = llcp_allocate_pdu(sock, LLCP_PDU_I, in nfc_llcp_send_i_frame()
702 if (pdu == NULL) { in nfc_llcp_send_i_frame()
707 skb_put(pdu, LLCP_SEQUENCE_SIZE); in nfc_llcp_send_i_frame()
710 skb_put_data(pdu, msg_ptr, frag_len); in nfc_llcp_send_i_frame()
712 skb_queue_tail(&sock->tx_queue, pdu); in nfc_llcp_send_i_frame()
732 struct sk_buff *pdu; in nfc_llcp_send_ui_frame() local
766 pdu = nfc_alloc_send_skb(sock->dev, &sock->sk, 0, in nfc_llcp_send_ui_frame()
768 if (pdu == NULL) { in nfc_llcp_send_ui_frame()
769 pr_err("Could not allocate PDU (error=%d)\n", err); in nfc_llcp_send_ui_frame()
776 pdu = llcp_add_header(pdu, dsap, ssap, LLCP_PDU_UI); in nfc_llcp_send_ui_frame()
779 skb_put_data(pdu, msg_ptr, frag_len); in nfc_llcp_send_ui_frame()
782 skb_queue_tail(&local->tx_queue, pdu); in nfc_llcp_send_ui_frame()