Searched refs:devsize (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/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.1.9/include/uapi/linux/ |
D | nilfs2_ondisk.h | 274 #define NILFS_SB2_OFFSET_BYTES(devsize) ((((devsize) >> 12) - 1) << 12) argument
|
/linux-6.1.9/drivers/mtd/chips/ |
D | cfi_cmdset_0020.c | 172 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()
|
D | cfi_cmdset_0001.c | 606 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()
|
D | cfi_cmdset_0002.c | 771 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/ |
D | inode.c | 189 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/ |
D | super.c | 402 __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()
|