• Home
  • Raw
  • Download

Lines Matching refs:digest

287 void drbd_csum_ee(struct crypto_shash *tfm, struct drbd_peer_request *peer_req, void *digest)  in drbd_csum_ee()  argument
312 crypto_shash_final(desc, digest); in drbd_csum_ee()
316 void drbd_csum_bio(struct crypto_shash *tfm, struct bio *bio, void *digest) in drbd_csum_bio() argument
338 crypto_shash_final(desc, digest); in drbd_csum_bio()
349 void *digest; in w_e_send_csum() local
359 digest = kmalloc(digest_size, GFP_NOIO); in w_e_send_csum()
360 if (digest) { in w_e_send_csum()
363 drbd_csum_ee(peer_device->connection->csums_tfm, peer_req, digest); in w_e_send_csum()
373 digest, digest_size, in w_e_send_csum()
375 kfree(digest); in w_e_send_csum()
1175 void *digest = NULL; in w_e_end_csum_rs_req() local
1189 di = peer_req->digest; in w_e_end_csum_rs_req()
1198 digest = kmalloc(digest_size, GFP_NOIO); in w_e_end_csum_rs_req()
1200 if (digest) { in w_e_end_csum_rs_req()
1201 drbd_csum_ee(peer_device->connection->csums_tfm, peer_req, digest); in w_e_end_csum_rs_req()
1202 eq = !memcmp(digest, di->digest, digest_size); in w_e_end_csum_rs_req()
1203 kfree(digest); in w_e_end_csum_rs_req()
1240 void *digest; in w_e_end_ov_req() local
1247 digest = kmalloc(digest_size, GFP_NOIO); in w_e_end_ov_req()
1248 if (!digest) { in w_e_end_ov_req()
1254 drbd_csum_ee(peer_device->connection->verify_tfm, peer_req, digest); in w_e_end_ov_req()
1256 memset(digest, 0, digest_size); in w_e_end_ov_req()
1266 err = drbd_send_drequest_csum(peer_device, sector, size, digest, digest_size, P_OV_REPLY); in w_e_end_ov_req()
1269 kfree(digest); in w_e_end_ov_req()
1295 void *digest; in w_e_end_ov_reply() local
1315 di = peer_req->digest; in w_e_end_ov_reply()
1319 digest = kmalloc(digest_size, GFP_NOIO); in w_e_end_ov_reply()
1320 if (digest) { in w_e_end_ov_reply()
1321 drbd_csum_ee(peer_device->connection->verify_tfm, peer_req, digest); in w_e_end_ov_reply()
1324 eq = !memcmp(digest, di->digest, digest_size); in w_e_end_ov_reply()
1325 kfree(digest); in w_e_end_ov_reply()