Home
last modified time | relevance | path

Searched refs:devsize (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/tc/
Dtc.c40 resource_size_t devsize; in tc_bus_add_devices() local
116 devsize = readb(module + offset + TC_SLOT_SIZE); in tc_bus_add_devices()
117 devsize <<= 22; in tc_bus_add_devices()
118 if (devsize <= slotsize) { in tc_bus_add_devices()
120 tdev->resource.end = slotaddr + devsize - 1; in tc_bus_add_devices()
121 } else if (devsize <= extslotsize) { in tc_bus_add_devices()
123 tdev->resource.end = extslotaddr + devsize - 1; in tc_bus_add_devices()
127 dev_name(&tdev->dev), (long)(devsize >> 20), in tc_bus_add_devices()
/linux-6.1.9/include/uapi/linux/
Dnilfs2_ondisk.h274 #define NILFS_SB2_OFFSET_BYTES(devsize) ((((devsize) >> 12) - 1) << 12) argument
/linux-6.1.9/drivers/mtd/chips/
Dcfi_cmdset_0020.c172 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_staa_setup() local
184 mtd->size = devsize * cfi->numchips; in cfi_staa_setup()
205 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_staa_setup()
212 if (offset != devsize) { in cfi_staa_setup()
214 …WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_staa_setup()
Dcfi_cmdset_0001.c606 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_setup() local
610 mtd->size = devsize * cfi->numchips; in cfi_intelext_setup()
628 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_intelext_setup()
638 if (offset != devsize) { in cfi_intelext_setup()
640 …WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_intelext_setup()
2308 u_long devsize, reg_prot_offset, data_offset; in cfi_intelext_otp_walk() local
2320 devsize = (1 << cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_otp_walk()
2321 chip_step = devsize >> cfi->chipshift; in cfi_intelext_otp_walk()
Dcfi_cmdset_0002.c771 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_amdstd_setup() local
778 mtd->size = devsize * cfi->numchips; in cfi_amdstd_setup()
796 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_amdstd_setup()
802 if (offset != devsize) { in cfi_amdstd_setup()
804 …WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_amdstd_setup()
/linux-6.1.9/fs/cramfs/
Dinode.c189 unsigned long devsize; in cramfs_blkdev_read() local
213 devsize = bdev_nr_bytes(sb->s_bdev) >> PAGE_SHIFT; in cramfs_blkdev_read()
222 if (blocknr + i < devsize) { in cramfs_blkdev_read()
/linux-6.1.9/fs/nilfs2/
Dsuper.c402 __u64 devsize, newnsegs; in nilfs_resize_fs() local
407 devsize = bdev_nr_bytes(sb->s_bdev); in nilfs_resize_fs()
408 if (newsize > devsize) in nilfs_resize_fs()