Lines Matching refs:attach
43 bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
46 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&attach->dev);
48 if (attach->claim)
52 attach->claim = dev;
53 *_ndns = attach;
54 get_device(&attach->dev);
58 bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
63 nvdimm_bus_lock(&attach->dev);
64 claimed = __nd_attach_ndns(dev, attach, _ndns);
65 nvdimm_bus_unlock(&attach->dev);