Searched refs:lbasize (Results 1 – 12 of 12) sorted by relevance
/Linux-v5.10/drivers/nvdimm/ |
D | btt_devs.c | 45 return nd_size_select_show(nd_btt->lbasize, btt_lbasize_supported, buf); in sector_size_show() 56 rc = nd_size_select_store(dev, buf, &nd_btt->lbasize, in sector_size_store() 183 unsigned long lbasize, u8 *uuid, in __nd_btt_create() argument 197 nd_btt->lbasize = lbasize; in __nd_btt_create() 321 nd_btt->lbasize = le32_to_cpu(btt_sb->external_lbasize); in __nd_btt_probe()
|
D | blk.c | 18 return nsblk->lbasize - ((nsblk->lbasize >= 4096) ? 4096 : 512); in nsblk_meta_size() 23 return roundup(nsblk->lbasize, INT_LBASIZE_ALIGNMENT); in nsblk_internal_lbasize() 28 return nsblk->lbasize - nsblk_meta_size(nsblk); in nsblk_sector_size()
|
D | namespace_devs.c | 139 if (nspm->lbasize == 0 || nspm->lbasize == 512) in pmem_sector_size() 141 else if (nspm->lbasize == 4096) in pmem_sector_size() 145 nspm->lbasize); in pmem_sector_size() 296 if (!nsblk->uuid || !nsblk->lbasize || !ndd) in __nd_namespace_blk_validate() 374 else if (!nsblk->uuid || !nsblk->lbasize) in nd_namespace_label_update() 1325 return nd_size_select_show(nsblk->lbasize, in sector_size_show() 1332 return nd_size_select_show(nspm->lbasize, in sector_size_show() 1343 unsigned long *lbasize; in sector_size_store() local 1349 lbasize = &nsblk->lbasize; in sector_size_store() 1354 lbasize = &nspm->lbasize; in sector_size_store() [all …]
|
D | core.c | 291 unsigned long lbasize; in nd_size_select_store() local 297 rc = kstrtoul(buf, 0, &lbasize); in nd_size_select_store() 302 if (lbasize == supported[i]) in nd_size_select_store() 306 *current_size = lbasize; in nd_size_select_store()
|
D | label.h | 89 __le64 lbasize; member
|
D | btt.c | 764 arena->external_lbasize = btt->lbasize; in alloc_arena() 1058 return btt->lbasize - btt->sector_size; in btt_meta_size() 1588 u32 lbasize, u8 *uuid, struct nd_region *nd_region) in btt_init() argument 1601 btt->lbasize = lbasize; in btt_init() 1602 btt->sector_size = ((lbasize >= 4096) ? 4096 : 512); in btt_init() 1676 if (!nd_btt->uuid || !nd_btt->ndns || !nd_btt->lbasize) { in nvdimm_namespace_attach_btt() 1706 btt = btt_init(nd_btt, rawsize, nd_btt->lbasize, nd_btt->uuid, in nvdimm_namespace_attach_btt()
|
D | btt.h | 227 u32 lbasize; member
|
D | label.c | 807 nd_label->lbasize = __cpu_to_le64(nspm->lbasize); in __pmem_label_update() 1036 nd_label->lbasize = __cpu_to_le64(nsblk->lbasize); in __blk_label_update()
|
D | claim.c | 122 nd_btt->lbasize = 0; in nd_detach_and_reset()
|
D | nd.h | 186 unsigned long lbasize; member
|
/Linux-v5.10/include/linux/ |
D | nd.h | 88 unsigned long lbasize; member 109 unsigned long lbasize; member
|
/Linux-v5.10/Documentation/driver-api/nvdimm/ |
D | nvdimm.rst | 767 if (parameters->lbasize) 768 ndctl_namespace_set_sector_size(ndns, parameters->lbasize);
|