Home
last modified time | relevance | path

Searched refs:lbasz (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/hw/nvme/
H A Ddif.c75 trace_pci_nvme_dif_pract_generate_dif_crc16(len, ns->lbasz, in nvme_dif_pract_generate_dif_crc16()
79 for (; buf < end; buf += ns->lbasz, mbuf += ns->lbaf.ms) { in nvme_dif_pract_generate_dif_crc16()
81 uint16_t crc = crc16_t10dif(0x0, buf, ns->lbasz); in nvme_dif_pract_generate_dif_crc16()
109 trace_pci_nvme_dif_pract_generate_dif_crc64(len, ns->lbasz, in nvme_dif_pract_generate_dif_crc64()
113 for (; buf < end; buf += ns->lbasz, mbuf += ns->lbaf.ms) { in nvme_dif_pract_generate_dif_crc64()
115 uint64_t crc = crc64_nvme(~0ULL, buf, ns->lbasz); in nvme_dif_pract_generate_dif_crc64()
178 uint16_t crc = crc16_t10dif(0x0, buf, ns->lbasz); in nvme_dif_prchk_crc16()
246 uint64_t crc = crc64_nvme(~0ULL, buf, ns->lbasz); in nvme_dif_prchk_crc64()
314 trace_pci_nvme_dif_check(prinfo, ns->lbasz + pil); in nvme_dif_check()
331 g_autofree uint8_t *zeroes = g_malloc0(ns->lbasz); in nvme_dif_check()
[all …]
H A Dns.c38 ns->lbasz = 1 << ns->lbaf.ds; in nvme_ns_init_format()
40 nlbas = ns->size / (ns->lbasz + ns->lbaf.ms); in nvme_ns_init_format()
50 npdg = ns->blkconf.discard_granularity / ns->lbasz; in nvme_ns_init_format()
54 npdg = bdi.cluster_size / ns->lbasz; in nvme_ns_init_format()
199 if (zone_size < ns->lbasz) { in nvme_ns_zoned_check_calc_geometry()
201 "must be at least %zuB", zone_size, ns->lbasz); in nvme_ns_zoned_check_calc_geometry()
204 if (zone_cap < ns->lbasz) { in nvme_ns_zoned_check_calc_geometry()
206 "must be at least %zuB", zone_cap, ns->lbasz); in nvme_ns_zoned_check_calc_geometry()
214 ns->zone_size = zone_size / ns->lbasz; in nvme_ns_zoned_check_calc_geometry()
215 ns->zone_capacity = zone_cap / ns->lbasz; in nvme_ns_zoned_check_calc_geometry()
H A Dnvme.h233 size_t lbasz; member
H A Dctrl.c741 uint32_t trans_len, count = ns->lbasz; in nvme_sg_split()
773 count = (dst == data) ? ns->lbasz : ns->lbaf.ms; in nvme_sg_split()
1415 return nvme_tx_interleaved(n, &req->sg, ptr, len, ns->lbasz, in nvme_bounce_data()
1430 ns->lbasz, ns->lbasz, dir); in nvme_bounce_mdata()
3283 sns->lbasz + sns->lbaf.ms); in nvme_do_copy()