Lines Matching refs:mlen
65 size_t mlen, uint16_t apptag, in nvme_dif_pract_generate_dif_crc16() argument
99 size_t mlen, uint16_t apptag, in nvme_dif_pract_generate_dif_crc64() argument
138 uint8_t *mbuf, size_t mlen, uint16_t apptag, in nvme_dif_pract_generate_dif() argument
143 return nvme_dif_pract_generate_dif_crc16(ns, buf, len, mbuf, mlen, in nvme_dif_pract_generate_dif()
146 return nvme_dif_pract_generate_dif_crc64(ns, buf, len, mbuf, mlen, in nvme_dif_pract_generate_dif()
297 uint8_t *mbuf, size_t mlen, uint8_t prinfo, in nvme_dif_check() argument
349 uint16_t nvme_dif_mangle_mdata(NvmeNamespace *ns, uint8_t *mbuf, size_t mlen, in nvme_dif_mangle_mdata() argument
359 int64_t bytes = (mlen / ns->lbaf.ms) << ns->lbaf.ds; in nvme_dif_mangle_mdata()
388 mlen = (pnum >> ns->lbaf.ds) * ns->lbaf.ms; in nvme_dif_mangle_mdata()
389 end = mbufp + mlen; in nvme_dif_mangle_mdata()
491 size_t mlen = nvme_m2b(ns, nlb); in nvme_dif_rw_mdata_in_cb() local
501 ctx->mdata.bounce = g_malloc(mlen); in nvme_dif_rw_mdata_in_cb()
504 qemu_iovec_add(&ctx->mdata.iov, ctx->mdata.bounce, mlen); in nvme_dif_rw_mdata_in_cb()
547 size_t mlen = nvme_m2b(ns, nlb); in nvme_dif_rw() local
580 ctx->mdata.bounce = g_malloc0(mlen); in nvme_dif_rw()
583 qemu_iovec_add(&ctx->mdata.iov, ctx->mdata.bounce, mlen); in nvme_dif_rw()
586 end = mbuf + mlen; in nvme_dif_rw()
633 mapped_len += mlen; in nvme_dif_rw()
661 ctx->mdata.bounce = g_malloc(mlen); in nvme_dif_rw()
664 qemu_iovec_add(&ctx->mdata.iov, ctx->mdata.bounce, mlen); in nvme_dif_rw()