Home
last modified time | relevance | path

Searched refs:nsblk (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/nvdimm/
Dblk.c16 static u32 nsblk_meta_size(struct nd_namespace_blk *nsblk) in nsblk_meta_size() argument
18 return nsblk->lbasize - ((nsblk->lbasize >= 4096) ? 4096 : 512); in nsblk_meta_size()
21 static u32 nsblk_internal_lbasize(struct nd_namespace_blk *nsblk) in nsblk_internal_lbasize() argument
23 return roundup(nsblk->lbasize, INT_LBASIZE_ALIGNMENT); in nsblk_internal_lbasize()
26 static u32 nsblk_sector_size(struct nd_namespace_blk *nsblk) in nsblk_sector_size() argument
28 return nsblk->lbasize - nsblk_meta_size(nsblk); in nsblk_sector_size()
31 static resource_size_t to_dev_offset(struct nd_namespace_blk *nsblk, in to_dev_offset() argument
36 for (i = 0; i < nsblk->num_resources; i++) { in to_dev_offset()
37 if (ns_offset < resource_size(nsblk->res[i])) { in to_dev_offset()
38 if (ns_offset + len > resource_size(nsblk->res[i])) { in to_dev_offset()
[all …]
Dnamespace_devs.c37 struct nd_namespace_blk *nsblk = to_nd_namespace_blk(dev); in namespace_blk_release() local
40 if (nsblk->id >= 0) in namespace_blk_release()
41 ida_simple_remove(&nd_region->ns_ida, nsblk->id); in namespace_blk_release()
42 kfree(nsblk->alt_name); in namespace_blk_release()
43 kfree(nsblk->uuid); in namespace_blk_release()
44 kfree(nsblk->res); in namespace_blk_release()
45 kfree(nsblk); in namespace_blk_release()
61 struct nd_namespace_blk *nsblk = to_nd_namespace_blk(dev); in is_uuid_busy() local
63 uuid2 = nsblk->uuid; in is_uuid_busy()
182 struct nd_namespace_blk *nsblk; in nvdimm_namespace_disk_name() local
[all …]
Dlabel.c898 struct nd_mapping *nd_mapping, struct nd_namespace_blk *nsblk, in __blk_label_update() argument
903 struct nd_namespace_common *ndns = &nsblk->common; in __blk_label_update()
919 old_res_list = nsblk->res; in __blk_label_update()
921 old_num_resources = nsblk->num_resources; in __blk_label_update()
922 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL); in __blk_label_update()
950 if (memcmp(uuid, nsblk->uuid, NSLABEL_UUID_LEN) != 0) in __blk_label_update()
964 dev_info(&nsblk->common.dev, "insufficient label space\n"); in __blk_label_update()
972 nsblk->res = NULL; in __blk_label_update()
973 nsblk->num_resources = 0; in __blk_label_update()
977 if (!nsblk_add_resource(nd_region, ndd, nsblk, res->start)) { in __blk_label_update()
[all …]
Dlabel.h145 struct nd_namespace_blk *nsblk, resource_size_t size);
Dnd-core.h153 struct nvdimm_drvdata *ndd, struct nd_namespace_blk *nsblk,
Dnd.h413 resource_size_t nd_namespace_blk_validate(struct nd_namespace_blk *nsblk);