Lines Matching refs:pil

69     int16_t pil = 0;  in nvme_dif_pract_generate_dif_crc16()  local
72 pil = ns->lbaf.ms - nvme_pi_tuple_size(ns); in nvme_dif_pract_generate_dif_crc16()
76 ns->lbasz + pil, apptag, in nvme_dif_pract_generate_dif_crc16()
80 NvmeDifTuple *dif = (NvmeDifTuple *)(mbuf + pil); in nvme_dif_pract_generate_dif_crc16()
83 if (pil) { in nvme_dif_pract_generate_dif_crc16()
84 crc = crc16_t10dif(crc, mbuf, pil); in nvme_dif_pract_generate_dif_crc16()
103 int16_t pil = 0; in nvme_dif_pract_generate_dif_crc64() local
106 pil = ns->lbaf.ms - 16; in nvme_dif_pract_generate_dif_crc64()
110 ns->lbasz + pil, apptag, in nvme_dif_pract_generate_dif_crc64()
114 NvmeDifTuple *dif = (NvmeDifTuple *)(mbuf + pil); in nvme_dif_pract_generate_dif_crc64()
117 if (pil) { in nvme_dif_pract_generate_dif_crc64()
118 crc = crc64_nvme(~crc, mbuf, pil); in nvme_dif_pract_generate_dif_crc64()
154 uint8_t *buf, uint8_t *mbuf, size_t pil, in nvme_dif_prchk_crc16() argument
180 if (pil) { in nvme_dif_prchk_crc16()
181 crc = crc16_t10dif(crc, mbuf, pil); in nvme_dif_prchk_crc16()
213 uint8_t *buf, uint8_t *mbuf, size_t pil, in nvme_dif_prchk_crc64() argument
248 if (pil) { in nvme_dif_prchk_crc64()
249 crc = crc64_nvme(~crc, mbuf, pil); in nvme_dif_prchk_crc64()
280 uint8_t *buf, uint8_t *mbuf, size_t pil, in nvme_dif_prchk() argument
286 return nvme_dif_prchk_crc16(ns, dif, buf, mbuf, pil, prinfo, apptag, in nvme_dif_prchk()
289 return nvme_dif_prchk_crc64(ns, dif, buf, mbuf, pil, prinfo, apptag, in nvme_dif_prchk()
302 int16_t pil = 0; in nvme_dif_check() local
311 pil = ns->lbaf.ms - nvme_pi_tuple_size(ns); in nvme_dif_check()
314 trace_pci_nvme_dif_check(prinfo, ns->lbasz + pil); in nvme_dif_check()
317 NvmeDifTuple *dif = (NvmeDifTuple *)(mbuf + pil); in nvme_dif_check()
318 status = nvme_dif_prchk(ns, dif, bufp, mbuf, pil, prinfo, apptag, in nvme_dif_check()
334 memset(mbuf + pil, 0xff, nvme_pi_tuple_size(ns)); in nvme_dif_check()
358 int16_t pil = 0; in nvme_dif_mangle_mdata() local
366 pil = ns->lbaf.ms - nvme_pi_tuple_size(ns); in nvme_dif_mangle_mdata()
392 memset(mbufp + pil, 0xff, nvme_pi_tuple_size(ns)); in nvme_dif_mangle_mdata()
576 int16_t pil = ns->lbaf.ms - nvme_pi_tuple_size(ns); in nvme_dif_rw() local
589 pil = 0; in nvme_dif_rw()
593 NvmeDifTuple *dif = (NvmeDifTuple *)(mbuf + pil); in nvme_dif_rw()