Lines Matching refs:DeviceInfo
230 * Sets up DeviceInfo structure with device parameters
238 DeviceInfo.wDeviceMaker = 0;
239 DeviceInfo.wDeviceType = 8;
240 DeviceInfo.wSpectraStartBlock = 36;
241 DeviceInfo.wSpectraEndBlock = GLOB_LLD_BLOCKS - 1;
242 DeviceInfo.wTotalBlocks = GLOB_LLD_BLOCKS;
243 DeviceInfo.wPagesPerBlock = GLOB_LLD_PAGES;
244 DeviceInfo.wPageSize = GLOB_LLD_PAGE_SIZE;
245 DeviceInfo.wPageDataSize = GLOB_LLD_PAGE_DATA_SIZE;
246 DeviceInfo.wPageSpareSize = GLOB_LLD_PAGE_SIZE -
248 DeviceInfo.wBlockSize = DeviceInfo.wPageSize * GLOB_LLD_PAGES;
249 DeviceInfo.wBlockDataSize = DeviceInfo.wPageDataSize * GLOB_LLD_PAGES;
250 DeviceInfo.wDataBlockNum = (u32) (DeviceInfo.wSpectraEndBlock -
251 DeviceInfo.wSpectraStartBlock
253 DeviceInfo.MLCDevice = 1; /* Emulate MLC device */
254 DeviceInfo.nBitsInPageNumber =
255 (u8)GLOB_Calc_Used_Bits(DeviceInfo.wPagesPerBlock);
256 DeviceInfo.nBitsInPageDataSize =
257 (u8)GLOB_Calc_Used_Bits(DeviceInfo.wPageDataSize);
258 DeviceInfo.nBitsInBlockDataSize =
259 (u8)GLOB_Calc_Used_Bits(DeviceInfo.wBlockDataSize);
301 if (block_add >= DeviceInfo.wTotalBlocks) {
314 DeviceInfo.wPageSize * sizeof(u8));
339 if (Block >= DeviceInfo.wTotalBlocks)
342 if (Page + PageCount > DeviceInfo.wPagesPerBlock)
356 write_data, DeviceInfo.wPageDataSize);
357 write_data += DeviceInfo.wPageDataSize;
382 if (Block >= DeviceInfo.wTotalBlocks)
385 if (Page + PageCount > DeviceInfo.wPagesPerBlock)
395 memset(read_data, 0xFF, DeviceInfo.wPageDataSize);
400 DeviceInfo.wPageDataSize);
402 read_data += DeviceInfo.wPageDataSize;
427 if (Block >= DeviceInfo.wTotalBlocks) {
433 if (Page + PageCount > DeviceInfo.wPagesPerBlock) {
446 memset(read_data, 0xFF, DeviceInfo.wPageSize);
451 DeviceInfo.wPageSize);
454 read_data += DeviceInfo.wPageSize;
478 if (Block >= DeviceInfo.wTotalBlocks) {
484 if (Page + page_count > DeviceInfo.wPagesPerBlock) {
501 write_data, DeviceInfo.wPageSize);
502 write_data += DeviceInfo.wPageSize;
524 if (Block >= DeviceInfo.wTotalBlocks) {
530 if (Page + PageCount > DeviceInfo.wPagesPerBlock) {
546 DeviceInfo.wPageDataSize), write_data,
547 (DeviceInfo.wPageSize - DeviceInfo.wPageDataSize));
567 if (Block >= DeviceInfo.wTotalBlocks) {
573 if (Page + PageCount > DeviceInfo.wPagesPerBlock) {
585 (DeviceInfo.wPageSize - DeviceInfo.wPageDataSize));
589 + DeviceInfo.wPageDataSize),
590 (DeviceInfo.wPageSize - DeviceInfo.wPageDataSize));
682 (DeviceInfo.wTotalBlocks / totalUsedBanks) * i;