Home
last modified time | relevance | path

Searched refs:num_sectors (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/tests/drivers/disk/disk_access/src/
Dmain.c133 static int read_sector(uint8_t *buf, uint32_t start, uint32_t num_sectors) in read_sector() argument
138 buf[num_sectors * disk_sector_size] = OVERFLOW_CANARY; in read_sector()
139 rc = disk_access_read(disk_pdrv, buf, start, num_sectors); in read_sector()
141 zassert_equal(buf[num_sectors * disk_sector_size], OVERFLOW_CANARY, in read_sector()
147 static void test_sector_read(uint8_t *buf, uint32_t num_sectors) in test_sector_read() argument
151 TC_PRINT("Testing reads of %u sectors\n", num_sectors); in test_sector_read()
153 rc = read_sector(buf, 0, num_sectors); in test_sector_read()
156 if (disk_sector_count / 2 > num_sectors) { in test_sector_read()
157 sector = disk_sector_count / 2 - num_sectors; in test_sector_read()
162 rc = read_sector(buf, sector, num_sectors); in test_sector_read()
[all …]
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dutils.c56 uint32_t num_sectors = 1024 / sector_size + (1024 % sector_size != 0); in wipe_partition() local
58 for (uint32_t i = 0; i < num_sectors; i++) { in wipe_partition()
/Zephyr-latest/include/zephyr/drivers/
Dloopback_disk.h20 size_t num_sectors; member
/Zephyr-latest/drivers/disk/
Dloopback_disk.c67 if (start_sector + num_sector > ctx->num_sectors) { in loopback_disk_access_write()
103 *(uint32_t *)buff = ctx->num_sectors; in loopback_disk_access_ioctl()
152 ctx->num_sectors = entry.size / LOOPBACK_SECTOR_SIZE; in loopback_disk_access_register()
/Zephyr-latest/samples/boards/microchip/mec172xevb_assy6906/qmspi_ldma/src/
Dmain.c510 int num_sectors = 1u; in main() local
513 num_sectors = SPI_TEST_BUFFER_SIZE / SPI_FLASH_SECTOR_SIZE; in main()
516 for (int i = 0; i < num_sectors; i++) { in main()
541 for (int i = 0; i < num_sectors; i++) { in main()
561 printf("Fill buffers for %d sectors and program flash region\n", num_sectors); in main()
/Zephyr-latest/drivers/flash/
Dflash_mspi_emul_device.c149 const size_t num_sectors = size / SPI_NOR_SECTOR_SIZE; in flash_mspi_emul_erase() local
177 for (i = 0; i < num_sectors; i++) { in flash_mspi_emul_erase()
Dflash_mcux_flexspi_mx25um51345g.c439 int num_sectors = size / SPI_NOR_SECTOR_SIZE; in flash_flexspi_nor_erase() local
472 for (i = 0; i < num_sectors; i++) { in flash_flexspi_nor_erase()
Dflash_mcux_flexspi_hyperflash.c504 int num_sectors = size / SPI_HYPERFLASH_SECTOR_SIZE; in flash_flexspi_hyperflash_erase() local
532 for (i = 0; i < num_sectors; i++) { in flash_flexspi_hyperflash_erase()
Dflash_mspi_atxp032.c482 const size_t num_sectors = size / SPI_NOR_SECTOR_SIZE; in flash_mspi_atxp032_erase() local
545 for (i = 0; i < num_sectors; i++) { in flash_mspi_atxp032_erase()
Dflash_mcux_flexspi_nor.c396 const size_t num_sectors = size / SPI_NOR_SECTOR_SIZE; in flash_flexspi_nor_erase() local
440 for (i = 0; i < num_sectors; i++) { in flash_flexspi_nor_erase()