Searched refs:ST21NFCB_NCI_I2C_MIN_SIZE (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/nfc/st21nfcb/
H A Di2c.c38 #define ST21NFCB_NCI_I2C_MIN_SIZE 4 /* PCB(1) + NCI Packet header(3) */ macro
143 r = i2c_master_recv(client, buf, ST21NFCB_NCI_I2C_MIN_SIZE); st21nfcb_nci_i2c_read()
146 r = i2c_master_recv(client, buf, ST21NFCB_NCI_I2C_MIN_SIZE); st21nfcb_nci_i2c_read()
149 if (r != ST21NFCB_NCI_I2C_MIN_SIZE) st21nfcb_nci_i2c_read()
158 *skb = alloc_skb(ST21NFCB_NCI_I2C_MIN_SIZE + len, GFP_KERNEL); st21nfcb_nci_i2c_read()
162 skb_reserve(*skb, ST21NFCB_NCI_I2C_MIN_SIZE); st21nfcb_nci_i2c_read()
163 skb_put(*skb, ST21NFCB_NCI_I2C_MIN_SIZE); st21nfcb_nci_i2c_read()
164 memcpy((*skb)->data, buf, ST21NFCB_NCI_I2C_MIN_SIZE); st21nfcb_nci_i2c_read()
176 memcpy((*skb)->data + ST21NFCB_NCI_I2C_MIN_SIZE, buf, len); st21nfcb_nci_i2c_read()

Completed in 79 milliseconds