Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/infiniband/sw/siw/
Dsiw_qp.c241 c_tx->mpa_crc_hd = kzalloc(size, GFP_KERNEL); in siw_qp_enable_crc()
242 c_rx->mpa_crc_hd = kzalloc(size, GFP_KERNEL); in siw_qp_enable_crc()
243 if (!c_tx->mpa_crc_hd || !c_rx->mpa_crc_hd) { in siw_qp_enable_crc()
244 kfree(c_tx->mpa_crc_hd); in siw_qp_enable_crc()
245 kfree(c_rx->mpa_crc_hd); in siw_qp_enable_crc()
246 c_tx->mpa_crc_hd = NULL; in siw_qp_enable_crc()
247 c_rx->mpa_crc_hd = NULL; in siw_qp_enable_crc()
250 c_tx->mpa_crc_hd->tfm = siw_crypto_shash; in siw_qp_enable_crc()
251 c_rx->mpa_crc_hd->tfm = siw_crypto_shash; in siw_qp_enable_crc()
586 if (qp->tx_ctx.mpa_crc_hd) { in siw_send_terminate()
[all …]
Dsiw_qp_tx.c252 if (c_tx->mpa_crc_hd) { in siw_qp_prepare_tx()
253 crypto_shash_init(c_tx->mpa_crc_hd); in siw_qp_prepare_tx()
254 if (crypto_shash_update(c_tx->mpa_crc_hd, in siw_qp_prepare_tx()
258 crypto_shash_final(c_tx->mpa_crc_hd, (u8 *)crc); in siw_qp_prepare_tx()
489 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
530 c_tx->mpa_crc_hd, in siw_tx_hdt()
535 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
550 c_tx->mpa_crc_hd, in siw_tx_hdt()
589 crypto_shash_update(c_tx->mpa_crc_hd, in siw_tx_hdt()
593 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()
981 if (!srx->mpa_crc_hd) in siw_get_trailer()
985 crypto_shash_update(srx->mpa_crc_hd, tbuf, srx->pad); in siw_get_trailer()
990 crypto_shash_final(srx->mpa_crc_hd, (u8 *)&crc_own); in siw_get_trailer()
1116 if (srx->mpa_crc_hd) { in siw_get_hdr()
1120 crypto_shash_init(srx->mpa_crc_hd); in siw_get_hdr()
1121 crypto_shash_update(srx->mpa_crc_hd, (u8 *)c_hdr, in siw_get_hdr()
Dsiw.h317 struct shash_desc *mpa_crc_hd; member
397 struct shash_desc *mpa_crc_hd; member
694 __wsum crc = *(u32 *)shash_desc_ctx(srx->mpa_crc_hd); in siw_crc_skb()
698 *(u32 *)shash_desc_ctx(srx->mpa_crc_hd) = crc; in siw_crc_skb()
Dsiw_verbs.c623 kfree(qp->tx_ctx.mpa_crc_hd); in siw_destroy_qp()
624 kfree(qp->rx_stream.mpa_crc_hd); in siw_destroy_qp()