Home
last modified time | relevance | path

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

/Linux-v4.19/include/scsi/
Dscsi_transport.h43 int device_size; member
80 t->device_private_offset = ALIGN(t->device_size, sizeof(void *)); in scsi_transport_reserve_device()
81 t->device_size = t->device_private_offset + space; in scsi_transport_reserve_device()
/Linux-v4.19/fs/ocfs2/
Docfs1_fs_compat.h51 /*110*/ __u64 device_size; member
/Linux-v4.19/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c165 u64 device_size; member
1971 u8 block_size = 0, page_size = 0, device_size = 0; in brcmnand_set_cfg() local
2021 if (fls64(cfg->device_size) < fls64(BRCMNAND_MIN_DEVSIZE)) { in brcmnand_set_cfg()
2023 (unsigned long long)cfg->device_size); in brcmnand_set_cfg()
2026 device_size = fls64(cfg->device_size) - fls64(BRCMNAND_MIN_DEVSIZE); in brcmnand_set_cfg()
2032 (device_size << CFG_DEVICE_SIZE_SHIFT); in brcmnand_set_cfg()
2064 (unsigned long long)cfg->device_size >> 20, in brcmnand_print_cfg()
2121 cfg->device_size = mtd->size; in brcmnand_setup_dev()
/Linux-v4.19/drivers/md/
Draid5-cache.c96 sector_t device_size; /* log device size, round to member
270 if (start >= log->device_size) in r5l_ring_add()
271 start = start - log->device_size; in r5l_ring_add()
281 return end + log->device_size - start; in r5l_ring_distance()
291 return log->device_size > used_size + size; in r5l_has_free_space()
1362 log->device_size - log->last_checkpoint, in r5l_write_super_and_discard_space()
3009 log->device_size = round_down(rdev->sectors, BLOCK_SECTORS); in r5l_load_log()
3010 log->max_free_space = log->device_size >> RECLAIM_MAX_FREE_SPACE_SHIFT; in r5l_load_log()
Ddm-writecache.c1702 static int calculate_memory_size(uint64_t device_size, unsigned block_size, in calculate_memory_size() argument
1708 n_blocks = device_size; in calculate_memory_size()
1720 if (offset + n_blocks * block_size <= device_size) in calculate_memory_size()
/Linux-v4.19/drivers/mtd/ubi/
Dbuild.c537 uint64_t device_size; in get_bad_peb_limit() local
560 device_size = mtd_get_device_size(ubi->mtd); in get_bad_peb_limit()
561 device_pebs = mtd_div_by_eb(device_size, ubi->mtd); in get_bad_peb_limit()
/Linux-v4.19/fs/nilfs2/
Dsysfs.c926 NILFS_DEV_RO_ATTR(device_size);
935 NILFS_DEV_ATTR_LIST(device_size),
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-fs-nilfs230 What: /sys/fs/nilfs2/<device>/device_size
/Linux-v4.19/drivers/scsi/
Dscsi_scan.c222 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, in scsi_alloc_sdev()