Home
last modified time | relevance | path

Searched refs:block_addr (Results 1 – 4 of 4) sorted by relevance

/lk-master/platform/stm32f7xx/
A Dqspi.c61 static ssize_t qspi_erase_sector(bdev_t *device, uint32_t block_addr);
62 static ssize_t qspi_erase_subsector(bdev_t *device, uint32_t block_addr);
640 if (instruction == BULK_ERASE_CMD && block_addr != 0) { in qspi_erase()
651 erase_cmd.AddressSize = get_address_size(block_addr); in qspi_erase()
654 erase_cmd.Address = block_addr; in qspi_erase()
660 erase_cmd.AddressSize = get_address_size(block_addr); in qspi_erase()
663 erase_cmd.Address = block_addr; in qspi_erase()
717 static ssize_t qspi_erase_sector(bdev_t *device, uint32_t block_addr) { in qspi_erase_sector() argument
718 return qspi_erase(device, block_addr, SECTOR_ERASE_CMD); in qspi_erase_sector()
721 static ssize_t qspi_erase_subsector(bdev_t *device, uint32_t block_addr) { in qspi_erase_subsector() argument
[all …]
/lk-master/lib/bio/
A Ddebug.c319 static bool test_erase_block(bdev_t *device, uint32_t block_addr) { in test_erase_block() argument
326 ssize_t err = bio_write_block(device, block_contents, block_addr, 1); in test_erase_block()
332 if (!is_valid_block(device, block_addr, valid_byte, 1)) { in test_erase_block()
336 err = bio_erase(device, block_addr * device->block_size, 1); in test_erase_block()
342 if (is_valid_block(device, block_addr, valid_byte, 1)) { in test_erase_block()
355 bnum_t block_addr = rand() % device->block_count; in sub_erase_test() local
356 if (!test_erase_block(device, block_addr)) { in sub_erase_test()
/lk-master/external/platform/nrfx/drivers/src/
A Dnrfx_spim.c212 uint32_t block_addr = ((uint32_t)p_buffer) & ~0x1FFF; in anomaly_198_enable() local
213 uint32_t block_flag = (1UL << ((block_addr >> 13) & 0xFFFF)); in anomaly_198_enable()
216 if (block_addr >= 0x20010000) in anomaly_198_enable()
225 block_addr += 0x2000; in anomaly_198_enable()
226 } while ((block_addr < buffer_end_addr) && (block_addr < 0x20012000)); in anomaly_198_enable()
/lk-master/lib/fs/spifs/
A Dspifs.c355 off_t block_addr = page_addr * spifs->blocks_per_page; in spifs_read_page() local
357 ssize_t bytes = bio_read_block(spifs->dev, spifs->page, block_addr, in spifs_read_page()
368 off_t block_addr = page_addr * spifs->blocks_per_page; in spifs_write_page() local
369 off_t device_addr = block_addr * spifs->dev->block_size; in spifs_write_page()
379 ssize_t bytes = bio_write_block(spifs->dev, spifs->page, block_addr, in spifs_write_page()

Completed in 10 milliseconds