Lines Matching refs:page
26 struct flash_pages_info page; in main() local
48 ret = flash_get_page_info_by_offs(nand_dev, 0x00, &page); in main()
54 printk("The Page size of %lx\n", page.size); in main()
56 w_Page_buffer = (uint8_t *)k_malloc(page.size * NAND_NUM_PAGES); in main()
58 r_Page_buffer = (uint8_t *)k_malloc(page.size * NAND_NUM_PAGES); in main()
62 for (int index = 0; index < page.size * NAND_NUM_PAGES; index++) { in main()
72 memset(r_Page_buffer, 0x55, page.size * NAND_NUM_PAGES); in main()
89 ret = flash_write(nand_dev, OFFSET_PAGE, w_Page_buffer, page.size * NAND_NUM_PAGES); in main()
98 ret = flash_read(nand_dev, OFFSET_PAGE, r_Page_buffer, page.size * NAND_NUM_PAGES); in main()
108 ret = memcmp(w_Page_buffer, r_Page_buffer, page.size * NAND_NUM_PAGES); in main()
128 ret = flash_read(nand_dev, OFFSET_PAGE, r_Page_buffer, page.size * NAND_NUM_PAGES); in main()
136 memset(w_Page_buffer, 0xFF, page.size * NAND_NUM_PAGES); in main()
138 ret = memcmp(w_Page_buffer, r_Page_buffer, page.size * NAND_NUM_PAGES); in main()