Home
last modified time | relevance | path

Searched refs:mpa_crc_hd (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/drivers/infiniband/sw/siw/
Dsiw_qp.c238 c_tx->mpa_crc_hd = kzalloc(size, GFP_KERNEL); in siw_qp_enable_crc()
239 c_rx->mpa_crc_hd = kzalloc(size, GFP_KERNEL); in siw_qp_enable_crc()
240 if (!c_tx->mpa_crc_hd || !c_rx->mpa_crc_hd) { in siw_qp_enable_crc()
241 kfree(c_tx->mpa_crc_hd); in siw_qp_enable_crc()
242 kfree(c_rx->mpa_crc_hd); in siw_qp_enable_crc()
243 c_tx->mpa_crc_hd = NULL; in siw_qp_enable_crc()
244 c_rx->mpa_crc_hd = NULL; in siw_qp_enable_crc()
247 c_tx->mpa_crc_hd->tfm = siw_crypto_shash; in siw_qp_enable_crc()
248 c_rx->mpa_crc_hd->tfm = siw_crypto_shash; in siw_qp_enable_crc()
582 if (qp->tx_ctx.mpa_crc_hd) { in siw_send_terminate()
[all …]
Dsiw_qp_tx.c253 if (c_tx->mpa_crc_hd) { in siw_qp_prepare_tx()
254 crypto_shash_init(c_tx->mpa_crc_hd); in siw_qp_prepare_tx()
255 if (crypto_shash_update(c_tx->mpa_crc_hd, in siw_qp_prepare_tx()
259 crypto_shash_final(c_tx->mpa_crc_hd, (u8 *)crc); in siw_qp_prepare_tx()
477 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
516 c_tx->mpa_crc_hd, in siw_tx_hdt()
520 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
531 c_tx->mpa_crc_hd, in siw_tx_hdt()
570 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
574 if (!c_tx->mpa_crc_hd) in siw_tx_hdt()
[all …]
Dsiw_qp_rx.c70 if (srx->mpa_crc_hd) { in siw_rx_umem()
72 crypto_shash_update(srx->mpa_crc_hd, in siw_rx_umem()
117 if (srx->mpa_crc_hd) in siw_rx_kva()
118 crypto_shash_update(srx->mpa_crc_hd, (u8 *)kva, len); in siw_rx_kva()
967 if (srx->mpa_crc_hd && srx->pad) in siw_get_trailer()
968 crypto_shash_update(srx->mpa_crc_hd, tbuf, srx->pad); in siw_get_trailer()
974 if (!srx->mpa_crc_hd) in siw_get_trailer()
981 crypto_shash_final(srx->mpa_crc_hd, (u8 *)&crc_own); in siw_get_trailer()
1105 if (srx->mpa_crc_hd) { in siw_get_hdr()
1109 crypto_shash_init(srx->mpa_crc_hd); in siw_get_hdr()
[all …]
Dsiw.h317 struct shash_desc *mpa_crc_hd; member
397 struct shash_desc *mpa_crc_hd; member
697 __wsum crc = *(u32 *)shash_desc_ctx(srx->mpa_crc_hd); in siw_crc_skb()
701 *(u32 *)shash_desc_ctx(srx->mpa_crc_hd) = crc; in siw_crc_skb()
Dsiw_verbs.c615 kfree(qp->tx_ctx.mpa_crc_hd); in siw_destroy_qp()
616 kfree(qp->rx_stream.mpa_crc_hd); in siw_destroy_qp()