Searched refs:nd_label (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/drivers/nvdimm/ |
D | nd.h | 40 struct nd_namespace_label *nd_label) in nsl_ref_name() argument 43 return nd_label->cxl.name; in nsl_ref_name() 44 return nd_label->efi.name; in nsl_ref_name() 48 struct nd_namespace_label *nd_label, u8 *name) in nsl_get_name() argument 51 return memcpy(name, nd_label->cxl.name, NSLABEL_NAME_LEN); in nsl_get_name() 52 return memcpy(name, nd_label->efi.name, NSLABEL_NAME_LEN); in nsl_get_name() 56 struct nd_namespace_label *nd_label, u8 *name) in nsl_set_name() argument 61 return memcpy(nd_label->cxl.name, name, NSLABEL_NAME_LEN); in nsl_set_name() 62 return memcpy(nd_label->efi.name, name, NSLABEL_NAME_LEN); in nsl_set_name() 66 struct nd_namespace_label *nd_label) in nsl_get_slot() argument [all …]
|
D | label.c | 282 struct nd_namespace_label *nd_label) in to_slot() argument 286 label = (unsigned long) nd_label; in to_slot() 358 struct nd_namespace_label *nd_label) in nsl_validate_checksum() argument 365 sum_save = nsl_get_checksum(ndd, nd_label); in nsl_validate_checksum() 366 nsl_set_checksum(ndd, nd_label, 0); in nsl_validate_checksum() 367 sum = nd_fletcher64(nd_label, sizeof_namespace_label(ndd), 1); in nsl_validate_checksum() 368 nsl_set_checksum(ndd, nd_label, sum_save); in nsl_validate_checksum() 373 struct nd_namespace_label *nd_label) in nsl_calculate_checksum() argument 379 nsl_set_checksum(ndd, nd_label, 0); in nsl_calculate_checksum() 380 sum = nd_fletcher64(nd_label, sizeof_namespace_label(ndd), 1); in nsl_calculate_checksum() [all …]
|
D | namespace_devs.c | 1004 struct nd_namespace_label *nd_label = label_ent->label; in namespace_update_uuid() local 1008 if (!nd_label) in namespace_update_uuid() 1010 nsl_get_uuid(ndd, nd_label, &uuid); in namespace_update_uuid() 1012 nsl_get_flags(ndd, nd_label)); in namespace_update_uuid() 1568 struct nd_namespace_label *nd_label = label_ent->label; in has_uuid_at_pos() local 1571 if (!nd_label) in has_uuid_at_pos() 1573 position = nsl_get_position(ndd, nd_label); in has_uuid_at_pos() 1575 if (!nsl_validate_isetcookie(ndd, nd_label, cookie)) in has_uuid_at_pos() 1578 if (!nsl_uuid_equal(ndd, nd_label, uuid)) in has_uuid_at_pos() 1581 if (!nsl_validate_type_guid(ndd, nd_label, in has_uuid_at_pos() [all …]
|