Home
last modified time | relevance | path

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

12

/Zephyr-Core-3.7.0/drivers/disk/
Dflashdisk.c36 size_t page_size; member
103 ctx->page_size = page.size; in flashdisk_init_runtime()
105 ctx->page_size = DEFAULT_BLOCK_SIZE; in flashdisk_init_runtime()
110 (long)ctx->offset, ctx->sector_size, ctx->page_size, ctx->size); in flashdisk_init_runtime()
132 if (page.size != ctx->page_size) { in flashdisk_init_runtime()
146 if (ctx->page_size > ctx->cache_size) { in flashdisk_init_runtime()
148 ctx->cache_size, ctx->page_size); in flashdisk_init_runtime()
221 offset = fl_addr & (ctx->page_size - 1); in disk_flash_access_read()
222 fl_addr = ROUND_DOWN(fl_addr, ctx->page_size); in disk_flash_access_read()
225 len = ctx->page_size - offset; in disk_flash_access_read()
[all …]
/Zephyr-Core-3.7.0/drivers/interrupt_controller/
Dintc_gicv3_its.c115 uint64_t page_size = GITS_BASER_PAGE_SIZE_64K; in its_probe_baser_page_size() local
117 while (page_size > GITS_BASER_PAGE_SIZE_4K) { in its_probe_baser_page_size()
121 reg |= MASK_SET(page_size, GITS_BASER_PAGE_SIZE); in its_probe_baser_page_size()
127 if (MASK_GET(reg, GITS_BASER_PAGE_SIZE) == page_size) { in its_probe_baser_page_size()
131 switch (page_size) { in its_probe_baser_page_size()
133 page_size = GITS_BASER_PAGE_SIZE_16K; in its_probe_baser_page_size()
136 page_size = GITS_BASER_PAGE_SIZE_4K; in its_probe_baser_page_size()
140 switch (page_size) { in its_probe_baser_page_size()
158 size_t page_size, entry_size, page_cnt, lvl2_width = 0; in its_alloc_tables() local
166 page_size = SIZE_4K; in its_alloc_tables()
[all …]
/Zephyr-Core-3.7.0/drivers/flash/
Dflash_cadence_nand_ll.c90 params->page_size = GET_PAGE_SIZE(reg_value); in cdns_nand_device_info()
97 params->block_size = (params->npages_per_block * params->page_size); in cdns_nand_device_info()
601 buffer = buffer + (max_page_desc * params->page_size); in cdns_cdma_desc_transfer_finish()
855 buffer + (index * (params->page_size))); in cdns_nand_pio_read_write()
858 buffer + (index * (params->page_size))); in cdns_nand_pio_read_write()
1003 ret = cdns_generic_cmd_data(params, CDNS_READ, params->page_size); in cdns_generic_page_read()
1012 sdma_buffer_copy_out(params->sdma_base, data_buffer, params->page_size); in cdns_generic_page_read()
1045 ret = cdns_generic_cmd_data(params, CDNS_WRITE, params->page_size); in cdns_generic_page_write()
1049 sdma_buffer_copy_in(params->sdma_base, data_buffer, params->page_size); in cdns_generic_page_write()
1087 buffer + (index * (params->page_size))); in cdns_nand_gen_read_write()
[all …]
Dspi_flash_at45.c79 uint16_t page_size; member
347 offset - (offset & (cfg->page_size - 1)); in spi_flash_at45_write()
348 off_t current_page_end = current_page_start + cfg->page_size; in spi_flash_at45_write()
447 if (((offset % cfg->page_size) != 0) in spi_flash_at45_erase()
448 || ((size % cfg->page_size) != 0)) { in spi_flash_at45_erase()
488 } else if (is_erase_possible(cfg->page_size, in spi_flash_at45_erase()
492 offset += cfg->page_size; in spi_flash_at45_erase()
493 size -= cfg->page_size; in spi_flash_at45_erase()
679 DT_INST_PROP(idx, page_size)), \
697 .pages_size = DT_INST_PROP(idx, page_size), \
[all …]
Dsoc_flash_lpc.c64 uint32_t page_size; in flash_lpc_erase() local
72 page_size = flash_lpc_parameters.write_block_size; in flash_lpc_erase()
73 start = offset / page_size; in flash_lpc_erase()
74 stop = (offset+len-1) / page_size; in flash_lpc_erase()
Dspi_nor.c196 uint16_t page_size; member
270 return DT_INST_PROP_OR(0, page_size, 256); in dev_page_size()
274 return data->page_size; in dev_page_size()
827 const uint16_t page_size = dev_page_size(dev); in spi_nor_write() local
842 if (to_write >= page_size) { in spi_nor_write()
843 to_write = page_size; in spi_nor_write()
847 if (((addr + to_write - 1U) / page_size) in spi_nor_write()
848 != (addr / page_size)) { in spi_nor_write()
849 to_write = page_size - (addr % page_size); in spi_nor_write()
1116 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp()
[all …]
Dflash_stm32_xspi.h93 uint16_t page_size; member
Dflash_andes_qspi.c77 uint16_t page_size; member
117 return dev_data->page_size; in dev_page_size()
331 const uint16_t page_size = dev_page_size(dev); in flash_andes_qspi_write() local
354 to_write = MIN(page_size - (addr % page_size), size); in flash_andes_qspi_write()
527 dev_data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp()
Dflash_gd32_v1.c17 #define GD32_NV_FLASH_V1_PAGE_SIZE DT_PROP(GD32_NV_FLASH_V1_NODE, page_size)
Djesd216.h384 uint16_t page_size; member
Dflash_cadence_nand.c77 flash_cdns_pages_layout.pages_size = nand_param->page_size; in flash_cdns_page_layout()
Djesd216.c242 res->page_size = BIT((dw11 >> 4) & 0x0F); in jesd216_bfp_decode_dw11()
Dflash_stm32_qspi.c116 uint16_t page_size; member
869 uint32_t layout_page_size = data->page_size; in setup_pages_layout()
1143 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp()
1145 LOG_DBG("Page size %u bytes", data->page_size); in spi_nor_process_bfp()
Dflash_cadence_nand_ll.h350 uint16_t page_size; member
Dsoc_flash_nios2_qspi.c521 .page_size = EXT_FLASH_AVL_MEM_PAGE_SIZE,
Dflash_stm32_ospi.c166 uint16_t page_size; member
1703 uint32_t layout_page_size = data->page_size; in setup_pages_layout()
2065 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp()
2067 LOG_DBG("Page size %u bytes", data->page_size); in spi_nor_process_bfp()
2601 .page_size = SPI_NOR_PAGE_SIZE, /* by default, to be updated by sfdp */
Dflash_stm32_xspi.c1562 uint32_t layout_page_size = data->page_size; in setup_pages_layout()
1924 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp()
1926 LOG_DBG("Page size %u bytes", data->page_size); in spi_nor_process_bfp()
2446 .page_size = SPI_NOR_PAGE_SIZE, /* by default, to be updated by sfdp */
/Zephyr-Core-3.7.0/tests/subsys/storage/stream/stream_flash/src/
Dmain.c32 static int page_size; variable
235 (page_size * num_pages) + 128, false); in ZTEST()
239 VERIFY_WRITTEN(0, page_size * num_pages); in ZTEST()
243 page_size - 128, false); in ZTEST()
404 rc = stream_flash_buffered_write(&ctx, write_buf, page_size * 2, true); in ZTEST()
407 VERIFY_WRITTEN(0, page_size); in ZTEST()
408 VERIFY_WRITTEN(page_size, page_size); in ZTEST()
418 rc = stream_flash_buffered_write(&ctx, write_buf, page_size, true); in ZTEST()
422 VERIFY_WRITTEN(page_size, page_size); in ZTEST()
444 VERIFY_ERASED(0, page_size); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/drivers/flash/erase_blocks/src/
Dmain.c178 size_t page_size = info->size; in test_flash_erase_page() local
182 (size_t)page_offset, page_size, page_index); in test_flash_erase_page()
184 zassert_ok(flash_erase(flash_controller, page_offset, page_size), in test_flash_erase_page()
187 zassert_true(test_flash_is_erased(page_offset, page_size), in test_flash_erase_page()
/Zephyr-Core-3.7.0/drivers/eeprom/
Deeprom_emulator.c75 size_t page_size; member
159 offset += (dev_config->page_size - sizeof(buf)); in eeprom_emu_page_invalidate()
319 next_page_offset = dev_data->page_offset + dev_config->page_size; in eeprom_emu_compactor()
327 dev_config->page_size); in eeprom_emu_compactor()
465 dev_config->page_size) { in eeprom_emu_word_write()
655 dev_data->write_offset = dev_config->page_size - sizeof(buf); in eeprom_emu_init()
667 dev_data->page_offset += dev_config->page_size; in eeprom_emu_init()
678 while ((dev_data->write_offset + sizeof(buf)) < dev_config->page_size) { in eeprom_emu_init()
697 ((dev_data->write_offset + sizeof(buf)) >= dev_config->page_size)) { in eeprom_emu_init()
793 .page_size = DT_INST_PROP(n, pagesize), \
/Zephyr-Core-3.7.0/drivers/disk/nvme/
Dnvme_controller.c304 nvme_ctrlr->page_size = 1 << (NVME_MPS_SHIFT + nvme_ctrlr->mps); in nvme_controller_gather_info()
307 nvme_ctrlr->mps, nvme_ctrlr->page_size); in nvme_controller_gather_info()
317 nvme_ctrlr->max_xfer_size = nvme_ctrlr->page_size / in nvme_controller_gather_info()
318 8 * nvme_ctrlr->page_size; in nvme_controller_gather_info()
Dnvme.h445 uint32_t page_size; member
/Zephyr-Core-3.7.0/drivers/tee/optee/
Doptee.c915 const size_t page_size = OPTEE_MSG_NONCONTIG_PAGE_SIZE; in optee_construct_page_list() local
917 uint32_t page_offset = (uintptr_t)buf & (page_size - 1); in optee_construct_page_list()
931 num_pages = ROUND_UP(page_offset + len, page_size) / page_size; in optee_construct_page_list()
932 list_size = DIV_ROUND_UP(num_pages, num_pages_in_pl) * page_size; in optee_construct_page_list()
934 pl = k_aligned_alloc(page_size, list_size); in optee_construct_page_list()
941 buf_page = (uint8_t *)ROUND_DOWN((uintptr_t)buf, page_size); in optee_construct_page_list()
943 for (uint32_t pl_idx = 0; pl_idx < list_size / page_size; pl_idx++) { in optee_construct_page_list()
946 buf_page += page_size; in optee_construct_page_list()
/Zephyr-Core-3.7.0/arch/x86/
Dgen_mmu.py919 page_size = syms["CONFIG_MMU_PAGE_SIZE"]
920 extra_pages_needed = int(round_up(size_diff, page_size) / page_size)
/Zephyr-Core-3.7.0/samples/drivers/jesd216/src/
Dmain.c148 printf("Page program size: %u By\n", dw11.page_size); in summarize_dw11()

12