/Zephyr-Core-3.4.0/drivers/disk/ |
D | flashdisk.c | 31 size_t page_size; member 63 ctx->page_size = page.size; in flashdisk_init_runtime() 66 (long)ctx->offset, ctx->sector_size, ctx->page_size, ctx->size); in flashdisk_init_runtime() 88 if (page.size != ctx->page_size) { in flashdisk_init_runtime() 102 if (ctx->page_size > ctx->cache_size) { in flashdisk_init_runtime() 104 ctx->cache_size, ctx->page_size); in flashdisk_init_runtime() 177 offset = fl_addr & (ctx->page_size - 1); in disk_flash_access_read() 178 fl_addr = ROUND_DOWN(fl_addr, ctx->page_size); in disk_flash_access_read() 181 len = ctx->page_size - offset; in disk_flash_access_read() 194 fl_addr += ctx->page_size; in disk_flash_access_read() [all …]
|
/Zephyr-Core-3.4.0/drivers/interrupt_controller/ |
D | intc_gicv3_its.c | 115 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.4.0/samples/drivers/flash_shell/src/ |
D | main.c | 226 size_t page_size = flash_get_write_block_size(flash_device); in do_write_unaligned() local 227 size_t size_before = offset % page_size; in do_write_unaligned() 228 size_t size_after = page_size - ((size_before + len) % page_size); in do_write_unaligned() 231 off_t last_page = start_page + aligned_size - page_size; in do_write_unaligned() 232 bool single_page_write = (size_before + len < page_size); in do_write_unaligned() 245 before_data = k_malloc(page_size); in do_write_unaligned() 246 after_data = k_malloc(page_size); in do_write_unaligned() 275 page_size - size_before); in do_write_unaligned() 281 ((len + size_before) % page_size)), in do_write_unaligned() 282 page_size - size_after); in do_write_unaligned() [all …]
|
/Zephyr-Core-3.4.0/tests/subsys/storage/stream/stream_flash/src/ |
D | main.c | 32 static int page_size; variable 220 (page_size * num_pages) + 128, false); in ZTEST() 224 VERIFY_WRITTEN(0, page_size * num_pages); in ZTEST() 228 page_size - 128, false); in ZTEST() 389 rc = stream_flash_buffered_write(&ctx, write_buf, page_size * 2, true); in ZTEST() 392 VERIFY_WRITTEN(0, page_size); in ZTEST() 393 VERIFY_WRITTEN(page_size, page_size); in ZTEST() 403 rc = stream_flash_buffered_write(&ctx, write_buf, page_size, true); in ZTEST() 407 VERIFY_WRITTEN(page_size, page_size); in ZTEST() 429 VERIFY_ERASED(FLASH_BASE, page_size); in ZTEST() [all …]
|
/Zephyr-Core-3.4.0/drivers/flash/ |
D | spi_flash_at45.c | 79 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 …]
|
D | soc_flash_lpc.c | 64 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()
|
D | spi_nor.c | 138 uint16_t page_size; member 209 return data->page_size; in dev_page_size() 686 const uint16_t page_size = dev_page_size(dev); in spi_nor_write() local 701 if (to_write >= page_size) { in spi_nor_write() 702 to_write = page_size; in spi_nor_write() 706 if (((addr + to_write - 1U) / page_size) in spi_nor_write() 707 != (addr / page_size)) { in spi_nor_write() 708 to_write = page_size - (addr % page_size); in spi_nor_write() 954 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp() 964 LOG_DBG("Page size %u bytes", data->page_size); in spi_nor_process_bfp()
|
D | flash_gd32_v1.c | 17 #define GD32_NV_FLASH_V1_PAGE_SIZE DT_PROP(GD32_NV_FLASH_V1_NODE, page_size)
|
D | jesd216.h | 384 uint16_t page_size; member
|
D | jesd216.c | 242 res->page_size = BIT((dw11 >> 4) & 0x0F); in jesd216_bfp_decode_dw11()
|
D | flash_stm32_qspi.c | 105 uint16_t page_size; member 677 uint32_t layout_page_size = data->page_size; in setup_pages_layout() 960 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp() 962 LOG_DBG("Page size %u bytes", data->page_size); in spi_nor_process_bfp()
|
D | flash_stm32_ospi.c | 155 uint16_t page_size; member 1484 uint32_t layout_page_size = data->page_size; in setup_pages_layout() 1846 data->page_size = jesd216_bfp_page_size(php, bfp); in spi_nor_process_bfp() 1848 LOG_DBG("Page size %u bytes", data->page_size); in spi_nor_process_bfp() 2316 .page_size = SPI_NOR_PAGE_SIZE, /* by default, to be updated by sfdp */
|
D | soc_flash_nios2_qspi.c | 521 .page_size = EXT_FLASH_AVL_MEM_PAGE_SIZE,
|
/Zephyr-Core-3.4.0/drivers/eeprom/ |
D | eeprom_emulator.c | 75 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.4.0/drivers/disk/nvme/ |
D | nvme_controller.c | 299 nvme_ctrlr->page_size = 1 << (NVME_MPS_SHIFT + nvme_ctrlr->mps); in nvme_controller_gather_info() 302 nvme_ctrlr->mps, nvme_ctrlr->page_size); in nvme_controller_gather_info() 312 nvme_ctrlr->max_xfer_size = nvme_ctrlr->page_size / in nvme_controller_gather_info() 313 8 * nvme_ctrlr->page_size; in nvme_controller_gather_info()
|
D | nvme_cmd.c | 416 n_prp = request->payload_size / qpair->ctrlr->page_size; in nvme_cmd_qpair_fill_dptr() 417 if ((request->payload_size % qpair->ctrlr->page_size) || in nvme_cmd_qpair_fill_dptr()
|
D | nvme.h | 443 uint32_t page_size; member
|
/Zephyr-Core-3.4.0/arch/x86/ |
D | gen_mmu.py | 919 page_size = syms["CONFIG_MMU_PAGE_SIZE"] 920 extra_pages_needed = int(round_up(size_diff, page_size) / page_size)
|
/Zephyr-Core-3.4.0/samples/drivers/jesd216/src/ |
D | main.c | 142 printf("Page size: %u By\n", dw11.page_size); in summarize_dw11()
|