Lines Matching refs:pktsize
327 u32 reg_val, i, pktsize, pktnum; in arasan_nand_read_page() local
334 pktsize = ARASAN_NAND_PKTSIZE_1K; in arasan_nand_read_page()
336 pktsize = ARASAN_NAND_PKTSIZE_512; in arasan_nand_read_page()
338 if (size % pktsize) in arasan_nand_read_page()
339 pktnum = size/pktsize + 1; in arasan_nand_read_page()
341 pktnum = size/pktsize; in arasan_nand_read_page()
352 pktsize; in arasan_nand_read_page()
395 for (i = 0; i < pktsize/4; i++) in arasan_nand_read_page()
399 bufptr += pktsize/4; in arasan_nand_read_page()
502 u32 reg_val, i, pktsize, pktnum; in arasan_nand_write_page_hwecc() local
511 pktsize = ARASAN_NAND_PKTSIZE_1K; in arasan_nand_write_page_hwecc()
513 pktsize = ARASAN_NAND_PKTSIZE_512; in arasan_nand_write_page_hwecc()
515 if (size % pktsize) in arasan_nand_write_page_hwecc()
516 pktnum = size/pktsize + 1; in arasan_nand_write_page_hwecc()
518 pktnum = size/pktsize; in arasan_nand_write_page_hwecc()
523 reg_val |= (pktnum << ARASAN_NAND_PKT_REG_PKT_CNT_SHFT) | pktsize; in arasan_nand_write_page_hwecc()
565 for (i = 0; i < pktsize/4; i++) in arasan_nand_write_page_hwecc()
568 bufptr += pktsize/4; in arasan_nand_write_page_hwecc()