Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/esptool_py/esptool/esptool/targets/
Desp8266.py156 num_sectors = (size + sector_size - 1) // sector_size
160 if num_sectors < head_sectors:
161 head_sectors = num_sectors
163 if num_sectors < 2 * head_sectors:
164 return (num_sectors + 1) // 2 * sector_size
166 return (num_sectors - head_sectors) * sector_size
/hal_espressif-3.6.0/components/usb/test/common/
Dtest_usb_mock_classes.c60 void mock_msc_scsi_init_cbw(mock_msc_bulk_cbw_t *cbw, bool is_read, int offset, int num_sectors, ui… in mock_msc_scsi_init_cbw() argument
64 cbw->dCBWDataTransferLength = num_sectors * MOCK_MSC_SCSI_SECTOR_SIZE; in mock_msc_scsi_init_cbw()
76 cbw->CBWCB.len_1 = (num_sectors >> 8); in mock_msc_scsi_init_cbw()
77 cbw->CBWCB.len_0 = (num_sectors >> 0); in mock_msc_scsi_init_cbw()
Dtest_usb_mock_classes.h160 void mock_msc_scsi_init_cbw(mock_msc_bulk_cbw_t *cbw, bool is_read, int offset, int num_sectors, ui…
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/src/
Dmsc_scsi_bot.c317 uint32_t num_sectors, in scsi_cmd_read10() argument
321 CBW_BASE_INIT(IN_DIR, CBW_CMD_SIZE(cbw_read10_t), num_sectors * sector_size), in scsi_cmd_read10()
325 .length = __builtin_bswap16(num_sectors), in scsi_cmd_read10()
328 return bot_execute_command(device, &cbw.base, data, num_sectors * sector_size); in scsi_cmd_read10()
334 uint32_t num_sectors, in scsi_cmd_write10() argument
338 CBW_BASE_INIT(OUT_DIR, CBW_CMD_SIZE(cbw_write10_t), num_sectors * sector_size), in scsi_cmd_write10()
341 .length = __builtin_bswap16(num_sectors), in scsi_cmd_write10()
344 return bot_execute_command(device, &cbw.base, (void *)data, num_sectors * sector_size); in scsi_cmd_write10()
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/private_include/
Dmsc_scsi_bot.h27 uint32_t num_sectors,
33 uint32_t num_sectors,
/hal_espressif-3.6.0/components/nvs_flash/test_nvs_host/
Dspi_flash_emulation.cpp41 size_t num_sectors = size / SPI_FLASH_SEC_SIZE; in esp_partition_erase_range() local
42 for (size_t sector = start_sector; sector < (start_sector + num_sectors); sector++) { in esp_partition_erase_range()
Dtest_fixtures.hpp84 size_t num_sectors = size / SPI_FLASH_SEC_SIZE; in erase_range() local
85 for (size_t sector = start_sector; sector < (start_sector + num_sectors); sector++) { in erase_range()
/hal_espressif-3.6.0/components/spi_flash/test/
Dtest_esp_flash.c465 static uint32_t erase_test_region(const esp_partition_t *part, int num_sectors) in erase_test_region() argument
474 TEST_ASSERT(num_sectors * 4096 <= part->size); in erase_test_region()
479 TEST_ASSERT_EQUAL_HEX32(ESP_OK, esp_flash_erase_region(chip, offs, num_sectors * 4096) ); in erase_test_region()
482 for (int i = 0; i < num_sectors; i++) { in erase_test_region()