• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/devices/

Lines Matching defs:ofs

39 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
41 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
122 unsigned long ofs, unsigned char xtraflags1,
128 ofs >>= doc->interleave;
133 WriteDOC(ofs & 0xff, docptr, Mplus_FlashAddress);
137 WriteDOC((ofs >> 9) & 0xff, docptr, Mplus_FlashAddress);
138 WriteDOC((ofs >> 17) & 0xff, docptr, Mplus_FlashAddress);
142 WriteDOC(ofs & 0xff, docptr, Mplus_FlashAddress);
143 WriteDOC((ofs >> 9) & 0xff, docptr, Mplus_FlashAddress);
144 WriteDOC((ofs >> 17) & 0xff, docptr, Mplus_FlashAddress);
183 unsigned int ofs = *from & 0x3ff;
186 if (ofs < 512) {
188 ofs &= 0x1ff;
189 } else if (ofs < 1014) {
191 ofs = (ofs & 0x1ff) + 10;
194 ofs = ofs - 1014;
197 *from = (*from & ~0x3ff) | ofs;
209 unsigned int ofs, cmd;
213 ofs = 10 + (*from & 0xf);
216 ofs = (*from & 0xf);
219 *from = (*from & ~0x3ff) | ofs;
225 unsigned int ofs, cmd;
228 ofs = (*from & 0x200) ? 8 : 6;
229 *from = (*from & ~0x3ff) | ofs;
235 unsigned int ofs, cmd;
238 ofs = (*from & 0x200) ? 24 : 16;
239 *from = (*from & ~0x3ff) | ofs;
749 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
755 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
762 ofs += ops->ooboffs;
791 fofs = ofs;
792 base = ofs & 0xf;
820 ofs += size;
832 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
839 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
847 ofs += ops->ooboffs;
877 fofs = ofs;
878 base = ofs & 0x0f;
921 dummy, (int)ofs);
927 ofs += size;
943 __u32 ofs = instr->addr;
946 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
973 DoC_Address(this, 2, ofs, 0, 0x00);
984 printk("MTD: Error 0x%x erasing at 0x%x\n", dummy, ofs);