Lines Matching full:ids
52 struct nvme_ns_ids *ids = &head->ids; in wwid_show() local
57 if (!uuid_is_null(&ids->uuid)) in wwid_show()
58 return sysfs_emit(buf, "uuid.%pU\n", &ids->uuid); in wwid_show()
60 if (memchr_inv(ids->nguid, 0, sizeof(ids->nguid))) in wwid_show()
61 return sysfs_emit(buf, "eui.%16phN\n", ids->nguid); in wwid_show()
63 if (memchr_inv(ids->eui64, 0, sizeof(ids->eui64))) in wwid_show()
64 return sysfs_emit(buf, "eui.%8phN\n", ids->eui64); in wwid_show()
82 return sysfs_emit(buf, "%pU\n", dev_to_ns_head(dev)->ids.nguid); in nguid_show()
89 struct nvme_ns_ids *ids = &dev_to_ns_head(dev)->ids; in uuid_show() local
94 if (uuid_is_null(&ids->uuid)) { in uuid_show()
97 return sysfs_emit(buf, "%pU\n", ids->nguid); in uuid_show()
99 return sysfs_emit(buf, "%pU\n", &ids->uuid); in uuid_show()
106 return sysfs_emit(buf, "%8ph\n", dev_to_ns_head(dev)->ids.eui64); in eui_show()
134 struct nvme_ns_ids *ids = &dev_to_ns_head(dev)->ids; in nvme_ns_id_attrs_are_visible() local
137 if (uuid_is_null(&ids->uuid) && in nvme_ns_id_attrs_are_visible()
138 !memchr_inv(ids->nguid, 0, sizeof(ids->nguid))) in nvme_ns_id_attrs_are_visible()
142 if (!memchr_inv(ids->nguid, 0, sizeof(ids->nguid))) in nvme_ns_id_attrs_are_visible()
146 if (!memchr_inv(ids->eui64, 0, sizeof(ids->eui64))) in nvme_ns_id_attrs_are_visible()