Lines Matching refs:this

241 static void DoC_ScanChips(struct DiskOnChip *this)  in DoC_ScanChips()  argument
247 this->numchips = 0; in DoC_ScanChips()
248 this->mfr = 0; in DoC_ScanChips()
249 this->id = 0; in DoC_ScanChips()
255 ret = DoC_IdentChip(this, floor, chip); in DoC_ScanChips()
258 this->numchips++; in DoC_ScanChips()
263 if (!this->numchips) { in DoC_ScanChips()
269 this->chips = kmalloc(sizeof(struct Nand) * this->numchips, GFP_KERNEL); in DoC_ScanChips()
270 if (!this->chips){ in DoC_ScanChips()
279 this->chips[ret].floor = floor; in DoC_ScanChips()
280 this->chips[ret].chip = chip; in DoC_ScanChips()
281 this->chips[ret].curadr = 0; in DoC_ScanChips()
282 this->chips[ret].curmode = 0x50; in DoC_ScanChips()
288 this->totlen = this->numchips * (1 << this->chipshift); in DoC_ScanChips()
290 this->numchips ,this->totlen >> 20); in DoC_ScanChips()
335 struct DiskOnChip *this = (struct DiskOnChip *)mtd->priv; in DoCMil_init() local
343 if (DoCMil_is_alias(this, old)) { in DoCMil_init()
345 "0x%lX - already configured\n", this->physadr); in DoCMil_init()
346 iounmap((void *)this->virtadr); in DoCMil_init()
358 this->physadr); in DoCMil_init()
381 this->totlen = 0; in DoCMil_init()
382 this->numchips = 0; in DoCMil_init()
383 this->curfloor = -1; in DoCMil_init()
384 this->curchip = -1; in DoCMil_init()
387 DoC_ScanChips(this); in DoCMil_init()
389 if (!this->totlen) { in DoCMil_init()
391 iounmap((void *)this->virtadr); in DoCMil_init()
393 this->nextdoc = docmillist; in DoCMil_init()
395 mtd->size = this->totlen; in DoCMil_init()
414 struct DiskOnChip *this = (struct DiskOnChip *)mtd->priv; in doc_read_ecc() local
415 unsigned long docptr = this->virtadr; in doc_read_ecc()
416 struct Nand *mychip = &this->chips[from >> (this->chipshift)]; in doc_read_ecc()
419 if (from >= this->totlen) in doc_read_ecc()
427 if (this->curfloor != mychip->floor) { in doc_read_ecc()
430 } else if (this->curchip != mychip->chip) { in doc_read_ecc()
433 this->curfloor = mychip->floor; in doc_read_ecc()
434 this->curchip = mychip->chip; in doc_read_ecc()
539 struct DiskOnChip *this = (struct DiskOnChip *)mtd->priv; in doc_write_ecc() local
540 unsigned long docptr = this->virtadr; in doc_write_ecc()
541 struct Nand *mychip = &this->chips[to >> (this->chipshift)]; in doc_write_ecc()
544 if (to >= this->totlen) in doc_write_ecc()
558 if (this->curfloor != mychip->floor) { in doc_write_ecc()
561 } else if (this->curchip != mychip->chip) { in doc_write_ecc()
564 this->curfloor = mychip->floor; in doc_write_ecc()
565 this->curchip = mychip->chip; in doc_write_ecc()
674 struct DiskOnChip *this = (struct DiskOnChip *)mtd->priv; in doc_read_oob() local
675 unsigned long docptr = this->virtadr; in doc_read_oob()
676 struct Nand *mychip = &this->chips[ofs >> this->chipshift]; in doc_read_oob()
679 if (this->curfloor != mychip->floor) { in doc_read_oob()
682 } else if (this->curchip != mychip->chip) { in doc_read_oob()
685 this->curfloor = mychip->floor; in doc_read_oob()
686 this->curchip = mychip->chip; in doc_read_oob()
726 struct DiskOnChip *this = (struct DiskOnChip *)mtd->priv; in doc_write_oob() local
727 unsigned long docptr = this->virtadr; in doc_write_oob()
728 struct Nand *mychip = &this->chips[ofs >> this->chipshift]; in doc_write_oob()
731 if (this->curfloor != mychip->floor) { in doc_write_oob()
734 } else if (this->curchip != mychip->chip) { in doc_write_oob()
737 this->curfloor = mychip->floor; in doc_write_oob()
738 this->curchip = mychip->chip; in doc_write_oob()
793 struct DiskOnChip *this = (struct DiskOnChip *)mtd->priv; in doc_erase() local
796 unsigned long docptr = this->virtadr; in doc_erase()
797 struct Nand *mychip = &this->chips[ofs >> this->chipshift]; in doc_erase()
804 if (this->curfloor != mychip->floor) { in doc_erase()
807 } else if (this->curchip != mychip->chip) { in doc_erase()
810 this->curfloor = mychip->floor; in doc_erase()
811 this->curchip = mychip->chip; in doc_erase()
863 struct DiskOnChip *this; in cleanup_doc2001() local
866 this = (struct DiskOnChip *)mtd->priv; in cleanup_doc2001()
867 docmillist = this->nextdoc; in cleanup_doc2001()
871 iounmap((void *)this->virtadr); in cleanup_doc2001()
872 kfree(this->chips); in cleanup_doc2001()