Searched refs:page_size (Results 1 – 13 of 13) sorted by relevance
/trusted-firmware-a-3.7.0/drivers/mtd/nand/ |
D | core.c | 41 (offset % nand_dev.block_size) / nand_dev.page_size; in nand_read() 42 unsigned int nb_pages = nand_dev.block_size / nand_dev.page_size; in nand_read() 43 unsigned int start_offset = offset % nand_dev.page_size; in nand_read() 60 if (((start_offset != 0U) || (length % nand_dev.page_size) != 0U) && in nand_read() 61 (scratch_buff_size < nand_dev.page_size)) { in nand_read() 87 (length < nand_dev.page_size)) { in nand_read() 96 bytes_read = MIN((size_t)(nand_dev.page_size - in nand_read() 113 bytes_read = nand_dev.page_size; in nand_read()
|
D | spi_nand.c | 163 uint32_t page_nb = page - (block_nb * spinand_dev.nand_dev->page_size); in spi_nand_load_page() 165 spinand_dev.nand_dev->page_size; in spi_nand_load_page() 182 spinand_dev.nand_dev->page_size; in spi_nand_read_from_cache() 184 uint32_t page_sh = __builtin_ctz(spinand_dev.nand_dev->page_size) + 1U; in spi_nand_read_from_cache() 235 spinand_dev.nand_dev->page_size; in spi_nand_mtd_block_is_bad() 240 spinand_dev.nand_dev->page_size, in spi_nand_mtd_block_is_bad() 259 spinand_dev.nand_dev->page_size, true); in spi_nand_mtd_read_page() 288 assert((spinand_dev.nand_dev->page_size != 0U) && in spi_nand_init() 315 spinand_dev.nand_dev->page_size, in spi_nand_init()
|
D | raw_nand.c | 325 rawnand_dev.nand_dev->page_size = page.bytes_per_page; in nand_read_param_page() 336 rawnand_dev.nand_dev->page_size, in nand_read_param_page() 366 rawnand_dev.nand_dev->page_size; in nand_mtd_block_is_bad() 373 rawnand_dev.nand_dev->page_size, in nand_mtd_block_is_bad() 394 rawnand_dev.nand_dev->page_size); in nand_mtd_read_page_raw() 435 assert((rawnand_dev.nand_dev->page_size != 0U) && in nand_raw_init()
|
/trusted-firmware-a-3.7.0/drivers/nxp/ifc/nand/ |
D | ifc_nand.c | 182 nand->page_size = nand_get_page_size(nand); in nand_get_params() 190 nand->bad_marker_loc = (nand->page_size == 512) ? in nand_get_params() 205 nand->blk_size = nand->page_size * nand->ppb; in nand_get_params() 261 if (nand->page_size == U(512)) { in nand_read_data() 279 if (nand->page_size == U(512)) { in nand_read_data() 305 if (nand->page_size == U(512)) in nand_read_data() 307 else if (nand->page_size == U(2048)) in nand_read_data() 309 else if (nand->page_size == U(4096)) in nand_read_data() 311 else if (nand->page_size == U(8192)) in nand_read_data() 313 else if (nand->page_size == U(16384)) in nand_read_data() [all …]
|
D | ifc.h | 250 uint32_t page_size; member
|
/trusted-firmware-a-3.7.0/plat/st/stm32mp1/ |
D | stm32mp1_boot_device.c | 85 nand_dev->page_size = 0x800U; in get_data_from_otp() 89 nand_dev->page_size = 0x1000U; in get_data_from_otp() 93 nand_dev->page_size = 0x2000U; in get_data_from_otp() 103 nand_dev->block_size = 64U * nand_dev->page_size; in get_data_from_otp() 107 nand_dev->block_size = 128U * nand_dev->page_size; in get_data_from_otp() 111 nand_dev->block_size = 256U * nand_dev->page_size; in get_data_from_otp() 159 nand_dev->page_size, nand_dev->size); in get_data_from_otp()
|
/trusted-firmware-a-3.7.0/drivers/brcm/ |
D | spi_flash.c | 32 .page_size = _page_size, \ 171 read_len = MIN(flash->page_size, (len - read_len)); in spi_flash_read() 193 unsigned long byte_addr, page_size; in spi_flash_write() local 205 page_size = flash->page_size; in spi_flash_write() 210 byte_addr = offset % page_size; in spi_flash_write() 212 (uint32_t)(page_size - byte_addr)); in spi_flash_write() 297 flash->page_size = info->page_size; in spi_flash_probe()
|
/trusted-firmware-a-3.7.0/plat/socionext/uniphier/ |
D | uniphier_nand.c | 54 int page_size; member 78 int column = nand->page_size; in uniphier_nand_block_isbad() 166 int page_size = nand->page_size; in __uniphier_nand_read() local 168 int pages_to_read = div_round_up(size, page_size); in __uniphier_nand_read() 205 p += page_size * page_count; in __uniphier_nand_read() 246 nand->page_size = in uniphier_nand_hw_init() 278 uniphier_nand_dev_spec.block_size = uniphier_nand.page_size; in uniphier_nand_init()
|
/trusted-firmware-a-3.7.0/drivers/cadence/nand/ |
D | cdns_nand.c | 230 dev_info.page_size = CNF_GET_PAGE_SIZE(reg); in cdns_nand_update_dev_info() 237 dev_info.block_size = (dev_info.npages_per_block * dev_info.page_size); in cdns_nand_update_dev_info() 242 dev_info.page_size, dev_info.spare_size, in cdns_nand_update_dev_info() 371 uint32_t page_start = (offset % dev_info.block_size) / dev_info.page_size; in cdns_nand_read() 372 uint32_t start_offset = offset % dev_info.page_size; in cdns_nand_read() 373 uint32_t nb_pages = dev_info.block_size / dev_info.page_size; in cdns_nand_read() 392 if ((start_offset != 0U) || (length < dev_info.page_size)) { in cdns_nand_read() 400 bytes_read = MIN((size_t)(dev_info.page_size - start_offset), in cdns_nand_read() 414 bytes_read = dev_info.page_size; in cdns_nand_read()
|
/trusted-firmware-a-3.7.0/include/drivers/brcm/ |
D | sf.h | 38 uint32_t page_size; member 60 uint16_t page_size; member
|
/trusted-firmware-a-3.7.0/include/drivers/ |
D | nand.h | 26 unsigned int page_size; member
|
/trusted-firmware-a-3.7.0/include/drivers/cadence/ |
D | cdns_nand.h | 20 uint16_t page_size; member
|
/trusted-firmware-a-3.7.0/drivers/st/fmc/ |
D | stm32_fmc2_nand.c | 510 unsigned int eccsteps = nand->page_size / eccsize; in stm32_fmc2_read_page() 525 for (s = 0U, i = nand->page_size + FMC2_BBM_LEN, p = (uint8_t *)buffer; in stm32_fmc2_read_page()
|