Lines Matching defs:mode

53 MODULE_PARM_DESC(reliable_mode, "Set the docg3 mode (0=normal MLC, 1=fast, "
54 "2=reliable) : MLC normal operations are in normal mode");
303 * doc_set_reliable_mode - Sets the flash to normal or reliable data mode
306 * The reliable data mode is a bit slower than the fast mode, but less errors
307 * occur. Entering the reliable mode cannot be done without entering the fast
308 * mode first.
310 * In reliable mode, pages 2*n and 2*n+1 are clones. Writing to page 0 of blocks
335 doc_err("doc_set_reliable_mode(): invalid mode\n");
342 * doc_set_asic_mode - Set the ASIC mode
344 * @mode: the mode
351 static void doc_set_asic_mode(struct docg3 *docg3, u8 mode)
358 mode |= DOC_ASICMODE_MDWREN;
359 doc_dbg("doc_set_asic_mode(%02x)\n", mode);
360 doc_writeb(docg3, mode, DOC_ASICMODE);
361 doc_writeb(docg3, ~mode, DOC_ASICMODECONFIRM);
393 * mode must be input to the flash ASIC.
679 * - tell ASIC to be in read mode
825 * @reliable: 0 if docg3 in normal mode, 1 if docg3 in fast mode, 2 if docg3 in
826 * reliable mode.
828 * The calculation is based on the reliable/normal mode. In normal mode, the 64
829 * pages of a block are available. In reliable mode, as pages 2*n and 2*n+1 are
886 if (oobbuf && ops->mode == MTD_OPS_PLACE_OOB)
889 doc_dbg("doc_read_oob(from=%lld, mode=%d, data=(%p:%zu), oob=(%p:%zu))\n",
890 from, ops->mode, buf, len, oobbuf, ooblen);
945 (ops->mode != MTD_OPS_RAW) &&
1292 * doc_guess_autoecc - Guess autoecc mode from mbd_oob_ops
1295 * Returns 0 or 1 if success, -EINVAL if invalid oob mode
1301 switch (ops->mode) {
1357 if (ops->mode == MTD_OPS_AUTO_OOB) {
1401 if (oobbuf && ops->mode == MTD_OPS_PLACE_OOB)
1404 doc_dbg("doc_write_oob(from=%lld, mode=%d, data=(%p:%zu), oob=(%p:%zu))\n",
1405 ofs, ops->mode, buf, len, oobbuf, ooblen);
1406 switch (ops->mode) {
1441 else if (ooblen > 0 && ops->mode == MTD_OPS_AUTO_OOB)
1626 int pctrl, mode;
1630 mode = pctrl & 0x03;
1641 mode >> 1, mode & 0x1);
1643 switch (mode) {
1910 * docg3_suspend - Put in low power mode the docg3 floor