Lines Matching +full:linux +full:- +full:event +full:- +full:codes
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
5 #include <linux/vmalloc.h>
6 #include <linux/module.h>
7 #include <linux/device.h>
8 #include <linux/sizes.h>
9 #include <linux/ndctl.h>
10 #include <linux/slab.h>
11 #include <linux/mm.h>
12 #include <linux/nd.h>
23 dev_err(dev, "security event setup failed: %d\n", rc); in nvdimm_probe()
29 /* not required for non-aliased nvdimm, ex. NVDIMM-N */ in nvdimm_probe()
30 if (rc == -ENOTTY) in nvdimm_probe()
36 * The locked status bit reflects explicit status codes from the in nvdimm_probe()
38 * activated and re-reads the label area. in nvdimm_probe()
44 return -ENOMEM; in nvdimm_probe()
47 ndd->dpa.name = dev_name(dev); in nvdimm_probe()
48 ndd->ns_current = -1; in nvdimm_probe()
49 ndd->ns_next = -1; in nvdimm_probe()
50 ndd->dpa.start = 0; in nvdimm_probe()
51 ndd->dpa.end = -1; in nvdimm_probe()
52 ndd->dev = dev; in nvdimm_probe()
54 kref_init(&ndd->kref); in nvdimm_probe()
59 * status codes from the label reading commands. in nvdimm_probe()
67 * EACCES failures reading the namespace label-area-properties in nvdimm_probe()
72 if (rc == -EACCES) { in nvdimm_probe()
85 * EACCES failures reading the namespace label-data are in nvdimm_probe()
91 if (rc == -EACCES) in nvdimm_probe()
96 dev_dbg(dev, "config data size: %d\n", ndd->nsarea.config_size); in nvdimm_probe()
99 if (ndd->ns_current >= 0) { in nvdimm_probe()