Searched refs:ST_NCI_I2C_MIN_SIZE (Results 1 – 1 of 1) sorted by relevance
/linux-6.3-rc2/drivers/nfc/st-nci/ |
A D | i2c.c | 26 #define ST_NCI_I2C_MIN_SIZE 4 /* PCB(1) + NCI Packet header(3) */ macro 114 r = i2c_master_recv(client, buf, ST_NCI_I2C_MIN_SIZE); in st_nci_i2c_read() 117 r = i2c_master_recv(client, buf, ST_NCI_I2C_MIN_SIZE); in st_nci_i2c_read() 120 if (r != ST_NCI_I2C_MIN_SIZE) in st_nci_i2c_read() 129 *skb = alloc_skb(ST_NCI_I2C_MIN_SIZE + len, GFP_KERNEL); in st_nci_i2c_read() 133 skb_reserve(*skb, ST_NCI_I2C_MIN_SIZE); in st_nci_i2c_read() 134 skb_put(*skb, ST_NCI_I2C_MIN_SIZE); in st_nci_i2c_read() 135 memcpy((*skb)->data, buf, ST_NCI_I2C_MIN_SIZE); in st_nci_i2c_read() 147 memcpy((*skb)->data + ST_NCI_I2C_MIN_SIZE, buf, len); in st_nci_i2c_read()
|
Completed in 4 milliseconds