Home
last modified time | relevance | path

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

/linux-6.14.4/drivers/spi/
Dspi-mt65xx.c956 char *tx_tmp_buf, *rx_tmp_buf; in mtk_spi_mem_exec_op() local
1021 tx_tmp_buf = kzalloc(tx_size, GFP_KERNEL | GFP_DMA); in mtk_spi_mem_exec_op()
1022 if (!tx_tmp_buf) { in mtk_spi_mem_exec_op()
1027 tx_tmp_buf[0] = op->cmd.opcode; in mtk_spi_mem_exec_op()
1033 tx_tmp_buf[i + 1] = op->addr.val >> in mtk_spi_mem_exec_op()
1038 memset(tx_tmp_buf + op->addr.nbytes + 1, in mtk_spi_mem_exec_op()
1043 memcpy(tx_tmp_buf + op->dummy.nbytes + op->addr.nbytes + 1, in mtk_spi_mem_exec_op()
1047 mdata->tx_dma = dma_map_single(mdata->dev, tx_tmp_buf, in mtk_spi_mem_exec_op()
1113 kfree(tx_tmp_buf); in mtk_spi_mem_exec_op()