Lines Matching refs:page_size
61 u16 page_size; member
437 offset = addr % nor->page_size; in spi_nor_s3an_addr_convert()
438 page = addr / nor->page_size; in spi_nor_s3an_addr_convert()
439 page <<= (nor->page_size > 512) ? 10 : 9; in spi_nor_s3an_addr_convert()
885 .page_size = 256, \
900 .page_size = 256, \
906 .page_size = (_page_size), \
919 .page_size = _page_size, \
1364 if (hweight32(nor->page_size) == 1) { in spi_nor_write()
1365 page_offset = addr & (nor->page_size - 1); in spi_nor_write()
1369 page_offset = do_div(aux, nor->page_size); in spi_nor_write()
1373 nor->page_size - page_offset, len - i); in spi_nor_write()
1685 nor->page_size = (nor->page_size == 264) ? 256 : 512; in s3an_nor_scan()
1686 nor->mtd.writebufsize = nor->page_size; in s3an_nor_scan()
1687 nor->mtd.size = 8 * nor->page_size * info->n_sectors; in s3an_nor_scan()
1688 nor->mtd.erasesize = 8 * nor->page_size; in s3an_nor_scan()
1753 u32 page_size; member
2231 params->page_size = bfpt.dwords[BFPT_DWORD(11)]; in spi_nor_parse_bfpt()
2232 params->page_size &= BFPT_DWORD11_PAGE_SIZE_MASK; in spi_nor_parse_bfpt()
2233 params->page_size >>= BFPT_DWORD11_PAGE_SIZE_SHIFT; in spi_nor_parse_bfpt()
2234 params->page_size = 1U << params->page_size; in spi_nor_parse_bfpt()
2386 params->page_size = info->page_size; in spi_nor_init_params()
2774 nor->page_size = params.page_size; in spi_nor_scan()
2775 mtd->writebufsize = nor->page_size; in spi_nor_scan()