Lines Matching defs:nvm
1920 struct nvme_id_ns_nvm *nvm;
1923 nvm = kzalloc_obj(*nvm);
1924 if (!nvm)
1927 ret = nvme_submit_sync_cmd(ctrl->admin_q, &c, nvm, sizeof(*nvm));
1929 kfree(nvm);
1931 *nvmp = nvm;
1936 struct nvme_id_ns *id, struct nvme_id_ns_nvm *nvm)
1938 u32 elbaf = le32_to_cpu(nvm->elbaf[nvme_lbaf_index(id->flbas)]);
1946 if ((nvm->pic & NVME_ID_NS_NVM_QPIFS) &&
1965 struct nvme_id_ns_nvm *nvm, struct nvme_ns_info *info)
1974 if (nvm && (ctrl->ctratt & NVME_CTRL_ATTR_ELBAS)) {
1975 nvme_configure_pi_elbas(head, id, nvm);
2078 struct nvme_id_ns_nvm *nvm, struct queue_limits *lim)
2155 if (optperf & 0x2 && nvm && nvm->npdgl)
2156 npdg = le32_to_cpu(nvm->npdgl);
2159 if (optperf & 0x2 && nvm && nvm->npdal)
2160 npda = le32_to_cpu(nvm->npdal);
2391 struct nvme_id_ns_nvm *nvm = NULL;
2412 ret = nvme_identify_ns_nvm(ns->ctrl, info->nsid, &nvm);
2445 nvme_configure_metadata(ns->ctrl, ns->head, id, nvm, info);
2447 if (!nvme_update_disk_info(ns, id, nvm, &lim))
2507 kfree(nvm);