Searched refs:devsize (Results 1 – 8 of 8) sorted by relevance
/linux-6.12.1/drivers/tc/ |
D | tc.c | 40 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.12.1/include/uapi/linux/ |
D | nilfs2_ondisk.h | 274 #define NILFS_SB2_OFFSET_BYTES(devsize) ((((devsize) >> 12) - 1) << 12) argument
|
/linux-6.12.1/drivers/mtd/chips/ |
D | cfi_cmdset_0020.c | 173 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_staa_setup() local 185 mtd->size = devsize * cfi->numchips; in cfi_staa_setup() 206 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_staa_setup() 213 if (offset != devsize) { in cfi_staa_setup() 215 …WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_staa_setup()
|
D | cfi_cmdset_0001.c | 623 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_setup() local 627 mtd->size = devsize * cfi->numchips; in cfi_intelext_setup() 645 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_intelext_setup() 655 if (offset != devsize) { in cfi_intelext_setup() 657 …WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_intelext_setup() 2325 u_long devsize, reg_prot_offset, data_offset; in cfi_intelext_otp_walk() local 2337 devsize = (1 << cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_otp_walk() 2338 chip_step = devsize >> cfi->chipshift; in cfi_intelext_otp_walk()
|
D | cfi_cmdset_0002.c | 769 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_amdstd_setup() local 776 mtd->size = devsize * cfi->numchips; in cfi_amdstd_setup() 794 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_amdstd_setup() 800 if (offset != devsize) { in cfi_amdstd_setup() 802 …WARNING "Sum of regions (%lx) != total size of set of interleaved chips (%lx)\n", offset, devsize); in cfi_amdstd_setup()
|
/linux-6.12.1/fs/nilfs2/ |
D | the_nilfs.c | 598 u64 sb2off, devsize = bdev_nr_bytes(nilfs->ns_bdev); in nilfs_load_super_block() local 601 if (devsize < NILFS_SEG_MIN_BLOCKS * NILFS_MIN_BLOCK_SIZE + 4096) { in nilfs_load_super_block() 605 sb2off = NILFS_SB2_OFFSET_BYTES(devsize); in nilfs_load_super_block()
|
D | super.c | 428 __u64 devsize, newnsegs; in nilfs_resize_fs() local 433 devsize = bdev_nr_bytes(sb->s_bdev); in nilfs_resize_fs() 434 if (newsize > devsize) in nilfs_resize_fs()
|
/linux-6.12.1/fs/cramfs/ |
D | inode.c | 190 unsigned long devsize; in cramfs_blkdev_read() local 214 devsize = bdev_nr_bytes(sb->s_bdev) >> PAGE_SHIFT; in cramfs_blkdev_read() 223 if (blocknr + i < devsize) { in cramfs_blkdev_read()
|