• 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

54 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
56 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
58 static int doc_write_oob_nolock(struct mtd_info *mtd, loff_t ofs, size_t len,
163 static int DoC_Address(struct DiskOnChip *doc, int numbytes, unsigned long ofs,
191 WriteDOC(ofs & 0xff, docptr, CDSNSlowIO);
192 WriteDOC_(ofs & 0xff, docptr, doc->ioreg);
196 ofs = ofs >> 8;
198 ofs = ofs >> 9;
202 for (i = 0; i < doc->pageadrlen; i++, ofs = ofs >> 8) {
204 WriteDOC(ofs & 0xff, docptr, CDSNSlowIO);
205 WriteDOC_(ofs & 0xff, docptr, doc->ioreg);
210 WriteDOC(ofs & 0xff, docptr, WritePipeTerm);
922 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
933 ofs += ops->ooboffs;
937 mychip = &this->chips[ofs >> this->chipshift];
951 if (!(ofs & 0x8))
952 ofs += 0x100;
954 ofs -= 0x8;
958 DoC_Address(this, ADDR_COLUMN_PAGE, ofs, CDSN_CTRL_WP, 0);
963 if (this->page256 && ofs + len > (ofs | 0x7) + 1) {
964 len256 = (ofs | 0x7) + 1 - ofs;
968 DoC_Address(this, ADDR_COLUMN_PAGE, ofs & (~0x1ff),
986 static int doc_write_oob_nolock(struct mtd_info *mtd, loff_t ofs, size_t len,
992 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
996 // printk("doc_write_oob(%lx, %d): %2.2X %2.2X %2.2X %2.2X ... %2.2X %2.2X .. %2.2X %2.2X\n",(long)ofs, len,
1022 if (!(ofs & 0x8))
1023 ofs += 0x100;
1025 ofs -= 0x8;
1030 DoC_Address(this, ADDR_COLUMN_PAGE, ofs, 0, 0);
1035 if (this->page256 && ofs + len > (ofs | 0x7) + 1) {
1036 len256 = (ofs | 0x7) + 1 - ofs;
1059 DoC_Address(this, ADDR_COLUMN_PAGE, ofs & (~0x1ff), 0, 0);
1089 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
1098 ret = doc_write_oob_nolock(mtd, ofs + ops->ooboffs, ops->len,
1108 __u32 ofs = instr->addr;
1117 if (ofs & (mtd->erasesize-1) || len & (mtd->erasesize-1)) {
1125 mychip = &this->chips[ofs >> this->chipshift];
1137 DoC_Address(this, ADDR_PAGE, ofs, 0, 0);
1152 printk(KERN_ERR "Error erasing at 0x%x\n", ofs);
1157 ofs += mtd->erasesize;