Home
last modified time | relevance | path

Searched refs:nd_label (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/nvdimm/
Dnd.h40 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 …]
Dlabel.c282 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 …]
Dnamespace_devs.c1003 struct nd_namespace_label *nd_label = label_ent->label; in namespace_update_uuid() local
1007 if (!nd_label) in namespace_update_uuid()
1009 nsl_get_uuid(ndd, nd_label, &uuid); in namespace_update_uuid()
1011 nsl_get_flags(ndd, nd_label)); in namespace_update_uuid()
1567 struct nd_namespace_label *nd_label = label_ent->label; in has_uuid_at_pos() local
1570 if (!nd_label) in has_uuid_at_pos()
1572 position = nsl_get_position(ndd, nd_label); in has_uuid_at_pos()
1574 if (!nsl_validate_isetcookie(ndd, nd_label, cookie)) in has_uuid_at_pos()
1577 if (!nsl_uuid_equal(ndd, nd_label, uuid)) in has_uuid_at_pos()
1580 if (!nsl_validate_type_guid(ndd, nd_label, in has_uuid_at_pos()
[all …]