Searched refs:flash_fd (Results 1 – 3 of 3) sorted by relevance
/Zephyr-Core-3.6.0/drivers/flash/ |
D | flash_simulator_native.c | 39 int *flash_fd, const char *flash_file_path, in flash_mock_init_native() argument 53 *flash_fd = open(flash_file_path, O_RDWR | O_CREAT, (mode_t)0600); in flash_mock_init_native() 54 if (*flash_fd == -1) { in flash_mock_init_native() 61 rc = fstat(*flash_fd, &f_stat); in flash_mock_init_native() 69 if (ftruncate(*flash_fd, size) == -1) { in flash_mock_init_native() 77 PROT_WRITE | PROT_READ, MAP_SHARED, *flash_fd, 0); in flash_mock_init_native() 99 void flash_mock_cleanup_native(bool flash_in_ram, int flash_fd, uint8_t *mock_flash, in flash_mock_cleanup_native() argument 115 if (flash_fd != -1) { in flash_mock_cleanup_native() 116 close(flash_fd); in flash_mock_cleanup_native()
|
D | flash_simulator_native.h | 15 int *flash_fd, const char *flash_file_path, 18 void flash_mock_cleanup_native(bool flash_in_ram, int flash_fd, uint8_t *mock_flash,
|
D | flash_simulator.c | 145 static int flash_fd = -1; variable 386 &flash_fd, flash_file_path, FLASH_SIMULATOR_ERASE_VALUE, in flash_mock_init() 429 flash_mock_cleanup_native(flash_in_ram, flash_fd, mock_flash, in flash_native_posix_cleanup()
|