Lines Matching refs:offset_in_page

1090 				   unsigned int offset_in_page)  in nand_fill_column_cycles()  argument
1098 if (offset_in_page > mtd->writesize + mtd->oobsize) in nand_fill_column_cycles()
1106 if (mtd->writesize <= 512 && offset_in_page >= mtd->writesize) in nand_fill_column_cycles()
1107 offset_in_page -= mtd->writesize; in nand_fill_column_cycles()
1114 if (WARN_ON(offset_in_page % 2)) in nand_fill_column_cycles()
1117 offset_in_page /= 2; in nand_fill_column_cycles()
1121 addrs[0] = offset_in_page; in nand_fill_column_cycles()
1130 addrs[1] = offset_in_page >> 8; in nand_fill_column_cycles()
1136 unsigned int offset_in_page, void *buf, in nand_sp_exec_read_page_op() argument
1157 if (offset_in_page >= mtd->writesize) in nand_sp_exec_read_page_op()
1159 else if (offset_in_page >= 256 && in nand_sp_exec_read_page_op()
1163 ret = nand_fill_column_cycles(chip, addrs, offset_in_page); in nand_sp_exec_read_page_op()
1179 unsigned int offset_in_page, void *buf, in nand_lp_exec_read_page_op() argument
1200 ret = nand_fill_column_cycles(chip, addrs, offset_in_page); in nand_lp_exec_read_page_op()
1233 unsigned int offset_in_page, void *buf, in nand_lp_exec_cont_read_page_op() argument
1266 ret = nand_fill_column_cycles(chip, addrs, offset_in_page); in nand_lp_exec_cont_read_page_op()
1326 unsigned int offset_in_page, void *buf, unsigned int len) in nand_read_page_op() argument
1333 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_read_page_op()
1340 offset_in_page, in nand_read_page_op()
1344 offset_in_page, buf, in nand_read_page_op()
1348 return nand_sp_exec_read_page_op(chip, page, offset_in_page, in nand_read_page_op()
1352 chip->legacy.cmdfunc(chip, NAND_CMD_READ0, offset_in_page, page); in nand_read_page_op()
1422 unsigned int offset_in_page, void *buf, in nand_change_read_column_op() argument
1432 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_change_read_column_op()
1454 ret = nand_fill_column_cycles(chip, addrs, offset_in_page); in nand_change_read_column_op()
1467 chip->legacy.cmdfunc(chip, NAND_CMD_RNDOUT, offset_in_page, -1); in nand_change_read_column_op()
1513 unsigned int offset_in_page, const void *buf, in nand_exec_prog_page_op() argument
1535 int naddrs = nand_fill_column_cycles(chip, addrs, offset_in_page); in nand_exec_prog_page_op()
1561 if (offset_in_page >= mtd->writesize) in nand_exec_prog_page_op()
1563 else if (offset_in_page >= 256 && in nand_exec_prog_page_op()
1592 unsigned int offset_in_page, const void *buf, in nand_prog_page_begin_op() argument
1600 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_prog_page_begin_op()
1604 return nand_exec_prog_page_op(chip, page, offset_in_page, buf, in nand_prog_page_begin_op()
1607 chip->legacy.cmdfunc(chip, NAND_CMD_SEQIN, offset_in_page, page); in nand_prog_page_begin_op()
1678 unsigned int offset_in_page, const void *buf, in nand_prog_page_op() argument
1688 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_prog_page_op()
1692 ret = nand_exec_prog_page_op(chip, page, offset_in_page, buf, in nand_prog_page_op()
1701 chip->legacy.cmdfunc(chip, NAND_CMD_SEQIN, offset_in_page, in nand_prog_page_op()
1733 unsigned int offset_in_page, in nand_change_write_column_op() argument
1742 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_change_write_column_op()
1761 ret = nand_fill_column_cycles(chip, addrs, offset_in_page); in nand_change_write_column_op()
1774 chip->legacy.cmdfunc(chip, NAND_CMD_RNDIN, offset_in_page, -1); in nand_change_write_column_op()