Home
last modified time | relevance | path

Searched refs:numblocks (Results 1 – 20 of 20) sorted by relevance

/drivers/ssb/
Ddriver_chipcommon_sflash.c29 u16 numblocks; member
150 sflash->numblocks = e->numblocks; in ssb_sflash_init()
151 sflash->size = sflash->blocksize * sflash->numblocks; in ssb_sflash_init()
155 e->name, sflash->size / 1024, e->blocksize, e->numblocks); in ssb_sflash_init()
/drivers/bcma/
Ddriver_chipcommon_sflash.c30 u16 numblocks; member
150 sflash->numblocks = e->numblocks; in bcma_sflash_init()
151 sflash->size = sflash->blocksize * sflash->numblocks; in bcma_sflash_init()
156 sflash->numblocks); in bcma_sflash_init()
/drivers/mtd/maps/
Dvmu-flash.c33 u16 numblocks; member
71 if (src_ofs >= card->parts[partition].numblocks * card->blocklen) in ofs_to_block()
75 if (num > card->parts[partition].numblocks) in ofs_to_block()
360 int index = 0, retval, partition, leftover, numblocks; in vmu_flash_read() local
368 numblocks = card->parts[partition].numblocks; in vmu_flash_read()
369 if (from + len > numblocks * card->blocklen) in vmu_flash_read()
370 len = numblocks * card->blocklen - from; in vmu_flash_read()
424 int index = 0, partition, error = 0, numblocks; in vmu_flash_write() local
434 numblocks = card->parts[partition].numblocks; in vmu_flash_write()
435 if (to + len > numblocks * card->blocklen) in vmu_flash_write()
[all …]
Dscb2_flash.c118 if (region->numblocks * region->erasesize > mtd->size) { in scb2_fixup_mtd()
119 region->numblocks = ((unsigned long)mtd->size / in scb2_fixup_mtd()
123 region->numblocks = 0; in scb2_fixup_mtd()
/drivers/mtd/nand/
Dnand_bbt.c458 int i, numblocks, numpages; in create_bbt() local
470 numblocks = mtd->size >> this->bbt_erase_shift; in create_bbt()
479 numblocks = this->chipsize >> this->bbt_erase_shift; in create_bbt()
480 startblock = chip * numblocks; in create_bbt()
481 numblocks += startblock; in create_bbt()
488 for (i = startblock; i < numblocks; i++) { in create_bbt()
624 int bits, startblock, dir, page, offs, numblocks, sft, sftmsk; in write_bbt() local
641 numblocks = (int)(this->chipsize >> this->bbt_erase_shift); in write_bbt()
650 numblocks = (int)(mtd->size >> this->bbt_erase_shift); in write_bbt()
671 startblock = numblocks * (chip + 1) - 1; in write_bbt()
[all …]
/drivers/usb/storage/
Dsddr55.c651 int numblocks; in sddr55_read_map() local
662 numblocks = info->capacity >> (info->blockshift + info->pageshift); in sddr55_read_map()
664 buffer = kmalloc( numblocks * 2, GFP_NOIO ); in sddr55_read_map()
671 command[6] = numblocks * 2 / 256; in sddr55_read_map()
681 result = sddr55_bulk_transport(us, DMA_FROM_DEVICE, buffer, numblocks * 2); in sddr55_read_map()
697 info->lba_to_pba = kmalloc(numblocks*sizeof(int), GFP_NOIO); in sddr55_read_map()
698 info->pba_to_lba = kmalloc(numblocks*sizeof(int), GFP_NOIO); in sddr55_read_map()
709 memset(info->lba_to_pba, 0xff, numblocks*sizeof(int)); in sddr55_read_map()
710 memset(info->pba_to_lba, 0xff, numblocks*sizeof(int)); in sddr55_read_map()
720 for (i=0; i<numblocks; i++) { in sddr55_read_map()
Dsddr09.c1206 int numblocks, alloc_len, alloc_blocks; in sddr09_read_map() local
1217 numblocks = info->capacity >> (info->blockshift + info->pageshift); in sddr09_read_map()
1224 alloc_blocks = min(numblocks, SDDR09_READ_MAP_BUFSZ >> CONTROL_SHIFT); in sddr09_read_map()
1238 info->lba_to_pba = kmalloc(numblocks*sizeof(int), GFP_NOIO); in sddr09_read_map()
1239 info->pba_to_lba = kmalloc(numblocks*sizeof(int), GFP_NOIO); in sddr09_read_map()
1247 for (i = 0; i < numblocks; i++) in sddr09_read_map()
1255 for (i = 0; i < numblocks; i++) { in sddr09_read_map()
1263 min(alloc_blocks, numblocks - i), in sddr09_read_map()
1374 for (i = 0; i < numblocks; i += 1024) { in sddr09_read_map()
1377 for (j = 0; j < 1024 && i+j < numblocks; j++) { in sddr09_read_map()
/drivers/mtd/onenand/
Donenand_bbt.c61 int i, j, numblocks, len, scanlen; in create_bbt() local
80 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1); in create_bbt()
89 for (i = startblock; i < numblocks; ) { in create_bbt()
Donenand_base.c2399 region_end = region->offset + region->erasesize * region->numblocks; in onenand_block_by_block_erase()
2440 region_end = region->offset + region->erasesize * region->numblocks; in onenand_block_by_block_erase()
3577 mtd->eraseregions[i].numblocks = in flexonenand_get_size()
3579 ofs += mtd->eraseregions[i].numblocks << eraseshift; in flexonenand_get_size()
3583 mtd->eraseregions[i].numblocks += in flexonenand_get_size()
3591 mtd->eraseregions[i].numblocks = maxbdry ^ in flexonenand_get_size()
3593 ofs += mtd->eraseregions[i].numblocks << eraseshift; in flexonenand_get_size()
3610 mtd->eraseregions[i].numblocks); in flexonenand_get_size()
/drivers/mtd/devices/
Dlart.c425 …d->eraseregions[i].offset + (mtd->eraseregions[i].erasesize * mtd->eraseregions[i].numblocks)) i++; in flash_erase()
576 .numblocks = FLASH_NUMBLOCKS_16m_PARAM,
582 .numblocks = FLASH_NUMBLOCKS_16m_MAIN,
654 result,mtd.eraseregions[result].numblocks); in lart_flash_init()
Dbcm47xxsflash.h70 u16 numblocks; member
Dbcm47xxsflash.c302 b47s->numblocks = sflash->numblocks; in bcm47xxsflash_bcma_probe()
/drivers/mtd/
Dmtdconcat.c881 erase_region_p->numblocks = tmp64; in mtd_concat_create()
900 erase_region_p->numblocks = tmp64; in mtd_concat_create()
910 numblocks * (uint64_t)curr_erasesize; in mtd_concat_create()
919 erase_region_p->numblocks = tmp64; in mtd_concat_create()
Dmtdchar.c672 || put_user(kr->numblocks, &(ur->numblocks))) in mtdchar_ioctl()
/drivers/mtd/chips/
Dcfi_cmdset_0020.c206 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_staa_setup()
224 mtd->eraseregions[i].numblocks); in cfi_staa_setup()
956 …(((unsigned long)regions[i].offset + (regions[i].erasesize * regions[i].numblocks)) %( 1<< cfi->ch… in cfi_staa_erase_varsize()
Dcfi_util.c422 if (ofs == regions[i].offset + size * regions[i].numblocks) in cfi_varsize_frob()
Dcfi_cmdset_0001.c627 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_intelext_setup()
643 mtd->eraseregions[i].numblocks); in cfi_intelext_setup()
2492 for (block = 0; block < region->numblocks; block++){ in cfi_intelext_save_locks()
2592 for_each_clear_bit(block, region->lockmap, region->numblocks) { in cfi_intelext_restore_locks()
Dcfi_cmdset_0002.c709 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_amdstd_setup()
2703 if (offset == regions[i].offset + size * regions[i].numblocks) in cfi_ppb_unlock()
/drivers/atm/
Dsolos-pci.c635 int numblocks = 0; in flash_upgrade() local
691 numblocks = fw->size / blocksize; in flash_upgrade()
693 dev_info(&card->dev->dev, "Number of blocks: %d\n", numblocks); in flash_upgrade()
/drivers/mtd/spi-nor/
Dspi-nor.c1330 mtd->eraseregions[i].numblocks); in spi_nor_scan()