Home
last modified time | relevance | path

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

/drivers/nvdimm/
Dlabel.c274 struct nd_namespace_label *nd_label) in to_slot() argument
278 label = (unsigned long) nd_label; in to_slot()
350 struct nd_namespace_label *nd_label) in nsl_validate_checksum() argument
357 sum_save = nsl_get_checksum(ndd, nd_label); in nsl_validate_checksum()
358 nsl_set_checksum(ndd, nd_label, 0); in nsl_validate_checksum()
359 sum = nd_fletcher64(nd_label, sizeof_namespace_label(ndd), 1); in nsl_validate_checksum()
360 nsl_set_checksum(ndd, nd_label, sum_save); in nsl_validate_checksum()
365 struct nd_namespace_label *nd_label) in nsl_calculate_checksum() argument
371 nsl_set_checksum(ndd, nd_label, 0); in nsl_calculate_checksum()
372 sum = nd_fletcher64(nd_label, sizeof_namespace_label(ndd), 1); in nsl_calculate_checksum()
[all …]
Dnd.h39 struct nd_namespace_label *nd_label) in nsl_ref_name() argument
41 return nd_label->name; in nsl_ref_name()
45 struct nd_namespace_label *nd_label, u8 *name) in nsl_get_name() argument
47 return memcpy(name, nd_label->name, NSLABEL_NAME_LEN); in nsl_get_name()
51 struct nd_namespace_label *nd_label, u8 *name) in nsl_set_name() argument
55 return memcpy(nd_label->name, name, NSLABEL_NAME_LEN); in nsl_set_name()
59 struct nd_namespace_label *nd_label) in nsl_get_slot() argument
61 return __le32_to_cpu(nd_label->slot); in nsl_get_slot()
65 struct nd_namespace_label *nd_label, u32 slot) in nsl_set_slot() argument
67 nd_label->slot = __cpu_to_le32(slot); in nsl_set_slot()
[all …]
Dnamespace_devs.c1232 struct nd_namespace_label *nd_label = label_ent->label; in namespace_update_uuid() local
1235 if (!nd_label) in namespace_update_uuid()
1237 nd_label_gen_id(&label_id, nd_label->uuid, in namespace_update_uuid()
1238 nsl_get_flags(ndd, nd_label)); in namespace_update_uuid()
1848 struct nd_namespace_label *nd_label = label_ent->label; in has_uuid_at_pos() local
1851 if (!nd_label) in has_uuid_at_pos()
1853 position = nsl_get_position(ndd, nd_label); in has_uuid_at_pos()
1854 nlabel = nsl_get_nlabel(ndd, nd_label); in has_uuid_at_pos()
1856 if (!nsl_validate_isetcookie(ndd, nd_label, cookie)) in has_uuid_at_pos()
1859 if (memcmp(nd_label->uuid, uuid, NSLABEL_UUID_LEN) != 0) in has_uuid_at_pos()
[all …]