Lines Matching refs:ooblen
356 ops.ooblen = length; in mtdchar_writeoob()
362 if (ops.ooboffs && ops.ooblen > (mtd->oobsize - ops.ooboffs)) in mtdchar_writeoob()
393 ops.ooblen = length; in mtdchar_readoob()
399 if (ops.ooboffs && ops.ooblen > (mtd->oobsize - ops.ooboffs)) in mtdchar_readoob()
582 if (ops->len == 0 || ops->ooblen == 0) in adjust_oob_length()
589 ops->ooblen = min_t(size_t, ops->ooblen, in adjust_oob_length()
616 req.ooblen = 0; in mtdchar_write_ioctl()
619 req.ooblen &= 0xffffffff; in mtdchar_write_ioctl()
631 oobbuf_len = min_t(size_t, req.ooblen, mtd->erasesize); in mtdchar_write_ioctl()
640 while (req.len > 0 || (!usr_data && req.ooblen > 0)) { in mtdchar_write_ioctl()
644 .ooblen = min_t(size_t, req.ooblen, oobbuf_len), in mtdchar_write_ioctl()
668 copy_from_user(oobbuf, usr_oob, ops.ooblen)) { in mtdchar_write_ioctl()
681 req.ooblen -= ops.oobretlen; in mtdchar_write_ioctl()
706 orig_ooblen = req.ooblen; in mtdchar_read_ioctl()
718 req.ooblen = 0; in mtdchar_read_ioctl()
725 req.ooblen &= 0xffffffff; in mtdchar_read_ioctl()
741 oobbuf_len = min_t(size_t, req.ooblen, mtd->erasesize); in mtdchar_read_ioctl()
750 while (req.len > 0 || (!usr_data && req.ooblen > 0)) { in mtdchar_read_ioctl()
755 .ooblen = min_t(size_t, req.ooblen, oobbuf_len), in mtdchar_read_ioctl()
792 req.ooblen -= ops.oobretlen; in mtdchar_read_ioctl()
811 req.ooblen = orig_ooblen - req.ooblen; in mtdchar_read_ioctl()