Lines Matching refs:ofs
38 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
40 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
118 static inline void DoC_Address(void __iomem * docptr, int numbytes, unsigned long ofs,
130 WriteDOC(ofs & 0xff, docptr, Mil_CDSN_IO);
135 WriteDOC((ofs >> 9) & 0xff, docptr, Mil_CDSN_IO);
136 WriteDOC((ofs >> 17) & 0xff, docptr, Mil_CDSN_IO);
141 WriteDOC(ofs & 0xff, docptr, Mil_CDSN_IO);
142 WriteDOC((ofs >> 9) & 0xff, docptr, Mil_CDSN_IO);
143 WriteDOC((ofs >> 17) & 0xff, docptr, Mil_CDSN_IO);
610 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
619 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
625 ofs += ops->ooboffs;
645 DoC_Address(docptr, 3, ofs, CDSN_CTRL_WP, 0x00);
667 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
677 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
683 ofs += ops->ooboffs;
707 DoC_Address(docptr, 3, ofs, 0x00, 0x00);
748 __u32 ofs = instr->addr;
751 struct Nand *mychip = &this->chips[ofs >> this->chipshift];
771 DoC_Address(docptr, 2, ofs, 0x00, 0x00);
784 printk("Error Erasing at 0x%x\n", ofs);