Lines Matching refs:res
170 int res, ret = 0, i, j, act = 0;
193 res = mtd_read(mtd, from, len, &retlen, buf);
194 if (res < 0) {
195 if (mtd_is_eccerr(res)) {
198 return res;
199 } else if (mtd_is_bitflip(res)) {
202 ret = res;
205 return res;
264 int res = 0, i;
270 res = read_bbt(this, buf, td->pages[i],
273 if (res)
274 return res;
278 res = read_bbt(this, buf, td->pages[0],
280 if (res)
281 return res;
317 int res, ret = 0;
328 res = mtd_read_oob(mtd, offs, &ops);
329 if (res) {
330 if (!mtd_is_bitflip_or_eccerr(res))
331 return res;
332 else if (mtd_is_eccerr(res) || !ret)
333 ret = res;
689 int res;
694 res = nand_markbad_bbm(this, to);
695 if (res)
697 res, block);
719 int i, res, chip = 0;
757 res = block;
793 res = mtd_read(mtd, to, len, &retlen, buf);
794 if (res < 0) {
797 return res;
804 res = mtd_read_oob(mtd, to + mtd->writesize, &ops);
805 if (res < 0 || ops.oobretlen != ops.ooblen)
859 res = nand_erase_nand(this, &einfo, 1);
860 if (res < 0) {
862 res);
867 res = scan_write_bbt(this, to, len, buf,
870 if (res < 0) {
872 res);
886 pr_warn("nand_bbt: error while writing bad block table %d\n", res);
887 return res;
920 int i, chips, writeops, create, chipsel, res, res2;
936 res = res2 = 0;
986 res = read_abs_bbt(this, buf, rd, chipsel);
987 if (mtd_is_eccerr(res)) {
1008 if (mtd_is_bitflip(res) || mtd_is_bitflip(res2))
1019 res = write_bbt(this, buf, td, md, chipsel);
1020 if (res < 0)
1021 return res;
1026 res = write_bbt(this, buf, md, td, chipsel);
1027 if (res < 0)
1028 return res;
1044 int len, res = 0;
1075 res = write_bbt(this, buf, td, md, chipsel);
1076 if (res < 0)
1081 res = write_bbt(this, buf, md, td, chipsel);
1086 return res;
1214 int len, res;
1233 if ((res = nand_memory_bbt(this, bd))) {
1247 res = -ENOMEM;
1259 res = check_create(this, buf, bd);
1260 if (res)
1276 return res;
1417 int block, res;
1420 res = bbt_get_entry(this, block);
1423 (unsigned int)offs, block, res);
1425 switch (res) {