Lines Matching refs:mpa_crc_hd
238 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()
583 if (qp->tx_ctx.mpa_crc_hd) { in siw_send_terminate()
584 crypto_shash_init(qp->tx_ctx.mpa_crc_hd); in siw_send_terminate()
585 if (crypto_shash_update(qp->tx_ctx.mpa_crc_hd, in siw_send_terminate()
591 if (crypto_shash_update(qp->tx_ctx.mpa_crc_hd, in siw_send_terminate()
596 crypto_shash_final(qp->tx_ctx.mpa_crc_hd, (u8 *)&crc); in siw_send_terminate()