Lines Matching refs:nd_label
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
69 return __le32_to_cpu(nd_label->cxl.slot); in nsl_get_slot()
70 return __le32_to_cpu(nd_label->efi.slot); in nsl_get_slot()
74 struct nd_namespace_label *nd_label, u32 slot) in nsl_set_slot() argument
77 nd_label->cxl.slot = __cpu_to_le32(slot); in nsl_set_slot()
79 nd_label->efi.slot = __cpu_to_le32(slot); in nsl_set_slot()
83 struct nd_namespace_label *nd_label) in nsl_get_checksum() argument
86 return __le64_to_cpu(nd_label->cxl.checksum); in nsl_get_checksum()
87 return __le64_to_cpu(nd_label->efi.checksum); in nsl_get_checksum()
91 struct nd_namespace_label *nd_label, in nsl_set_checksum() argument
95 nd_label->cxl.checksum = __cpu_to_le64(checksum); in nsl_set_checksum()
97 nd_label->efi.checksum = __cpu_to_le64(checksum); in nsl_set_checksum()
101 struct nd_namespace_label *nd_label) in nsl_get_flags() argument
104 return __le32_to_cpu(nd_label->cxl.flags); in nsl_get_flags()
105 return __le32_to_cpu(nd_label->efi.flags); in nsl_get_flags()
109 struct nd_namespace_label *nd_label, u32 flags) in nsl_set_flags() argument
112 nd_label->cxl.flags = __cpu_to_le32(flags); in nsl_set_flags()
114 nd_label->efi.flags = __cpu_to_le32(flags); in nsl_set_flags()
118 struct nd_namespace_label *nd_label) in nsl_get_dpa() argument
121 return __le64_to_cpu(nd_label->cxl.dpa); in nsl_get_dpa()
122 return __le64_to_cpu(nd_label->efi.dpa); in nsl_get_dpa()
126 struct nd_namespace_label *nd_label, u64 dpa) in nsl_set_dpa() argument
129 nd_label->cxl.dpa = __cpu_to_le64(dpa); in nsl_set_dpa()
131 nd_label->efi.dpa = __cpu_to_le64(dpa); in nsl_set_dpa()
135 struct nd_namespace_label *nd_label) in nsl_get_rawsize() argument
138 return __le64_to_cpu(nd_label->cxl.rawsize); in nsl_get_rawsize()
139 return __le64_to_cpu(nd_label->efi.rawsize); in nsl_get_rawsize()
143 struct nd_namespace_label *nd_label, in nsl_set_rawsize() argument
147 nd_label->cxl.rawsize = __cpu_to_le64(rawsize); in nsl_set_rawsize()
149 nd_label->efi.rawsize = __cpu_to_le64(rawsize); in nsl_set_rawsize()
153 struct nd_namespace_label *nd_label) in nsl_get_isetcookie() argument
159 return __le64_to_cpu(nd_label->efi.isetcookie); in nsl_get_isetcookie()
163 struct nd_namespace_label *nd_label, in nsl_set_isetcookie() argument
167 nd_label->efi.isetcookie = __cpu_to_le64(isetcookie); in nsl_set_isetcookie()
171 struct nd_namespace_label *nd_label, in nsl_validate_isetcookie() argument
180 return cookie == __le64_to_cpu(nd_label->efi.isetcookie); in nsl_validate_isetcookie()
184 struct nd_namespace_label *nd_label) in nsl_get_position() argument
187 return __le16_to_cpu(nd_label->cxl.position); in nsl_get_position()
188 return __le16_to_cpu(nd_label->efi.position); in nsl_get_position()
192 struct nd_namespace_label *nd_label, in nsl_set_position() argument
196 nd_label->cxl.position = __cpu_to_le16(position); in nsl_set_position()
198 nd_label->efi.position = __cpu_to_le16(position); in nsl_set_position()
202 struct nd_namespace_label *nd_label) in nsl_get_nlabel() argument
206 return __le16_to_cpu(nd_label->efi.nlabel); in nsl_get_nlabel()
210 struct nd_namespace_label *nd_label, in nsl_set_nlabel() argument
214 nd_label->efi.nlabel = __cpu_to_le16(nlabel); in nsl_set_nlabel()
218 struct nd_namespace_label *nd_label) in nsl_get_nrange() argument
221 return __le16_to_cpu(nd_label->cxl.nrange); in nsl_get_nrange()
226 struct nd_namespace_label *nd_label, in nsl_set_nrange() argument
230 nd_label->cxl.nrange = __cpu_to_le16(nrange); in nsl_set_nrange()
234 struct nd_namespace_label *nd_label) in nsl_get_lbasize() argument
241 return __le16_to_cpu(nd_label->cxl.lbasize); in nsl_get_lbasize()
242 return __le64_to_cpu(nd_label->efi.lbasize); in nsl_get_lbasize()
246 struct nd_namespace_label *nd_label, in nsl_set_lbasize() argument
250 nd_label->cxl.lbasize = __cpu_to_le16(lbasize); in nsl_set_lbasize()
252 nd_label->efi.lbasize = __cpu_to_le64(lbasize); in nsl_set_lbasize()
256 struct nd_namespace_label *nd_label, in nsl_get_uuid() argument
260 import_uuid(uuid, nd_label->cxl.uuid); in nsl_get_uuid()
262 import_uuid(uuid, nd_label->efi.uuid); in nsl_get_uuid()
267 struct nd_namespace_label *nd_label, in nsl_set_uuid() argument
271 export_uuid(nd_label->cxl.uuid, uuid); in nsl_set_uuid()
273 export_uuid(nd_label->efi.uuid, uuid); in nsl_set_uuid()
278 struct nd_namespace_label *nd_label, in nsl_uuid_equal() argument
284 import_uuid(&tmp, nd_label->cxl.uuid); in nsl_uuid_equal()
286 import_uuid(&tmp, nd_label->efi.uuid); in nsl_uuid_equal()
291 struct nd_namespace_label *nd_label) in nsl_uuid_raw() argument
294 return nd_label->cxl.uuid; in nsl_uuid_raw()
295 return nd_label->efi.uuid; in nsl_uuid_raw()
299 struct nd_namespace_label *nd_label, guid_t *guid);
301 struct nd_namespace_label *nd_label);
430 struct nd_namespace_label *nd_label) in nsl_validate_nlabel() argument
434 return nsl_get_nlabel(ndd, nd_label) == nd_region->ndr_mappings; in nsl_validate_nlabel()