Searched refs:HIFMC_DMA_MAX_LEN (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/controllers/ |
H A D | hisi-sfc.c | 63 #define HIFMC_DMA_MAX_LEN (4096) macro 64 #define HIFMC_DMA_MASK (HIFMC_DMA_MAX_LEN - 1) 276 for (offset = 0; offset < len; offset += HIFMC_DMA_MAX_LEN) { in hisi_spi_nor_read() 277 size_t trans = min_t(size_t, HIFMC_DMA_MAX_LEN, len - offset); in hisi_spi_nor_read() 299 for (offset = 0; offset < len; offset += HIFMC_DMA_MAX_LEN) { in hisi_spi_nor_write() 300 size_t trans = min_t(size_t, HIFMC_DMA_MAX_LEN, len - offset); in hisi_spi_nor_write() 455 host->buffer = dmam_alloc_coherent(dev, HIFMC_DMA_MAX_LEN, in hisi_spi_nor_probe()
|
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/controllers/ |
H A D | hisi-sfc.c | 63 #define HIFMC_DMA_MAX_LEN (4096) macro 64 #define HIFMC_DMA_MASK (HIFMC_DMA_MAX_LEN - 1) 276 for (offset = 0; offset < len; offset += HIFMC_DMA_MAX_LEN) { in hisi_spi_nor_read() 277 size_t trans = min_t(size_t, HIFMC_DMA_MAX_LEN, len - offset); in hisi_spi_nor_read() 299 for (offset = 0; offset < len; offset += HIFMC_DMA_MAX_LEN) { in hisi_spi_nor_write() 300 size_t trans = min_t(size_t, HIFMC_DMA_MAX_LEN, len - offset); in hisi_spi_nor_write() 452 host->buffer = dmam_alloc_coherent(dev, HIFMC_DMA_MAX_LEN, in hisi_spi_nor_probe()
|
Completed in 3 milliseconds