Searched refs:lbasize (Results 1 – 10 of 10) sorted by relevance
/drivers/nvdimm/ |
D | btt_devs.c | 64 return nd_sector_size_show(nd_btt->lbasize, btt_lbasize_supported, buf); in sector_size_show() 75 rc = nd_sector_size_store(dev, buf, &nd_btt->lbasize, in sector_size_store() 182 unsigned long lbasize, u8 *uuid, in __nd_btt_create() argument 198 nd_btt->lbasize = lbasize; in __nd_btt_create() 285 nd_btt->lbasize = le32_to_cpu(btt_sb->external_lbasize); in __nd_btt_probe()
|
D | blk.c | 26 return nsblk->lbasize - ((nsblk->lbasize >= 4096) ? 4096 : 512); in nsblk_meta_size() 31 return roundup(nsblk->lbasize, INT_LBASIZE_ALIGNMENT); in nsblk_internal_lbasize() 36 return nsblk->lbasize - nsblk_meta_size(nsblk); in nsblk_sector_size()
|
D | core.c | 298 unsigned long lbasize; in nd_sector_size_store() local 304 rc = kstrtoul(buf, 0, &lbasize); in nd_sector_size_store() 309 if (lbasize == supported[i]) in nd_sector_size_store() 313 *current_lbasize = lbasize; in nd_sector_size_store()
|
D | btt.c | 657 arena->external_lbasize = btt->lbasize; in alloc_arena() 951 return btt->lbasize - btt->sector_size; in btt_meta_size() 1438 u32 lbasize, u8 *uuid, struct nd_region *nd_region) in btt_init() argument 1450 btt->lbasize = lbasize; in btt_init() 1451 btt->sector_size = ((lbasize >= 4096) ? 4096 : 512); in btt_init() 1521 if (!nd_btt->uuid || !nd_btt->ndns || !nd_btt->lbasize) { in nvdimm_namespace_attach_btt() 1533 btt = btt_init(nd_btt, rawsize, nd_btt->lbasize, nd_btt->uuid, in nvdimm_namespace_attach_btt()
|
D | label.h | 97 __le64 lbasize; member
|
D | btt.h | 221 u32 lbasize; member
|
D | namespace_devs.c | 307 if (!nsblk->uuid || !nsblk->lbasize || !ndd) in __nd_namespace_blk_validate() 385 else if (!nsblk->uuid || !nsblk->lbasize) in nd_namespace_label_update() 1297 return nd_sector_size_show(nsblk->lbasize, ns_lbasize_supported, buf); in sector_size_show() 1315 rc = nd_sector_size_store(dev, buf, &nsblk->lbasize, in sector_size_store() 1552 if (!nsblk->lbasize) { in nvdimm_namespace_common_probe() 2021 nsblk->lbasize = __le64_to_cpu(nd_label->lbasize); in create_namespace_blk()
|
D | claim.c | 125 nd_btt->lbasize = 0; in nd_detach_and_reset()
|
D | nd.h | 185 unsigned long lbasize; member
|
D | label.c | 729 nd_label->lbasize = __cpu_to_le64(nsblk->lbasize); in __blk_label_update()
|