Home
last modified time | relevance | path

Searched refs:nci_hdr (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/nfc/nfcmrvl/
Di2c.c43 struct nci_ctrl_hdr nci_hdr; in nfcmrvl_i2c_read() local
46 ret = i2c_master_recv(drv_data->i2c, (u8 *)&nci_hdr, NCI_CTRL_HDR_SIZE); in nfcmrvl_i2c_read()
52 if (nci_hdr.plen > NCI_MAX_PAYLOAD_SIZE) { in nfcmrvl_i2c_read()
58 nci_hdr.plen + NCI_CTRL_HDR_SIZE, GFP_KERNEL); in nfcmrvl_i2c_read()
63 skb_put_data(*skb, &nci_hdr, NCI_CTRL_HDR_SIZE); in nfcmrvl_i2c_read()
65 if (nci_hdr.plen) { in nfcmrvl_i2c_read()
68 skb_put(*skb, nci_hdr.plen), in nfcmrvl_i2c_read()
69 nci_hdr.plen); in nfcmrvl_i2c_read()
71 if (ret != nci_hdr.plen) { in nfcmrvl_i2c_read()
74 ret, nci_hdr.plen); in nfcmrvl_i2c_read()