Searched refs:dma_safe_buf (Results 1 – 1 of 1) sorted by relevance
221 void *dma_safe_buf; in spi_nor_read_sfdp_dma_unsafe() local224 dma_safe_buf = kmalloc(len, GFP_KERNEL); in spi_nor_read_sfdp_dma_unsafe()225 if (!dma_safe_buf) in spi_nor_read_sfdp_dma_unsafe()228 ret = spi_nor_read_sfdp(nor, addr, len, dma_safe_buf); in spi_nor_read_sfdp_dma_unsafe()229 memcpy(buf, dma_safe_buf, len); in spi_nor_read_sfdp_dma_unsafe()230 kfree(dma_safe_buf); in spi_nor_read_sfdp_dma_unsafe()