Searched refs:devsize (Results 1 – 4 of 4) sorted by relevance
117 unsigned long devsize; in cramfs_read() local142 devsize = mapping->host->i_size >> PAGE_CACHE_SHIFT; in cramfs_read()147 devsize = blk_size[major][minor] >> 2; in cramfs_read()154 if (blocknr + i < devsize) { in cramfs_read()
189 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_staa_setup() local203 mtd->size = devsize * cfi->numchips; in cfi_staa_setup()223 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_staa_setup()230 if (offset != devsize) { in cfi_staa_setup()232 …WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_staa_setup()
149 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_amdstd_setup() local164 mtd->size = devsize * cfi->numchips; in cfi_amdstd_setup()189 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_amdstd_setup()195 if (offset != devsize) { in cfi_amdstd_setup()197 …WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_amdstd_setup()
208 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; local221 mtd->size = devsize * cfi->numchips;240 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset;247 if (offset != devsize) {249 …WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize);