Lines Matching refs:spiflash
53 csi_error_t csi_spiflash_spi_init(csi_spiflash_t *spiflash, uint32_t spi_idx, void *spi_cs_callback) in csi_spiflash_spi_init() argument
55 if (spiflash == NULL) { in csi_spiflash_spi_init()
59 spiflash->spi_qspi.spi.dev.idx = spi_idx; in csi_spiflash_spi_init()
60 spiflash->spi_qspi.spi.dev.reg_base = FLASH_NC_BASE; in csi_spiflash_spi_init()
61 spiflash->spi_cs_callback = spi_cs_callback; in csi_spiflash_spi_init()
65 void csi_spiflash_spi_uninit(csi_spiflash_t *spiflash) in csi_spiflash_spi_uninit() argument
67 if (spiflash == NULL) { in csi_spiflash_spi_uninit()
71 spiflash->spi_cs_callback = NULL; in csi_spiflash_spi_uninit()
75 csi_error_t csi_spiflash_get_flash_info(csi_spiflash_t *spiflash, csi_spiflash_info_t *flash_info) in csi_spiflash_get_flash_info() argument
78 (void) spiflash; in csi_spiflash_get_flash_info()
93 int32_t csi_spiflash_read(csi_spiflash_t *spiflash, uint32_t offset, void *data, uint32_t size) in csi_spiflash_read() argument
98 (void) spiflash; in csi_spiflash_read()
117 int32_t csi_spiflash_program(csi_spiflash_t *spiflash, uint32_t offset, const void *data, uint32_t … in csi_spiflash_program() argument
122 (void) spiflash; in csi_spiflash_program()
146 csi_error_t csi_spiflash_erase(csi_spiflash_t *spiflash, uint32_t offset, uint32_t size) in csi_spiflash_erase() argument
151 (void) spiflash; in csi_spiflash_erase()