Lines Matching refs:id_ns

1228     bool pi = !!NVME_ID_NS_DPS_TYPE(ns->id_ns.dps);  in nvme_map_data()
1410 bool pi = !!NVME_ID_NS_DPS_TYPE(ns->id_ns.dps); in nvme_bounce_data()
1680 uint64_t nsze = le64_to_cpu(ns->id_ns.nsze); in nvme_check_bounds()
2260 if (NVME_ID_NS_DPS_TYPE(ns->id_ns.dps)) { in nvme_verify_cb()
2366 if (NVME_ID_NS_DPS_TYPE(ns->id_ns.dps)) { in nvme_compare_mdata_cb()
2385 if (!(ns->id_ns.dps & NVME_ID_NS_DPS_FIRST_EIGHT)) { in nvme_compare_mdata_cb()
2594 ns->id_ns.nsze); in nvme_dsm_cb()
2664 if (NVME_ID_NS_DPS_TYPE(ns->id_ns.dps)) { in nvme_verify()
2890 if (copy_len > ns->id_ns.mcl) { in nvme_check_copy_mcl()
2985 if (NVME_ID_NS_DPS_TYPE(sns->id_ns.dps)) { in nvme_copy_in_completed_cb()
3004 if (NVME_ID_NS_DPS_TYPE(dns->id_ns.dps)) { in nvme_copy_in_completed_cb()
3117 sns->id_ns.dps != dns->id_ns.dps)) { in nvme_copy_matching_ns_format()
3201 if ((snsid == dnsid) && NVME_ID_NS_DPS_TYPE(sns->id_ns.dps) && in nvme_do_copy()
3206 if (!NVME_ID_NS_DPS_TYPE(sns->id_ns.dps) && in nvme_do_copy()
3207 !NVME_ID_NS_DPS_TYPE(dns->id_ns.dps)) { in nvme_do_copy()
3213 if (NVME_ID_NS_DPS_TYPE(sns->id_ns.dps) && in nvme_do_copy()
3214 NVME_ID_NS_DPS_TYPE(dns->id_ns.dps)) { in nvme_do_copy()
3227 if (!NVME_ID_NS_DPS_TYPE(sns->id_ns.dps) && in nvme_do_copy()
3228 NVME_ID_NS_DPS_TYPE(dns->id_ns.dps)) { in nvme_do_copy()
3240 if (NVME_ID_NS_DPS_TYPE(sns->id_ns.dps) && in nvme_do_copy()
3241 !NVME_ID_NS_DPS_TYPE(dns->id_ns.dps)) { in nvme_do_copy()
3257 if (nlb > le16_to_cpu(sns->id_ns.mssrl)) { in nvme_do_copy()
3282 iocb->bounce = g_malloc_n(le16_to_cpu(sns->id_ns.mssrl), in nvme_do_copy()
3327 if (nr > ns->id_ns.msrc + 1) { in nvme_copy()
3408 if (NVME_ID_NS_DPS_TYPE(ns->id_ns.dps) && (prinfo & NVME_PRINFO_PRACT)) { in nvme_compare()
3596 if (NVME_ID_NS_DPS_TYPE(ns->id_ns.dps)) { in nvme_read()
3632 if (NVME_ID_NS_DPS_TYPE(ns->id_ns.dps)) { in nvme_read()
3708 if (NVME_ID_NS_DPS_TYPE(ns->id_ns.dps)) { in nvme_do_write()
3759 switch (NVME_ID_NS_DPS_TYPE(ns->id_ns.dps)) { in nvme_do_write()
3803 if (NVME_ID_NS_DPS_TYPE(ns->id_ns.dps)) { in nvme_do_write()
3856 if (unlikely(*slba >= ns->id_ns.nsze)) { in nvme_get_mgmt_zone_slba_idx()
3857 trace_pci_nvme_err_invalid_lba_range(*slba, 0, ns->id_ns.nsze); in nvme_get_mgmt_zone_slba_idx()
5598 return nvme_c2h(n, (uint8_t *)&ns->id_ns, sizeof(NvmeIdNs), req); in nvme_identify_ns()
6454 if (NVME_ID_NS_NSFEAT_DULBE(ns->id_ns.nsfeat)) { in nvme_set_feature()
6463 if (NVME_ID_NS_NSFEAT_DULBE(ns->id_ns.nsfeat)) { in nvme_set_feature()
6522 ns->id_ns.nlbaf = ns->nlbaf - 1; in nvme_set_feature()
6524 ns->id_ns.nlbaf = MIN(ns->id_ns.nlbaf, 15); in nvme_set_feature()
6728 ns->id_ns.dps = (pil << 3) | pi; in nvme_format_set()
6729 ns->id_ns.flbas = (lbafu << 5) | (mset << 4) | lbafl; in nvme_format_set()
6777 if (lbaf > ns->id_ns.nlbaf) { in nvme_format_check()
6781 if (pi && (ns->id_ns.lbaf[lbaf].ms < nvme_pi_tuple_size(ns))) { in nvme_format_check()