Home
last modified time | relevance | path

Searched refs:page_size (Results 1 – 25 of 51) sorted by relevance

123

/bsp/microchip/samc21/bsp/hal/src/
A Dhal_flash.c88 uint32_t page_size = _flash_get_page_size(&flash->dev); in flash_read() local
92 if ((src_addr > page_size * total_pages) || (src_addr + length > page_size * total_pages)) { in flash_read()
108 uint32_t page_size = _flash_get_page_size(&flash->dev); in flash_write() local
112 if ((dst_addr > page_size * total_pages) || (dst_addr + length > page_size * total_pages)) { in flash_write()
132 uint32_t page_size = _flash_get_page_size(&flash->dev); in flash_append() local
136 if ((dst_addr > page_size * total_pages) || (dst_addr + length > page_size * total_pages)) { in flash_append()
155 uint32_t page_size = _flash_get_page_size(&flash->dev); in flash_erase() local
204 uint32_t page_size = _flash_get_page_size(&flash->dev); in flash_lock() local
226 uint32_t page_size = _flash_get_page_size(&flash->dev); in flash_unlock() local
281 uint32_t page_size = _flash_get_page_size(&flash->dev); in flash_is_address_aligned() local
[all …]
/bsp/microchip/samc21/bsp/examples/
A Ddriver_examples.c34 uint32_t page_size; in FLASH_0_example() local
38 page_size = flash_get_page_size(&FLASH_0); in FLASH_0_example()
40 for (i = 0; i < page_size; i++) { in FLASH_0_example()
45 flash_write(&FLASH_0, 0x3200, src_data, page_size); in FLASH_0_example()
48 flash_read(&FLASH_0, 0x3200, chk_data, page_size); in FLASH_0_example()
56 uint32_t page_size; in RWW_FLASH_0_example() local
60 page_size = _rww_flash_get_page_size(&FLASH_0.dev); in RWW_FLASH_0_example()
62 for (i = 0; i < page_size; i++) { in RWW_FLASH_0_example()
67 if (_rww_flash_write(&FLASH_0.dev, NVMCTRL_RWW_EEPROM_ADDR, src_data, page_size) != ERR_NONE) { in RWW_FLASH_0_example()
73 if (_rww_flash_read(&FLASH_0.dev, NVMCTRL_RWW_EEPROM_ADDR, chk_data, page_size) != ERR_NONE) { in RWW_FLASH_0_example()
[all …]
/bsp/microchip/samc21/bsp/
A Dmain.c48 uint32_t page_size; in rww_flash() local
53 page_size = _rww_flash_get_page_size(&FLASH_0.dev); in rww_flash()
55 for (i = 0; i < page_size; i++) { in rww_flash()
60 if (_rww_flash_write(&FLASH_0.dev, NVMCTRL_RWW_EEPROM_ADDR, src_buff, page_size) != ERR_NONE) { in rww_flash()
65 if (_rww_flash_read(&FLASH_0.dev, NVMCTRL_RWW_EEPROM_ADDR, chk_buff, page_size) != ERR_NONE) { in rww_flash()
70 for (i = 0; i < page_size; i++) { in rww_flash()
/bsp/samd21/sam_d2x_asflib/sam0/drivers/nvm/
A Dnvm.c60 uint16_t page_size; member
333 if ((offset + length) > _nvm_dev.page_size) { in nvm_update_buffer()
346 row_start_address + (i * _nvm_dev.page_size), in nvm_update_buffer()
347 row_buffer[i], _nvm_dev.page_size); in nvm_update_buffer()
358 _nvm_dev.page_size; in nvm_update_buffer()
383 row_start_address + (i * _nvm_dev.page_size), in nvm_update_buffer()
384 row_buffer[i], _nvm_dev.page_size); in nvm_update_buffer()
459 if (length > _nvm_dev.page_size) { in nvm_write_buffer()
560 if (source_address & (_nvm_dev.page_size - 1)) { in nvm_read_buffer()
565 if (length > _nvm_dev.page_size) { in nvm_read_buffer()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/spinor/
A Dcache.c12 #define addr_to_page(nor, addr) ((addr) / nor->page_size)
89 nc->page_cnt = CACHE_SIZE / nor->page_size; in init_bitmap()
187 return c->addr + page * nor->page_size; in get_addr_by_page()
264 buf + page * nor->page_size, nor->page_size); in nor_flush_write()
303 if (addr % nor->page_size) { in nor_cache_write()
308 if (len % nor->page_size) { in nor_cache_write()
309 SPINOR_ERR("len %u must align to page size %u\n", len, nor->page_size); in nor_cache_write()
345 unsigned int size = min(len, nor->page_size); in nor_cache_write()
384 if (addr % nor->page_size) { in nor_cache_read()
389 if (len % nor->page_size) { in nor_cache_read()
[all …]
A Dhal_spinor.c181 norblk.page_bytes = nor->page_size; in nor_blkpart_init()
365 hal_spinor_info.page_size = nor->page_size; in hal_spinor_get_info()
366 hal_spinor_info.program_unit = nor->page_size; in hal_spinor_get_info()
/bsp/fujitsu/mb9x/mb9bf506r/drivers/
A Dnand.c387 page_ptr += nand->page_size; in rt_nand_read()
426 page_ptr += nand->page_size; in rt_nand_eraseblock_writepage()
432 page_ptr = &(nand->block_buffer[page * nand->page_size]); in rt_nand_eraseblock_writepage()
436 rt_memcpy(page_ptr, buffer, nand->page_size); in rt_nand_eraseblock_writepage()
442 page_ptr += nand->page_size; in rt_nand_eraseblock_writepage()
443 buffer += nand->page_size; in rt_nand_eraseblock_writepage()
454 page_ptr += nand->page_size; in rt_nand_eraseblock_writepage()
524 page_ptr += chunk_pages * nand->page_size; in rt_nand_write()
532 page_ptr += nand->page_size; in rt_nand_write()
561 geometry->bytes_per_sector = nand->page_size; in rt_nand_control()
[all …]
/bsp/hc32/tests/
A Dtest_nand.c56 … result = rt_mtd_nand_read(mtd_nand, page, data, mtd_nand->page_size, RT_NULL, mtd_nand->oob_size); in nand_read()
92 …result = rt_mtd_nand_write(mtd_nand, page, data, mtd_nand->page_size, oob_free_data, mtd_nand->oob… in nand_write()
141 page_rbuf = rt_malloc(mtd_nand->page_size); in nand_thread_entry()
148 page_wbuf = rt_malloc(mtd_nand->page_size); in nand_thread_entry()
179 for (i = 0UL; i < mtd_nand->page_size; i++) in nand_thread_entry()
230 if (rt_memcmp(page_rbuf, page_wbuf, mtd_nand->page_size) == 0) in nand_thread_entry()
/bsp/hc32/libraries/hc32_drivers/
A Ddrv_nand.c318 stcColumn.u32Column = (rt_uint32_t)device->page_size; in _nand_read_page()
386 stcColumn.u32Column = (rt_uint32_t)device->page_size; in _nand_write_page()
437 nand_dev->page_size = NAND_BYTES_PER_PAGE; in rt_hw_nand_init()
492 page_rbuf = rt_malloc(mtd_nand->page_size); in _nand_test()
499 page_wbuf = rt_malloc(mtd_nand->page_size); in _nand_test()
527 for (i = 0; i < mtd_nand->page_size; i++) in _nand_test()
557 …ret = _nand_write_page(mtd_nand, page, page_wbuf, mtd_nand->page_size, page_oob_free_wbuf, mtd_nan… in _nand_test()
569 …ret = _nand_read_page(mtd_nand, page, page_rbuf, mtd_nand->page_size, page_oob_free_rbuf, mtd_nand… in _nand_test()
585 if (rt_memcmp(page_rbuf, page_wbuf, mtd_nand->page_size) == 0) in _nand_test()
/bsp/hpmicro/hpm5301evklite/board/
A Dfal_flash_port.c162 rt_uint32_t page_size; in write() local
163 …_nor_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_page_size, &page_size); in write()
164 rt_uint32_t offset_in_page = offset % page_size; in write()
167 rt_uint32_t write_size_in_page = page_size - offset_in_page; in write()
/bsp/hpmicro/hpm6300evk/board/
A Dfal_flash_port.c162 rt_uint32_t page_size; in write() local
163 …_nor_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_page_size, &page_size); in write()
164 rt_uint32_t offset_in_page = offset % page_size; in write()
167 rt_uint32_t write_size_in_page = page_size - offset_in_page; in write()
/bsp/hpmicro/hpm6750evk/board/
A Dfal_flash_port.c175 rt_uint32_t page_size; in write() local
176 …_nor_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_page_size, &page_size); in write()
177 rt_uint32_t offset_in_page = offset % page_size; in write()
180 rt_uint32_t write_size_in_page = page_size - offset_in_page; in write()
/bsp/hpmicro/hpm5300evk/board/
A Dfal_flash_port.c162 rt_uint32_t page_size; in write() local
163 …_nor_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_page_size, &page_size); in write()
164 rt_uint32_t offset_in_page = offset % page_size; in write()
167 rt_uint32_t write_size_in_page = page_size - offset_in_page; in write()
/bsp/hpmicro/hpm6200evk/board/
A Dfal_flash_port.c162 rt_uint32_t page_size; in write() local
163 …_nor_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_page_size, &page_size); in write()
164 rt_uint32_t offset_in_page = offset % page_size; in write()
167 rt_uint32_t write_size_in_page = page_size - offset_in_page; in write()
/bsp/hpmicro/hpm6750evk2/board/
A Dfal_flash_port.c176 rt_uint32_t page_size; in write() local
177 …_nor_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_page_size, &page_size); in write()
178 rt_uint32_t offset_in_page = offset % page_size; in write()
181 rt_uint32_t write_size_in_page = page_size - offset_in_page; in write()
/bsp/hpmicro/hpm6750evkmini/board/
A Dfal_flash_port.c176 rt_uint32_t page_size; in write() local
177 …_nor_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_page_size, &page_size); in write()
178 rt_uint32_t offset_in_page = offset % page_size; in write()
181 rt_uint32_t write_size_in_page = page_size - offset_in_page; in write()
/bsp/hpmicro/hpm6800evk/board/
A Dfal_flash_port.c176 rt_uint32_t page_size; in write() local
177 …_nor_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_page_size, &page_size); in write()
178 rt_uint32_t offset_in_page = offset % page_size; in write()
181 rt_uint32_t write_size_in_page = page_size - offset_in_page; in write()
/bsp/hpmicro/hpm6e00evk/board/
A Dfal_flash_port.c176 rt_uint32_t page_size; in write() local
177 …_nor_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_page_size, &page_size); in write()
178 rt_uint32_t offset_in_page = offset % page_size; in write()
181 rt_uint32_t write_size_in_page = page_size - offset_in_page; in write()
/bsp/hpmicro/libraries/hpm_sdk/components/serial_nor/
A Dhpm_serial_nor.c268 uint32_t page_size; in get_page_sector_block_size_from_sfdp() local
287 config->page_size = 256U; in get_page_sector_block_size_from_sfdp()
289 page_size = 1UL << (param_tbl->chip_erase_progrm_info.page_size); in get_page_sector_block_size_from_sfdp()
290 config->page_size = (page_size == (1UL << 15)) ? 256U : page_size; in get_page_sector_block_size_from_sfdp()
955 offset_in_page = address % flash->flash_info.page_size; in hpm_serial_nor_program_blocking()
991 offset = address % flash->flash_info.page_size; in hpm_serial_nor_program_blocking()
1023 remaining_page_size = flash->flash_info.page_size; in hpm_serial_nor_program_blocking()
1046 offset_in_page = address % flash->flash_info.page_size; in hpm_serial_nor_page_program_noblocking()
1047 remaining_page_size = flash->flash_info.page_size - offset_in_page; in hpm_serial_nor_page_program_noblocking()
1049 if ((data_len > flash->flash_info.page_size) || in hpm_serial_nor_page_program_noblocking()
[all …]
/bsp/essemi/es32f369x/libraries/ES32F36xx_ALD_StdPeriph_Driver/Source/
A Dald_nand.c156 hperh->config.page_size = pdcfg->page_size; in nand_config_device()
258 size = (hperh->config.page_size) + ((hperh->config.page_size) * num); in ald_nand_read_page_8b()
264 if ((hperh->config.page_size) <= 512U) { in ald_nand_read_page_8b()
363 size = hperh->config.page_size + ((hperh->config.page_size) * num); in ald_nand_write_page_8b()
370 if ((hperh->config.page_size) <= 512U) { in ald_nand_write_page_8b()
464 if ((hperh->config.page_size) <= 512U) { in ald_nand_read_sparearea_8b()
568 if ((hperh->config.page_size) <= 512U) { in ald_nand_write_sparearea_8b()
660 size = (hperh->config.page_size) + ((hperh->config.page_size) * num); in ald_nand_read_page_16b()
666 if ((hperh->config.page_size) <= 512U) { in ald_nand_read_page_16b()
758 size = (hperh->config.page_size) + ((hperh->config.page_size) * num); in ald_nand_write_page_16b()
[all …]
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/lhal/src/flash/
A Dbflb_sf_cfg.c141 .page_size = 256,
244 .page_size = 256,
347 .page_size = 256,
450 .page_size = 256,
553 .page_size = 256,
656 .page_size = 256,
759 .page_size = 256,
862 .page_size = 256,
965 .page_size = 256,
1068 .page_size = 256,
[all …]
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl602/std/src/
A Dbl602_sf_cfg_ext.c137 .page_size=256,
235 .page_size=256,
333 .page_size=256,
431 .page_size=256,
529 .page_size=256,
/bsp/k230/drivers/interdrv/pdma/
A Ddrv_pdma.c256 pdma_ctrl.chan[i].page_size = 0; in k230_pdma_request_channel()
649 pdma_ctrl.chan[ch].page_size = rt_page_bits(sizeof(pdma_llt_t) * list_num); in _k230_pdma_llt_cal()
650 llt_list = (pdma_llt_t *)rt_pages_alloc(pdma_ctrl.chan[ch].page_size); in _k230_pdma_llt_cal()
654 pdma_ctrl.chan[ch].page_size = 0 ; in _k230_pdma_llt_cal()
742 rt_pages_free(pdma_ctrl.chan[ch].llt_va, pdma_ctrl.chan[ch].page_size); in _k230_pdma_llt_free()
744 pdma_ctrl.chan[ch].page_size = 0; in _k230_pdma_llt_free()
745 LOG_D("[CH%d] Freed %d bytes of LLT memory", ch,pdma_ctrl.chan[ch].page_size); in _k230_pdma_llt_free()
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl702/std/src/
A Dbl702_sf_cfg_ext.c139 .page_size = 256,
237 .page_size = 256,
335 .page_size = 256,
433 .page_size = 256,
/bsp/xuantie/libraries/xuantie_libraries/chip_riscv_dummy/src/drivers/
A Dspiflash.c74 uint32_t page_size; ///< page size for read or program member
184 flash_info->page_size = param->page_size; in csi_spiflash_get_flash_info()
226 current_size = param->page_size - (offset % param->page_size); in csi_spiflash_program()
251 …current_size = ((current_addr + param->page_size) > end_addr) ? (end_addr - current_addr) : param-… in csi_spiflash_program()

Completed in 48 milliseconds

123