Lines Matching refs:status

463 	u8 status;
471 ret = nand_status_op(chip, &status);
475 return status & NAND_STATUS_WP ? 0 : 1;
555 * nand_wait_status_ready - [GENERIC] Wait for the ready status after commands.
559 * Wait for status ready (i.e. command done) or timeout.
570 u8 status;
572 ret = nand_read_data_op(chip, &status, sizeof(status), true);
576 if (status & NAND_STATUS_READY)
639 * Program and erase have their own busy handlers status and sequential
735 * Program and erase have their own busy handlers status, sequential
736 * in and status need no delay.
849 u8 status;
851 ret = nand_read_data_op(chip, &status, sizeof(status),
856 if (status & NAND_STATUS_READY)
873 u8 status;
897 ret = nand_read_data_op(chip, &status,
898 sizeof(status), true);
902 if (status & NAND_STATUS_READY)
908 ret = nand_read_data_op(chip, &status, sizeof(status), true);
913 WARN_ON(!(status & NAND_STATUS_READY));
914 return status;
1243 int status;
1247 status = chip->waitfunc(mtd, chip);
1248 if (status & NAND_STATUS_FAIL)
1273 int status;
1285 status = chip->waitfunc(mtd, chip);
1286 if (status & NAND_STATUS_FAIL)
1362 * @status: out variable to store the NAND status
1364 * This function sends a STATUS command and reads back the status returned by
1370 int nand_status_op(struct nand_chip *chip, u8 *status)
1375 if (status)
1376 *status = chip->read_byte(mtd);
1387 * command to avoid reading only the status until a new read command is sent.
1419 int status;
1424 status = chip->waitfunc(mtd, chip);
1425 if (status < 0)
1426 return status;
1428 if (status & NAND_STATUS_FAIL)
1452 int i, status;
1458 status = chip->waitfunc(mtd, chip);
1459 if (status & NAND_STATUS_FAIL)
3082 int status, subpage;
3091 status = nand_prog_page_begin_op(chip, page, 0, NULL, 0);
3092 if (status)
3093 return status;
3097 status = chip->ecc.write_page_raw(mtd, chip, buf,
3100 status = chip->ecc.write_subpage(mtd, chip, offset, data_len,
3103 status = chip->ecc.write_page(mtd, chip, buf, oob_required,
3106 if (status < 0)
3107 return status;
3345 int chipnr, page, status, len;
3404 status = chip->ecc.write_oob_raw(mtd, chip, page & chip->pagemask);
3406 status = chip->ecc.write_oob(mtd, chip, page & chip->pagemask);
3410 if (status)
3411 return status;
3465 * Standard erase command for NAND chips. Returns NAND status.
3501 int page, status, pages_per_block, ret, chipnr;
3560 status = chip->erase(mtd, page & chip->pagemask);
3563 if (status & NAND_STATUS_FAIL) {