Searched refs:nsblk (Results 1 – 6 of 6) sorted by relevance
/drivers/nvdimm/ |
D | namespace_devs.c | 39 struct nd_namespace_blk *nsblk = to_nd_namespace_blk(dev); in namespace_blk_release() local 42 if (nsblk->id >= 0) in namespace_blk_release() 43 ida_simple_remove(&nd_region->ns_ida, nsblk->id); in namespace_blk_release() 44 kfree(nsblk->alt_name); in namespace_blk_release() 45 kfree(nsblk->uuid); in namespace_blk_release() 46 kfree(nsblk->res); in namespace_blk_release() 47 kfree(nsblk); in namespace_blk_release() 89 struct nd_namespace_blk *nsblk = to_nd_namespace_blk(dev); in is_uuid_busy() local 91 uuid2 = nsblk->uuid; in is_uuid_busy() 176 struct nd_namespace_blk *nsblk; in nvdimm_namespace_disk_name() local [all …]
|
D | blk.c | 27 struct nd_namespace_blk *nsblk; member 38 return blk_dev->nsblk->lbasize - blk_dev->sector_size; in nd_blk_meta_size() 41 static resource_size_t to_dev_offset(struct nd_namespace_blk *nsblk, in to_dev_offset() argument 46 for (i = 0; i < nsblk->num_resources; i++) { in to_dev_offset() 47 if (ns_offset < resource_size(nsblk->res[i])) { in to_dev_offset() 48 if (ns_offset + len > resource_size(nsblk->res[i])) { in to_dev_offset() 49 dev_WARN_ONCE(&nsblk->common.dev, 1, in to_dev_offset() 53 return nsblk->res[i]->start + ns_offset; in to_dev_offset() 55 ns_offset -= resource_size(nsblk->res[i]); in to_dev_offset() 58 dev_WARN_ONCE(&nsblk->common.dev, 1, "request out of range\n"); in to_dev_offset() [all …]
|
D | label.c | 607 struct nd_mapping *nd_mapping, struct nd_namespace_blk *nsblk, in __blk_label_update() argument 623 old_res_list = nsblk->res; in __blk_label_update() 625 old_num_resources = nsblk->num_resources; in __blk_label_update() 626 nd_label_gen_id(&label_id, nsblk->uuid, NSLABEL_FLAG_LOCAL); in __blk_label_update() 655 if (memcmp(uuid, nsblk->uuid, NSLABEL_UUID_LEN) != 0) in __blk_label_update() 669 dev_info(&nsblk->common.dev, "insufficient label space\n"); in __blk_label_update() 677 nsblk->res = NULL; in __blk_label_update() 678 nsblk->num_resources = 0; in __blk_label_update() 682 if (!nsblk_add_resource(nd_region, ndd, nsblk, res->start)) { in __blk_label_update() 688 for (i = 0; i < nsblk->num_resources; i++) { in __blk_label_update() [all …]
|
D | label.h | 140 struct nd_namespace_blk *nsblk, resource_size_t size);
|
D | nd-core.h | 78 struct nvdimm_drvdata *ndd, struct nd_namespace_blk *nsblk,
|
D | nd.h | 278 resource_size_t nd_namespace_blk_validate(struct nd_namespace_blk *nsblk);
|