nd.h (f0dc089ce217e7b98e0d2077c548ff08129e7911) | nd.h (581388209405902b56d055f644b4dd124a206112) |
---|---|
1/* 2 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of version 2 of the GNU General Public License as 6 * published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 83 unchanged lines hidden (view full) --- 92 struct device dev; 93 struct ida ns_ida; 94 struct ida btt_ida; 95 struct device *ns_seed; 96 struct device *btt_seed; 97 u16 ndr_mappings; 98 u64 ndr_size; 99 u64 ndr_start; | 1/* 2 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of version 2 of the GNU General Public License as 6 * published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 83 unchanged lines hidden (view full) --- 92 struct device dev; 93 struct ida ns_ida; 94 struct ida btt_ida; 95 struct device *ns_seed; 96 struct device *btt_seed; 97 u16 ndr_mappings; 98 u64 ndr_size; 99 u64 ndr_start; |
100 int id, num_lanes; | 100 int id, num_lanes, ro; |
101 void *provider_data; 102 struct nd_interleave_set *nd_set; 103 struct nd_percpu_lane __percpu *lane; 104 struct nd_mapping mapping[0]; 105}; 106 107struct nd_blk_region { 108 int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev); --- 75 unchanged lines hidden (view full) --- 184#endif 185struct nd_region *to_nd_region(struct device *dev); 186int nd_region_to_nstype(struct nd_region *nd_region); 187int nd_region_register_namespaces(struct nd_region *nd_region, int *err); 188u64 nd_region_interleave_set_cookie(struct nd_region *nd_region); 189void nvdimm_bus_lock(struct device *dev); 190void nvdimm_bus_unlock(struct device *dev); 191bool is_nvdimm_bus_locked(struct device *dev); | 101 void *provider_data; 102 struct nd_interleave_set *nd_set; 103 struct nd_percpu_lane __percpu *lane; 104 struct nd_mapping mapping[0]; 105}; 106 107struct nd_blk_region { 108 int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev); --- 75 unchanged lines hidden (view full) --- 184#endif 185struct nd_region *to_nd_region(struct device *dev); 186int nd_region_to_nstype(struct nd_region *nd_region); 187int nd_region_register_namespaces(struct nd_region *nd_region, int *err); 188u64 nd_region_interleave_set_cookie(struct nd_region *nd_region); 189void nvdimm_bus_lock(struct device *dev); 190void nvdimm_bus_unlock(struct device *dev); 191bool is_nvdimm_bus_locked(struct device *dev); |
192int nvdimm_revalidate_disk(struct gendisk *disk); |
|
192void nvdimm_drvdata_release(struct kref *kref); 193void put_ndd(struct nvdimm_drvdata *ndd); 194int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd); 195void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res); 196struct resource *nvdimm_allocate_dpa(struct nvdimm_drvdata *ndd, 197 struct nd_label_id *label_id, resource_size_t start, 198 resource_size_t n); 199resource_size_t nvdimm_namespace_capacity(struct nd_namespace_common *ndns); --- 20 unchanged lines hidden --- | 193void nvdimm_drvdata_release(struct kref *kref); 194void put_ndd(struct nvdimm_drvdata *ndd); 195int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd); 196void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res); 197struct resource *nvdimm_allocate_dpa(struct nvdimm_drvdata *ndd, 198 struct nd_label_id *label_id, resource_size_t start, 199 resource_size_t n); 200resource_size_t nvdimm_namespace_capacity(struct nd_namespace_common *ndns); --- 20 unchanged lines hidden --- |