Lines Matching refs:mpa_crc_hd
241 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()
587 crypto_shash_init(qp->tx_ctx.mpa_crc_hd); in siw_send_terminate()
588 if (crypto_shash_update(qp->tx_ctx.mpa_crc_hd, in siw_send_terminate()
594 if (crypto_shash_update(qp->tx_ctx.mpa_crc_hd, in siw_send_terminate()
599 crypto_shash_final(qp->tx_ctx.mpa_crc_hd, (u8 *)&crc); in siw_send_terminate()