Searched refs:dma_safe_buf (Results 1 – 1 of 1) sorted by relevance
217 void *dma_safe_buf; in spi_nor_read_sfdp_dma_unsafe() local220 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()