Home
last modified time | relevance | path

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

/openbmc/linux/drivers/nfc/st-nci/
H A Dspi.c27 #define ST_NCI_SPI_MIN_SIZE 4 /* PCB(1) + NCI Packet header(3) */ macro
126 .len = ST_NCI_SPI_MIN_SIZE, in st_nci_spi_read()
140 *skb = alloc_skb(ST_NCI_SPI_MIN_SIZE + len, GFP_KERNEL); in st_nci_spi_read()
144 skb_reserve(*skb, ST_NCI_SPI_MIN_SIZE); in st_nci_spi_read()
145 skb_put(*skb, ST_NCI_SPI_MIN_SIZE); in st_nci_spi_read()
146 memcpy((*skb)->data, buf, ST_NCI_SPI_MIN_SIZE); in st_nci_spi_read()
159 memcpy((*skb)->data + ST_NCI_SPI_MIN_SIZE, buf, len); in st_nci_spi_read()