APPLESPI_PACKET_SIZE
APPLESPI_PACKET_SIZE);
APPLESPI_PACKET_SIZE)) {
if (off + rem > MAX_PKTS_PER_MSG * APPLESPI_PACKET_SIZE) {
if (off + len > MAX_PKTS_PER_MSG * APPLESPI_PACKET_SIZE) {
applespi->tx_buffer = devm_kmalloc(&spi->dev, APPLESPI_PACKET_SIZE,
applespi->rx_buffer = devm_kmalloc(&spi->dev, APPLESPI_PACKET_SIZE,
APPLESPI_PACKET_SIZE,
rd_t->len = APPLESPI_PACKET_SIZE;
wr_t->len = APPLESPI_PACKET_SIZE;
APPLESPI_PACKET_SIZE);
memset(packet, 0, APPLESPI_PACKET_SIZE);