Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/tc/
A 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.3-rc2/include/uapi/linux/
A Dnilfs2_ondisk.h274 #define NILFS_SB2_OFFSET_BYTES(devsize) ((((devsize) >> 12) - 1) << 12) argument
/linux-6.3-rc2/fs/nilfs2/
A Dthe_nilfs.c547 u64 sb2off, devsize = bdev_nr_bytes(nilfs->ns_bdev); in nilfs_load_super_block() local
550 if (devsize < NILFS_SEG_MIN_BLOCKS * NILFS_MIN_BLOCK_SIZE + 4096) { in nilfs_load_super_block()
554 sb2off = NILFS_SB2_OFFSET_BYTES(devsize); in nilfs_load_super_block()
A 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()
/linux-6.3-rc2/drivers/mtd/chips/
A 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()
A 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()
A 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.3-rc2/fs/cramfs/
A 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()

Completed in 24 milliseconds