Lines Matching refs:i

66 	int i;  in concat_read()  local
72 for (i = 0; i < concat->num_subdev; i++) { in concat_read()
73 struct mtd_info *subdev = concat->subdev[i]; in concat_read()
122 int i; in concat_write() local
128 for (i = 0; i < concat->num_subdev; i++) { in concat_write()
129 struct mtd_info *subdev = concat->subdev[i]; in concat_write()
167 int i; in concat_writev() local
171 for (i = 0; i < count; i++) in concat_writev()
172 total_len += vecs[i].iov_len; in concat_writev()
187 for (i = 0; i < concat->num_subdev; i++) { in concat_writev()
188 struct mtd_info *subdev = concat->subdev[i]; in concat_writev()
240 int i, err, ret = 0; in concat_read_oob() local
244 for (i = 0; i < concat->num_subdev; i++) { in concat_read_oob()
245 struct mtd_info *subdev = concat->subdev[i]; in concat_read_oob()
297 int i, err; in concat_write_oob() local
304 for (i = 0; i < concat->num_subdev; i++) { in concat_write_oob()
305 struct mtd_info *subdev = concat->subdev[i]; in concat_write_oob()
384 int i, err; in concat_erase() local
408 for (i = 0; i < concat->mtd.numeraseregions && in concat_erase()
409 instr->addr >= erase_regions[i].offset; i++) ; in concat_erase()
410 --i; in concat_erase()
417 if (i < 0 || instr->addr & (erase_regions[i].erasesize - 1)) in concat_erase()
423 for (; i < concat->mtd.numeraseregions && in concat_erase()
424 (instr->addr + instr->len) >= erase_regions[i].offset; in concat_erase()
425 ++i) ; in concat_erase()
426 --i; in concat_erase()
430 if (i < 0 || ((instr->addr + instr->len) & in concat_erase()
431 (erase_regions[i].erasesize - 1))) in concat_erase()
448 for (i = 0; i < concat->num_subdev; i++) { in concat_erase()
449 subdev = concat->subdev[i]; in concat_erase()
459 BUG_ON(i >= concat->num_subdev); in concat_erase()
463 for (; length > 0; i++) { in concat_erase()
465 subdev = concat->subdev[i]; /* get current subdevice */ in concat_erase()
506 int i, err = -EINVAL; in concat_lock() local
508 for (i = 0; i < concat->num_subdev; i++) { in concat_lock()
509 struct mtd_info *subdev = concat->subdev[i]; in concat_lock()
540 int i, err = 0; in concat_unlock() local
542 for (i = 0; i < concat->num_subdev; i++) { in concat_unlock()
543 struct mtd_info *subdev = concat->subdev[i]; in concat_unlock()
574 int i; in concat_sync() local
576 for (i = 0; i < concat->num_subdev; i++) { in concat_sync()
577 struct mtd_info *subdev = concat->subdev[i]; in concat_sync()
586 int i, rc = 0; in concat_suspend() local
588 for (i = 0; i < concat->num_subdev; i++) { in concat_suspend()
589 struct mtd_info *subdev = concat->subdev[i]; in concat_suspend()
599 int i; in concat_resume() local
601 for (i = 0; i < concat->num_subdev; i++) { in concat_resume()
602 struct mtd_info *subdev = concat->subdev[i]; in concat_resume()
611 int i, res = 0; in concat_block_isbad() local
616 for (i = 0; i < concat->num_subdev; i++) { in concat_block_isbad()
617 struct mtd_info *subdev = concat->subdev[i]; in concat_block_isbad()
634 int i, err = -EINVAL; in concat_block_markbad() local
636 for (i = 0; i < concat->num_subdev; i++) { in concat_block_markbad()
637 struct mtd_info *subdev = concat->subdev[i]; in concat_block_markbad()
663 int i; in concat_get_unmapped_area() local
665 for (i = 0; i < concat->num_subdev; i++) { in concat_get_unmapped_area()
666 struct mtd_info *subdev = concat->subdev[i]; in concat_get_unmapped_area()
693 int i; in mtd_concat_create() local
701 for (i = 0; i < num_devs; i++) in mtd_concat_create()
702 printk(KERN_NOTICE "(%d): \"%s\"\n", i, subdev[i]->name); in mtd_concat_create()
726 for (i = 0; i < num_devs; i++) in mtd_concat_create()
727 if (max_writebufsize < subdev[i]->writebufsize) in mtd_concat_create()
728 max_writebufsize = subdev[i]->writebufsize; in mtd_concat_create()
755 for (i = 1; i < num_devs; i++) { in mtd_concat_create()
756 if (concat->mtd.type != subdev[i]->type) { in mtd_concat_create()
759 subdev[i]->name); in mtd_concat_create()
762 if (concat->mtd.flags != subdev[i]->flags) { in mtd_concat_create()
767 if ((concat->mtd.flags ^ subdev[i]-> in mtd_concat_create()
771 subdev[i]->name); in mtd_concat_create()
777 subdev[i]->flags & MTD_WRITEABLE; in mtd_concat_create()
785 subdev[i]->backing_dev_info) in mtd_concat_create()
790 concat->mtd.size += subdev[i]->size; in mtd_concat_create()
792 subdev[i]->ecc_stats.badblocks; in mtd_concat_create()
793 if (concat->mtd.writesize != subdev[i]->writesize || in mtd_concat_create()
794 concat->mtd.subpage_sft != subdev[i]->subpage_sft || in mtd_concat_create()
795 concat->mtd.oobsize != subdev[i]->oobsize || in mtd_concat_create()
796 !concat->mtd._read_oob != !subdev[i]->_read_oob || in mtd_concat_create()
797 !concat->mtd._write_oob != !subdev[i]->_write_oob) { in mtd_concat_create()
800 subdev[i]->name); in mtd_concat_create()
803 concat->subdev[i] = subdev[i]; in mtd_concat_create()
832 for (i = 0; i < num_devs; i++) { in mtd_concat_create()
833 if (subdev[i]->numeraseregions == 0) { in mtd_concat_create()
835 if (subdev[i]->erasesize != curr_erasesize) { in mtd_concat_create()
838 curr_erasesize = subdev[i]->erasesize; in mtd_concat_create()
845 for (j = 0; j < subdev[i]->numeraseregions; j++) { in mtd_concat_create()
848 if (subdev[i]->eraseregions[j].erasesize != in mtd_concat_create()
852 subdev[i]->eraseregions[j]. in mtd_concat_create()
897 for (i = 0; i < num_devs; i++) { in mtd_concat_create()
898 if (subdev[i]->numeraseregions == 0) { in mtd_concat_create()
900 if (subdev[i]->erasesize != curr_erasesize) { in mtd_concat_create()
913 curr_erasesize = subdev[i]->erasesize; in mtd_concat_create()
916 position += subdev[i]->size; in mtd_concat_create()
920 for (j = 0; j < subdev[i]->numeraseregions; j++) { in mtd_concat_create()
922 if (subdev[i]->eraseregions[j]. in mtd_concat_create()
933 subdev[i]->eraseregions[j]. in mtd_concat_create()
938 subdev[i]->eraseregions[j]. in mtd_concat_create()