Lines Matching defs:doc
174 static int DoC_IdentChip(struct DiskOnChip *doc, int floor, int chip)
179 DoC_SelectFloor(doc->virtadr, floor);
180 DoC_SelectChip(doc->virtadr, chip);
183 DoC_Command(doc->virtadr, NAND_CMD_RESET, CDSN_CTRL_WP);
184 DoC_WaitReady(doc->virtadr);
187 DoC_Command(doc->virtadr, NAND_CMD_READID, CDSN_CTRL_WP);
190 DoC_Address(doc->virtadr, 1, 0x00, CDSN_CTRL_WP, 0x00);
194 dummy = ReadDOC(doc->virtadr, ReadPipeInit);
195 DoC_Delay(doc->virtadr, 2);
196 mfr = ReadDOC(doc->virtadr, Mil_CDSN_IO);
198 DoC_Delay(doc->virtadr, 2);
199 id = ReadDOC(doc->virtadr, Mil_CDSN_IO);
200 dummy = ReadDOC(doc->virtadr, LastDataRead);
216 doc->mfr = mfr;
217 doc->id = id;
218 doc->chipshift = ffs((nand_flash_ids[i].chipsize << 20)) - 1;