Lines Matching refs:sector
91 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf);
240 static int rfd_ftl_readsect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_readsect() argument
247 if (sector >= part->sector_count) in rfd_ftl_readsect()
250 addr = part->sector_map[sector]; in rfd_ftl_readsect()
601 static int do_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf, ulong *old_addr) in do_writesect() argument
642 part->sector_map[sector] = addr; in do_writesect()
644 entry = cpu_to_le16(sector == 0 ? SECTOR_ZERO : sector); in do_writesect()
667 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_writesect() argument
674 pr_debug("rfd_ftl_writesect(sector=0x%lx)\n", sector); in rfd_ftl_writesect()
681 if (sector >= part->sector_count) { in rfd_ftl_writesect()
686 old_addr = part->sector_map[sector]; in rfd_ftl_writesect()
692 rc = do_writesect(dev, sector, buf, &old_addr); in rfd_ftl_writesect()
699 part->sector_map[sector] = -1; in rfd_ftl_writesect()
709 unsigned long sector, unsigned int nr_sects) in rfd_ftl_discardsect() argument
716 if (sector >= part->sector_count) in rfd_ftl_discardsect()
719 addr = part->sector_map[sector]; in rfd_ftl_discardsect()
726 part->sector_map[sector] = -1; in rfd_ftl_discardsect()
729 sector++; in rfd_ftl_discardsect()