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

Lines Matching refs:DeviceInfo

97 *               Sets up DeviceInfo structure with device parameters
109 DeviceInfo.wDeviceMaker = 0;
110 DeviceInfo.wDeviceType = 8;
111 DeviceInfo.wSpectraStartBlock = SPECTRA_START_BLOCK;
114 DeviceInfo.wTotalBlocks = tmp;
115 DeviceInfo.wSpectraEndBlock = DeviceInfo.wTotalBlocks - 1;
116 DeviceInfo.wPagesPerBlock = spectra_mtd->erasesize / spectra_mtd->writesize;
117 DeviceInfo.wPageSize = spectra_mtd->writesize + spectra_mtd->oobsize;
118 DeviceInfo.wPageDataSize = spectra_mtd->writesize;
119 DeviceInfo.wPageSpareSize = spectra_mtd->oobsize;
120 DeviceInfo.wBlockSize = DeviceInfo.wPageSize * DeviceInfo.wPagesPerBlock;
121 DeviceInfo.wBlockDataSize = DeviceInfo.wPageDataSize * DeviceInfo.wPagesPerBlock;
122 DeviceInfo.wDataBlockNum = (u32) (DeviceInfo.wSpectraEndBlock -
123 DeviceInfo.wSpectraStartBlock
125 DeviceInfo.MLCDevice = 0;//spectra_mtd->celltype & NAND_CI_CELLTYPE_MSK;
126 DeviceInfo.nBitsInPageNumber =
127 (u8)GLOB_Calc_Used_Bits(DeviceInfo.wPagesPerBlock);
128 DeviceInfo.nBitsInPageDataSize =
129 (u8)GLOB_Calc_Used_Bits(DeviceInfo.wPageDataSize);
130 DeviceInfo.nBitsInBlockDataSize =
131 (u8)GLOB_Calc_Used_Bits(DeviceInfo.wBlockDataSize);
180 if (block_add >= DeviceInfo.wTotalBlocks) {
227 if (Block >= DeviceInfo.wTotalBlocks)
230 if (Page + PageCount > DeviceInfo.wPagesPerBlock)
242 DeviceInfo.wPageDataSize, &retlen, write_data);
247 write_data += DeviceInfo.wPageDataSize;
277 if (Block >= DeviceInfo.wTotalBlocks)
280 if (Page + PageCount > DeviceInfo.wPagesPerBlock)
292 DeviceInfo.wPageDataSize, &retlen, read_data);
297 read_data += DeviceInfo.wPageDataSize;
324 if (Block >= DeviceInfo.wTotalBlocks) {
330 if (Page + PageCount > DeviceInfo.wPagesPerBlock) {
349 ops.len = DeviceInfo.wPageDataSize;
350 ops.oobbuf = read_data + DeviceInfo.wPageDataSize + BTSIG_OFFSET;
361 read_data += DeviceInfo.wPageSize;
384 if (Block >= DeviceInfo.wTotalBlocks) {
390 if (Page + page_count > DeviceInfo.wPagesPerBlock) {
409 ops.len = DeviceInfo.wPageDataSize;
410 ops.oobbuf = write_data + DeviceInfo.wPageDataSize + BTSIG_OFFSET;
421 write_data += DeviceInfo.wPageSize;
460 if (Block >= DeviceInfo.wTotalBlocks) {
466 if (Page + PageCount > DeviceInfo.wPagesPerBlock) {
495 read_data += DeviceInfo.wPageSize;
589 (DeviceInfo.wTotalBlocks / totalUsedBanks) * i;