Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/mtd/spi-nor/
Dsfdp.c217 void *dma_safe_buf; in spi_nor_read_sfdp_dma_unsafe() local
220 dma_safe_buf = kmalloc(len, GFP_KERNEL); in spi_nor_read_sfdp_dma_unsafe()
221 if (!dma_safe_buf) in spi_nor_read_sfdp_dma_unsafe()
224 ret = spi_nor_read_sfdp(nor, addr, len, dma_safe_buf); in spi_nor_read_sfdp_dma_unsafe()
225 memcpy(buf, dma_safe_buf, len); in spi_nor_read_sfdp_dma_unsafe()
226 kfree(dma_safe_buf); in spi_nor_read_sfdp_dma_unsafe()