Lines Matching refs:page_count

555 static int cdns_cdma_desc_transfer_finish(struct cadence_nand_params *params, uint32_t page_count,  in cdns_cdma_desc_transfer_finish()  argument
566 page_buffer_size = (page_count > max_page_desc) ? max_page_desc : page_count; in cdns_cdma_desc_transfer_finish()
577 while (page_count > 0) { in cdns_cdma_desc_transfer_finish()
580 if (page_count > max_page_desc) { in cdns_cdma_desc_transfer_finish()
582 page_count = page_count - max_page_desc; in cdns_cdma_desc_transfer_finish()
585 page_count_pass = page_count; in cdns_cdma_desc_transfer_finish()
586 page_count = page_count - page_count_pass; in cdns_cdma_desc_transfer_finish()
626 char *buffer, uint32_t page_count) in cdns_nand_cdma_write() argument
630 ret = cdns_cdma_desc_transfer_finish(params, page_count, CONFIG_FLASH_CDNS_CDMA_PAGE_COUNT, in cdns_nand_cdma_write()
646 char *buffer, uint32_t page_count) in cdns_nand_cdma_read() argument
650 ret = cdns_cdma_desc_transfer_finish(params, page_count, CONFIG_FLASH_CDNS_CDMA_PAGE_COUNT, in cdns_nand_cdma_read()
845 char *buffer, uint32_t page_count, uint8_t mode) in cdns_nand_pio_read_write() argument
851 for (index = 0; index < page_count; index++) { in cdns_nand_pio_read_write()
1075 char *buffer, uint32_t page_count, uint8_t mode) in cdns_nand_gen_read_write() argument
1082 for (index = 0; index < page_count; index++) { in cdns_nand_gen_read_write()
1143 const void *buffer, uint32_t page_count) in cdns_read_data() argument
1148 ret = cdns_nand_cdma_read(params, start_page_number, (char *)buffer, page_count); in cdns_read_data()
1150 ret = cdns_nand_pio_read_write(params, start_page_number, (char *)buffer, page_count, in cdns_read_data()
1153 ret = cdns_nand_gen_read_write(params, start_page_number, (char *)buffer, page_count, in cdns_read_data()
1173 uint32_t page_count; in cdns_nand_read() local
1206 page_count = end_page_number - start_page_number; in cdns_nand_read()
1207 page_count++; in cdns_nand_read()
1209 ret = cdns_read_data(params, start_page_number, (char *)buffer, page_count); in cdns_nand_read()
1214 } else if (((check_page_last == 0) && (check_page_first == 1) && (page_count == 1)) || in cdns_nand_read()
1215 ((check_page_last == 0) && (check_page_first == 0) && (page_count == 1)) || in cdns_nand_read()
1216 ((check_page_last == 1) && (check_page_first == 0) && (page_count == 1))) { in cdns_nand_read()
1224 ret = cdns_read_data(params, start_page_number, first_end_page, page_count); in cdns_nand_read()
1231 } else if (((check_page_last == 0) && (check_page_first == 1) && (page_count == 2)) || in cdns_nand_read()
1232 ((check_page_last == 0) && (check_page_first == 0) && (page_count == 2)) || in cdns_nand_read()
1233 ((check_page_last == 1) && (check_page_first == 0) && (page_count == 2))) { in cdns_nand_read()
1241 ret = cdns_read_data(params, start_page_number, first_end_page, page_count); in cdns_nand_read()
1249 } else if ((check_page_last == 0) && (check_page_first == 1) && (page_count > 2)) { in cdns_nand_read()
1263 ret = cdns_read_data(params, start_page_number, (char *)buffer, (--page_count)); in cdns_nand_read()
1269 memcpy((char *)buffer + ((page_count - 1) * params->page_size), first_end_page, in cdns_nand_read()
1273 } else if ((check_page_last == 1) && (check_page_first == 0) && (page_count > 2)) { in cdns_nand_read()
1290 (--page_count)); in cdns_nand_read()
1297 } else if ((check_page_last == 0) && (check_page_first == 0) && (page_count > 2)) { in cdns_nand_read()
1324 (page_count - 2)); in cdns_nand_read()
1332 ((page_count - 2) * (params->npages_per_block))), in cdns_nand_read()
1353 uint32_t page_count; in cdns_nand_write() local
1382 page_count = end_page_number - start_page_number; in cdns_nand_write()
1385 ret = cdns_nand_cdma_write(params, start_page_number, (char *)buffer, ++page_count); in cdns_nand_write()
1387 ret = cdns_nand_pio_read_write(params, start_page_number, (char *)buffer, ++page_count, in cdns_nand_write()
1390 ret = cdns_nand_gen_read_write(params, start_page_number, (char *)buffer, ++page_count, in cdns_nand_write()