Lines Matching refs:drrw
207 struct drr_write *drrw = &thedrr.drr_u.drr_write;
332 (void) ssread(buf, drrw->drr_length, ofp);
339 if (ZIO_CHECKSUM_EQUAL(drrw->drr_key.ddk_cksum,
341 !DRR_IS_DEDUP_CAPABLE(drrw->drr_checksumflags)) {
346 SHA256Update(&ctx, buf, drrw->drr_length);
348 drrw->drr_key.ddk_cksum.zc_word[0] =
350 drrw->drr_key.ddk_cksum.zc_word[1] =
352 drrw->drr_key.ddk_cksum.zc_word[2] =
354 drrw->drr_key.ddk_cksum.zc_word[3] =
356 drrw->drr_checksumtype = ZIO_CHECKSUM_SHA256;
357 drrw->drr_checksumflags = DRR_CHECKSUM_DEDUP;
360 dataref.ref_guid = drrw->drr_toguid;
361 dataref.ref_object = drrw->drr_object;
362 dataref.ref_offset = drrw->drr_offset;
365 &drrw->drr_key.ddk_cksum, drrw->drr_key.ddk_prop,
368 wbr_drrr->drr_object = drrw->drr_object;
369 wbr_drrr->drr_offset = drrw->drr_offset;
370 wbr_drrr->drr_length = drrw->drr_length;
371 wbr_drrr->drr_toguid = drrw->drr_toguid;
379 drrw->drr_checksumtype;
381 drrw->drr_checksumtype;
383 drrw->drr_key.ddk_cksum;
385 drrw->drr_key.ddk_prop;
398 drrw->drr_length,