• Home
  • Raw
  • Download

Lines Matching refs:iter

628 					struct nand_io_iter *iter)  in nanddev_io_iter_init()  argument
632 iter->req.mode = req->mode; in nanddev_io_iter_init()
633 iter->req.dataoffs = nanddev_offs_to_pos(nand, offs, &iter->req.pos); in nanddev_io_iter_init()
634 iter->req.ooboffs = req->ooboffs; in nanddev_io_iter_init()
635 iter->oobbytes_per_page = mtd_oobavail(mtd, req); in nanddev_io_iter_init()
636 iter->dataleft = req->len; in nanddev_io_iter_init()
637 iter->oobleft = req->ooblen; in nanddev_io_iter_init()
638 iter->req.databuf.in = req->datbuf; in nanddev_io_iter_init()
639 iter->req.datalen = min_t(unsigned int, in nanddev_io_iter_init()
640 nand->memorg.pagesize - iter->req.dataoffs, in nanddev_io_iter_init()
641 iter->dataleft); in nanddev_io_iter_init()
642 iter->req.oobbuf.in = req->oobbuf; in nanddev_io_iter_init()
643 iter->req.ooblen = min_t(unsigned int, in nanddev_io_iter_init()
644 iter->oobbytes_per_page - iter->req.ooboffs, in nanddev_io_iter_init()
645 iter->oobleft); in nanddev_io_iter_init()
656 struct nand_io_iter *iter) in nanddev_io_iter_next_page() argument
658 nanddev_pos_next_page(nand, &iter->req.pos); in nanddev_io_iter_next_page()
659 iter->dataleft -= iter->req.datalen; in nanddev_io_iter_next_page()
660 iter->req.databuf.in += iter->req.datalen; in nanddev_io_iter_next_page()
661 iter->oobleft -= iter->req.ooblen; in nanddev_io_iter_next_page()
662 iter->req.oobbuf.in += iter->req.ooblen; in nanddev_io_iter_next_page()
663 iter->req.dataoffs = 0; in nanddev_io_iter_next_page()
664 iter->req.ooboffs = 0; in nanddev_io_iter_next_page()
665 iter->req.datalen = min_t(unsigned int, nand->memorg.pagesize, in nanddev_io_iter_next_page()
666 iter->dataleft); in nanddev_io_iter_next_page()
667 iter->req.ooblen = min_t(unsigned int, iter->oobbytes_per_page, in nanddev_io_iter_next_page()
668 iter->oobleft); in nanddev_io_iter_next_page()
683 const struct nand_io_iter *iter) in nanddev_io_iter_end() argument
685 if (iter->dataleft || iter->oobleft) in nanddev_io_iter_end()
701 #define nanddev_io_for_each_page(nand, start, req, iter) \ argument
702 for (nanddev_io_iter_init(nand, start, req, iter); \
703 !nanddev_io_iter_end(nand, iter); \
704 nanddev_io_iter_next_page(nand, iter))