Home
last modified time | relevance | path

Searched refs:device_size (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/include/scsi/
Dscsi_transport.h30 int device_size; member
67 t->device_private_offset = ALIGN(t->device_size, sizeof(void *)); in scsi_transport_reserve_device()
68 t->device_size = t->device_private_offset + space; in scsi_transport_reserve_device()
/linux-6.6.21/fs/ocfs2/
Docfs1_fs_compat.h36 /*110*/ __u64 device_size; member
/linux-6.6.21/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c288 u64 device_size; member
2528 u8 block_size = 0, page_size = 0, device_size = 0; in brcmnand_set_cfg() local
2578 if (fls64(cfg->device_size) < fls64(BRCMNAND_MIN_DEVSIZE)) { in brcmnand_set_cfg()
2580 (unsigned long long)cfg->device_size); in brcmnand_set_cfg()
2583 device_size = fls64(cfg->device_size) - fls64(BRCMNAND_MIN_DEVSIZE); in brcmnand_set_cfg()
2589 (device_size << CFG_DEVICE_SIZE_SHIFT); in brcmnand_set_cfg()
2623 (unsigned long long)cfg->device_size >> 20, in brcmnand_print_cfg()
2685 cfg->device_size = mtd->size; in brcmnand_setup_dev()
/linux-6.6.21/drivers/md/
Draid5-cache.c87 sector_t device_size; /* log device size, round to member
259 if (start >= log->device_size) in r5l_ring_add()
260 start = start - log->device_size; in r5l_ring_add()
270 return end + log->device_size - start; in r5l_ring_distance()
280 return log->device_size > used_size + size; in r5l_has_free_space()
1350 log->device_size - log->last_checkpoint, in r5l_write_super_and_discard_space()
3010 log->device_size = round_down(rdev->sectors, BLOCK_SECTORS); in r5l_load_log()
3011 log->max_free_space = log->device_size >> RECLAIM_MAX_FREE_SPACE_SHIFT; in r5l_load_log()
Ddm-writecache.c2114 static int calculate_memory_size(uint64_t device_size, unsigned int block_size, in calculate_memory_size() argument
2120 n_blocks = device_size; in calculate_memory_size()
2132 if (offset + n_blocks * block_size <= device_size) in calculate_memory_size()
/linux-6.6.21/drivers/mtd/ubi/
Dbuild.c544 uint64_t device_size; in get_bad_peb_limit() local
567 device_size = mtd_get_device_size(ubi->mtd); in get_bad_peb_limit()
568 device_pebs = mtd_div_by_eb(device_size, ubi->mtd); in get_bad_peb_limit()
/linux-6.6.21/fs/nilfs2/
Dsysfs.c917 NILFS_DEV_RO_ATTR(device_size);
926 NILFS_DEV_ATTR_LIST(device_size),
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-fs-nilfs230 What: /sys/fs/nilfs2/<device>/device_size
/linux-6.6.21/drivers/scsi/
Dscsi_scan.c287 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, in scsi_alloc_sdev()