Searched refs:ndd (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/nvdimm/ |
A D | label.c | 90 ndd->nsarea.config_size, sizeof_namespace_label(ndd)); in sizeof_namespace_index() 346 return preamble_index(ndd, ndd->ns_current, nsindex, in preamble_current() 354 return preamble_index(ndd, ndd->ns_next, nsindex, in preamble_next() 451 ndd->nsarea.max_xfer, ndd->nsarea.config_size); in nd_label_data_init() 503 ndd->ns_current = nd_label_validate(ndd); in nd_label_data_init() 524 memset(ndd->data + offset, 0, ndd->nslabel_size); in nd_label_data_init() 724 WARN_ON(ndd->ns_current == ndd->ns_next); in nd_label_write_index() 951 rc = nd_label_write_index(ndd, ndd->ns_next, in __pmem_label_update() 1209 rc = nd_label_write_index(ndd, ndd->ns_next, in __blk_label_update() 1316 if (ndd->ns_current == -1 || ndd->ns_next == -1) in init_labels() [all …]
|
A D | nd.h | 42 if (ndd->cxl) in nsl_ref_name() 50 if (ndd->cxl) in nsl_get_name() 60 if (ndd->cxl) in nsl_set_name() 68 if (ndd->cxl) in nsl_get_slot() 76 if (ndd->cxl) in nsl_set_slot() 85 if (ndd->cxl) in nsl_get_checksum() 94 if (ndd->cxl) in nsl_set_checksum() 156 if (dev_WARN_ONCE(ndd->dev, ndd->cxl, in nsl_get_isetcookie() 337 return ndd->data + sizeof_namespace_index(ndd) * i; in to_namespace_index() 343 return to_namespace_index(ndd, ndd->ns_current); in to_current_namespace_index() [all …]
|
A D | dimm.c | 18 struct nvdimm_drvdata *ndd; in nvdimm_probe() local 42 ndd = kzalloc(sizeof(*ndd), GFP_KERNEL); in nvdimm_probe() 43 if (!ndd) in nvdimm_probe() 48 ndd->ns_current = -1; in nvdimm_probe() 49 ndd->ns_next = -1; in nvdimm_probe() 50 ndd->dpa.start = 0; in nvdimm_probe() 51 ndd->dpa.end = -1; in nvdimm_probe() 52 ndd->dev = dev; in nvdimm_probe() 54 kref_init(&ndd->kref); in nvdimm_probe() 112 put_ndd(ndd); in nvdimm_probe() [all …]
|
A D | dimm_devs.c | 48 if (!ndd) in validate_dimm() 242 struct nvdimm_drvdata *ndd = container_of(kref, typeof(*ndd), kref); in nvdimm_drvdata_release() local 252 kvfree(ndd->data); in nvdimm_drvdata_release() 253 kfree(ndd); in nvdimm_drvdata_release() 259 kref_get(&ndd->kref); in get_ndd() 264 if (ndd) in put_ndd() 344 if (!ndd) in __available_slots_show() 347 dev = ndd->dev; in __available_slots_show() 831 if (!ndd) in nd_blk_available_dpa() 872 if (!ndd) in nd_pmem_max_contiguous_dpa() [all …]
|
A D | namespace_devs.c | 915 if (!ndd) { in nd_namespace_pmem_set_resource() 1004 if (!ndd) in __size_store() 1434 if (!ndd) { in btt_claim_class() 1439 nsindex = to_namespace_index(ndd, ndd->ns_current); in btt_claim_class() 1950 to_namespace_index(ndd, ndd->ns_current); in create_namespace_pmem() 2498 struct nvdimm_drvdata *ndd = nd_mapping->ndd; in deactivate_labels() local 2505 put_ndd(ndd); in deactivate_labels() 2507 if (ndd) in deactivate_labels() 2527 if (!ndd) { in init_active_labels() 2542 nd_mapping->ndd = ndd; in init_active_labels() [all …]
|
A D | label.h | 215 int nd_label_data_init(struct nvdimm_drvdata *ndd); 216 size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd); 217 int nd_label_active_count(struct nvdimm_drvdata *ndd); 218 struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n); 219 u32 nd_label_alloc_slot(struct nvdimm_drvdata *ndd); 220 bool nd_label_free_slot(struct nvdimm_drvdata *ndd, u32 slot); 221 u32 nd_label_nfree(struct nvdimm_drvdata *ndd);
|
A D | nd-core.h | 150 resource_size_t nvdimm_allocated_dpa(struct nvdimm_drvdata *ndd, 154 struct nvdimm_drvdata *ndd, struct nd_namespace_blk *nsblk, 156 int nvdimm_num_label_slots(struct nvdimm_drvdata *ndd); 157 void get_ndd(struct nvdimm_drvdata *ndd);
|
A D | region_devs.c | 313 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in set_cookie_show() local 315 if (ndd) { in set_cookie_show() 318 nsindex = to_namespace_index(ndd, ndd->ns_current); in set_cookie_show() 345 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_region_available_dpa() local 348 if (!ndd) in nd_region_available_dpa()
|
Completed in 27 milliseconds