• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mtd/devices/

Lines Matching refs:ofs

42 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
44 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
125 unsigned long ofs, unsigned char xtraflags1,
131 ofs >>= doc->interleave;
136 WriteDOC(ofs & 0xff, docptr, Mplus_FlashAddress);
140 WriteDOC((ofs >> 9) & 0xff, docptr, Mplus_FlashAddress);
141 WriteDOC((ofs >> 17) & 0xff, docptr, Mplus_FlashAddress);
145 WriteDOC(ofs & 0xff, docptr, Mplus_FlashAddress);
146 WriteDOC((ofs >> 9) & 0xff, docptr, Mplus_FlashAddress);
147 WriteDOC((ofs >> 17) & 0xff, docptr, Mplus_FlashAddress);
186 unsigned int ofs = *from & 0x3ff;
189 if (ofs < 512) {
191 ofs &= 0x1ff;
192 } else if (ofs < 1014) {
194 ofs = (ofs & 0x1ff) + 10;
197 ofs = ofs - 1014;
200 *from = (*from & ~0x3ff) | ofs;
212 unsigned int ofs, cmd;
216 ofs = 10 + (*from & 0xf);
219 ofs = (*from & 0xf);
222 *from = (*from & ~0x3ff) | ofs;
228 unsigned int ofs, cmd;
231 ofs = (*from & 0x200) ? 8 : 6;
232 *from = (*from & ~0x3ff) | ofs;
238 unsigned int ofs, cmd;
241 ofs = (*from & 0x200) ? 24 : 16;
242 *from = (*from & ~0x3ff) | ofs;
752 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
758 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
765 ofs += ops->ooboffs;
794 fofs = ofs;
795 base = ofs & 0xf;
823 ofs += size;
835 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
842 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
850 ofs += ops->ooboffs;
880 fofs = ofs;
881 base = ofs & 0x0f;
924 dummy, (int)ofs);
930 ofs += size;
946 __u32 ofs = instr->addr;
949 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
976 DoC_Address(this, 2, ofs, 0, 0x00);
987 printk("MTD: Error 0x%x erasing at 0x%x\n", dummy, ofs);