Home
last modified time | relevance | path

Searched refs:lbasize (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.10/drivers/nvdimm/
Dbtt_devs.c45 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()
Dblk.c18 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()
Dnamespace_devs.c139 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 …]
Dcore.c291 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()
Dlabel.h89 __le64 lbasize; member
Dbtt.c764 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()
Dbtt.h227 u32 lbasize; member
Dlabel.c807 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()
Dclaim.c122 nd_btt->lbasize = 0; in nd_detach_and_reset()
Dnd.h186 unsigned long lbasize; member
/Linux-v5.10/include/linux/
Dnd.h88 unsigned long lbasize; member
109 unsigned long lbasize; member
/Linux-v5.10/Documentation/driver-api/nvdimm/
Dnvdimm.rst767 if (parameters->lbasize)
768 ndctl_namespace_set_sector_size(ndns, parameters->lbasize);