1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>nand_write_page</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="MTD NAND Driver Programming Interface"><link rel="up" href="intfunctions.html" title="Chapter 11. Internal Functions Provided"><link rel="prev" href="API-nand-write-page-syndrome.html" title="nand_write_page_syndrome"><link rel="next" href="API-nand-fill-oob.html" title="nand_fill_oob"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">nand_write_page</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-nand-write-page-syndrome.html">Prev</a> </td><th width="60%" align="center">Chapter 11. Internal Functions Provided</th><td width="20%" align="right"> <a accesskey="n" href="API-nand-fill-oob.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-nand-write-page"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>nand_write_page — 2 [REPLACEABLE] write one page 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">nand_write_page </b>(</code></td><td>struct mtd_info * <var class="pdparam">mtd</var>, </td></tr><tr><td> </td><td>struct nand_chip * <var class="pdparam">chip</var>, </td></tr><tr><td> </td><td>uint32_t <var class="pdparam">offset</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">data_len</var>, </td></tr><tr><td> </td><td>const uint8_t * <var class="pdparam">buf</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">oob_required</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">page</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">cached</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">raw</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1103313188"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>mtd</code></em></span></dt><dd><p> 4 MTD device structure 5 </p></dd><dt><span class="term"><em class="parameter"><code>chip</code></em></span></dt><dd><p> 6 NAND chip descriptor 7 </p></dd><dt><span class="term"><em class="parameter"><code>offset</code></em></span></dt><dd><p> 8 address offset within the page 9 </p></dd><dt><span class="term"><em class="parameter"><code>data_len</code></em></span></dt><dd><p> 10 length of actual data to be written 11 </p></dd><dt><span class="term"><em class="parameter"><code>buf</code></em></span></dt><dd><p> 12 the data to write 13 </p></dd><dt><span class="term"><em class="parameter"><code>oob_required</code></em></span></dt><dd><p> 14 must write chip->oob_poi to OOB 15 </p></dd><dt><span class="term"><em class="parameter"><code>page</code></em></span></dt><dd><p> 16 page number to write 17 </p></dd><dt><span class="term"><em class="parameter"><code>cached</code></em></span></dt><dd><p> 18 cached programming 19 </p></dd><dt><span class="term"><em class="parameter"><code>raw</code></em></span></dt><dd><p> 20 use _raw version of write_page 21 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-nand-write-page-syndrome.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="intfunctions.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-nand-fill-oob.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">nand_write_page_syndrome</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">nand_fill_oob</span></td></tr></table></div></body></html> 22